@fluid-topics/ft-reader-feedback 1.1.49 → 1.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,45 +12,46 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let d=o.call(i,t);d||(d=h(t),e.call(i,t,d)),this===window.customElements&&(a.set(r,c),c.standInClass=d);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=d(o)||window.customElements,r=i._getDefinition(e);return r?p(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Bl){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let d=o.call(i,t);d||(d=f(t),e.call(i,t,d)),this===window.customElements&&(a.set(r,c),c.standInClass=d);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=d(o)||window.customElements,r=i._getDefinition(e);return r?p(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Fl){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var t="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),o=new WeakMap,i="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,n=Array.prototype.forEach,a=/@import.+?;?$/gm,s=CSSStyleSheet.prototype;s.replace=function(){return Promise.reject(new i("Can't call replace on non-constructed CSSStyleSheets."))},s.replaceSync=function(){throw new i("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var l=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,h=E.prototype;h.replace=function(t){try{return this.replaceSync(t),Promise.resolve(this)}catch(t){return Promise.reject(t)}},h.replaceSync=function(t){if($(this),"string"==typeof t){var e=this;l.get(e).textContent=function(t){var e=t.replace(a,"");return e!==t&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),e.trim()}(t),f.set(e,[]),c.get(e).forEach((function(t){t.isConnected()&&N(e,C(e,t))}))}},r(h,"cssRules",{configurable:!0,enumerable:!0,get:function(){return $(this),l.get(this).sheet.cssRules}}),r(h,"media",{configurable:!0,enumerable:!0,get:function(){return $(this),l.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(t){h[t]=function(){var e=this;$(e);var o=arguments;f.get(e).push({method:t,args:o}),c.get(e).forEach((function(i){if(i.isConnected()){var r=C(e,i).sheet;r[t].apply(r,o)}}));var i=l.get(e).sheet;return i[t].apply(i,o)}})),r(E,Symbol.hasInstance,{configurable:!0,value:S});var u={childList:!0,subtree:!0},p=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakMap;if(_.prototype={isConnected:function(){var t=g.get(this);return t instanceof Document?"loading"!==t.readyState:function(t){return"isConnected"in t?t.isConnected:document.contains(t)}(t.host)},connect:function(){var t=L(this);b.get(this).observe(t,u),y.get(this).length>0&&U(this),R(t,(function(t){k(t).connect()}))},disconnect:function(){b.get(this).disconnect()},update:function(t){var e=this,o=g.get(e)===document?"Document":"ShadowRoot";if(!Array.isArray(t))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+o+": Iterator getter is not callable.");if(!t.every(S))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+o+": Failed to convert value to 'CSSStyleSheet'");if(t.some(O))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+o+": Can't adopt non-constructed stylesheets");e.sheets=t;var i,r,n=y.get(e),a=(i=t).filter((function(t,e){return i.indexOf(t)===e}));(r=a,n.filter((function(t){return-1===r.indexOf(t)}))).forEach((function(t){var o;(o=C(t,e)).parentNode.removeChild(o),function(t,e){d.get(t).delete(e),c.set(t,c.get(t).filter((function(t){return t!==e})))}(t,e)})),y.set(e,a),e.isConnected()&&a.length>0&&U(e)}},window.CSSStyleSheet=E,I(Document),"ShadowRoot"in window){I(ShadowRoot);var m=Element.prototype,v=m.attachShadow;m.attachShadow=function(t){var e=v.call(this,t);return"closed"===t.mode&&o.set(this,e),e}}var x=k(document);x.isConnected()?x.connect():document.addEventListener("DOMContentLoaded",x.connect.bind(x))}function w(t){return t.shadowRoot||o.get(t)}function S(t){return"object"==typeof t&&(h.isPrototypeOf(t)||s.isPrototypeOf(t))}function O(t){return"object"==typeof t&&s.isPrototypeOf(t)}function C(t,e){return d.get(t).get(e)}function N(t,e){requestAnimationFrame((function(){e.textContent=l.get(t).textContent,f.get(t).forEach((function(t){return e.sheet[t.method].apply(e.sheet,t.args)}))}))}function $(t){if(!l.has(t))throw new TypeError("Illegal invocation")}function E(){var t=this,o=document.createElement("style");e.body.appendChild(o),l.set(t,o),c.set(t,[]),d.set(t,new WeakMap),f.set(t,[])}function k(t){var e=p.get(t);return e||(e=new _(t),p.set(t,e)),e}function I(t){r(t.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(t){k(this).update(t)}})}function R(t,e){for(var o=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT,(function(t){return w(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),i=void 0;i=o.nextNode();)e(w(i))}function L(t){var e=g.get(t);return e instanceof Document?e.body:e}function U(t){var e=document.createDocumentFragment(),o=y.get(t),i=b.get(t),r=L(t);i.disconnect(),o.forEach((function(o){e.appendChild(C(o,t)||function(t,e){var o=document.createElement("style");return d.get(t).set(e,o),c.get(t).push(e),o}(o,t))})),r.insertBefore(e,null),i.observe(r,u),o.forEach((function(e){N(e,C(e,t))}))}function _(e){var o=this;o.sheets=[],g.set(o,e),y.set(o,[]),b.set(o,new MutationObserver((function(e,i){document?e.forEach((function(e){t||n.call(e.addedNodes,(function(t){t instanceof Element&&R(t,(function(t){k(t).connect()}))})),n.call(e.removedNodes,(function(e){e instanceof Element&&(function(t,e){return e instanceof HTMLStyleElement&&y.get(t).some((function(e){return C(e,t)}))}(o,e)&&U(o),t||R(e,(function(t){k(t).disconnect()})))}))})):i.disconnect()})))}}();
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
20
+ */
21
+ const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
21
22
  /**
22
23
  * @license
23
24
  * Copyright 2017 Google LLC
24
25
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:h,getPrototypeOf:f}=Object,u=globalThis,p=u.trustedTypes,g=p?p.emptyScript:"",y=u.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...d(t),...h(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,y?.({ReactiveElement:w}),(u.reactiveElementVersions??=[]).push("2.0.2");
26
+ */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,u=globalThis,p=u.trustedTypes,g=p?p.emptyScript:"",y=u.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...d(t),...f(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,y?.({ReactiveElement:w}),(u.reactiveElementVersions??=[]).push("2.0.2");
26
27
  /**
27
28
  * @license
28
29
  * Copyright 2017 Google LLC
29
30
  * SPDX-License-Identifier: BSD-3-Clause
30
31
  */
31
- const O=globalThis,S=O.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,E="?"+$,I=`<${E}>`,k=document,R=()=>k.createComment(""),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,_=t=>L(t)||"function"==typeof t?.[Symbol.iterator],A="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,z=/>/g,B=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,D=/"/g,M=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),j=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),K=new WeakMap,H=k.createTreeWalker(k,129);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=W;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===W?"!--"===l[1]?a=T:void 0!==l[1]?a=z:void 0!==l[2]?(M.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=B):void 0!==l[3]&&(a=B):a===B?">"===l[0]?(a=r??W,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?B:'"'===l[3]?D:F):a===D||a===F?a=B:a===T||a===z?a=W:(a=B,r=void 0);const h=a===B&&t[e+1].startsWith("/>")?" ":"";n+=a===W?o+I:c>=0?(i.push(s),o.slice(0,c)+N+o.slice(c)+$+h):o+$+(-2===c?e:h)}return[G(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let q=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,d]=V(e,o);if(this.el=t.createElement(c,i),H.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=H.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(N)){const e=d[a++],o=r.getAttribute(t).split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q}),r.removeAttribute(t)}else t.startsWith($)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(M.test(r.tagName)){const t=r.textContent.split($),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],R()),H.nextNode(),l.push({type:2,index:++n});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===E)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,e){const o=k.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,i){if(e===j)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=U(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Y(t,r._$AS(t,e.values),r,i)),e}let J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??k).importNode(e,!0);H.currentNode=i;let r=H.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new X(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new it(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=H.nextNode(),n++)}return H.currentNode=k,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),U(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Z&&U(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(G(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new q(t)),e}T(e){L(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(R()),this.k(R()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Z}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Y(this,i[o+a],e,a),s===j&&(s=this._$AH[a]),n||=!U(s)||s!==this._$AH[a],s===Z?t=Z:t!==Z&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends Q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Z?void 0:t}},et=class extends Q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}},ot=class extends Q{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??Z)===j)return;const o=this._$AH,i=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}};const rt={j:N,P:$,A:E,C:1,M:V,L:J,R:_,V:Y,D:X,I:Q,H:et,N:ot,U:tt,B:it},nt=O.litHtmlPolyfillSupport;nt?.(q,X),(O.litHtmlVersions??=[]).push("3.1.0");
32
+ const S=globalThis,O=S.trustedTypes,C=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,E="?"+$,k=`<${E}>`,I=document,R=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,_=t=>U(t)||"function"==typeof t?.[Symbol.iterator],A="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,T=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,M=/"/g,D=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),j=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),H=new WeakMap,K=I.createTreeWalker(I,129);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=W;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===W?"!--"===l[1]?a=B:void 0!==l[1]?a=z:void 0!==l[2]?(D.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=T):void 0!==l[3]&&(a=T):a===T?">"===l[0]?(a=r??W,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?T:'"'===l[3]?M:F):a===M||a===F?a=T:a===B||a===z?a=W:(a=T,r=void 0);const f=a===T&&t[e+1].startsWith("/>")?" ":"";n+=a===W?o+k:c>=0?(i.push(s),o.slice(0,c)+N+o.slice(c)+$+f):o+$+(-2===c?e:f)}return[G(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let q=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,d]=V(e,o);if(this.el=t.createElement(c,i),K.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=K.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(N)){const e=d[a++],o=r.getAttribute(t).split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q}),r.removeAttribute(t)}else t.startsWith($)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(D.test(r.tagName)){const t=r.textContent.split($),e=t.length-1;if(e>0){r.textContent=O?O.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],R()),K.nextNode(),l.push({type:2,index:++n});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===E)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,e){const o=I.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,i){if(e===j)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=L(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Y(t,r._$AS(t,e.values),r,i)),e}let J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??I).importNode(e,!0);K.currentNode=i;let r=K.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new X(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new it(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=K.nextNode(),n++)}return K.currentNode=I,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),L(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Z&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(G(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new q(t)),e}T(e){U(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(R()),this.k(R()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Z}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Y(this,i[o+a],e,a),s===j&&(s=this._$AH[a]),n||=!L(s)||s!==this._$AH[a],s===Z?t=Z:t!==Z&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends Q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Z?void 0:t}},et=class extends Q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}},ot=class extends Q{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??Z)===j)return;const o=this._$AH,i=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}};const rt={j:N,P:$,A:E,C:1,M:V,L:J,R:_,V:Y,D:X,I:Q,H:et,N:ot,U:tt,B:it},nt=S.litHtmlPolyfillSupport;nt?.(q,X),(S.litHtmlVersions??=[]).push("3.1.0");
32
33
  /**
33
34
  * @license
34
35
  * Copyright 2019 Google LLC
35
36
  * SPDX-License-Identifier: BSD-3-Clause
36
37
  */
37
- const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let dt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ht=t=>new dt("string"==typeof t?t:t+"",void 0,lt),ft=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new dt(o,t,lt)},ut=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=at.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}},pt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ht(e)})(t):t
38
+ const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let dt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ft=t=>new dt("string"==typeof t?t:t+"",void 0,lt),ht=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new dt(o,t,lt)},ut=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=at.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}},pt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ft(e)})(t):t
38
39
  /**
39
40
  * @license
40
41
  * Copyright 2017 Google LLC
41
42
  * SPDX-License-Identifier: BSD-3-Clause
42
- */,{is:gt,defineProperty:yt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:mt,getOwnPropertySymbols:vt,getPrototypeOf:xt}=Object,wt=globalThis,Ot=wt.trustedTypes,St=Ot?Ot.emptyScript:"",Ct=wt.reactiveElementPolyfillSupport,Nt=(t,e)=>t,$t={toAttribute(t,e){switch(e){case Boolean:t=t?St:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!gt(t,e),It={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),wt.litPropertyMetadata??=new WeakMap;let kt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=It){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&yt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=bt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??It}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...mt(t),...vt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(pt(t))}else void 0!==t&&e.push(pt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:$t).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:$t;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},kt[Nt("elementProperties")]=new Map,kt[Nt("finalized")]=new Map,Ct?.({ReactiveElement:kt}),(wt.reactiveElementVersions??=[]).push("2.0.2");
43
+ */,{is:gt,defineProperty:yt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:mt,getOwnPropertySymbols:vt,getPrototypeOf:xt}=Object,wt=globalThis,St=wt.trustedTypes,Ot=St?St.emptyScript:"",Ct=wt.reactiveElementPolyfillSupport,Nt=(t,e)=>t,$t={toAttribute(t,e){switch(e){case Boolean:t=t?Ot:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!gt(t,e),kt={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),wt.litPropertyMetadata??=new WeakMap;let It=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&yt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=bt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...mt(t),...vt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(pt(t))}else void 0!==t&&e.push(pt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:$t).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:$t;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Nt("elementProperties")]=new Map,It[Nt("finalized")]=new Map,Ct?.({ReactiveElement:It}),(wt.reactiveElementVersions??=[]).push("2.0.2");
43
44
  /**
44
45
  * @license
45
46
  * Copyright 2017 Google LLC
46
47
  * SPDX-License-Identifier: BSD-3-Clause
47
48
  */
48
- const Rt=globalThis,Ut=Rt.trustedTypes,Lt=Ut?Ut.createPolicy("lit-html",{createHTML:t=>t}):void 0,_t="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+At,Tt=`<${Wt}>`,zt=document,Bt=()=>zt.createComment(""),Ft=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Mt=t=>Dt(t)||"function"==typeof t?.[Symbol.iterator],Pt="[ \t\n\f\r]",jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zt=/-->/g,Kt=/>/g,Ht=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Vt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Xt=Yt(2),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=zt.createTreeWalker(zt,129);function ie(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Lt?Lt.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=jt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===jt?"!--"===l[1]?a=Zt:void 0!==l[1]?a=Kt:void 0!==l[2]?(qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Ht):void 0!==l[3]&&(a=Ht):a===Ht?">"===l[0]?(a=r??jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Ht:'"'===l[3]?Vt:Gt):a===Vt||a===Gt?a=Ht:a===Zt||a===Kt?a=jt:(a=Ht,r=void 0);const h=a===Ht&&t[e+1].startsWith("/>")?" ":"";n+=a===jt?o+Tt:c>=0?(i.push(s),o.slice(0,c)+_t+o.slice(c)+At+h):o+At+(-2===c?e:h)}return[ie(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=re(t,e);if(this.el=ne.createElement(l,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=oe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(_t)){const e=c[n++],o=i.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?de:"?"===a[1]?he:"@"===a[1]?fe:ce}),i.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(qt.test(i.tagName)){const t=i.textContent.split(At),e=t.length-1;if(e>0){i.textContent=Ut?Ut.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Bt()),oe.nextNode(),s.push({type:2,index:++r});i.append(t[e],Bt())}}}else if(8===i.nodeType)if(i.data===Wt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(At,t+1));)s.push({type:7,index:r}),t+=At.length-1}r++}}static createElement(t,e){const o=zt.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,i){if(e===Qt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Ft(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ae(t,r._$AS(t,e.values),r,i)),e}let se=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??zt).importNode(e,!0);oe.currentNode=i;let r=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ue(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=oe.nextNode(),n++)}return oe.currentNode=zt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},le=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Ft(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Mt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==te&&Ft(this._$AH)?this._$AA.nextSibling.data=t:this.$(zt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ne.createElement(ie(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new se(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ne(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(Bt()),this.k(Bt()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ae(this,t,e,0),n=!Ft(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ae(this,i[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!Ft(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},de=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},he=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},fe=class extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Qt)return;const o=this._$AH,i=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==te&&(o===te||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ue=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t)}};const pe={j:_t,P:At,A:Wt,C:1,M:re,L:se,R:Mt,V:ae,D:le,I:ce,H:he,N:fe,U:de,B:ue},ge=Rt.litHtmlPolyfillSupport;ge?.(ne,le),(Rt.litHtmlVersions??=[]).push("3.1.0");const ye=(t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new le(e.insertBefore(Bt(),t),t,void 0,o??{})}return r._$AI(t),r
49
+ const Rt=globalThis,Lt=Rt.trustedTypes,Ut=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,_t="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+At,Bt=`<${Wt}>`,zt=document,Tt=()=>zt.createComment(""),Ft=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Dt=t=>Mt(t)||"function"==typeof t?.[Symbol.iterator],Pt="[ \t\n\f\r]",jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zt=/-->/g,Ht=/>/g,Kt=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Vt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Xt=Yt(2),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=zt.createTreeWalker(zt,129);function ie(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ut?Ut.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=jt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===jt?"!--"===l[1]?a=Zt:void 0!==l[1]?a=Ht:void 0!==l[2]?(qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Kt):void 0!==l[3]&&(a=Kt):a===Kt?">"===l[0]?(a=r??jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Kt:'"'===l[3]?Vt:Gt):a===Vt||a===Gt?a=Kt:a===Zt||a===Ht?a=jt:(a=Kt,r=void 0);const f=a===Kt&&t[e+1].startsWith("/>")?" ":"";n+=a===jt?o+Bt:c>=0?(i.push(s),o.slice(0,c)+_t+o.slice(c)+At+f):o+At+(-2===c?e:f)}return[ie(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=re(t,e);if(this.el=ne.createElement(l,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=oe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(_t)){const e=c[n++],o=i.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?de:"?"===a[1]?fe:"@"===a[1]?he:ce}),i.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(qt.test(i.tagName)){const t=i.textContent.split(At),e=t.length-1;if(e>0){i.textContent=Lt?Lt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Tt()),oe.nextNode(),s.push({type:2,index:++r});i.append(t[e],Tt())}}}else if(8===i.nodeType)if(i.data===Wt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(At,t+1));)s.push({type:7,index:r}),t+=At.length-1}r++}}static createElement(t,e){const o=zt.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,i){if(e===Qt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Ft(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ae(t,r._$AS(t,e.values),r,i)),e}let se=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??zt).importNode(e,!0);oe.currentNode=i;let r=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ue(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=oe.nextNode(),n++)}return oe.currentNode=zt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},le=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Ft(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Dt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==te&&Ft(this._$AH)?this._$AA.nextSibling.data=t:this.$(zt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ne.createElement(ie(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new se(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ne(t)),e}T(e){Mt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(Tt()),this.k(Tt()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ae(this,t,e,0),n=!Ft(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ae(this,i[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!Ft(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},de=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},fe=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},he=class extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Qt)return;const o=this._$AH,i=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==te&&(o===te||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ue=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t)}};const pe={j:_t,P:At,A:Wt,C:1,M:re,L:se,R:Dt,V:ae,D:le,I:ce,H:fe,N:he,U:de,B:ue},ge=Rt.litHtmlPolyfillSupport;ge?.(ne,le),(Rt.litHtmlVersions??=[]).push("3.1.0");const ye=(t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new le(e.insertBefore(Tt(),t),t,void 0,o??{})}return r._$AI(t),r
49
50
  /**
50
51
  * @license
51
52
  * Copyright 2017 Google LLC
52
53
  * SPDX-License-Identifier: BSD-3-Clause
53
- */};let be=class extends kt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var ve=Object.freeze({__proto__:null,CSSResult:dt,LitElement:be,ReactiveElement:kt,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:pe,adoptStyles:ut,css:ft,defaultConverter:$t,getCompatibleStyle:pt,html:Jt,isServer:!1,noChange:Qt,notEqual:Et,nothing:te,render:ye,supportsAdoptingStyleSheets:st,svg:Xt,unsafeCSS:ht});
54
+ */};let be=class extends It{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var ve=Object.freeze({__proto__:null,CSSResult:dt,LitElement:be,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:pe,adoptStyles:ut,css:ht,defaultConverter:$t,getCompatibleStyle:pt,html:Jt,isServer:!1,noChange:Qt,notEqual:Et,nothing:te,render:ye,supportsAdoptingStyleSheets:st,svg:Xt,unsafeCSS:ft});
54
55
  /**
55
56
  * @license
56
57
  * Copyright 2017 Google LLC
@@ -60,12 +61,12 @@ const Rt=globalThis,Ut=Rt.trustedTypes,Lt=Ut?Ut.createPolicy("lit-html",{createH
60
61
  * @license
61
62
  * Copyright 2017 Google LLC
62
63
  * SPDX-License-Identifier: BSD-3-Clause
63
- */function Oe(t){return(e,o)=>"object"==typeof o?we(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
64
+ */function Se(t){return(e,o)=>"object"==typeof o?we(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
64
65
  /**
65
66
  * @license
66
67
  * Copyright 2017 Google LLC
67
68
  * SPDX-License-Identifier: BSD-3-Clause
68
- */}function Se(t){return Oe({...t,state:!0,attribute:!1})}
69
+ */}function Oe(t){return Se({...t,state:!0,attribute:!1})}
69
70
  /**
70
71
  * @license
71
72
  * Copyright 2017 Google LLC
@@ -91,27 +92,27 @@ const Rt=globalThis,Ut=Rt.trustedTypes,Lt=Ut?Ut.createPolicy("lit-html",{createH
91
92
  * Copyright 2021 Google LLC
92
93
  * SPDX-License-Identifier: BSD-3-Clause
93
94
  */
94
- function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
95
+ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
95
96
  /**
96
97
  * @license
97
98
  * Copyright 2017 Google LLC
98
99
  * SPDX-License-Identifier: BSD-3-Clause
99
- */function ke(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}var Re=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:Ce,property:Oe,query:$e,queryAll:function(t){return(e,o)=>Ne(0,0,{get(){return(this.renderRoot??(Ee??=document.createDocumentFragment())).querySelectorAll(t)}})
100
+ */function Ie(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}var Re=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:Ce,property:Se,query:$e,queryAll:function(t){return(e,o)=>Ne(0,0,{get(){return(this.renderRoot??(Ee??=document.createDocumentFragment())).querySelectorAll(t)}})
100
101
  /**
101
102
  * @license
102
103
  * Copyright 2017 Google LLC
103
104
  * SPDX-License-Identifier: BSD-3-Clause
104
- */},queryAssignedElements:Ie,queryAssignedNodes:ke,queryAsync:function(t){return(e,o)=>Ne(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:we,state:Se});
105
+ */},queryAssignedElements:ke,queryAssignedNodes:Ie,queryAsync:function(t){return(e,o)=>Ne(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:we,state:Oe});
105
106
  /**
106
107
  * @license
107
108
  * Copyright 2017 Google LLC
108
109
  * SPDX-License-Identifier: BSD-3-Clause
109
- */const Ue=1,Le=2,_e=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
110
+ */const Le=1,Ue=2,_e=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
110
111
  /**
111
112
  * @license
112
113
  * Copyright 2020 Google LLC
113
114
  * SPDX-License-Identifier: BSD-3-Clause
114
- */const{D:We}=rt,Te=()=>document.createComment(""),ze=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Te(),r),n=i.insertBefore(Te(),r);o=new We(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Be=(t,e,o=t)=>(t._$AI(e,o),t),Fe={},De=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Me=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Pe=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,d,h=0,f=r.length-1,u=0,p=n.length-1;for(;h<=f&&u<=p;)if(null===r[h])h++;else if(null===r[f])f--;else if(s[h]===a[u])l[u]=Be(r[h],n[u]),h++,u++;else if(s[f]===a[p])l[p]=Be(r[f],n[p]),f--,p--;else if(s[h]===a[p])l[p]=Be(r[h],n[p]),ze(t,l[p+1],r[h]),h++,p--;else if(s[f]===a[u])l[u]=Be(r[f],n[u]),ze(t,r[h],r[f]),f--,u++;else if(void 0===c&&(c=Me(a,u,p),d=Me(s,h,f)),c.has(s[h]))if(c.has(s[f])){const e=d.get(a[u]),o=void 0!==e?r[e]:null;if(null===o){const e=ze(t,r[h]);Be(e,n[u]),l[u]=e}else l[u]=Be(o,n[u]),ze(t,r[h],o),r[e]=null;u++}else De(r[f]),f--;else De(r[h]),h++;for(;u<=p;){const e=ze(t,l[p+1]);Be(e,n[u]),l[u++]=e}for(;h<=f;){const t=r[h++];null!==t&&De(t)}return this.dt=a,((t,e=Fe)=>{t._$AH=e})(t,l),j}});
115
+ */const{D:We}=rt,Be=()=>document.createComment(""),ze=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Be(),r),n=i.insertBefore(Be(),r);o=new We(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Te=(t,e,o=t)=>(t._$AI(e,o),t),Fe={},Me=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},De=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Pe=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,d,f=0,h=r.length-1,u=0,p=n.length-1;for(;f<=h&&u<=p;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===a[u])l[u]=Te(r[f],n[u]),f++,u++;else if(s[h]===a[p])l[p]=Te(r[h],n[p]),h--,p--;else if(s[f]===a[p])l[p]=Te(r[f],n[p]),ze(t,l[p+1],r[f]),f++,p--;else if(s[h]===a[u])l[u]=Te(r[h],n[u]),ze(t,r[f],r[h]),h--,u++;else if(void 0===c&&(c=De(a,u,p),d=De(s,f,h)),c.has(s[f]))if(c.has(s[h])){const e=d.get(a[u]),o=void 0!==e?r[e]:null;if(null===o){const e=ze(t,r[f]);Te(e,n[u]),l[u]=e}else l[u]=Te(o,n[u]),ze(t,r[f],o),r[e]=null;u++}else Me(r[h]),h--;else Me(r[f]),f++;for(;u<=p;){const e=ze(t,l[p+1]);Te(e,n[u]),l[u++]=e}for(;f<=h;){const t=r[f++];null!==t&&Me(t)}return this.dt=a,((t,e=Fe)=>{t._$AH=e})(t,l),j}});
115
116
  /**
116
117
  * @license
117
118
  * Copyright 2017 Google LLC
@@ -121,26 +122,26 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
121
122
  * @license
122
123
  * Copyright 2018 Google LLC
123
124
  * SPDX-License-Identifier: BSD-3-Clause
124
- */const Ze=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return j}});var Ke=Object.freeze({__proto__:null,classMap:Ze});
125
+ */const Ze=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return j}});var He=Object.freeze({__proto__:null,classMap:Ze});
125
126
  /**
126
127
  * @license
127
128
  * Copyright 2018 Google LLC
128
129
  * SPDX-License-Identifier: BSD-3-Clause
129
- */const He="important",Ge=" !"+He,Ve=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(Ge);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?He:""):o[t]=i}}return j}});var qe=Object.freeze({__proto__:null,styleMap:Ve});
130
+ */const Ke="important",Ge=" !"+Ke,Ve=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(Ge);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?Ke:""):o[t]=i}}return j}});var qe=Object.freeze({__proto__:null,styleMap:Ve});
130
131
  /**
131
132
  * @license
132
133
  * Copyright 2017 Google LLC
133
134
  * SPDX-License-Identifier: BSD-3-Clause
134
- */let Ye=class extends Ae{constructor(t){if(super(t),this.et=Z,t.type!==Le)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this.vt=void 0,this.et=t;if(t===j)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ye.directiveName="unsafeHTML",Ye.resultType=1;const Je=_e(Ye);var Xe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ye,unsafeHTML:Je});class Qe extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class to extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Qe("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Qe("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const eo=t=>new to(((e,o)=>t.then(e).catch(o)));var oo=Object.freeze({__proto__:null,CancelablePromise:to,CanceledPromiseError:Qe,cancelable:eo});class io{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 to&&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,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=eo(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),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)}}var ro=Object.freeze({__proto__:null,CacheRegistry:io});class no{constructor(t,e,o,i){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>no.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=no.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const i=this.allResults.flatMap((e=>no.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){let r=this.metadataDescriptors.find((t=>o==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>no.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let i,r=no.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,i=t,e===n.length))break}return i}countMatchingMetadata(t,e){return no.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var ao=Object.freeze({__proto__:null,ClusteringHelper:no});class so{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var lo=Object.freeze({__proto__:null,Debouncer:so});const co=t=>new Promise((e=>setTimeout(e,t)));async function ho(t,e=10,o=2e4){let i,r,n=await t();for(i=r=performance.now();null==n&&(!o||r-i<o);)await co(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function fo(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,i)=>e+o+":"+i)),new Date(t)}function uo(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!uo(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!uo(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!uo(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var po=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?fo(o):o}},deepEqual:uo,delay:co,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:fo,waitFor:ho,waitUntil:async function(t,e=10,o=2e4){await ho((async()=>await t()||void 0),e,o)}});const go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function yo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Oe({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!uo(t,e),...null!=e?e:{}})}function bo(t){return!isNaN(parseFloat(t))}var mo=Object.freeze({__proto__:null,customElement:go,isNumber:bo,jsonProperty:yo,optionalNumberProperty:function(t){return Oe({type:Object,converter:{fromAttribute:t=>{if(null!=t)return bo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const vo=t=>"string"==typeof t?ht(t):t;class xo{static create(t,e,o,i){const r=t=>vo(null!=t?t:i),n=ft`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=ft`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):vo(null!=e?e:t.lastResortDefaultValue()),i=ft`var(${vo(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>ft`var(${vo(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function wo(t,e){return vo(`${t.name}: ${e}`)}const Oo={colorWhite:xo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:xo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:xo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:xo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:xo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:xo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:xo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:xo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:xo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:xo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:xo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:xo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:xo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:xo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:xo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:xo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:xo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:xo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:xo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:xo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:xo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:xo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:xo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:xo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:xo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:xo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:xo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:xo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:xo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:xo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:xo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:xo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:xo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:xo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:xo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:xo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:xo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:xo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:xo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:xo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:xo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:xo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:xo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:xo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:xo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:xo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:xo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:xo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:xo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:xo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:xo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:xo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:xo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:xo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:xo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:xo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:xo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:xo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:xo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:xo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:xo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:xo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:xo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:xo.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:xo.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:xo.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:xo.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:xo.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:xo.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:xo.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:xo.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:xo.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:xo.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:xo.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:xo.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:xo.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:xo.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:xo.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:xo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:xo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:xo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:xo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:xo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:xo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:xo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:xo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:xo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:xo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:xo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:xo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:xo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:xo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:xo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:xo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:xo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:xo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:xo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:xo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:xo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:xo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:xo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:xo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:xo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:xo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:xo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:xo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:xo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:xo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:xo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:xo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:xo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:xo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:xo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:xo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:xo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:xo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:xo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:xo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:xo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:xo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:xo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:xo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:xo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:xo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:xo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:xo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:xo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:xo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:xo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:xo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:xo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:xo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:xo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:xo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:xo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:xo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:xo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:xo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:xo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:xo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:xo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:xo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:xo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:xo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:xo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:xo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:xo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:xo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:xo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:xo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:xo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:xo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:xo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:xo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:xo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:xo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:xo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:xo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:xo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:xo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:xo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:xo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:xo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:xo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:xo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:xo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:xo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:xo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:xo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:xo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:xo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:xo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:xo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:xo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:xo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:xo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:xo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:xo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:xo.create("--ft-opacity-0","","NUMBER","0"),opacity8:xo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:xo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:xo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:xo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:xo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:xo.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:xo.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:xo.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:xo.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:xo.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:xo.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:xo.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:xo.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:xo.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)"),underline:xo.create("--ft-underline","","UNKNOWN","underline")},So={fontFamily:xo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:xo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-display-textCase","","UNKNOWN","none")},Co={fontFamily:xo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:xo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},No={fontFamily:xo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:xo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},$o={fontFamily:xo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:xo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:xo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Eo={fontFamily:xo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Io={fontFamily:xo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ko={fontFamily:xo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:xo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Uo={fontFamily:xo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Lo={fontFamily:xo.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:xo.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:xo.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},_o={fontFamily:xo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ao={fontFamily:xo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Wo={fontFamily:xo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},To={fontFamily:xo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},zo={fontFamily:xo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:xo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:xo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:xo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Mo={fontFamily:xo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:xo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},jo={fontFamily:xo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Zo={fontFamily:xo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ko={fontFamily:xo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ho={fontFamily:xo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Go={fontFamily:xo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:xo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},qo={display:So,"title-1":Co,"title-2":No,"title-3":$o,"body-1-regular":Eo,"body-1-medium":Io,"body-1-semibold":ko,"body-2-regular":Ro,"body-2-medium":Uo,"body-2-medium-underline":Lo,"body-2-semibold":_o,"label-1-medium":Ao,"label-1-semibold":Wo,"label-1-bold":To,"label-2-medium":zo,"label-2-semibold":Bo,"label-2-bold":Fo,"caption-1-medium":Do,"caption-1-semibold":Mo,"caption-1-bold":Po,"caption-2-medium":jo,"caption-2-semibold":Zo,"caption-2-bold":Ko,"caption-3-medium":Ho,"caption-3-semibold":Go,"caption-3-bold":Vo},Yo={backgroundActionPrimary:xo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Oo.colorBrand0),backgroundErrorSubtle:xo.extend("--ft-background-error-subtle","Used as background of subtle error components.",Oo.colorRed10),backgroundInfoSubtle:xo.extend("--ft-background-info-subtle","Used as background of subtle information components.",Oo.colorCyan10),backgroundWarningSubtle:xo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Oo.colorOrange10),backgroundSuccessSubtle:xo.extend("--ft-background-success-subtle","Used as background of subtle success components.",Oo.colorGreen10),backgroundGlobalSurface:xo.extend("--ft-background-global-surface","Used as app background.",Oo.colorWhite),backgroundGlobalOnSurface:xo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Oo.colorGray10),backgroundGlobalOnSurfaceDark:xo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Oo.colorGray30),contentActionPrimary:xo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Oo.colorBrand0),contentWarningPrimary:xo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Oo.colorOrange200),contentWarningIconOnly:xo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Oo.colorOrange0),contentErrorPrimary:xo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Oo.colorRed0),contentErrorIconOnly:xo.extend("--ft-content-error-icon-only","Used on error status icons alone",Oo.colorRed70),contentInfoPrimary:xo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Oo.colorCyan200),contentInfoIconOnly:xo.extend("--ft-content-info-icon-only","Used on info status icons alone",Oo.colorCyan0),contentSuccessPrimary:xo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Oo.colorGreen200),contentSuccessIconOnly:xo.extend("--ft-content-success-icon-only","Used on success status icons alone",Oo.colorGreen0),contentGlobalPrimary:xo.extend("--ft-content-global-primary","Used for main content on the page.",Oo.colorGray500),contentGlobalSecondary:xo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Oo.colorGray200),contentGlobalSubtle:xo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Oo.colorGray0),contentGlobalOnColor:xo.extend("--ft-content-global-on-color","Used for content on a dominant color.",Oo.colorWhite),borderActionPrimary:xo.extend("--ft-border-action-primary","Used as border for primary action components.",Oo.colorBrand0),borderActionFocusRing:xo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Oo.colorCyan0),borderWarningPrimary:xo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Oo.colorOrange200),borderWarningSubtle:xo.extend("--ft-border-warning-subtle","Used as border for warning components.",Oo.colorOrange30),borderSuccessPrimary:xo.extend("--ft-border-success-primary","Used as border for success buttons.",Oo.colorGreen200),borderSuccessSubtle:xo.extend("--ft-border-success-subtle","Used as border for success components.",Oo.colorGreen30),borderErrorPrimary:xo.extend("--ft-border-error-primary","Used as border for text fields in error states.",Oo.colorRed0),borderErrorSubtle:xo.extend("--ft-border-error-subtle","Used as border for error components.",Oo.colorRed30),borderInfoPrimary:xo.extend("--ft-border-info-primary","Used as border for buttons in info color.",Oo.colorCyan200),borderInfoSubtle:xo.extend("--ft-border-info-subtle","Used as border for information components.",Oo.colorCyan30),borderGlobalPrimary:xo.extend("--ft-border-global-primary","Used as border for element like input.",Oo.colorGray50),borderGlobalSubtle:xo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Oo.colorGray30),borderInputPrimary:xo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Oo.colorGray80)},Jo={largeHeight:xo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:xo.extend("--ft-button-large-horizontal-padding","",Oo.spacing4),largeGap:xo.extend("--ft-button-large-gap","",Oo.spacing2),largeBorderRadius:xo.extend("--ft-button-large-border-radius","",Oo.borderRadiusS),largeIconSize:xo.extend("--ft-button-large-icon-size","",Oo.iconSize3),largeBorderWidth:xo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:xo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:xo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:xo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:xo.extend("--ft-button-small-horizontal-padding","",Oo.spacing3),smallGap:xo.extend("--ft-button-small-gap","",Oo.spacing2),smallBorderRadius:xo.extend("--ft-button-small-border-radius","",Oo.borderRadiusS),smallIconSize:xo.extend("--ft-button-small-icon-size","",Oo.iconSize2),smallBorderWidth:xo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:xo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:xo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:xo.extend("--ft-button-primary-background-color","",Yo.backgroundActionPrimary),primaryColor:xo.extend("--ft-button-primary-color","",Yo.contentGlobalOnColor),primaryIconColor:xo.extend("--ft-button-primary-icon-color","",Yo.contentGlobalOnColor),primaryStateLayerColor:xo.extend("--ft-button-primary-state-layer-color","",Yo.contentGlobalOnColor),primaryHoverStateLayerOpacity:xo.extend("--ft-button-primary-hover-state-layer-opacity","",Oo.opacity16),primaryFocusStateLayerOpacity:xo.extend("--ft-button-primary-focus-state-layer-opacity","",Oo.opacity16),primaryActiveStateLayerOpacity:xo.extend("--ft-button-primary-active-state-layer-opacity","",Oo.opacity24),primaryDisabledComponentOpacity:xo.extend("--ft-button-primary-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-button-focus-focus-ring-color","",Yo.borderActionFocusRing),tertiaryBackgroundColor:xo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:xo.extend("--ft-button-tertiary-color","",Yo.contentActionPrimary),tertiaryIconColor:xo.extend("--ft-button-tertiary-icon-color","",Yo.contentActionPrimary),tertiaryStateLayerColor:xo.extend("--ft-button-tertiary-state-layer-color","",Yo.contentActionPrimary),tertiaryHoverStateLayerOpacity:xo.extend("--ft-button-tertiary-hover-state-layer-opacity","",Oo.opacity8),tertiaryFocusStateLayerOpacity:xo.extend("--ft-button-tertiary-focus-state-layer-opacity","",Oo.opacity8),tertiaryActiveStateLayerOpacity:xo.extend("--ft-button-tertiary-active-state-layer-opacity","",Oo.opacity16),tertiaryDisabledComponentOpacity:xo.extend("--ft-button-tertiary-disabled-component-opacity","",Oo.opacity40),secondaryBackgroundColor:xo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:xo.extend("--ft-button-secondary-color","",Yo.contentActionPrimary),secondaryIconColor:xo.extend("--ft-button-secondary-icon-color","",Yo.contentActionPrimary),secondaryStateLayerColor:xo.extend("--ft-button-secondary-state-layer-color","",Yo.contentActionPrimary),secondaryHoverStateLayerOpacity:xo.extend("--ft-button-secondary-hover-state-layer-opacity","",Oo.opacity8),secondaryFocusStateLayerOpacity:xo.extend("--ft-button-secondary-focus-state-layer-opacity","",Oo.opacity8),secondaryActiveStateLayerOpacity:xo.extend("--ft-button-secondary-active-state-layer-opacity","",Oo.opacity16),secondaryDisabledComponentOpacity:xo.extend("--ft-button-secondary-disabled-component-opacity","",Oo.opacity40),secondaryBorderColor:xo.extend("--ft-button-secondary-border-color","",Yo.borderActionPrimary),neutralBackgroundColor:xo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:xo.extend("--ft-button-neutral-icon-color","",Yo.contentGlobalSecondary),neutralColor:xo.extend("--ft-button-neutral-color","",Yo.contentGlobalSecondary),neutralStateLayerColor:xo.extend("--ft-button-neutral-state-layer-color","",Yo.contentGlobalSecondary),neutralHoverStateLayerOpacity:xo.extend("--ft-button-neutral-hover-state-layer-opacity","",Oo.opacity8),neutralFocusStateLayerOpacity:xo.extend("--ft-button-neutral-focus-state-layer-opacity","",Oo.opacity8),neutralActiveStateLayerOpacity:xo.extend("--ft-button-neutral-active-state-layer-opacity","",Oo.opacity16),neutralDisabledComponentOpacity:xo.extend("--ft-button-neutral-disabled-component-opacity","",Oo.opacity40)},Xo={iconSize:xo.extend("--ft-banner-icon-size","",Oo.iconSize5),borderWidth:xo.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-banner-horizontal-padding","",Oo.spacing6),verticalPadding:xo.extend("--ft-banner-vertical-padding","",Oo.spacing6),horizontalSideGap:xo.extend("--ft-banner-horizontal-side-gap","",Oo.spacing6),horizontalMobileGap:xo.extend("--ft-banner-horizontal-mobile-gap","",Oo.spacing4),verticalMobileGap:xo.extend("--ft-banner-vertical-mobile-gap","",Oo.spacing6),horizontalMiddleGap:xo.extend("--ft-banner-horizontal-middle-gap","",Oo.spacing20),infoBackgroundColor:xo.extend("--ft-banner-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-banner-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-banner-info-icon-color","",Yo.contentInfoIconOnly)},Qo={gap:xo.extend("--ft-breadcrumb-gap","",Oo.spacing1)},ti={horizontalPadding:xo.extend("--ft-page-header-horizontal-padding","",Oo.spacing12),verticalPadding:xo.extend("--ft-page-header-vertical-padding","",Oo.spacing6)},ei={smallContainerWidth:xo.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:xo.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:xo.extend("--ft-modal-overlay-background-color","",Oo.colorGray700),overlayOpacity:xo.extend("--ft-modal-overlay-opacity","",Oo.opacity40),shadow:xo.extend("--ft-modal-shadow","",Oo.shadowElevation03),bodyBackgroundColor:xo.extend("--ft-modal-body-background-color","",Oo.colorWhite),bodyColor:xo.extend("--ft-modal-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-modal-body-horizontal-padding","",Oo.spacing6),bodyVerticalPadding:xo.extend("--ft-modal-body-vertical-padding","",Oo.spacing6),bodyVerticalGap:xo.extend("--ft-modal-body-vertical-gap","",Oo.spacing6),containerMargin:xo.extend("--ft-modal-container-margin","",Oo.spacing3),headerBackgroundColor:xo.extend("--ft-modal-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-modal-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-modal-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-modal-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerVerticalPadding:xo.extend("--ft-modal-header-vertical-padding","",Oo.spacing1),headerRightPadding:xo.extend("--ft-modal-header-right-padding","",Oo.spacing1),headerLeftPadding:xo.extend("--ft-modal-header-left-padding","",Oo.spacing6),headerGap:xo.extend("--ft-modal-header-gap","",Oo.spacing2),headerBorderBottom:xo.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:xo.extend("--ft-modal-border-radius","",Oo.borderRadiusM)},oi={fieldHorizontalPadding:xo.extend("--ft-text-input-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-input-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-text-input-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-text-input-field-icon-size","",Oo.iconSize3),fieldHeight:xo.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-text-input-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-text-input-helper-horizontal-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-text-input-helper-icon-size","",Oo.iconSize2),borderRadius:xo.extend("--ft-text-input-border-radius","",Oo.borderRadiusM),backgroundColor:xo.extend("--ft-text-input-background-color","",Oo.colorWhite),contentValueColor:xo.extend("--ft-text-input-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-text-input-trailing-icon-color","",Yo.contentGlobalSubtle),labelColor:xo.extend("--ft-text-input-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-input-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-input-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-input-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-input-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-input-error-helper-icon-color","",Yo.contentErrorIconOnly),warningBorderWidth:xo.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:xo.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-text-input-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-input-disabled-component-opacity","",Oo.opacity40)},ii={backgroundColor:xo.extend("--ft-text-area-background-color","",Oo.colorWhite),contentValueColor:xo.extend("--ft-text-area-content-value-color","",Yo.contentGlobalPrimary),labelColor:xo.extend("--ft-text-area-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-area-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-area-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-area-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-area-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-area-error-helper-icon-color","",Yo.contentErrorIconOnly),focusFocusRingColor:xo.extend("--ft-text-area-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-area-disabled-component-opacity","",Oo.opacity40),fieldHorizontalLeftPadding:xo.extend("--ft-text-area-field-horizontal-left-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-area-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-text-area-field-vertical-gap","",Oo.spacing05),fieldMinHeight:xo.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:xo.extend("--ft-text-area-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-text-area-helper-horizontal-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-text-area-helper-icon-size","",Oo.iconSize2),borderRadius:xo.extend("--ft-text-area-border-radius","",Oo.borderRadiusM)},ri={height:xo.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:xo.extend("--ft-floating-menu-horizontal-padding","",Oo.spacing4),offIconColor:xo.extend("--ft-floating-menu-off-icon-color","",Yo.contentGlobalPrimary),offColor:xo.extend("--ft-floating-menu-off-color","",Yo.contentGlobalPrimary),onColor:xo.extend("--ft-floating-menu-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-floating-menu-on-state-layer-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-floating-menu-gap","",Oo.spacing3),focusFocusRingColor:xo.extend("--ft-floating-menu-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:xo.extend("--ft-floating-menu-focus-state-layer-opacity","",Oo.opacity8),hoverStateLayerOpacity:xo.extend("--ft-floating-menu-hover-state-layer-opacity","",Oo.opacity8),activeStateLayerOpacity:xo.extend("--ft-floating-menu-active-state-layer-opacity","",Oo.opacity16),disabledComponentOpacity:xo.extend("--ft-floating-menu-disabled-component-opacity","",Oo.opacity40),iconSize:xo.extend("--ft-floating-menu-icon-size","",Oo.iconSize3),backgroundColor:xo.extend("--ft-floating-menu-background-color","",Yo.backgroundGlobalOnSurface)},ni={fieldHorizontalPadding:xo.extend("--ft-combobox-single-select-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-single-select-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-single-select-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-combobox-single-select-field-icon-size","",Oo.iconSize3),fieldHeight:xo.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-combobox-single-select-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-single-select-helper-horizontal-gap","",Oo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-single-select-helper-vertical-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-combobox-single-select-helper-icon-size","",Oo.iconSize2),menuVerticalGap:xo.extend("--ft-combobox-single-select-menu-vertical-gap","",Oo.spacing2),borderRadius:xo.extend("--ft-combobox-single-select-border-radius","",Oo.borderRadiusM),backgroundColor:xo.extend("--ft-combobox-single-select-background-color","",Oo.colorWhite),labelColor:xo.extend("--ft-combobox-single-select-label-color","",Yo.contentGlobalSubtle),contentValueColor:xo.extend("--ft-combobox-single-select-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-combobox-single-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-single-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-single-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-combobox-single-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-single-select-error-helper-text-color","",Yo.contentErrorPrimary),warningBorderWidth:xo.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-single-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-single-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-single-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),focusOutlineWidth:xo.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-single-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-single-select-disabled-component-opacity","",Oo.opacity40)},ai={backgroundColor:xo.extend("--ft-combobox-multi-select-background-color","",Oo.colorWhite),labelColor:xo.extend("--ft-combobox-multi-select-label-color","",Yo.contentGlobalSubtle),trailingIconColor:xo.extend("--ft-combobox-multi-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-multi-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-multi-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:xo.extend("--ft-combobox-multi-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-multi-select-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIcon:xo.extend("--ft-combobox-multi-select-error-helper-icon","",Yo.contentErrorIconOnly),errorBorderWidth:xo.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-multi-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-multi-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-multi-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),warningBorderWidth:xo.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-multi-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-multi-select-disabled-component-opacity","",Oo.opacity40),helperHorizontalPadding:xo.extend("--ft-combobox-multi-select-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-multi-select-helper-horizontal-gap","",Oo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-multi-select-helper-vertical-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-combobox-multi-select-helper-icon-size","",Oo.iconSize2),fieldHorizontalPadding:xo.extend("--ft-combobox-multi-select-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-multi-select-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-multi-select-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-combobox-multi-select-field-icon-size","",Oo.iconSize3),fieldMaxHeight:xo.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:xo.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",Oo.spacing1),contentValuesVerticalGap:xo.extend("--ft-combobox-multi-select-content-values-vertical-gap","",Oo.spacing1),borderRadius:xo.extend("--ft-combobox-multi-select-border-radius","",Oo.borderRadiusM)},si={backgroundColor:xo.extend("--ft-popover-background-color","",Yo.backgroundGlobalOnSurface),horizontalPadding:xo.extend("--ft-popover-horizontal-padding","",Oo.spacing6),verticalPadding:xo.extend("--ft-popover-vertical-padding","",Oo.spacing6),iconColor:xo.extend("--ft-popover-icon-color","",Yo.contentGlobalSecondary),iconSize:xo.extend("--ft-popover-icon-size","",Oo.iconSize2),titleColor:xo.extend("--ft-popover-title-color","",Yo.contentGlobalPrimary),bodyColor:xo.extend("--ft-popover-body-color","",Yo.contentGlobalSecondary),linkColor:xo.extend("--ft-popover-link-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-popover-gap","",Oo.spacing3),borderRadius:xo.extend("--ft-popover-border-radius","",Oo.borderRadiusM),shadow:xo.extend("--ft-popover-shadow","",Oo.shadowElevation02)},li={topLeftBorderRadius:xo.extend("--ft-tabs-top-left-border-radius","",Oo.borderRadiusS),topRightBorderRadius:xo.extend("--ft-tabs-top-right-border-radius","",Oo.borderRadiusS),labelHorizontalPadding:xo.extend("--ft-tabs-label-horizontal-padding","",Oo.spacing4),labelVerticalPadding:xo.extend("--ft-tabs-label-vertical-padding","",Oo.spacing3),labelGap:xo.extend("--ft-tabs-label-gap","",Oo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-tabs-off-hover-state-layer-opacity","",Oo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-tabs-off-focus-state-layer-opacity","",Oo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-tabs-off-active-state-layer-opacity","",Oo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-tabs-off-disabled-component-opacity","",Oo.opacity40),offColor:xo.extend("--ft-tabs-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-tabs-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-tabs-on-hover-state-layer-opacity","",Oo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-tabs-on-focus-state-layer-opacity","",Oo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-tabs-on-active-state-layer-opacity","",Oo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-tabs-on-disabled-component-opacity","",Oo.opacity40),onColor:xo.extend("--ft-tabs-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-tabs-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-tabs-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-tabs-icon-vertical-padding","",Oo.spacing4),focusOutlineWidth:xo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-tabs-focus-focus-ring-color","",Yo.borderActionFocusRing)},ci={hoverStateLayerOpacity:xo.extend("--ft-collapsible-hover-state-layer-opacity","",Oo.opacity8),focusStateLayerOpacity:xo.extend("--ft-collapsible-focus-state-layer-opacity","",Oo.opacity8),focusOutlineWidth:xo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:xo.extend("--ft-collapsible-focus-focus-ring-color","",Yo.borderActionFocusRing),activeStateLayerOpacity:xo.extend("--ft-collapsible-active-state-layer-opacity","",Oo.opacity16),disabledComponentOpacity:xo.extend("--ft-collapsible-disabled-component-opacity","",Oo.opacity40),horizontalPadding:xo.extend("--ft-collapsible-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-collapsible-vertical-padding","",Oo.spacing3),color:xo.extend("--ft-collapsible-color","",Yo.contentGlobalPrimary),stateLayerColor:xo.extend("--ft-collapsible-state-layer-color","",Yo.contentGlobalPrimary),backgroundColor:xo.extend("--ft-collapsible-background-color","",Yo.backgroundGlobalOnSurface),borderColor:xo.extend("--ft-collapsible-border-color","",Yo.borderGlobalSubtle),iconSize:xo.extend("--ft-collapsible-icon-size","",Oo.iconSize3)},di={groupHorizontalPadding:xo.extend("--ft-switch-group-horizontal-padding","",Oo.spacing1),groupVerticalPadding:xo.extend("--ft-switch-group-vertical-padding","",Oo.spacing1),groupGap:xo.extend("--ft-switch-group-gap","",Oo.spacing1),groupBackgroundColor:xo.extend("--ft-switch-group-background-color","",Yo.backgroundGlobalSurface),groupBorderColor:xo.extend("--ft-switch-group-border-color","",Yo.borderGlobalSubtle),groupBorderRadius:xo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:xo.extend("--ft-switch-label-horizontal-padding","",Oo.spacing2),labelVerticalPadding:xo.extend("--ft-switch-label-vertical-padding","",Oo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-switch-off-hover-state-layer-opacity","",Oo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-switch-off-focus-state-layer-opacity","",Oo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-switch-off-active-state-layer-opacity","",Oo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-switch-off-disabled-component-opacity","",Oo.opacity40),offColor:xo.extend("--ft-switch-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-switch-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-switch-on-hover-state-layer-opacity","",Oo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-switch-on-focus-state-layer-opacity","",Oo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-switch-on-active-state-layer-opacity","",Oo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-switch-on-disabled-component-opacity","",Oo.opacity40),onColor:xo.extend("--ft-switch-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-switch-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-switch-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-switch-icon-vertical-padding","",Oo.spacing1),focusOutlineWidth:xo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-switch-focus-focus-ring-color","",Yo.borderActionFocusRing),optionBorderRadius:xo.extend("--ft-switch-option-border-radius","",Oo.borderRadiusS)},hi={color1Light:xo.extend("--ft-chart-1-light","for area color charts",Oo.colorBrand40),color1Base:xo.extend("--ft-chart-1-base","for line charts",Oo.colorBrand0),color2Light:xo.extend("--ft-chart-2-light","for area color charts",Oo.colorYellow60),color2Base:xo.extend("--ft-chart-2-base","for line charts",Oo.colorYellow100),color3Light:xo.extend("--ft-chart-3-light","",Oo.colorUltramarine40),color3Base:xo.extend("--ft-chart-3-base","",Oo.colorUltramarine70),color4Light:xo.extend("--ft-chart-4-light","",Oo.colorCyan50),color4Base:xo.extend("--ft-chart-4-base","",Oo.colorCyan100),color5Light:xo.extend("--ft-chart-5-light","",Oo.colorRed40),color5Base:xo.extend("--ft-chart-5-base","",Oo.colorRed60),color6Light:xo.extend("--ft-chart-6-light","",Oo.colorGreen40),color6Base:xo.extend("--ft-chart-6-base","",Oo.colorGreen70),color7Light:xo.extend("--ft-chart-7-light","",Oo.colorOrange70),color7Base:xo.extend("--ft-chart-7-base","",Oo.colorOrange100),color8Light:xo.extend("--ft-chart-8-light","",Oo.colorAvocado70),color8Base:xo.extend("--ft-chart-8-base","",Oo.colorAvocado200),color9Light:xo.extend("--ft-chart-9-light","",Oo.colorBrown50),color9Base:xo.extend("--ft-chart-9-base","",Oo.colorBrown200),color10Light:xo.extend("--ft-chart-10-light","",Oo.colorGray50),color10Base:xo.extend("--ft-chart-10-base","",Oo.colorGray80),monochrome10:xo.extend("--ft-chart-monochrome-10","",Oo.colorBrand10),monochrome20:xo.extend("--ft-chart-monochrome-20","",Oo.colorBrand20),monochrome30:xo.extend("--ft-chart-monochrome-30","",Oo.colorBrand40),monochrome40:xo.extend("--ft-chart-monochrome-40","",Oo.colorBrand60),monochrome50:xo.extend("--ft-chart-monochrome-50","",Oo.colorBrand0),monochrome60:xo.extend("--ft-chart-monochrome-60","",Oo.colorBrand200)},fi={largeHorizontalPadding:xo.extend("--ft-chip-large-horizontal-padding","",Oo.spacing4),largeVerticalPadding:xo.extend("--ft-chip-large-vertical-padding","",Oo.spacing2),largeGap:xo.extend("--ft-chip-large-gap","",Oo.spacing1),largeFocusOutlineOffset:xo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:xo.extend("--ft-chip-large-border-radius","",Oo.borderRadiusPill),largeBorderWidth:xo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:xo.extend("--ft-chip-large-icon-size","",Oo.iconSize3),mediumHorizontalPadding:xo.extend("--ft-chip-medium-horizontal-padding","",Oo.spacing3),mediumVerticalPadding:xo.extend("--ft-chip-medium-vertical-padding","",Oo.spacing1),mediumGap:xo.extend("--ft-chip-medium-gap","",Oo.spacing1),mediumFocusOutlineOffset:xo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:xo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:xo.extend("--ft-chip-medium-border-radius","",Oo.borderRadiusPill),mediumBorderWidth:xo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:xo.extend("--ft-chip-medium-icon-size","",Oo.iconSize2),smallHorizontalPadding:xo.extend("--ft-chip-small-horizontal-padding","",Oo.spacing2),smallVerticalPadding:xo.extend("--ft-chip-small-vertical-padding","",Oo.spacing05),smallGap:xo.extend("--ft-chip-small-gap","",Oo.spacing1),smallFocusOutlineOffset:xo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:xo.extend("--ft-chip-small-border-radius","",Oo.borderRadiusPill),smallBorderWidth:xo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:xo.extend("--ft-chip-small-icon-size","",Oo.iconSize1),neutralBackgroundColor:xo.extend("--ft-chip-neutral-background-color","",Yo.backgroundGlobalOnSurface),neutralColor:xo.extend("--ft-chip-neutral-color","",Yo.contentGlobalPrimary),neutralIconColor:xo.extend("--ft-chip-neutral-icon-color","",Yo.contentGlobalPrimary),neutralBorderColor:xo.extend("--ft-chip-neutral-border-color","",Yo.borderGlobalSubtle),infoBackgroundColor:xo.extend("--ft-chip-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-chip-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-chip-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-chip-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-chip-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-chip-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-chip-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-chip-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-chip-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-chip-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-chip-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-chip-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-chip-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-chip-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-chip-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-chip-error-border-color","",Yo.borderErrorSubtle)},ui={infoBorderColor:xo.extend("--ft-border-info-border-color","",Yo.borderInfoSubtle)},pi={borderWidth:xo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-notice-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-notice-vertical-padding","",Oo.spacing1),borderRadius:xo.extend("--ft-notice-border-radius","",Oo.borderRadiusS),gap:xo.extend("--ft-notice-gap","",Oo.spacing2),iconSize:xo.extend("--ft-notice-icon-size","",Oo.iconSize3),infoBackgroundColor:xo.extend("--ft-notice-info-background-color","",Yo.backgroundInfoSubtle),infoBorderColor:xo.extend("--ft-notice-info-border-color","",Yo.borderInfoSubtle),infoColor:xo.extend("--ft-notice-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notice-info-icon-color","",Yo.contentInfoIconOnly),warningBackgroundColor:xo.extend("--ft-notice-warning-background-color","",Yo.backgroundWarningSubtle),warningBorderColor:xo.extend("--ft-notice-warning-border-color","",Yo.borderWarningSubtle),warningColor:xo.extend("--ft-notice-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notice-warning-icon-color","",Yo.contentWarningIconOnly)},gi={color:xo.extend("--ft-checkbox-color","",Yo.contentGlobalPrimary),checkedBackgroundColor:xo.extend("--ft-checkbox-checked-background-color","",Yo.contentActionPrimary),checkedStateLayerColor:xo.extend("--ft-checkbox-checked-state-layer-color","",Yo.contentActionPrimary),checkedIconColor:xo.extend("--ft-checkbox-checked-icon-color","",Yo.contentGlobalOnColor),checkedHoverStateLayerOpacity:xo.extend("--ft-checkbox-checked-hover-state-layer-opacity","",Oo.opacity16),checkedFocusStateLayerOpacity:xo.extend("--ft-checkbox-checked-focus-state-layer-opacity","",Oo.opacity16),checkedActiveStateLayerOpacity:xo.extend("--ft-checkbox-checked-active-state-layer-opacity","",Oo.opacity24),checkedDisabledComponentOpacity:xo.extend("--ft-checkbox-checked-disabled-component-opacity","",Oo.opacity40),uncheckedBorderColor:xo.extend("--ft-checkbox-unchecked-border-color","",Oo.colorGray80),uncheckedStateLayerColor:xo.extend("--ft-checkbox-unchecked-state-layer-color","",Oo.colorGray80),uncheckedHoverStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",Oo.opacity16),uncheckedFocusStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",Oo.opacity16),uncheckedActiveStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",Oo.opacity24),uncheckedDisabledComponentOpacity:xo.extend("--ft-checkbox-unchecked-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-checkbox-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-checkbox-gap","",Oo.spacing3)},yi={offHoverStateLayerOpacity:xo.extend("--ft-toggle-off-hover-state-layer-opacity","",Oo.opacity16),offFocusStateLayerOpacity:xo.extend("--ft-toggle-off-focus-state-layer-opacity","",Oo.opacity16),offActiveStateLayerOpacity:xo.extend("--ft-toggle-off-active-state-layer-opacity","",Oo.opacity24),offDisabledComponentOpacity:xo.extend("--ft-toggle-off-disabled-component-opacity","",Oo.opacity40),offBackgroundColor:xo.extend("--ft-toggle-off-background-color","",Yo.contentGlobalSubtle),offIconColor:xo.extend("--ft-toggle-off-icon-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-toggle-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-toggle-on-hover-state-layer-opacity","",Oo.opacity16),onFocusStateLayerOpacity:xo.extend("--ft-toggle-on-focus-state-layer-opacity","",Oo.opacity16),onActiveStateLayerOpacity:xo.extend("--ft-toggle-on-active-state-layer-opacity","",Oo.opacity24),onDisabledComponentOpacity:xo.extend("--ft-toggle-on-disabled-component-opacity","",Oo.opacity40),onBackgroundColor:xo.extend("--ft-toggle-on-background-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-toggle-on-state-layer-color","",Yo.contentActionPrimary),onIconColor:xo.extend("--ft-toggle-on-icon-color","",Yo.contentActionPrimary),color:xo.extend("--ft-toggle-color","",Yo.contentGlobalPrimary),focusFocusRingColor:xo.extend("--ft-toggle-focus-focus-ring-color","",Yo.borderActionFocusRing),gap:xo.extend("--ft-toggle-gap","",Oo.spacing3)},bi={color:xo.extend("--ft-radio-color","",Yo.contentGlobalPrimary),selectedRadioColor:xo.extend("--ft-radio-selected-radio-color","",Yo.contentActionPrimary),selectedStateLayerColor:xo.extend("--ft-radio-selected-state-layer-color","",Yo.contentActionPrimary),selectedHoverStateLayerOpacity:xo.extend("--ft-radio-selected-hover-state-layer-opacity","",Oo.opacity16),selectedFocusStateLayerOpacity:xo.extend("--ft-radio-selected-focus-state-layer-opacity","",Oo.opacity16),selectedActiveStateLayerOpacity:xo.extend("--ft-radio-selected-active-state-layer-opacity","",Oo.opacity24),selectedDisabledComponentOpacity:xo.extend("--ft-radio-selected-disabled-component-opacity","",Oo.opacity40),unselectedStateLayerColor:xo.extend("--ft-radio-unselected-state-layer-color","",Yo.borderInputPrimary),unselectedBorderColor:xo.extend("--ft-radio-unselected-border-color","",Yo.borderInputPrimary),unselectedHoverStateLayerOpacity:xo.extend("--ft-radio-unselected-hover-state-layer-opacity","",Oo.opacity16),unselectedFocusStateLayerOpacity:xo.extend("--ft-radio-unselected-focus-state-layer-opacity","",Oo.opacity16),unselectedActiveStateLayerOpacity:xo.extend("--ft-radio-unselected-active-state-layer-opacity","",Oo.opacity24),unselectedDisabledComponentOpacity:xo.extend("--ft-radio-unselected-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-radio-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-radio-gap","",Oo.spacing3)},mi={iconSize:xo.extend("--ft-notification-icon-size","",Oo.iconSize4),horizontalPadding:xo.extend("--ft-notification-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-notification-vertical-padding","",Oo.spacing4),infoBackgroundColor:xo.extend("--ft-notification-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-notification-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notification-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-notification-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-notification-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-notification-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notification-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-notification-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-notification-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-notification-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notification-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-notification-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-notification-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-notification-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notification-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-notification-error-border-color","",Yo.borderErrorSubtle),borderRadius:xo.extend("--ft-notification-border-radius","",Oo.borderRadiusPill),borderWidth:xo.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:xo.extend("--ft-notification-leading-gap","",Oo.spacing2),trailingGap:xo.extend("--ft-notification-trailing-gap","",Oo.spacing8)},vi={horizontalPadding:xo.extend("--ft-tooltip-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-tooltip-vertical-padding","",Oo.spacing2),borderRadius:xo.extend("--ft-tooltip-border-radius","",Oo.borderRadiusS),color:xo.extend("--ft-tooltip-color","",Yo.contentGlobalOnColor),backgroundColor:xo.extend("--ft-tooltip-background-color","",Yo.contentGlobalPrimary),backgroundOpacity:xo.extend("--ft-tooltip-background-opacity","",Oo.opacity80),shadow:xo.extend("--ft-tooltip-shadow","",Oo.shadowElevation03),maxWidth:xo.create("--ft-tooltip-max-width","","SIZE","256px"),gap:xo.extend("--ft-tooltip-gap","",Oo.spacing05)};var xi=Object.freeze({__proto__:null,FtCssVariableFactory:xo,banner:Xo,border:ui,breadcrumb:Qo,button:Jo,chart:hi,checkbox:gi,chip:fi,collapsible:ci,comboboxMultiSelect:ai,comboboxSingleSelect:ni,floatingMenu:ri,foundation:Oo,modal:ei,notice:pi,notification:mi,pageHeader:ti,popover:si,radio:bi,semantic:Yo,setVariable:wo,switch_:di,tabs:li,textArea:ii,textInput:oi,toggle:yi,tooltip:vi,typographies:qo,typographyBody1Medium:Io,typographyBody1Regular:Eo,typographyBody1Semibold:ko,typographyBody2Medium:Uo,typographyBody2MediumUnderline:Lo,typographyBody2Regular:Ro,typographyBody2Semibold:_o,typographyCaption1Bold:Po,typographyCaption1Medium:Do,typographyCaption1Semibold:Mo,typographyCaption2Bold:Ko,typographyCaption2Medium:jo,typographyCaption2Semibold:Zo,typographyCaption3Bold:Vo,typographyCaption3Medium:Ho,typographyCaption3Semibold:Go,typographyDisplay:So,typographyLabel1Bold:To,typographyLabel1Medium:Ao,typographyLabel1Semibold:Wo,typographyLabel2Bold:Fo,typographyLabel2Medium:zo,typographyLabel2Semibold:Bo,typographyTitle1:Co,typographyTitle2:No,typographyTitle3:$o,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const wi={colorPrimary:xo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:xo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:xo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:xo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:xo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:xo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:xo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:xo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:xo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:xo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:xo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:xo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:xo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:xo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:xo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:xo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:xo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:xo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:xo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:xo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:xo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:xo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:xo.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:xo.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:xo.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:xo.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:xo.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:xo.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:xo.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:xo.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:xo.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:xo.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:xo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:xo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:xo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:xo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Oi=Object.freeze({__proto__:null,designSystemVariables:wi});class Si extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ci extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class Ni extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var $i=Object.freeze({__proto__:null,FtNotificationEvent:Si,PostResizeEvent:Ni,PreResizeEvent:Ci});const Ei=["start","end"],Ii=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Ei[0],e+"-"+Ei[1])),[]),ki=Math.min,Ri=Math.max,Ui=Math.round,Li=t=>({x:t,y:t}),_i={left:"right",right:"left",bottom:"top",top:"bottom"},Ai={start:"end",end:"start"};function Wi(t,e,o){return Ri(t,ki(e,o))}function Ti(t,e){return"function"==typeof t?t(e):t}function zi(t){return t.split("-")[0]}function Bi(t){return t.split("-")[1]}function Fi(t){return"x"===t?"y":"x"}function Di(t){return"y"===t?"height":"width"}function Mi(t){return["top","bottom"].includes(zi(t))?"y":"x"}function Pi(t){return Fi(Mi(t))}function ji(t){return t.replace(/left|right|bottom|top/g,(t=>_i[t]))}function Zi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ki(t,e,o){let{reference:i,floating:r}=t;const n=Mi(e),a=Pi(e),s=Di(a),l=zi(e),c="y"===n,d=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let u;switch(l){case"top":u={x:d,y:i.y-r.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-r.width,y:h};break;default:u={x:i.x,y:i.y}}switch(Bi(e)){case"start":u[a]-=f*(o&&c?-1:1);break;case"end":u[a]+=f*(o&&c?-1:1)}return u}async function Hi(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:u=0}=Ti(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),g=s[f?"floating"===h?"reference":"floating":h],y=Zi(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Zi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+p.top)/v.y,bottom:(x.bottom-y.bottom+p.bottom)/v.y,left:(y.left-x.left+p.left)/v.x,right:(x.right-y.right+p.right)/v.x}}function Gi(t,e,o){return(t?[...o.filter((e=>Bi(e)===t)),...o.filter((e=>Bi(e)!==t))]:o.filter((t=>zi(t)===t))).filter((o=>!t||(Bi(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ai[t]))}(o)!==o)))}const Vi=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Ii,autoAlignment:u=!0,...p}=Ti(t,e),g=void 0!==h||f===Ii?Gi(h||null,u,f):f,y=await Hi(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Bi(t),r=Pi(t),n=Di(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ji(a)),[a,ji(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[zi(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Bi(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=S.filter((t=>t[2].slice(0,Bi(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=C[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function qi(t){return Xi(t)?(t.nodeName||"").toLowerCase():"#document"}function Yi(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ji(t){var e;return null==(e=(Xi(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Xi(t){return t instanceof Node||t instanceof Yi(t).Node}function Qi(t){return t instanceof Element||t instanceof Yi(t).Element}function tr(t){return t instanceof HTMLElement||t instanceof Yi(t).HTMLElement}function er(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Yi(t).ShadowRoot)}function or(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=sr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function ir(t){return["table","td","th"].includes(qi(t))}function rr(t){const e=nr(),o=sr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function nr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ar(t){return["html","body","#document"].includes(qi(t))}function sr(t){return Yi(t).getComputedStyle(t)}function lr(t){return Qi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cr(t){if("html"===qi(t))return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Ji(t);return er(e)?e.host:e}function dr(t){const e=cr(t);return ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:tr(e)&&or(e)?e:dr(e)}function hr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=dr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Yi(r);return n?e.concat(a,a.visualViewport||[],or(r)?r:[],a.frameElement&&o?hr(a.frameElement):[]):e.concat(r,hr(r,[],o))}function fr(t){const e=sr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=tr(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ui(o)!==n||Ui(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function ur(t){return Qi(t)?t:t.contextElement}function pr(t){const e=ur(t);if(!tr(e))return Li(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=fr(e);let a=(n?Ui(o.width):o.width)/i,s=(n?Ui(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const gr=Li(0);function yr(t){const e=Yi(t);return nr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:gr}function br(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=ur(t);let a=Li(1);e&&(i?Qi(i)&&(a=pr(i)):a=pr(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Yi(t))&&e}(n,o,i)?yr(n):Li(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,h=r.height/a.y;if(n){const t=Yi(n),e=i&&Qi(i)?Yi(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=pr(o),e=o.getBoundingClientRect(),i=sr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=r,c+=n,o=Yi(o).frameElement}}return Zi({width:d,height:h,x:l,y:c})}function mr(t){return br(Ji(t)).left+lr(t).scrollLeft}function vr(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Yi(t),i=Ji(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=nr();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ji(t),o=lr(t),i=t.ownerDocument.body,r=Ri(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ri(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+mr(t);const s=-o.scrollTop;return"rtl"===sr(i).direction&&(a+=Ri(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ji(t));else if(Qi(e))i=function(t,e){const o=br(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=tr(t)?pr(t):Li(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=yr(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Zi(i)}function xr(t,e){const o=cr(t);return!(o===e||!Qi(o)||ar(o))&&("fixed"===sr(o).position||xr(o,e))}function wr(t,e,o){const i=tr(e),r=Ji(e),n="fixed"===o,a=br(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Li(0);if(i||!i&&!n)if(("body"!==qi(e)||or(r))&&(s=lr(e)),i){const t=br(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=mr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Or(t,e){return tr(t)&&"fixed"!==sr(t).position?e?e(t):t.offsetParent:null}function Sr(t,e){const o=Yi(t);if(!tr(t))return o;let i=Or(t,e);for(;i&&ir(i)&&"static"===sr(i).position;)i=Or(i,e);return i&&("html"===qi(i)||"body"===qi(i)&&"static"===sr(i).position&&!rr(i))?o:i||function(t){let e=cr(t);for(;tr(e)&&!ar(e);){if(rr(e))return e;e=cr(e)}return null}(t)||o}const Cr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=tr(o),n=Ji(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Li(1);const l=Li(0);if((r||!r&&"fixed"!==i)&&(("body"!==qi(o)||or(n))&&(a=lr(o)),tr(o))){const t=br(o);s=pr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ji,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=hr(t,[],!1).filter((t=>Qi(t)&&"body"!==qi(t))),r=null;const n="fixed"===sr(t).position;let a=n?cr(t):t;for(;Qi(a)&&!ar(a);){const e=sr(a),o=rr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||or(a)&&!o&&xr(t,a))?i=i.filter((t=>t!==a)):r=e,a=cr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=vr(e,o,r);return t.top=Ri(i.top,t.top),t.right=ki(i.right,t.right),t.bottom=ki(i.bottom,t.bottom),t.left=Ri(i.left,t.left),t}),vr(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Sr,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Sr,n=this.getDimensions;return{reference:wr(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return fr(t)},getScale:pr,isElement:Qi,isRTL:function(t){return"rtl"===sr(t).direction}},Nr=(t,e,o)=>{const i=new Map,r={platform:Cr,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:h}=Ki(c,i,l),f=i,u={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:h,initialPlacement:i,placement:f,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,h=null!=b?b:h,u={...u,[n]:{...u[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:h}=Ki(c,f,l))),o=-1)}return{x:d,y:h,placement:f,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function $r(t){return function(t){for(let e=t;e;e=Er(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Er(t);e;e=Er(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Er(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Ir(t,e,o){return Nr(t,e,{platform:{...Cr,getOffsetParent:t=>Cr.getOffsetParent(t,$r)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ti(i,t),c={x:e,y:o},d=await Hi(t,l),h=Mi(zi(r)),f=Fi(h);let u=c[f],p=c[h];if(n){const t="y"===f?"bottom":"right";u=Wi(u+d["y"===f?"top":"left"],u,u-d[t])}if(a){const t="y"===h?"bottom":"right";p=Wi(p+d["y"===h?"top":"left"],p,p-d[t])}const g=s.fn({...t,[f]:u,[h]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),Vi({allowedPlacements:[o]})]});var i}var kr=Object.freeze({__proto__:null,computeOffsetPosition:Ir});
135
+ */let Ye=class extends Ae{constructor(t){if(super(t),this.et=Z,t.type!==Ue)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this.vt=void 0,this.et=t;if(t===j)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ye.directiveName="unsafeHTML",Ye.resultType=1;const Je=_e(Ye);var Xe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ye,unsafeHTML:Je});class Qe extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class to extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Qe("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Qe("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const eo=t=>new to(((e,o)=>t.then(e).catch(o)));var oo=Object.freeze({__proto__:null,CancelablePromise:to,CanceledPromiseError:Qe,cancelable:eo});class io{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 to&&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,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=eo(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),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)}}var ro=Object.freeze({__proto__:null,CacheRegistry:io});class no{constructor(t,e,o,i){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>no.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=no.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const i=this.allResults.flatMap((e=>no.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){let r=this.metadataDescriptors.find((t=>o==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>no.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let i,r=no.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,i=t,e===n.length))break}return i}countMatchingMetadata(t,e){return no.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var ao=Object.freeze({__proto__:null,ClusteringHelper:no});class so{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var lo=Object.freeze({__proto__:null,Debouncer:so});const co=t=>new Promise((e=>setTimeout(e,t)));async function fo(t,e=10,o=2e4){let i,r,n=await t();for(i=r=performance.now();null==n&&(!o||r-i<o);)await co(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function ho(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,i)=>e+o+":"+i)),new Date(t)}function uo(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!uo(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!uo(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!uo(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var po=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?ho(o):o}},deepEqual:uo,delay:co,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:ho,waitFor:fo,waitUntil:async function(t,e=10,o=2e4){await fo((async()=>await t()||void 0),e,o)}});const go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function yo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Se({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!uo(t,e),...null!=e?e:{}})}function bo(t){return!isNaN(parseFloat(t))}var mo=Object.freeze({__proto__:null,customElement:go,isNumber:bo,jsonProperty:yo,optionalNumberProperty:function(t){return Se({type:Object,converter:{fromAttribute:t=>{if(null!=t)return bo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const vo=t=>"string"==typeof t?ft(t):t;class xo{static create(t,e,o,i){const r=t=>vo(null!=t?t:i),n=ht`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ht`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=ht`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ht`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):vo(null!=e?e:t.lastResortDefaultValue()),i=ht`var(${vo(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>ht`var(${vo(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function wo(t,e){return vo(`${t.name}: ${e}`)}const So={colorWhite:xo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:xo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:xo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:xo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:xo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:xo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:xo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:xo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:xo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:xo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:xo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:xo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:xo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:xo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:xo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:xo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:xo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:xo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:xo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:xo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:xo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:xo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:xo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:xo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:xo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:xo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:xo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:xo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:xo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:xo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:xo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:xo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:xo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:xo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:xo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:xo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:xo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:xo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:xo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:xo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:xo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:xo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:xo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:xo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:xo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:xo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:xo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:xo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:xo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:xo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:xo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:xo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:xo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:xo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:xo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:xo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:xo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:xo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:xo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:xo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:xo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:xo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:xo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:xo.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:xo.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:xo.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:xo.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:xo.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:xo.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:xo.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:xo.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:xo.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:xo.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:xo.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:xo.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:xo.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:xo.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:xo.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:xo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:xo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:xo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:xo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:xo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:xo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:xo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:xo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:xo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:xo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:xo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:xo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:xo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:xo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:xo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:xo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:xo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:xo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:xo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:xo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:xo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:xo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:xo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:xo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:xo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:xo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:xo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:xo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:xo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:xo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:xo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:xo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:xo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:xo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:xo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:xo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:xo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:xo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:xo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:xo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:xo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:xo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:xo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:xo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:xo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:xo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:xo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:xo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:xo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:xo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:xo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:xo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:xo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:xo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:xo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:xo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:xo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:xo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:xo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:xo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:xo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:xo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:xo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:xo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:xo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:xo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:xo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:xo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:xo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:xo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:xo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:xo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:xo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:xo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:xo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:xo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:xo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:xo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:xo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:xo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:xo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:xo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:xo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:xo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:xo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:xo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:xo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:xo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:xo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:xo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:xo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:xo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:xo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:xo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:xo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:xo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:xo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:xo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:xo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:xo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:xo.create("--ft-opacity-0","","NUMBER","0"),opacity8:xo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:xo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:xo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:xo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:xo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:xo.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:xo.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:xo.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:xo.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:xo.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:xo.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:xo.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:xo.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:xo.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Oo={fontFamily:xo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:xo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-display-textCase","","UNKNOWN","none")},Co={fontFamily:xo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:xo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},No={fontFamily:xo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:xo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},$o={fontFamily:xo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:xo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:xo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Eo={fontFamily:xo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ko={fontFamily:xo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Io={fontFamily:xo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:xo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Lo={fontFamily:xo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Uo={fontFamily:xo.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:xo.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:xo.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},_o={fontFamily:xo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ao={fontFamily:xo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Wo={fontFamily:xo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Bo={fontFamily:xo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},zo={fontFamily:xo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},To={fontFamily:xo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:xo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Mo={fontFamily:xo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Do={fontFamily:xo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:xo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},jo={fontFamily:xo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Zo={fontFamily:xo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ho={fontFamily:xo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ko={fontFamily:xo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Go={fontFamily:xo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:xo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},qo={display:Oo,"title-1":Co,"title-2":No,"title-3":$o,"body-1-regular":Eo,"body-1-medium":ko,"body-1-semibold":Io,"body-2-regular":Ro,"body-2-medium":Lo,"body-2-medium-underline":Uo,"body-2-semibold":_o,"label-1-medium":Ao,"label-1-semibold":Wo,"label-1-bold":Bo,"label-2-medium":zo,"label-2-semibold":To,"label-2-bold":Fo,"caption-1-medium":Mo,"caption-1-semibold":Do,"caption-1-bold":Po,"caption-2-medium":jo,"caption-2-semibold":Zo,"caption-2-bold":Ho,"caption-3-medium":Ko,"caption-3-semibold":Go,"caption-3-bold":Vo},Yo={backgroundActionPrimary:xo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",So.colorBrand0),backgroundErrorSubtle:xo.extend("--ft-background-error-subtle","Used as background of subtle error components.",So.colorRed10),backgroundInfoSubtle:xo.extend("--ft-background-info-subtle","Used as background of subtle information components.",So.colorCyan10),backgroundWarningSubtle:xo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",So.colorOrange10),backgroundSuccessSubtle:xo.extend("--ft-background-success-subtle","Used as background of subtle success components.",So.colorGreen10),backgroundGlobalSurface:xo.extend("--ft-background-global-surface","Used as app background.",So.colorWhite),backgroundGlobalOnSurface:xo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",So.colorGray10),backgroundGlobalOnSurfaceDark:xo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",So.colorGray30),contentActionPrimary:xo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",So.colorBrand0),contentWarningPrimary:xo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",So.colorOrange200),contentWarningIconOnly:xo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",So.colorOrange0),contentErrorPrimary:xo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",So.colorRed0),contentErrorIconOnly:xo.extend("--ft-content-error-icon-only","Used on error status icons alone",So.colorRed70),contentInfoPrimary:xo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",So.colorCyan200),contentInfoIconOnly:xo.extend("--ft-content-info-icon-only","Used on info status icons alone",So.colorCyan0),contentSuccessPrimary:xo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",So.colorGreen200),contentSuccessIconOnly:xo.extend("--ft-content-success-icon-only","Used on success status icons alone",So.colorGreen0),contentGlobalPrimary:xo.extend("--ft-content-global-primary","Used for main content on the page.",So.colorGray500),contentGlobalSecondary:xo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",So.colorGray200),contentGlobalSubtle:xo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",So.colorGray0),contentGlobalOnColor:xo.extend("--ft-content-global-on-color","Used for content on a dominant color.",So.colorWhite),borderActionPrimary:xo.extend("--ft-border-action-primary","Used as border for primary action components.",So.colorBrand0),borderActionFocusRing:xo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",So.colorCyan0),borderWarningPrimary:xo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",So.colorOrange200),borderWarningSubtle:xo.extend("--ft-border-warning-subtle","Used as border for warning components.",So.colorOrange30),borderSuccessPrimary:xo.extend("--ft-border-success-primary","Used as border for success buttons.",So.colorGreen200),borderSuccessSubtle:xo.extend("--ft-border-success-subtle","Used as border for success components.",So.colorGreen30),borderErrorPrimary:xo.extend("--ft-border-error-primary","Used as border for text fields in error states.",So.colorRed0),borderErrorSubtle:xo.extend("--ft-border-error-subtle","Used as border for error components.",So.colorRed30),borderInfoPrimary:xo.extend("--ft-border-info-primary","Used as border for buttons in info color.",So.colorCyan200),borderInfoSubtle:xo.extend("--ft-border-info-subtle","Used as border for information components.",So.colorCyan30),borderGlobalPrimary:xo.extend("--ft-border-global-primary","Used as border for element like input.",So.colorGray50),borderGlobalSubtle:xo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",So.colorGray30),borderInputPrimary:xo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",So.colorGray80)},Jo={largeHeight:xo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:xo.extend("--ft-button-large-horizontal-padding","",So.spacing4),largeGap:xo.extend("--ft-button-large-gap","",So.spacing2),largeBorderRadius:xo.extend("--ft-button-large-border-radius","",So.borderRadiusS),largeIconSize:xo.extend("--ft-button-large-icon-size","",So.iconSize3),largeBorderWidth:xo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:xo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:xo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:xo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:xo.extend("--ft-button-small-horizontal-padding","",So.spacing3),smallGap:xo.extend("--ft-button-small-gap","",So.spacing2),smallBorderRadius:xo.extend("--ft-button-small-border-radius","",So.borderRadiusS),smallIconSize:xo.extend("--ft-button-small-icon-size","",So.iconSize2),smallBorderWidth:xo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:xo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:xo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:xo.extend("--ft-button-primary-background-color","",Yo.backgroundActionPrimary),primaryColor:xo.extend("--ft-button-primary-color","",Yo.contentGlobalOnColor),primaryIconColor:xo.extend("--ft-button-primary-icon-color","",Yo.contentGlobalOnColor),primaryStateLayerColor:xo.extend("--ft-button-primary-state-layer-color","",Yo.contentGlobalOnColor),primaryHoverStateLayerOpacity:xo.extend("--ft-button-primary-hover-state-layer-opacity","",So.opacity16),primaryFocusStateLayerOpacity:xo.extend("--ft-button-primary-focus-state-layer-opacity","",So.opacity16),primaryActiveStateLayerOpacity:xo.extend("--ft-button-primary-active-state-layer-opacity","",So.opacity24),primaryDisabledComponentOpacity:xo.extend("--ft-button-primary-disabled-component-opacity","",So.opacity40),focusFocusRingColor:xo.extend("--ft-button-focus-focus-ring-color","",Yo.borderActionFocusRing),tertiaryBackgroundColor:xo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:xo.extend("--ft-button-tertiary-color","",Yo.contentActionPrimary),tertiaryIconColor:xo.extend("--ft-button-tertiary-icon-color","",Yo.contentActionPrimary),tertiaryStateLayerColor:xo.extend("--ft-button-tertiary-state-layer-color","",Yo.contentActionPrimary),tertiaryHoverStateLayerOpacity:xo.extend("--ft-button-tertiary-hover-state-layer-opacity","",So.opacity8),tertiaryFocusStateLayerOpacity:xo.extend("--ft-button-tertiary-focus-state-layer-opacity","",So.opacity8),tertiaryActiveStateLayerOpacity:xo.extend("--ft-button-tertiary-active-state-layer-opacity","",So.opacity16),tertiaryDisabledComponentOpacity:xo.extend("--ft-button-tertiary-disabled-component-opacity","",So.opacity40),secondaryBackgroundColor:xo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:xo.extend("--ft-button-secondary-color","",Yo.contentActionPrimary),secondaryIconColor:xo.extend("--ft-button-secondary-icon-color","",Yo.contentActionPrimary),secondaryStateLayerColor:xo.extend("--ft-button-secondary-state-layer-color","",Yo.contentActionPrimary),secondaryHoverStateLayerOpacity:xo.extend("--ft-button-secondary-hover-state-layer-opacity","",So.opacity8),secondaryFocusStateLayerOpacity:xo.extend("--ft-button-secondary-focus-state-layer-opacity","",So.opacity8),secondaryActiveStateLayerOpacity:xo.extend("--ft-button-secondary-active-state-layer-opacity","",So.opacity16),secondaryDisabledComponentOpacity:xo.extend("--ft-button-secondary-disabled-component-opacity","",So.opacity40),secondaryBorderColor:xo.extend("--ft-button-secondary-border-color","",Yo.borderActionPrimary),neutralBackgroundColor:xo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:xo.extend("--ft-button-neutral-icon-color","",Yo.contentGlobalSecondary),neutralColor:xo.extend("--ft-button-neutral-color","",Yo.contentGlobalSecondary),neutralStateLayerColor:xo.extend("--ft-button-neutral-state-layer-color","",Yo.contentGlobalSecondary),neutralHoverStateLayerOpacity:xo.extend("--ft-button-neutral-hover-state-layer-opacity","",So.opacity8),neutralFocusStateLayerOpacity:xo.extend("--ft-button-neutral-focus-state-layer-opacity","",So.opacity8),neutralActiveStateLayerOpacity:xo.extend("--ft-button-neutral-active-state-layer-opacity","",So.opacity16),neutralDisabledComponentOpacity:xo.extend("--ft-button-neutral-disabled-component-opacity","",So.opacity40)},Xo={iconSize:xo.extend("--ft-banner-icon-size","",So.iconSize5),borderWidth:xo.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-banner-horizontal-padding","",So.spacing6),verticalPadding:xo.extend("--ft-banner-vertical-padding","",So.spacing6),horizontalSideGap:xo.extend("--ft-banner-horizontal-side-gap","",So.spacing6),horizontalMobileGap:xo.extend("--ft-banner-horizontal-mobile-gap","",So.spacing4),verticalMobileGap:xo.extend("--ft-banner-vertical-mobile-gap","",So.spacing6),horizontalMiddleGap:xo.extend("--ft-banner-horizontal-middle-gap","",So.spacing20),infoBackgroundColor:xo.extend("--ft-banner-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-banner-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-banner-info-icon-color","",Yo.contentInfoIconOnly)},Qo={horizontalGap:xo.extend("--ft-breadcrumb-horizontal-gap","",So.spacing1),verticalGap:xo.extend("--ft-breadcrumb-vertical-gap","",So.spacing2),currentElementColor:xo.extend("--ft-breadcrumb-current-element-color","",Yo.contentGlobalPrimary),iconColor:xo.extend("--ft-breadcrumb-icon-color","",Yo.contentGlobalSubtle)},ti={horizontalPadding:xo.extend("--ft-page-header-horizontal-padding","",So.spacing12),horizontalGap:xo.extend("--ft-page-header-horizontal-gap","",So.spacing4),verticalGap:xo.extend("--ft-page-header-vertical-gap","",So.spacing2),classicVerticalPadding:xo.extend("--ft-page-header-classic-vertical-padding","",So.spacing6),multilineVerticalPadding:xo.extend("--ft-page-header-multiline-vertical-padding","",So.spacing4),inlineVerticalPadding:xo.extend("--ft-page-header-inline-vertical-padding","",So.spacing2),backgroundColor:xo.extend("--ft-page-header-background-color","",So.colorWhite),bottomBorderColor:xo.extend("--ft-page-header-bottom-border-color","",Yo.borderGlobalSubtle),titleColor:xo.extend("--ft-page-header-title-color","",Yo.contentGlobalPrimary),subtitleColor:xo.extend("--ft-page-header-subtitle-color","",Yo.contentGlobalSecondary)},ei={smallContainerWidth:xo.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:xo.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:xo.extend("--ft-modal-overlay-background-color","",So.colorGray700),overlayOpacity:xo.extend("--ft-modal-overlay-opacity","",So.opacity40),shadow:xo.extend("--ft-modal-shadow","",So.shadowElevation03),bodyBackgroundColor:xo.extend("--ft-modal-body-background-color","",So.colorWhite),bodyColor:xo.extend("--ft-modal-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-modal-body-horizontal-padding","",So.spacing6),bodyVerticalPadding:xo.extend("--ft-modal-body-vertical-padding","",So.spacing6),bodyVerticalGap:xo.extend("--ft-modal-body-vertical-gap","",So.spacing6),containerMargin:xo.extend("--ft-modal-container-margin","",So.spacing3),headerBackgroundColor:xo.extend("--ft-modal-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-modal-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-modal-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-modal-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerVerticalPadding:xo.extend("--ft-modal-header-vertical-padding","",So.spacing1),headerRightPadding:xo.extend("--ft-modal-header-right-padding","",So.spacing1),headerLeftPadding:xo.extend("--ft-modal-header-left-padding","",So.spacing6),headerGap:xo.extend("--ft-modal-header-gap","",So.spacing2),headerBorderBottom:xo.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:xo.extend("--ft-modal-border-radius","",So.borderRadiusM)},oi={overlayOpacity:xo.extend("--ft-drawer-overlay-opacity","",So.opacity40),shadow:xo.extend("--ft-drawer-shadow","",So.shadowElevation03),bodyColor:xo.extend("--ft-drawer-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-drawer-body-horizontal-padding","",So.spacing6),bodyVerticalPadding:xo.extend("--ft-drawer-body-vertical-padding","",So.spacing6),bodyGap:xo.extend("--ft-drawer-body-gap","",So.spacing6),bodyBackgroundColor:xo.extend("--ft-drawer-body-background-color","",So.colorWhite),headerBackgroundColor:xo.extend("--ft-drawer-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-drawer-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-drawer-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-drawer-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerHeight:xo.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:xo.extend("--ft-drawer-header-horizontal-padding","",So.spacing2),headerBorderWidth:xo.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:xo.extend("--ft-drawer-header-gap","",So.spacing3),buttonsBarBackgroundColor:xo.extend("--ft-drawer-buttons-bar-background-color","",Yo.backgroundGlobalOnSurface),buttonsBarBorderColor:xo.extend("--ft-drawer-buttons-bar-border-color","",Yo.borderGlobalSubtle),buttonsBarColor:xo.extend("--ft-drawer-buttons-bar-color","",Yo.contentGlobalPrimary),buttonsBarHorizontalPadding:xo.extend("--ft-drawer-buttons-bar-horizontal-padding","",So.spacing4),buttonsBarVerticalPadding:xo.extend("--ft-drawer-buttons-bar-vertical-padding","",So.spacing4),buttonsBarGap:xo.extend("--ft-drawer-buttons-bar-gap","",So.spacing3),buttonsBarBorderWidth:xo.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:xo.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:xo.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:xo.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:xo.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:xo.extend("--ft-drawer-overlay-background-color","",So.colorGray700)},ii={fieldHorizontalPadding:xo.extend("--ft-text-input-field-horizontal-padding","",So.spacing4),fieldHorizontalGap:xo.extend("--ft-text-input-field-horizontal-gap","",So.spacing3),fieldVerticalGap:xo.extend("--ft-text-input-field-vertical-gap","",So.spacing05),fieldIconSize:xo.extend("--ft-text-input-field-icon-size","",So.iconSize3),fieldHeight:xo.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-text-input-helper-horizontal-padding","",So.spacing4),helperHorizontalGap:xo.extend("--ft-text-input-helper-horizontal-gap","",So.spacing1),helperIconSize:xo.extend("--ft-text-input-helper-icon-size","",So.iconSize2),borderRadius:xo.extend("--ft-text-input-border-radius","",So.borderRadiusM),backgroundColor:xo.extend("--ft-text-input-background-color","",So.colorWhite),contentValueColor:xo.extend("--ft-text-input-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-text-input-trailing-icon-color","",Yo.contentGlobalSubtle),labelColor:xo.extend("--ft-text-input-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-input-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-input-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-input-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-input-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-input-error-helper-icon-color","",Yo.contentErrorIconOnly),warningBorderWidth:xo.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:xo.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-text-input-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-input-disabled-component-opacity","",So.opacity40)},ri={backgroundColor:xo.extend("--ft-text-area-background-color","",So.colorWhite),contentValueColor:xo.extend("--ft-text-area-content-value-color","",Yo.contentGlobalPrimary),labelColor:xo.extend("--ft-text-area-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-area-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-area-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-area-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-area-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-area-error-helper-icon-color","",Yo.contentErrorIconOnly),focusFocusRingColor:xo.extend("--ft-text-area-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-area-disabled-component-opacity","",So.opacity40),fieldHorizontalLeftPadding:xo.extend("--ft-text-area-field-horizontal-left-padding","",So.spacing4),fieldHorizontalGap:xo.extend("--ft-text-area-field-horizontal-gap","",So.spacing3),fieldVerticalGap:xo.extend("--ft-text-area-field-vertical-gap","",So.spacing05),fieldMinHeight:xo.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:xo.extend("--ft-text-area-helper-horizontal-padding","",So.spacing4),helperHorizontalGap:xo.extend("--ft-text-area-helper-horizontal-gap","",So.spacing1),helperIconSize:xo.extend("--ft-text-area-helper-icon-size","",So.iconSize2),borderRadius:xo.extend("--ft-text-area-border-radius","",So.borderRadiusM)},ni={height:xo.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:xo.extend("--ft-floating-menu-horizontal-padding","",So.spacing4),offIconColor:xo.extend("--ft-floating-menu-off-icon-color","",Yo.contentGlobalPrimary),offColor:xo.extend("--ft-floating-menu-off-color","",Yo.contentGlobalPrimary),onColor:xo.extend("--ft-floating-menu-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-floating-menu-on-state-layer-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-floating-menu-gap","",So.spacing3),focusFocusRingColor:xo.extend("--ft-floating-menu-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:xo.extend("--ft-floating-menu-focus-state-layer-opacity","",So.opacity8),hoverStateLayerOpacity:xo.extend("--ft-floating-menu-hover-state-layer-opacity","",So.opacity8),activeStateLayerOpacity:xo.extend("--ft-floating-menu-active-state-layer-opacity","",So.opacity16),disabledComponentOpacity:xo.extend("--ft-floating-menu-disabled-component-opacity","",So.opacity40),iconSize:xo.extend("--ft-floating-menu-icon-size","",So.iconSize3),backgroundColor:xo.extend("--ft-floating-menu-background-color","",Yo.backgroundGlobalOnSurface)},ai={fieldHorizontalPadding:xo.extend("--ft-combobox-single-select-field-horizontal-padding","",So.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-single-select-field-horizontal-gap","",So.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-single-select-field-vertical-gap","",So.spacing05),fieldIconSize:xo.extend("--ft-combobox-single-select-field-icon-size","",So.iconSize3),fieldHeight:xo.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-combobox-single-select-helper-horizontal-padding","",So.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-single-select-helper-horizontal-gap","",So.spacing1),helperVerticalGap:xo.extend("--ft-combobox-single-select-helper-vertical-gap","",So.spacing1),helperIconSize:xo.extend("--ft-combobox-single-select-helper-icon-size","",So.iconSize2),menuVerticalGap:xo.extend("--ft-combobox-single-select-menu-vertical-gap","",So.spacing2),borderRadius:xo.extend("--ft-combobox-single-select-border-radius","",So.borderRadiusM),backgroundColor:xo.extend("--ft-combobox-single-select-background-color","",So.colorWhite),labelColor:xo.extend("--ft-combobox-single-select-label-color","",Yo.contentGlobalSubtle),contentValueColor:xo.extend("--ft-combobox-single-select-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-combobox-single-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-single-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-single-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-combobox-single-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-single-select-error-helper-text-color","",Yo.contentErrorPrimary),warningBorderWidth:xo.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-single-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-single-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-single-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),focusOutlineWidth:xo.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-single-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-single-select-disabled-component-opacity","",So.opacity40)},si={backgroundColor:xo.extend("--ft-combobox-multi-select-background-color","",So.colorWhite),labelColor:xo.extend("--ft-combobox-multi-select-label-color","",Yo.contentGlobalSubtle),trailingIconColor:xo.extend("--ft-combobox-multi-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-multi-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-multi-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:xo.extend("--ft-combobox-multi-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-multi-select-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIcon:xo.extend("--ft-combobox-multi-select-error-helper-icon","",Yo.contentErrorIconOnly),errorBorderWidth:xo.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-multi-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-multi-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-multi-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),warningBorderWidth:xo.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-multi-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-multi-select-disabled-component-opacity","",So.opacity40),helperHorizontalPadding:xo.extend("--ft-combobox-multi-select-helper-horizontal-padding","",So.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-multi-select-helper-horizontal-gap","",So.spacing1),helperVerticalGap:xo.extend("--ft-combobox-multi-select-helper-vertical-gap","",So.spacing1),helperIconSize:xo.extend("--ft-combobox-multi-select-helper-icon-size","",So.iconSize2),fieldHorizontalPadding:xo.extend("--ft-combobox-multi-select-field-horizontal-padding","",So.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-multi-select-field-horizontal-gap","",So.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-multi-select-field-vertical-gap","",So.spacing05),fieldIconSize:xo.extend("--ft-combobox-multi-select-field-icon-size","",So.iconSize3),fieldMaxHeight:xo.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:xo.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",So.spacing1),contentValuesVerticalGap:xo.extend("--ft-combobox-multi-select-content-values-vertical-gap","",So.spacing1),borderRadius:xo.extend("--ft-combobox-multi-select-border-radius","",So.borderRadiusM)},li={backgroundColor:xo.extend("--ft-popover-background-color","",Yo.backgroundGlobalOnSurface),horizontalPadding:xo.extend("--ft-popover-horizontal-padding","",So.spacing6),verticalPadding:xo.extend("--ft-popover-vertical-padding","",So.spacing6),iconColor:xo.extend("--ft-popover-icon-color","",Yo.contentGlobalSecondary),iconSize:xo.extend("--ft-popover-icon-size","",So.iconSize2),titleColor:xo.extend("--ft-popover-title-color","",Yo.contentGlobalPrimary),bodyColor:xo.extend("--ft-popover-body-color","",Yo.contentGlobalSecondary),linkColor:xo.extend("--ft-popover-link-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-popover-gap","",So.spacing3),borderRadius:xo.extend("--ft-popover-border-radius","",So.borderRadiusM),shadow:xo.extend("--ft-popover-shadow","",So.shadowElevation02)},ci={topLeftBorderRadius:xo.extend("--ft-tabs-top-left-border-radius","",So.borderRadiusS),topRightBorderRadius:xo.extend("--ft-tabs-top-right-border-radius","",So.borderRadiusS),labelHorizontalPadding:xo.extend("--ft-tabs-label-horizontal-padding","",So.spacing4),labelVerticalPadding:xo.extend("--ft-tabs-label-vertical-padding","",So.spacing3),labelGap:xo.extend("--ft-tabs-label-gap","",So.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-tabs-off-hover-state-layer-opacity","",So.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-tabs-off-focus-state-layer-opacity","",So.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-tabs-off-active-state-layer-opacity","",So.opacity16),offDisabledComponentOpacity:xo.extend("--ft-tabs-off-disabled-component-opacity","",So.opacity40),offColor:xo.extend("--ft-tabs-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-tabs-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-tabs-on-hover-state-layer-opacity","",So.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-tabs-on-focus-state-layer-opacity","",So.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-tabs-on-active-state-layer-opacity","",So.opacity16),onDisabledComponentOpacity:xo.extend("--ft-tabs-on-disabled-component-opacity","",So.opacity40),onColor:xo.extend("--ft-tabs-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-tabs-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-tabs-icon-horizontal-padding","",So.spacing1),iconVerticalPadding:xo.extend("--ft-tabs-icon-vertical-padding","",So.spacing4),focusOutlineWidth:xo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-tabs-focus-focus-ring-color","",Yo.borderActionFocusRing)},di={hoverStateLayerOpacity:xo.extend("--ft-collapsible-hover-state-layer-opacity","",So.opacity8),focusStateLayerOpacity:xo.extend("--ft-collapsible-focus-state-layer-opacity","",So.opacity8),focusOutlineWidth:xo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:xo.extend("--ft-collapsible-focus-focus-ring-color","",Yo.borderActionFocusRing),activeStateLayerOpacity:xo.extend("--ft-collapsible-active-state-layer-opacity","",So.opacity16),disabledComponentOpacity:xo.extend("--ft-collapsible-disabled-component-opacity","",So.opacity40),horizontalPadding:xo.extend("--ft-collapsible-horizontal-padding","",So.spacing4),verticalPadding:xo.extend("--ft-collapsible-vertical-padding","",So.spacing3),color:xo.extend("--ft-collapsible-color","",Yo.contentGlobalPrimary),stateLayerColor:xo.extend("--ft-collapsible-state-layer-color","",Yo.contentGlobalPrimary),backgroundColor:xo.extend("--ft-collapsible-background-color","",Yo.backgroundGlobalOnSurface),borderColor:xo.extend("--ft-collapsible-border-color","",Yo.borderGlobalSubtle),iconSize:xo.extend("--ft-collapsible-icon-size","",So.iconSize3)},fi={groupHorizontalPadding:xo.extend("--ft-switch-group-horizontal-padding","",So.spacing1),groupVerticalPadding:xo.extend("--ft-switch-group-vertical-padding","",So.spacing1),groupGap:xo.extend("--ft-switch-group-gap","",So.spacing1),groupBackgroundColor:xo.extend("--ft-switch-group-background-color","",Yo.backgroundGlobalSurface),groupBorderColor:xo.extend("--ft-switch-group-border-color","",Yo.borderGlobalSubtle),groupBorderRadius:xo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:xo.extend("--ft-switch-label-horizontal-padding","",So.spacing2),labelVerticalPadding:xo.extend("--ft-switch-label-vertical-padding","",So.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-switch-off-hover-state-layer-opacity","",So.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-switch-off-focus-state-layer-opacity","",So.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-switch-off-active-state-layer-opacity","",So.opacity16),offDisabledComponentOpacity:xo.extend("--ft-switch-off-disabled-component-opacity","",So.opacity40),offColor:xo.extend("--ft-switch-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-switch-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-switch-on-hover-state-layer-opacity","",So.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-switch-on-focus-state-layer-opacity","",So.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-switch-on-active-state-layer-opacity","",So.opacity16),onDisabledComponentOpacity:xo.extend("--ft-switch-on-disabled-component-opacity","",So.opacity40),onColor:xo.extend("--ft-switch-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-switch-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-switch-icon-horizontal-padding","",So.spacing1),iconVerticalPadding:xo.extend("--ft-switch-icon-vertical-padding","",So.spacing1),focusOutlineWidth:xo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-switch-focus-focus-ring-color","",Yo.borderActionFocusRing),optionBorderRadius:xo.extend("--ft-switch-option-border-radius","",So.borderRadiusS)},hi={color1Light:xo.extend("--ft-chart-1-light","for area color charts",So.colorBrand40),color1Base:xo.extend("--ft-chart-1-base","for line charts",So.colorBrand0),color2Light:xo.extend("--ft-chart-2-light","for area color charts",So.colorYellow60),color2Base:xo.extend("--ft-chart-2-base","for line charts",So.colorYellow100),color3Light:xo.extend("--ft-chart-3-light","",So.colorUltramarine40),color3Base:xo.extend("--ft-chart-3-base","",So.colorUltramarine70),color4Light:xo.extend("--ft-chart-4-light","",So.colorCyan50),color4Base:xo.extend("--ft-chart-4-base","",So.colorCyan100),color5Light:xo.extend("--ft-chart-5-light","",So.colorRed40),color5Base:xo.extend("--ft-chart-5-base","",So.colorRed60),color6Light:xo.extend("--ft-chart-6-light","",So.colorGreen40),color6Base:xo.extend("--ft-chart-6-base","",So.colorGreen70),color7Light:xo.extend("--ft-chart-7-light","",So.colorOrange70),color7Base:xo.extend("--ft-chart-7-base","",So.colorOrange100),color8Light:xo.extend("--ft-chart-8-light","",So.colorAvocado70),color8Base:xo.extend("--ft-chart-8-base","",So.colorAvocado200),color9Light:xo.extend("--ft-chart-9-light","",So.colorBrown50),color9Base:xo.extend("--ft-chart-9-base","",So.colorBrown200),color10Light:xo.extend("--ft-chart-10-light","",So.colorGray50),color10Base:xo.extend("--ft-chart-10-base","",So.colorGray80),monochrome10:xo.extend("--ft-chart-monochrome-10","",So.colorBrand10),monochrome20:xo.extend("--ft-chart-monochrome-20","",So.colorBrand20),monochrome30:xo.extend("--ft-chart-monochrome-30","",So.colorBrand40),monochrome40:xo.extend("--ft-chart-monochrome-40","",So.colorBrand60),monochrome50:xo.extend("--ft-chart-monochrome-50","",So.colorBrand0),monochrome60:xo.extend("--ft-chart-monochrome-60","",So.colorBrand200)},ui={largeHorizontalPadding:xo.extend("--ft-chip-large-horizontal-padding","",So.spacing4),largeVerticalPadding:xo.extend("--ft-chip-large-vertical-padding","",So.spacing2),largeGap:xo.extend("--ft-chip-large-gap","",So.spacing1),largeFocusOutlineOffset:xo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:xo.extend("--ft-chip-large-border-radius","",So.borderRadiusPill),largeBorderWidth:xo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:xo.extend("--ft-chip-large-icon-size","",So.iconSize3),mediumHorizontalPadding:xo.extend("--ft-chip-medium-horizontal-padding","",So.spacing3),mediumVerticalPadding:xo.extend("--ft-chip-medium-vertical-padding","",So.spacing1),mediumGap:xo.extend("--ft-chip-medium-gap","",So.spacing1),mediumFocusOutlineOffset:xo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:xo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:xo.extend("--ft-chip-medium-border-radius","",So.borderRadiusPill),mediumBorderWidth:xo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:xo.extend("--ft-chip-medium-icon-size","",So.iconSize2),smallHorizontalPadding:xo.extend("--ft-chip-small-horizontal-padding","",So.spacing2),smallVerticalPadding:xo.extend("--ft-chip-small-vertical-padding","",So.spacing05),smallGap:xo.extend("--ft-chip-small-gap","",So.spacing1),smallFocusOutlineOffset:xo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:xo.extend("--ft-chip-small-border-radius","",So.borderRadiusPill),smallBorderWidth:xo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:xo.extend("--ft-chip-small-icon-size","",So.iconSize1),neutralBackgroundColor:xo.extend("--ft-chip-neutral-background-color","",Yo.backgroundGlobalOnSurface),neutralColor:xo.extend("--ft-chip-neutral-color","",Yo.contentGlobalPrimary),neutralIconColor:xo.extend("--ft-chip-neutral-icon-color","",Yo.contentGlobalPrimary),neutralBorderColor:xo.extend("--ft-chip-neutral-border-color","",Yo.borderGlobalSubtle),infoBackgroundColor:xo.extend("--ft-chip-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-chip-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-chip-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-chip-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-chip-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-chip-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-chip-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-chip-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-chip-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-chip-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-chip-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-chip-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-chip-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-chip-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-chip-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-chip-error-border-color","",Yo.borderErrorSubtle)},pi={infoBorderColor:xo.extend("--ft-border-info-border-color","",Yo.borderInfoSubtle)},gi={borderWidth:xo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-notice-horizontal-padding","",So.spacing2),verticalPadding:xo.extend("--ft-notice-vertical-padding","",So.spacing1),borderRadius:xo.extend("--ft-notice-border-radius","",So.borderRadiusS),gap:xo.extend("--ft-notice-gap","",So.spacing2),iconSize:xo.extend("--ft-notice-icon-size","",So.iconSize3),infoBackgroundColor:xo.extend("--ft-notice-info-background-color","",Yo.backgroundInfoSubtle),infoBorderColor:xo.extend("--ft-notice-info-border-color","",Yo.borderInfoSubtle),infoColor:xo.extend("--ft-notice-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notice-info-icon-color","",Yo.contentInfoIconOnly),warningBackgroundColor:xo.extend("--ft-notice-warning-background-color","",Yo.backgroundWarningSubtle),warningBorderColor:xo.extend("--ft-notice-warning-border-color","",Yo.borderWarningSubtle),warningColor:xo.extend("--ft-notice-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notice-warning-icon-color","",Yo.contentWarningIconOnly),errorBackgroundColor:xo.extend("--ft-notice-error-background-color","",Yo.backgroundErrorSubtle),errorBorderColor:xo.extend("--ft-notice-error-border-color","",Yo.borderErrorSubtle),errorColor:xo.extend("--ft-notice-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notice-error-icon-color","",Yo.contentErrorIconOnly),successBackgroundColor:xo.extend("--ft-notice-success-background-color","",Yo.backgroundSuccessSubtle),successBorderColor:xo.extend("--ft-notice-success-border-color","",Yo.borderSuccessSubtle),successColor:xo.extend("--ft-notice-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notice-success-icon-color","",Yo.contentSuccessIconOnly)},yi={color:xo.extend("--ft-checkbox-color","",Yo.contentGlobalPrimary),checkedBackgroundColor:xo.extend("--ft-checkbox-checked-background-color","",Yo.contentActionPrimary),checkedStateLayerColor:xo.extend("--ft-checkbox-checked-state-layer-color","",Yo.contentActionPrimary),checkedIconColor:xo.extend("--ft-checkbox-checked-icon-color","",Yo.contentGlobalOnColor),checkedHoverStateLayerOpacity:xo.extend("--ft-checkbox-checked-hover-state-layer-opacity","",So.opacity16),checkedFocusStateLayerOpacity:xo.extend("--ft-checkbox-checked-focus-state-layer-opacity","",So.opacity16),checkedActiveStateLayerOpacity:xo.extend("--ft-checkbox-checked-active-state-layer-opacity","",So.opacity24),checkedDisabledComponentOpacity:xo.extend("--ft-checkbox-checked-disabled-component-opacity","",So.opacity40),uncheckedBorderColor:xo.extend("--ft-checkbox-unchecked-border-color","",So.colorGray80),uncheckedStateLayerColor:xo.extend("--ft-checkbox-unchecked-state-layer-color","",So.colorGray80),uncheckedHoverStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",So.opacity16),uncheckedFocusStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",So.opacity16),uncheckedActiveStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",So.opacity24),uncheckedDisabledComponentOpacity:xo.extend("--ft-checkbox-unchecked-disabled-component-opacity","",So.opacity40),focusFocusRingColor:xo.extend("--ft-checkbox-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-checkbox-gap","",So.spacing3)},bi={offHoverStateLayerOpacity:xo.extend("--ft-toggle-off-hover-state-layer-opacity","",So.opacity16),offFocusStateLayerOpacity:xo.extend("--ft-toggle-off-focus-state-layer-opacity","",So.opacity16),offActiveStateLayerOpacity:xo.extend("--ft-toggle-off-active-state-layer-opacity","",So.opacity24),offDisabledComponentOpacity:xo.extend("--ft-toggle-off-disabled-component-opacity","",So.opacity40),offBackgroundColor:xo.extend("--ft-toggle-off-background-color","",Yo.contentGlobalSubtle),offIconColor:xo.extend("--ft-toggle-off-icon-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-toggle-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-toggle-on-hover-state-layer-opacity","",So.opacity16),onFocusStateLayerOpacity:xo.extend("--ft-toggle-on-focus-state-layer-opacity","",So.opacity16),onActiveStateLayerOpacity:xo.extend("--ft-toggle-on-active-state-layer-opacity","",So.opacity24),onDisabledComponentOpacity:xo.extend("--ft-toggle-on-disabled-component-opacity","",So.opacity40),onBackgroundColor:xo.extend("--ft-toggle-on-background-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-toggle-on-state-layer-color","",Yo.contentActionPrimary),onIconColor:xo.extend("--ft-toggle-on-icon-color","",Yo.contentActionPrimary),color:xo.extend("--ft-toggle-color","",Yo.contentGlobalPrimary),focusFocusRingColor:xo.extend("--ft-toggle-focus-focus-ring-color","",Yo.borderActionFocusRing),gap:xo.extend("--ft-toggle-gap","",So.spacing3)},mi={color:xo.extend("--ft-radio-color","",Yo.contentGlobalPrimary),selectedRadioColor:xo.extend("--ft-radio-selected-radio-color","",Yo.contentActionPrimary),selectedStateLayerColor:xo.extend("--ft-radio-selected-state-layer-color","",Yo.contentActionPrimary),selectedHoverStateLayerOpacity:xo.extend("--ft-radio-selected-hover-state-layer-opacity","",So.opacity16),selectedFocusStateLayerOpacity:xo.extend("--ft-radio-selected-focus-state-layer-opacity","",So.opacity16),selectedActiveStateLayerOpacity:xo.extend("--ft-radio-selected-active-state-layer-opacity","",So.opacity24),selectedDisabledComponentOpacity:xo.extend("--ft-radio-selected-disabled-component-opacity","",So.opacity40),unselectedStateLayerColor:xo.extend("--ft-radio-unselected-state-layer-color","",Yo.borderInputPrimary),unselectedBorderColor:xo.extend("--ft-radio-unselected-border-color","",Yo.borderInputPrimary),unselectedHoverStateLayerOpacity:xo.extend("--ft-radio-unselected-hover-state-layer-opacity","",So.opacity16),unselectedFocusStateLayerOpacity:xo.extend("--ft-radio-unselected-focus-state-layer-opacity","",So.opacity16),unselectedActiveStateLayerOpacity:xo.extend("--ft-radio-unselected-active-state-layer-opacity","",So.opacity24),unselectedDisabledComponentOpacity:xo.extend("--ft-radio-unselected-disabled-component-opacity","",So.opacity40),focusFocusRingColor:xo.extend("--ft-radio-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-radio-gap","",So.spacing3)},vi={iconSize:xo.extend("--ft-notification-icon-size","",So.iconSize4),horizontalPadding:xo.extend("--ft-notification-horizontal-padding","",So.spacing4),verticalPadding:xo.extend("--ft-notification-vertical-padding","",So.spacing4),infoBackgroundColor:xo.extend("--ft-notification-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-notification-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notification-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-notification-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-notification-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-notification-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notification-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-notification-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-notification-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-notification-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notification-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-notification-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-notification-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-notification-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notification-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-notification-error-border-color","",Yo.borderErrorSubtle),borderRadius:xo.extend("--ft-notification-border-radius","",So.borderRadiusPill),borderWidth:xo.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:xo.extend("--ft-notification-leading-gap","",So.spacing2),trailingGap:xo.extend("--ft-notification-trailing-gap","",So.spacing8)},xi={horizontalPadding:xo.extend("--ft-tooltip-horizontal-padding","",So.spacing2),verticalPadding:xo.extend("--ft-tooltip-vertical-padding","",So.spacing2),borderRadius:xo.extend("--ft-tooltip-border-radius","",So.borderRadiusS),color:xo.extend("--ft-tooltip-color","",Yo.contentGlobalOnColor),backgroundColor:xo.extend("--ft-tooltip-background-color","",Yo.contentGlobalPrimary),backgroundOpacity:xo.extend("--ft-tooltip-background-opacity","",So.opacity80),shadow:xo.extend("--ft-tooltip-shadow","",So.shadowElevation03),maxWidth:xo.create("--ft-tooltip-max-width","","SIZE","256px"),gap:xo.extend("--ft-tooltip-gap","",So.spacing05)};var wi=Object.freeze({__proto__:null,FtCssVariableFactory:xo,banner:Xo,border:pi,breadcrumb:Qo,button:Jo,chart:hi,checkbox:yi,chip:ui,collapsible:di,comboboxMultiSelect:si,comboboxSingleSelect:ai,drawer:oi,floatingMenu:ni,foundation:So,modal:ei,notice:gi,notification:vi,pageHeader:ti,popover:li,radio:mi,semantic:Yo,setVariable:wo,switch_:fi,tabs:ci,textArea:ri,textInput:ii,toggle:bi,tooltip:xi,typographies:qo,typographyBody1Medium:ko,typographyBody1Regular:Eo,typographyBody1Semibold:Io,typographyBody2Medium:Lo,typographyBody2MediumUnderline:Uo,typographyBody2Regular:Ro,typographyBody2Semibold:_o,typographyCaption1Bold:Po,typographyCaption1Medium:Mo,typographyCaption1Semibold:Do,typographyCaption2Bold:Ho,typographyCaption2Medium:jo,typographyCaption2Semibold:Zo,typographyCaption3Bold:Vo,typographyCaption3Medium:Ko,typographyCaption3Semibold:Go,typographyDisplay:Oo,typographyLabel1Bold:Bo,typographyLabel1Medium:Ao,typographyLabel1Semibold:Wo,typographyLabel2Bold:Fo,typographyLabel2Medium:zo,typographyLabel2Semibold:To,typographyTitle1:Co,typographyTitle2:No,typographyTitle3:$o,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const Si={colorPrimary:xo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:xo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:xo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:xo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:xo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:xo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:xo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:xo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:xo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:xo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:xo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:xo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:xo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:xo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:xo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:xo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:xo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:xo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:xo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:xo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:xo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:xo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:xo.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:xo.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:xo.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:xo.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:xo.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:xo.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:xo.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:xo.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:xo.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:xo.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:xo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:xo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:xo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:xo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Oi=Object.freeze({__proto__:null,designSystemVariables:Si});class Ci extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ni extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class $i extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var Ei=Object.freeze({__proto__:null,FtNotificationEvent:Ci,PostResizeEvent:$i,PreResizeEvent:Ni});const ki=["start","end"],Ii=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ki[0],e+"-"+ki[1])),[]),Ri=Math.min,Li=Math.max,Ui=Math.round,_i=t=>({x:t,y:t}),Ai={left:"right",right:"left",bottom:"top",top:"bottom"},Wi={start:"end",end:"start"};function Bi(t,e,o){return Li(t,Ri(e,o))}function zi(t,e){return"function"==typeof t?t(e):t}function Ti(t){return t.split("-")[0]}function Fi(t){return t.split("-")[1]}function Mi(t){return"x"===t?"y":"x"}function Di(t){return"y"===t?"height":"width"}function Pi(t){return["top","bottom"].includes(Ti(t))?"y":"x"}function ji(t){return Mi(Pi(t))}function Zi(t){return t.replace(/left|right|bottom|top/g,(t=>Ai[t]))}function Hi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ki(t,e,o){let{reference:i,floating:r}=t;const n=Pi(e),a=ji(e),s=Di(a),l=Ti(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let u;switch(l){case"top":u={x:d,y:i.y-r.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:f};break;case"left":u={x:i.x-r.width,y:f};break;default:u={x:i.x,y:i.y}}switch(Fi(e)){case"start":u[a]-=h*(o&&c?-1:1);break;case"end":u[a]+=h*(o&&c?-1:1)}return u}async function Gi(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:u=0}=zi(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),g=s[h?"floating"===f?"reference":"floating":f],y=Hi(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Hi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+p.top)/v.y,bottom:(x.bottom-y.bottom+p.bottom)/v.y,left:(y.left-x.left+p.left)/v.x,right:(x.right-y.right+p.right)/v.x}}function Vi(t,e,o){return(t?[...o.filter((e=>Fi(e)===t)),...o.filter((e=>Fi(e)!==t))]:o.filter((t=>Ti(t)===t))).filter((o=>!t||(Fi(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Wi[t]))}(o)!==o)))}const qi=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:h=Ii,autoAlignment:u=!0,...p}=zi(t,e),g=void 0!==f||h===Ii?Vi(f||null,u,h):h,y=await Gi(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Fi(t),r=ji(t),n=Di(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Zi(a)),[a,Zi(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ti(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],S=g[b+1];if(S)return{data:{index:b+1,overflows:w},reset:{placement:S}};const O=w.map((t=>{const e=Fi(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=O.filter((t=>t[2].slice(0,Fi(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=C[0])?void 0:r[0])||O[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Yi(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function Ji(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Xi(t){var e;return null==(e=(Qi(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Qi(t){return t instanceof Node||t instanceof Ji(t).Node}function tr(t){return t instanceof Element||t instanceof Ji(t).Element}function er(t){return t instanceof HTMLElement||t instanceof Ji(t).HTMLElement}function or(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ji(t).ShadowRoot)}function ir(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=lr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function rr(t){return["table","td","th"].includes(Yi(t))}function nr(t){const e=ar(),o=lr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ar(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function sr(t){return["html","body","#document"].includes(Yi(t))}function lr(t){return Ji(t).getComputedStyle(t)}function cr(t){return tr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dr(t){if("html"===Yi(t))return t;const e=t.assignedSlot||t.parentNode||or(t)&&t.host||Xi(t);return or(e)?e.host:e}function fr(t){const e=dr(t);return sr(e)?t.ownerDocument?t.ownerDocument.body:t.body:er(e)&&ir(e)?e:fr(e)}function hr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=fr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ji(r);return n?e.concat(a,a.visualViewport||[],ir(r)?r:[],a.frameElement&&o?hr(a.frameElement):[]):e.concat(r,hr(r,[],o))}function ur(t){const e=lr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=er(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ui(o)!==n||Ui(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function pr(t){return tr(t)?t:t.contextElement}function gr(t){const e=pr(t);if(!er(e))return _i(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=ur(e);let a=(n?Ui(o.width):o.width)/i,s=(n?Ui(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yr=_i(0);function br(t){const e=Ji(t);return ar()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yr}function mr(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=pr(t);let a=_i(1);e&&(i?tr(i)&&(a=gr(i)):a=gr(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ji(t))&&e}(n,o,i)?br(n):_i(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=Ji(n),e=i&&tr(i)?Ji(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=gr(o),e=o.getBoundingClientRect(),i=lr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=r,c+=n,o=Ji(o).frameElement}}return Hi({width:d,height:f,x:l,y:c})}function vr(t){return mr(Xi(t)).left+cr(t).scrollLeft}function xr(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ji(t),i=Xi(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=ar();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Xi(t),o=cr(t),i=t.ownerDocument.body,r=Li(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Li(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+vr(t);const s=-o.scrollTop;return"rtl"===lr(i).direction&&(a+=Li(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Xi(t));else if(tr(e))i=function(t,e){const o=mr(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=er(t)?gr(t):_i(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=br(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Hi(i)}function wr(t,e){const o=dr(t);return!(o===e||!tr(o)||sr(o))&&("fixed"===lr(o).position||wr(o,e))}function Sr(t,e,o){const i=er(e),r=Xi(e),n="fixed"===o,a=mr(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=_i(0);if(i||!i&&!n)if(("body"!==Yi(e)||ir(r))&&(s=cr(e)),i){const t=mr(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=vr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Or(t,e){return er(t)&&"fixed"!==lr(t).position?e?e(t):t.offsetParent:null}function Cr(t,e){const o=Ji(t);if(!er(t))return o;let i=Or(t,e);for(;i&&rr(i)&&"static"===lr(i).position;)i=Or(i,e);return i&&("html"===Yi(i)||"body"===Yi(i)&&"static"===lr(i).position&&!nr(i))?o:i||function(t){let e=dr(t);for(;er(e)&&!sr(e);){if(nr(e))return e;e=dr(e)}return null}(t)||o}const Nr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=er(o),n=Xi(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=_i(1);const l=_i(0);if((r||!r&&"fixed"!==i)&&(("body"!==Yi(o)||ir(n))&&(a=cr(o)),er(o))){const t=mr(o);s=gr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xi,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=hr(t,[],!1).filter((t=>tr(t)&&"body"!==Yi(t))),r=null;const n="fixed"===lr(t).position;let a=n?dr(t):t;for(;tr(a)&&!sr(a);){const e=lr(a),o=nr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ir(a)&&!o&&wr(t,a))?i=i.filter((t=>t!==a)):r=e,a=dr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=xr(e,o,r);return t.top=Li(i.top,t.top),t.right=Ri(i.right,t.right),t.bottom=Ri(i.bottom,t.bottom),t.left=Li(i.left,t.left),t}),xr(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Cr,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Cr,n=this.getDimensions;return{reference:Sr(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ur(t)},getScale:gr,isElement:tr,isRTL:function(t){return"rtl"===lr(t).direction}},$r=(t,e,o)=>{const i=new Map,r={platform:Nr,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=Ki(c,i,l),h=i,u={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,f=null!=b?b:f,u={...u,[n]:{...u[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=Ki(c,h,l))),o=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Er(t){return function(t){for(let e=t;e;e=kr(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=kr(t);e;e=kr(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function kr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Ir(t,e,o){return $r(t,e,{platform:{...Nr,getOffsetParent:t=>Nr.getOffsetParent(t,Er)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=zi(i,t),c={x:e,y:o},d=await Gi(t,l),f=Pi(Ti(r)),h=Mi(f);let u=c[h],p=c[f];if(n){const t="y"===h?"bottom":"right";u=Bi(u+d["y"===h?"top":"left"],u,u-d[t])}if(a){const t="y"===f?"bottom":"right";p=Bi(p+d["y"===f?"top":"left"],p,p-d[t])}const g=s.fn({...t,[h]:u,[f]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),qi({allowedPlacements:[o]})]});var i}var Rr=Object.freeze({__proto__:null,computeOffsetPosition:Ir});
135
136
  /**
136
137
  * @license
137
138
  * Copyright 2019 Google LLC
138
139
  * SPDX-License-Identifier: BSD-3-Clause
139
- */const Rr=window,Ur=Rr.ShadowRoot&&(void 0===Rr.ShadyCSS||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Lr extends be{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ur?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Rr.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var _r,Ar=Object.freeze({__proto__:null,ScopedRegistryLitElement:Lr}),Wr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Tr=Symbol("constructorPrototype"),zr=Symbol("constructorName"),Br=Symbol("exportpartsDebouncer");class Fr extends Lr{constructor(){super(),this[_r]=new so(5),this[zr]=this.constructor.name,this[Tr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zr]&&Object.setPrototypeOf(this,this[Tr])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Br].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}_r=Br,Wr([Oe()],Fr.prototype,"exportpartsPrefix",void 0),Wr([yo([])],Fr.prototype,"exportpartsPrefixes",void 0),Wr([Oe()],Fr.prototype,"customStylesheet",void 0);var Dr=Object.freeze({__proto__:null,FtLitElement:Fr}),Mr=Object.freeze({__proto__:null});class Pr{constructor(t,e=!0,o=[],i=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=i}static matches(t,e){const o="string"==typeof e?[e]:e,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let e=!1;return o.every((o=>!i.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let i;try{const e=t.contentWindow;if(i=e.document,!e||!i)throw new Error("iframe inaccessible")}catch(t){o()}i&&e(i)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let i=!1,r=null;const n=()=>{if(!i){i=!0,clearTimeout(r);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),r=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,i=(()=>{})){let r=t.querySelectorAll("iframe"),n=r.length,a=0;r=Array.prototype.slice.call(r);const s=()=>{--n<=0&&i(a)};n||s(),r.forEach((t=>{Pr.matches(t,this.exclude)?s():this.onIframeReady(t,(i=>{e(t)&&(a++,o(i)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Pr(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,i){let r=!1,n=!1;return i.forEach(((t,e)=>{t.val===o&&(r=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==r||n?!1===r||n||(i[r].handled=!0):i.push({val:o,handled:!0}),!0):(!1===r&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,i){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,i)}))}))}iterateThroughNodes(t,e,o,i,r){const n=this.createIterator(e,t,i);let a,s,l=[],c=[],d=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;d();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),i)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,i),r()}forEachNode(t,e,o,i=(()=>{})){const r=this.getContexts();let n=r.length;n||i(),r.forEach((r=>{const a=()=>{this.iterateThroughNodes(t,r,e,o,(()=>{--n<=0&&i()}))};this.iframes?this.waitForIframes(r,a):a()}))}}const jr=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Pr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in e)if(e.hasOwnProperty(r)){const n=e[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),i+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let i=o.charAt(e+1);return/[(|)\\]/.test(i)||""===i?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let i=[];return t.split("").forEach((r=>{o.every((o=>{if(-1!==o.indexOf(r)){if(i.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),i.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,i="string"==typeof e?[]:e.limiters,r="";switch(i.forEach((t=>{r+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return r="\\s"+(r||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${r}]*${t}[^${r}]*)`;case"exactly":return`(^|\\s${r})(${t})(?=$|\\s${r})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:i,end:r,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=i,t.length=r-i,e.push(t),o=r)})),e}callNoMatchOnInvalidRanges(t,e){let o,i,r=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),i=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-e>0&&i-o>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:i,valid:r}}checkWhitespaceRanges(t,e,o){let i,r=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,i=s+parseInt(t.length,10),i>n&&(i=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||i-s<0||s>n||i>n?(r=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:i,valid:r}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Pr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const i=this.opt.element?this.opt.element:"mark",r=t.splitText(e),n=r.splitText(o-e);let a=document.createElement(i);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),n}wrapRangeInMappedTextNode(t,e,o,i,r){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!i(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),d=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+d,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,r(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let r;for(e=e.node;null!==(r=t.exec(e.textContent))&&""!==r[n];){if(!o(r[n],e))continue;let a=r.index;if(0!==n)for(let t=1;t<n;t++)a+=r[t].length;e=this.wrapRangeInTextNode(e,a,a+r[n].length),i(e.previousSibling),t.lastIndex=0}})),r()}))}wrapMatchesAcrossElements(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let r=a.index;if(0!==n)for(let t=1;t<n;t++)r+=a[t].length;const s=r+a[n].length;this.wrapRangeInMappedTextNode(e,r,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,i(e)}))}r()}))}wrapRangeFromIndex(t,e,o,i){this.getTextNodes((r=>{const n=r.value.length;t.forEach(((t,i)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,r.value);l&&this.wrapRangeInMappedTextNode(r,a,s,(o=>e(o,t,r.value.substring(a,s),i)),(e=>{o(e,t)}))})),i()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,i="wrapMatches";const{keywords:r,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[i](e,1,((e,i)=>this.opt.filter(i,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),r[n-1]===t?this.opt.done(o):s(r[r.indexOf(t)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(r[0])}markRanges(t,e){this.opt=e;let o=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,((t,e,o,i)=>this.opt.filter(t,e,o,i)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Pr.matches(t,e),i=this.matchesExclude(t);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},Zr=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Kr=ft`
140
+ */const Lr=window,Ur=Lr.ShadowRoot&&(void 0===Lr.ShadyCSS||Lr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class _r extends be{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ur?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Lr.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ar,Wr=Object.freeze({__proto__:null,ScopedRegistryLitElement:_r}),Br=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const zr=Symbol("constructorPrototype"),Tr=Symbol("constructorName"),Fr=Symbol("exportpartsDebouncer");class Mr extends _r{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ar]=new so(5),this[Tr]=this.constructor.name,this[zr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Tr]&&Object.setPrototypeOf(this,this[zr])}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}updated(t){var e;super.updated(t),t.has("customStylesheet")&&this.adoptedCustomStyleSheet.replace(null!==(e=this.customStylesheet)&&void 0!==e?e:""),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Fr].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Ar=Fr,Br([Se()],Mr.prototype,"exportpartsPrefix",void 0),Br([yo([])],Mr.prototype,"exportpartsPrefixes",void 0),Br([Se()],Mr.prototype,"customStylesheet",void 0);var Dr=Object.freeze({__proto__:null,FtLitElement:Mr}),Pr=Object.freeze({__proto__:null});class jr{constructor(t,e=!0,o=[],i=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=i}static matches(t,e){const o="string"==typeof e?[e]:e,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let e=!1;return o.every((o=>!i.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let i;try{const e=t.contentWindow;if(i=e.document,!e||!i)throw new Error("iframe inaccessible")}catch(t){o()}i&&e(i)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let i=!1,r=null;const n=()=>{if(!i){i=!0,clearTimeout(r);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),r=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,i=(()=>{})){let r=t.querySelectorAll("iframe"),n=r.length,a=0;r=Array.prototype.slice.call(r);const s=()=>{--n<=0&&i(a)};n||s(),r.forEach((t=>{jr.matches(t,this.exclude)?s():this.onIframeReady(t,(i=>{e(t)&&(a++,o(i)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new jr(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,i){let r=!1,n=!1;return i.forEach(((t,e)=>{t.val===o&&(r=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==r||n?!1===r||n||(i[r].handled=!0):i.push({val:o,handled:!0}),!0):(!1===r&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,i){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,i)}))}))}iterateThroughNodes(t,e,o,i,r){const n=this.createIterator(e,t,i);let a,s,l=[],c=[],d=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;d();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),i)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,i),r()}forEachNode(t,e,o,i=(()=>{})){const r=this.getContexts();let n=r.length;n||i(),r.forEach((r=>{const a=()=>{this.iterateThroughNodes(t,r,e,o,(()=>{--n<=0&&i()}))};this.iframes?this.waitForIframes(r,a):a()}))}}const Zr=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new jr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in e)if(e.hasOwnProperty(r)){const n=e[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),i+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let i=o.charAt(e+1);return/[(|)\\]/.test(i)||""===i?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let i=[];return t.split("").forEach((r=>{o.every((o=>{if(-1!==o.indexOf(r)){if(i.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),i.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,i="string"==typeof e?[]:e.limiters,r="";switch(i.forEach((t=>{r+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return r="\\s"+(r||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${r}]*${t}[^${r}]*)`;case"exactly":return`(^|\\s${r})(${t})(?=$|\\s${r})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:i,end:r,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=i,t.length=r-i,e.push(t),o=r)})),e}callNoMatchOnInvalidRanges(t,e){let o,i,r=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),i=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-e>0&&i-o>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:i,valid:r}}checkWhitespaceRanges(t,e,o){let i,r=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,i=s+parseInt(t.length,10),i>n&&(i=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||i-s<0||s>n||i>n?(r=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:i,valid:r}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return jr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const i=this.opt.element?this.opt.element:"mark",r=t.splitText(e),n=r.splitText(o-e);let a=document.createElement(i);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),n}wrapRangeInMappedTextNode(t,e,o,i,r){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!i(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),d=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+d,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,r(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let r;for(e=e.node;null!==(r=t.exec(e.textContent))&&""!==r[n];){if(!o(r[n],e))continue;let a=r.index;if(0!==n)for(let t=1;t<n;t++)a+=r[t].length;e=this.wrapRangeInTextNode(e,a,a+r[n].length),i(e.previousSibling),t.lastIndex=0}})),r()}))}wrapMatchesAcrossElements(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let r=a.index;if(0!==n)for(let t=1;t<n;t++)r+=a[t].length;const s=r+a[n].length;this.wrapRangeInMappedTextNode(e,r,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,i(e)}))}r()}))}wrapRangeFromIndex(t,e,o,i){this.getTextNodes((r=>{const n=r.value.length;t.forEach(((t,i)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,r.value);l&&this.wrapRangeInMappedTextNode(r,a,s,(o=>e(o,t,r.value.substring(a,s),i)),(e=>{o(e,t)}))})),i()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,i="wrapMatches";const{keywords:r,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[i](e,1,((e,i)=>this.opt.filter(i,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),r[n-1]===t?this.opt.done(o):s(r[r.indexOf(t)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(r[0])}markRanges(t,e){this.opt=e;let o=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,((t,e,o,i)=>this.opt.filter(t,e,o,i)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=jr.matches(t,e),i=this.matchesExclude(t);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},Hr=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Kr=ht`
140
141
  .highlight-html-match {
141
- background: ${Zr};
142
+ background: ${Hr};
142
143
  }
143
- `,Hr={className:"highlight-html-match"};var Gr=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let i=t.getAttribute("data-highlight-html-query");if((null!=i?i:"")!==(null!=e?e:"")){const i=new jr(t);if(i.unmark(Hr),e&&e.trim()){i.mark(e.replace(/"[^"]+"/g,""),{...Hr,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>i.mark(t.replace(/"/g,""),{...Hr,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:Zr,highlightHtmlStyles:Kr});const Vr=ft`
144
+ `,Gr={className:"highlight-html-match"};var Vr=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let i=t.getAttribute("data-highlight-html-query");if((null!=i?i:"")!==(null!=e?e:"")){const i=new Zr(t);if(i.unmark(Gr),e&&e.trim()){i.mark(e.replace(/"[^"]+"/g,""),{...Gr,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>i.mark(t.replace(/"/g,""),{...Gr,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:Hr,highlightHtmlStyles:Kr});const qr=ht`
144
145
  .ft-no-text-select {
145
146
  -webkit-touch-callout: none;
146
147
  -webkit-user-select: none;
@@ -149,7 +150,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
149
150
  -ms-user-select: none;
150
151
  user-select: none;
151
152
  }
152
- `,qr=ft`
153
+ `,Yr=ht`
153
154
  .ft-word-wrap {
154
155
  white-space: normal;
155
156
  word-wrap: break-word;
@@ -161,7 +162,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
161
162
  -webkit-hyphens: auto;
162
163
  hyphens: auto
163
164
  }
164
- `,Yr=ft`
165
+ `,Jr=ht`
165
166
  .ft-safari-ellipsis-fix {
166
167
  margin-right: 0;
167
168
 
@@ -172,7 +173,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
172
173
  display: inline-block;
173
174
  width: 0;
174
175
  }
175
- `;var Jr=Object.freeze({__proto__:null,noTextSelect:Vr,safariEllipsisFix:Yr,wordWrap:qr}),Xr=Object.freeze({__proto__:null});class Qr{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var tn=Object.freeze({__proto__:null,ParametrizedLabelResolver:Qr});const en=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!uo(t,e),attribute:!1,...e};Oe(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},on=t=>(e,o)=>{const i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(o,t)};class rn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function nn(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var an,sn,ln;const cn=Symbol("internalReduxEventsUnsubscribers"),dn=Symbol("internalStoresUnsubscribers"),hn=Symbol("internalStores");class fn extends Fr{constructor(){super(...arguments),this[an]=new Map,this[sn]=new Map,this[ln]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[hn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[hn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:nn(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[hn].delete(e)}setupStore(t,e){this[hn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[dn].has(t.store):this[dn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[dn].set(t,e.subscribe((()=>this.updateFromStores()))),nn(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[cn].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[dn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[cn].forEach((t=>t())),this[cn]=[]}unsubscribeFromStore(t){this[dn].has(t)&&this[dn].get(t)(),this[dn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function un(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function pn(t){return!!t&&!!t[ta]}function gn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===ea}(t)||Array.isArray(t)||!!t[Qn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Qn])||wn(t)||On(t))}function yn(t,e,o){void 0===o&&(o=!1),0===bn(t)?(o?Object.keys:oa)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function bn(t){var e=t[ta];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:wn(t)?2:On(t)?3:0}function mn(t,e){return 2===bn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function vn(t,e,o){var i=bn(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function xn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function wn(t){return qn&&t instanceof Map}function On(t){return Yn&&t instanceof Set}function Sn(t){return t.o||t.t}function Cn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ia(t);delete e[ta];for(var o=oa(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Nn(t,e){return void 0===e&&(e=!1),En(t)||pn(t)||!gn(t)||(bn(t)>1&&(t.set=t.add=t.clear=t.delete=$n),Object.freeze(t),e&&yn(t,(function(t,e){return Nn(e,!0)}),!0)),t}function $n(){un(2)}function En(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function In(t){var e=ra[t];return e||un(18,t),e}function kn(){return Gn}function Rn(t,e){e&&(In("Patches"),t.u=[],t.s=[],t.v=e)}function Un(t){Ln(t),t.p.forEach(An),t.p=null}function Ln(t){t===Gn&&(Gn=t.l)}function _n(t){return Gn={p:[],l:Gn,h:t,m:!0,_:0}}function An(t){var e=t[ta];0===e.i||1===e.i?e.j():e.g=!0}function Wn(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||In("ES5").S(e,t,i),i?(o[ta].P&&(Un(e),un(4)),gn(t)&&(t=Tn(e,t),e.l||Bn(e,t)),e.u&&In("Patches").M(o[ta].t,t,e.u,e.s)):t=Tn(e,o,[]),Un(e),e.u&&e.v(e.u,e.s),t!==Xn?t:void 0}function Tn(t,e,o){if(En(e))return e;var i=e[ta];if(!i)return yn(e,(function(r,n){return zn(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Bn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=Cn(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),yn(n,(function(e,n){return zn(t,i,r,e,n,o,a)})),Bn(t,r,!1),o&&t.u&&In("Patches").N(i,o,t.u,t.s)}return i.o}function zn(t,e,o,i,r,n,a){if(pn(r)){var s=Tn(t,r,n&&e&&3!==e.i&&!mn(e.R,i)?n.concat(i):void 0);if(vn(o,i,s),!pn(s))return;t.m=!1}else a&&o.add(r);if(gn(r)&&!En(r)){if(!t.h.D&&t._<1)return;Tn(t,r),e&&e.A.l||Bn(t,r)}}function Bn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&Nn(e,o)}function Fn(t,e){var o=t[ta];return(o?Sn(o):t)[e]}function Dn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Mn(t){t.P||(t.P=!0,t.l&&Mn(t.l))}function Pn(t){t.o||(t.o=Cn(t.t))}function jn(t,e,o){var i=wn(e)?In("MapSet").F(e,o):On(e)?In("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:kn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=na;o&&(r=[i],n=aa);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):In("ES5").J(e,o);return(o?o.A:kn()).p.push(i),i}function Zn(t){return pn(t)||un(22,t),function t(e){if(!gn(e))return e;var o,i=e[ta],r=bn(e);if(i){if(!i.P&&(i.i<4||!In("ES5").K(i)))return i.t;i.I=!0,o=Kn(e,r),i.I=!1}else o=Kn(e,r);return yn(o,(function(e,r){i&&function(t,e){return 2===bn(t)?t.get(e):t[e]}(i.t,e)===r||vn(o,e,t(r))})),3===r?new Set(o):o}(t)}function Kn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Cn(t)}an=dn,sn=hn,ln=cn,fn.reduxProperties=new Map,fn.reduxReactiveProperties=new Set,fn.reduxEventListeners=new Map;var Hn,Gn,Vn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),qn="undefined"!=typeof Map,Yn="undefined"!=typeof Set,Jn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Xn=Vn?Symbol.for("immer-nothing"):((Hn={})["immer-nothing"]=!0,Hn),Qn=Vn?Symbol.for("immer-draftable"):"__$immer_draftable",ta=Vn?Symbol.for("immer-state"):"__$immer_state",ea=""+Object.prototype.constructor,oa="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ia=Object.getOwnPropertyDescriptors||function(t){var e={};return oa(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},ra={},na={get:function(t,e){if(e===ta)return t;var o=Sn(t);if(!mn(o,e))return function(t,e,o){var i,r=Dn(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!gn(i)?i:i===Fn(t.t,e)?(Pn(t),t.o[e]=jn(t.A.h,i,t)):i},has:function(t,e){return e in Sn(t)},ownKeys:function(t){return Reflect.ownKeys(Sn(t))},set:function(t,e,o){var i=Dn(Sn(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Fn(Sn(t),e),n=null==r?void 0:r[ta];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(xn(o,r)&&(void 0!==o||mn(t.t,e)))return!0;Pn(t),Mn(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Fn(t.t,e)||e in t.t?(t.R[e]=!1,Pn(t),Mn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Sn(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){un(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){un(12)}},aa={};yn(na,(function(t,e){aa[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),aa.deleteProperty=function(t,e){return aa.set.call(this,t,e,void 0)},aa.set=function(t,e,o){return na.set.call(this,t[0],e,o,t[0])};var sa=function(){function t(t){var e=this;this.O=Jn,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&un(6),void 0!==i&&"function"!=typeof i&&un(7),gn(t)){var s=_n(e),l=jn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Un(s):Ln(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Rn(s,i),Wn(t,s)}),(function(t){throw Un(s),t})):(Rn(s,i),Wn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Xn&&(a=void 0),e.D&&Nn(a,!0),i){var d=[],h=[];In("Patches").M(t,a,d,h),i(d,h)}return a}un(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){gn(t)||un(8),pn(t)&&(t=Zn(t));var e=_n(this),o=jn(this,t,void 0);return o[ta].C=!0,Ln(e),o},e.finishDraft=function(t,e){var o=(t&&t[ta]).A;return Rn(o,e),Wn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Jn&&un(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=In("Patches").$;return pn(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),la=new sa,ca=la.produce;function da(t){return da="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},da(t)}function ha(t){var e=function(t,e){if("object"!==da(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==da(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===da(e)?e:String(e)}function fa(t,e,o){return(e=ha(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ua(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function pa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(o),!0).forEach((function(e){fa(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ua(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ga(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. "}la.produceWithPatches.bind(la),la.setAutoFreeze.bind(la),la.setUseProxies.bind(la),la.applyPatches.bind(la),la.createDraft.bind(la),la.finishDraft.bind(la);var ya="function"==typeof Symbol&&Symbol.observable||"@@observable",ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},ma={INIT:"@@redux/INIT"+ba(),REPLACE:"@@redux/REPLACE"+ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ba()}};function va(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ga(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ga(1));return o(va)(t,e)}if("function"!=typeof t)throw new Error(ga(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(ga(3));return n}function h(t){if("function"!=typeof t)throw new Error(ga(4));if(l)throw new Error(ga(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ga(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ga(7));if(void 0===t.type)throw new Error(ga(8));if(l)throw new Error(ga(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return f({type:ma.INIT}),(i={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ga(10));r=t,f({type:ma.REPLACE})}})[ya]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ga(11));function o(){t.next&&t.next(d())}return o(),{unsubscribe:e(o)}}})[ya]=function(){return this},t},i}function xa(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ma.INIT}))throw new Error(ga(12));if(void 0===o(void 0,{type:ma.PROBE_UNKNOWN_ACTION()}))throw new Error(ga(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(ga(14));r[l]=h,i=i||h!==d}return(i=i||a.length!==Object.keys(t).length)?r:t}}function wa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Oa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ga(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=wa.apply(void 0,n)(o.dispatch),pa(pa({},o),{},{dispatch:i})}}}function Sa(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var Ca=Sa();Ca.withExtraArgument=Sa;var Na,$a=Ca,Ea=(Na=function(t,e){return Na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},Na(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Na(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ia=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},ka=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ra=Object.defineProperty,Ua=Object.defineProperties,La=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,Ta=function(t,e,o){return e in t?Ra(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},za=function(t,e){for(var o in e||(e={}))Aa.call(e,o)&&Ta(t,o,e[o]);if(_a)for(var i=0,r=_a(e);i<r.length;i++){o=r[i];Wa.call(e,o)&&Ta(t,o,e[o])}return t},Ba=function(t,e){return Ua(t,La(e))},Fa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?wa:wa.apply(null,arguments)};var Da=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ea(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ka([void 0],t[0].concat(this)))):new(e.bind.apply(e,ka([void 0],t.concat(this))))},e}(Array),Ma=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ea(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ka([void 0],t[0].concat(this)))):new(e.bind.apply(e,ka([void 0],t.concat(this))))},e}(Array);function Pa(t){return gn(t)?ca(t,(function(){})):t}function ja(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Da;o&&(!function(t){return"boolean"==typeof t}(o)?i.push($a.withExtraArgument(o.extraArgument)):i.push($a));return i}(t)}}function Za(t){var e,o=ja(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,d=i.preloadedState,h=void 0===d?void 0:d,f=i.enhancers,u=void 0===f?void 0:f;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=xa(n)}var p=s;"function"==typeof p&&(p=p(o));var g=Oa.apply(void 0,p),y=wa;c&&(y=Fa(za({trace:!1},"object"==typeof c&&c)));var b=new Ma(g),m=b;return Array.isArray(u)?m=ka([g],u):"function"==typeof u&&(m=u(b)),va(e,h,y.apply(void 0,m))}function Ka(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return za(za({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ha(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ga(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Pa(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ha(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,d=za(za({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ha(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Pa(t())};else{var c=Pa(t);r=function(){return c}}function d(t,e){void 0===t&&(t=r());var o=ka([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(pn(t))return void 0===(i=o(t,e))?t:i;if(gn(t))return ca(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return d.getInitialState=r,d}(i,(function(t){for(var e in d)t.addCase(e,d[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?Ka(c,i):Ka(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Va=["name","message","stack","code"],qa=function(t,e){this.payload=t,this.meta=e},Ya=function(t,e){this.payload=t,this.meta=e},Ja=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Va;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Xa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Ka(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ba(za({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ka(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ba(za({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ka(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ja)(t||"Rejected"),meta:Ba(za({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var d,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new a;function u(t){d=t,f.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Ia(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),s(r(h,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new qa(t,e)},fulfillWithValue:function(t,e){return new Ya(t,e)}})).then((function(e){if(e instanceof qa)throw e;return e instanceof Ya?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof qa?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{r(g.next(t))}catch(t){e(t)}},i=function(t){try{r(g.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Xa)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Qa="listenerMiddleware";Ka(Qa+"/add"),Ka(Qa+"/removeAll"),Ka(Qa+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ta];return na.get(e,t)},set:function(e){var o=this[ta];na.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ta];if(!r.P)switch(r.i){case 5:i(r)&&Mn(r);break;case 4:o(r)&&Mn(r)}}}function o(t){for(var e=t.t,o=t.k,i=oa(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==ta){var a=e[n];if(void 0===a&&!mn(e,n))return!0;var s=o[n],l=s&&s[ta];if(l?l.t!==a:!xn(s,a))return!0}}var c=!!e[ta];return i.length!==oa(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){ra[t]||(ra[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=ia(o);delete n[ta];for(var a=oa(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:kn(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ta,{value:n,writable:!0}),r},S:function(t,o,r){r?pn(o)&&o[ta].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ta];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)yn(n,(function(e){e!==ta&&(void 0!==r[e]||mn(r,e)?a[e]||t(n[e]):(a[e]=!0,Mn(o)))})),yn(r,(function(t){void 0!==n[t]||mn(n,t)||(a[t]=!1,Mn(o))}));else if(5===s){if(i(o)&&(Mn(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var d=Math.min(n.length,r.length),h=0;h<d;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ts{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(nn(r))return r;if(null==i)return;const n=Ga({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Za({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[i.name]=new ts(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new rn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var es=Object.freeze({__proto__:null,FtCommandQueue:rn,FtLitElementRedux:fn,FtReduxStore:ts,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))nn(e)&&e.clear()},isFtReduxStore:nn,redux:en,reduxEventListener:on,reduxReactive:()=>(t,e)=>{var o;const i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),null===(o=i.reduxReactiveProperties)||void 0===o||o.add(e)}});var os=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const i=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");i.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${i.toString()}`).href}});const is=Symbol("elementInternals");function rs(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[is].form}constructor(...t){super(t),this[is]=this.attachInternals(),this[is].role=e}setFormValue(t){this[is].setFormValue(t)}}}var ns,as,ss,ls,cs=Object.freeze({__proto__:null,toFtFormComponent:rs});const ds=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ss=null===(as=null===(ns=window.safari)||void 0===ns?void 0:ns.pushNotification)||void 0===as?void 0:as.toString())&&void 0!==ss?ss:""),hs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var fs;window.ftGlobals=null!==(ls=window.ftGlobals)&&void 0!==ls?ls:{lit:ve,litDecorators:Re,litRepeat:je,litClassMap:Ke,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...ro,...oo,...ao,...lo,...mo,...Oi,...$i,...kr,...xi,...Dr,...Mr,...po,...Gr,...Jr,...Xr,...tn,...es,...Ar,...os,...cs,isSafari:ds,isTouchScreen:hs}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(fs||(fs={}));var us=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ps extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const gs=Symbol("registerInterval");class ys extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[gs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[gs]):this.dispatchEvent(new ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=gs,us([Se()],o.prototype,"stateManager",void 0),o}(fn)){}const bs=xo.extend("--ft-ripple-color","",wi.colorContent),ms={color:bs,backgroundColor:xo.extend("--ft-ripple-background-color","",bs),opacityContentOnSurfacePressed:xo.external(wi.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(wi.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(wi.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(wi.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},vs=xo.extend("--ft-ripple-color","",wi.colorPrimary),xs=vs,ws=xo.extend("--ft-ripple-background-color","",vs),Os=xo.extend("--ft-ripple-color","",wi.colorSecondary),Ss=Os,Cs=xo.extend("--ft-ripple-background-color","",Os),Ns=ft`
176
+ `;var Xr=Object.freeze({__proto__:null,noTextSelect:qr,safariEllipsisFix:Jr,wordWrap:Yr}),Qr=Object.freeze({__proto__:null});class tn{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var en=Object.freeze({__proto__:null,ParametrizedLabelResolver:tn});const on=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!uo(t,e),attribute:!1,...e};Se(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},rn=t=>(e,o)=>{const i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(o,t)};class nn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function an(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var sn,ln,cn;const dn=Symbol("internalReduxEventsUnsubscribers"),fn=Symbol("internalStoresUnsubscribers"),hn=Symbol("internalStores");class un extends Mr{constructor(){super(...arguments),this[sn]=new Map,this[ln]=new Map,this[cn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[hn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[hn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:an(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[hn].delete(e)}setupStore(t,e){this[hn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[fn].has(t.store):this[fn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[fn].set(t,e.subscribe((()=>this.updateFromStores()))),an(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[dn].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[fn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[dn].forEach((t=>t())),this[dn]=[]}unsubscribeFromStore(t){this[fn].has(t)&&this[fn].get(t)(),this[fn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function pn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function gn(t){return!!t&&!!t[ea]}function yn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===oa}(t)||Array.isArray(t)||!!t[ta]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ta])||Sn(t)||On(t))}function bn(t,e,o){void 0===o&&(o=!1),0===mn(t)?(o?Object.keys:ia)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function mn(t){var e=t[ea];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sn(t)?2:On(t)?3:0}function vn(t,e){return 2===mn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xn(t,e,o){var i=mn(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function wn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Sn(t){return Yn&&t instanceof Map}function On(t){return Jn&&t instanceof Set}function Cn(t){return t.o||t.t}function Nn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ra(t);delete e[ea];for(var o=ia(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function $n(t,e){return void 0===e&&(e=!1),kn(t)||gn(t)||!yn(t)||(mn(t)>1&&(t.set=t.add=t.clear=t.delete=En),Object.freeze(t),e&&bn(t,(function(t,e){return $n(e,!0)}),!0)),t}function En(){pn(2)}function kn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function In(t){var e=na[t];return e||pn(18,t),e}function Rn(){return Vn}function Ln(t,e){e&&(In("Patches"),t.u=[],t.s=[],t.v=e)}function Un(t){_n(t),t.p.forEach(Wn),t.p=null}function _n(t){t===Vn&&(Vn=t.l)}function An(t){return Vn={p:[],l:Vn,h:t,m:!0,_:0}}function Wn(t){var e=t[ea];0===e.i||1===e.i?e.j():e.g=!0}function Bn(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||In("ES5").S(e,t,i),i?(o[ea].P&&(Un(e),pn(4)),yn(t)&&(t=zn(e,t),e.l||Fn(e,t)),e.u&&In("Patches").M(o[ea].t,t,e.u,e.s)):t=zn(e,o,[]),Un(e),e.u&&e.v(e.u,e.s),t!==Qn?t:void 0}function zn(t,e,o){if(kn(e))return e;var i=e[ea];if(!i)return bn(e,(function(r,n){return Tn(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Fn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=Nn(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),bn(n,(function(e,n){return Tn(t,i,r,e,n,o,a)})),Fn(t,r,!1),o&&t.u&&In("Patches").N(i,o,t.u,t.s)}return i.o}function Tn(t,e,o,i,r,n,a){if(gn(r)){var s=zn(t,r,n&&e&&3!==e.i&&!vn(e.R,i)?n.concat(i):void 0);if(xn(o,i,s),!gn(s))return;t.m=!1}else a&&o.add(r);if(yn(r)&&!kn(r)){if(!t.h.D&&t._<1)return;zn(t,r),e&&e.A.l||Fn(t,r)}}function Fn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&$n(e,o)}function Mn(t,e){var o=t[ea];return(o?Cn(o):t)[e]}function Dn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Pn(t){t.P||(t.P=!0,t.l&&Pn(t.l))}function jn(t){t.o||(t.o=Nn(t.t))}function Zn(t,e,o){var i=Sn(e)?In("MapSet").F(e,o):On(e)?In("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:Rn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=aa;o&&(r=[i],n=sa);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):In("ES5").J(e,o);return(o?o.A:Rn()).p.push(i),i}function Hn(t){return gn(t)||pn(22,t),function t(e){if(!yn(e))return e;var o,i=e[ea],r=mn(e);if(i){if(!i.P&&(i.i<4||!In("ES5").K(i)))return i.t;i.I=!0,o=Kn(e,r),i.I=!1}else o=Kn(e,r);return bn(o,(function(e,r){i&&function(t,e){return 2===mn(t)?t.get(e):t[e]}(i.t,e)===r||xn(o,e,t(r))})),3===r?new Set(o):o}(t)}function Kn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Nn(t)}sn=fn,ln=hn,cn=dn,un.reduxProperties=new Map,un.reduxReactiveProperties=new Set,un.reduxEventListeners=new Map;var Gn,Vn,qn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Yn="undefined"!=typeof Map,Jn="undefined"!=typeof Set,Xn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Qn=qn?Symbol.for("immer-nothing"):((Gn={})["immer-nothing"]=!0,Gn),ta=qn?Symbol.for("immer-draftable"):"__$immer_draftable",ea=qn?Symbol.for("immer-state"):"__$immer_state",oa=""+Object.prototype.constructor,ia="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ra=Object.getOwnPropertyDescriptors||function(t){var e={};return ia(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},na={},aa={get:function(t,e){if(e===ea)return t;var o=Cn(t);if(!vn(o,e))return function(t,e,o){var i,r=Dn(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!yn(i)?i:i===Mn(t.t,e)?(jn(t),t.o[e]=Zn(t.A.h,i,t)):i},has:function(t,e){return e in Cn(t)},ownKeys:function(t){return Reflect.ownKeys(Cn(t))},set:function(t,e,o){var i=Dn(Cn(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Mn(Cn(t),e),n=null==r?void 0:r[ea];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(wn(o,r)&&(void 0!==o||vn(t.t,e)))return!0;jn(t),Pn(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Mn(t.t,e)||e in t.t?(t.R[e]=!1,jn(t),Pn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Cn(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){pn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pn(12)}},sa={};bn(aa,(function(t,e){sa[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),sa.deleteProperty=function(t,e){return sa.set.call(this,t,e,void 0)},sa.set=function(t,e,o){return aa.set.call(this,t[0],e,o,t[0])};var la=function(){function t(t){var e=this;this.O=Xn,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&pn(6),void 0!==i&&"function"!=typeof i&&pn(7),yn(t)){var s=An(e),l=Zn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Un(s):_n(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ln(s,i),Bn(t,s)}),(function(t){throw Un(s),t})):(Ln(s,i),Bn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Qn&&(a=void 0),e.D&&$n(a,!0),i){var d=[],f=[];In("Patches").M(t,a,d,f),i(d,f)}return a}pn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){yn(t)||pn(8),gn(t)&&(t=Hn(t));var e=An(this),o=Zn(this,t,void 0);return o[ea].C=!0,_n(e),o},e.finishDraft=function(t,e){var o=(t&&t[ea]).A;return Ln(o,e),Bn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Xn&&pn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=In("Patches").$;return gn(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),ca=new la,da=ca.produce;function fa(t){return fa="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},fa(t)}function ha(t){var e=function(t,e){if("object"!==fa(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==fa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fa(e)?e:String(e)}function ua(t,e,o){return(e=ha(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ga(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?pa(Object(o),!0).forEach((function(e){ua(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ya(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. "}ca.produceWithPatches.bind(ca),ca.setAutoFreeze.bind(ca),ca.setUseProxies.bind(ca),ca.applyPatches.bind(ca),ca.createDraft.bind(ca),ca.finishDraft.bind(ca);var ba="function"==typeof Symbol&&Symbol.observable||"@@observable",ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},va={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function xa(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ya(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ya(1));return o(xa)(t,e)}if("function"!=typeof t)throw new Error(ya(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(ya(3));return n}function f(t){if("function"!=typeof t)throw new Error(ya(4));if(l)throw new Error(ya(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ya(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=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(ya(7));if(void 0===t.type)throw new Error(ya(8));if(l)throw new Error(ya(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:va.INIT}),(i={dispatch:h,subscribe:f,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ya(10));r=t,h({type:va.REPLACE})}})[ba]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ya(11));function o(){t.next&&t.next(d())}return o(),{unsubscribe:e(o)}}})[ba]=function(){return this},t},i}function wa(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:va.INIT}))throw new Error(ya(12));if(void 0===o(void 0,{type:va.PROBE_UNKNOWN_ACTION()}))throw new Error(ya(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],d=t[l],f=c(d,e);if(void 0===f)throw e&&e.type,new Error(ya(14));r[l]=f,i=i||f!==d}return(i=i||a.length!==Object.keys(t).length)?r:t}}function Sa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Oa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ya(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=Sa.apply(void 0,n)(o.dispatch),ga(ga({},o),{},{dispatch:i})}}}function Ca(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var Na=Ca();Na.withExtraArgument=Ca;var $a,Ea=Na,ka=($a=function(t,e){return $a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},$a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}$a(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ia=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Ra=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},La=Object.defineProperty,Ua=Object.defineProperties,_a=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,za=function(t,e,o){return e in t?La(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ta=function(t,e){for(var o in e||(e={}))Wa.call(e,o)&&za(t,o,e[o]);if(Aa)for(var i=0,r=Aa(e);i<r.length;i++){o=r[i];Ba.call(e,o)&&za(t,o,e[o])}return t},Fa=function(t,e){return Ua(t,_a(e))},Ma="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Sa:Sa.apply(null,arguments)};var Da=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return ka(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ra([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ra([void 0],t.concat(this))))},e}(Array),Pa=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return ka(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ra([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ra([void 0],t.concat(this))))},e}(Array);function ja(t){return yn(t)?da(t,(function(){})):t}function Za(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Da;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(Ea.withExtraArgument(o.extraArgument)):i.push(Ea));return i}(t)}}function Ha(t){var e,o=Za(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,d=i.preloadedState,f=void 0===d?void 0:d,h=i.enhancers,u=void 0===h?void 0:h;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=wa(n)}var p=s;"function"==typeof p&&(p=p(o));var g=Oa.apply(void 0,p),y=Sa;c&&(y=Ma(Ta({trace:!1},"object"==typeof c&&c)));var b=new Pa(g),m=b;return Array.isArray(u)?m=Ra([g],u):"function"==typeof u&&(m=u(b)),xa(e,f,y.apply(void 0,m))}function Ka(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ta(Ta({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ga(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Va(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:ja(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ga(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,d=Ta(Ta({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ga(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return ja(t())};else{var c=ja(t);r=function(){return c}}function d(t,e){void 0===t&&(t=r());var o=Ra([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(gn(t))return void 0===(i=o(t,e))?t:i;if(yn(t))return da(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return d.getInitialState=r,d}(i,(function(t){for(var e in d)t.addCase(e,d[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?Ka(c,i):Ka(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var qa=["name","message","stack","code"],Ya=function(t,e){this.payload=t,this.meta=e},Ja=function(t,e){this.payload=t,this.meta=e},Xa=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=qa;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Qa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Ka(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Fa(Ta({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ka(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Fa(Ta({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ka(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Xa)(t||"Rejected"),meta:Fa(Ta({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var d,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new a;function u(t){d=t,h.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Ia(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),s(r(f,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:f,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Ya(t,e)},fulfillWithValue:function(t,e){return new Ja(t,e)}})).then((function(e){if(e instanceof Ya)throw e;return e instanceof Ja?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Ya?n(null,f,t,m.payload,m.meta):n(m,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{r(g.next(t))}catch(t){e(t)}},i=function(t){try{r(g.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:u,requestId:f,arg:t,unwrap:function(){return p.then(Qa)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var ts="listenerMiddleware";Ka(ts+"/add"),Ka(ts+"/removeAll"),Ka(ts+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ea];return aa.get(e,t)},set:function(e){var o=this[ea];aa.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ea];if(!r.P)switch(r.i){case 5:i(r)&&Pn(r);break;case 4:o(r)&&Pn(r)}}}function o(t){for(var e=t.t,o=t.k,i=ia(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==ea){var a=e[n];if(void 0===a&&!vn(e,n))return!0;var s=o[n],l=s&&s[ea];if(l?l.t!==a:!wn(s,a))return!0}}var c=!!e[ea];return i.length!==ia(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){na[t]||(na[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=ra(o);delete n[ea];for(var a=ia(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:Rn(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ea,{value:n,writable:!0}),r},S:function(t,o,r){r?gn(o)&&o[ea].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ea];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)bn(n,(function(e){e!==ea&&(void 0!==r[e]||vn(r,e)?a[e]||t(n[e]):(a[e]=!0,Pn(o)))})),bn(r,(function(t){void 0!==n[t]||vn(n,t)||(a[t]=!1,Pn(o))}));else if(5===s){if(i(o)&&(Pn(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var d=Math.min(n.length,r.length),f=0;f<d;f++)n.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class es{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(an(r))return r;if(null==i)return;const n=Va({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Ha({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[i.name]=new es(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new nn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var os=Object.freeze({__proto__:null,FtCommandQueue:nn,FtLitElementRedux:un,FtReduxStore:es,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))an(e)&&e.clear()},isFtReduxStore:an,redux:on,reduxEventListener:rn,reduxReactive:()=>(t,e)=>{var o;const i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),null===(o=i.reduxReactiveProperties)||void 0===o||o.add(e)}});var is=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const i=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");i.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${i.toString()}`).href}});const rs=Symbol("elementInternals");function ns(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[rs].form}constructor(...t){super(t),this[rs]=this.attachInternals(),this[rs].role=e}setFormValue(t){this[rs].setFormValue(t)}}}var as,ss,ls,cs,ds=Object.freeze({__proto__:null,toFtFormComponent:ns});const fs=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ls=null===(ss=null===(as=window.safari)||void 0===as?void 0:as.pushNotification)||void 0===ss?void 0:ss.toString())&&void 0!==ls?ls:""),hs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var us;window.ftGlobals=null!==(cs=window.ftGlobals)&&void 0!==cs?cs:{lit:ve,litDecorators:Re,litRepeat:je,litClassMap:He,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...ro,...oo,...ao,...lo,...mo,...Oi,...Ei,...Rr,...wi,...Dr,...Pr,...po,...Vr,...Xr,...Qr,...en,...os,...Wr,...is,...ds,isSafari:fs,isTouchScreen:hs}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(us||(us={}));var ps=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gs extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ys=Symbol("registerInterval");class bs extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[ys]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ys]):this.dispatchEvent(new gs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ys,ps([Oe()],o.prototype,"stateManager",void 0),o}(un)){}const ms=xo.extend("--ft-ripple-color","",Si.colorContent),vs={color:ms,backgroundColor:xo.extend("--ft-ripple-background-color","",ms),opacityContentOnSurfacePressed:xo.external(Si.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Si.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Si.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Si.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},xs=xo.extend("--ft-ripple-color","",Si.colorPrimary),ws=xs,Ss=xo.extend("--ft-ripple-background-color","",xs),Os=xo.extend("--ft-ripple-color","",Si.colorSecondary),Cs=Os,Ns=xo.extend("--ft-ripple-background-color","",Os),$s=ht`
176
177
  :host {
177
178
  display: contents;
178
179
  }
@@ -185,7 +186,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
185
186
 
186
187
  .ft-ripple:not(.ft-ripple--unbounded) {
187
188
  overflow: hidden;
188
- border-radius: ${ms.borderRadius};
189
+ border-radius: ${vs.borderRadius};
189
190
  }
190
191
 
191
192
  .ft-ripple .ft-ripple--background,
@@ -219,27 +220,27 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
219
220
  }
220
221
 
221
222
  .ft-ripple .ft-ripple--background {
222
- background-color: ${ms.backgroundColor};
223
+ background-color: ${vs.backgroundColor};
223
224
  }
224
225
 
225
226
  .ft-ripple .ft-ripple--effect {
226
- background-color: ${ms.color};
227
+ background-color: ${vs.color};
227
228
  }
228
229
 
229
230
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
230
- background-color: ${Cs};
231
+ background-color: ${Ns};
231
232
  }
232
233
 
233
234
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
234
- background-color: ${Ss};
235
+ background-color: ${Cs};
235
236
  }
236
237
 
237
238
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
238
- background-color: ${ws};
239
+ background-color: ${Ss};
239
240
  }
240
241
 
241
242
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
242
- background-color: ${xs};
243
+ background-color: ${ws};
243
244
  }
244
245
 
245
246
  .ft-ripple .ft-ripple--background {
@@ -269,32 +270,23 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
269
270
  }
270
271
 
271
272
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
272
- opacity: ${ms.opacityContentOnSurfaceHover};
273
+ opacity: ${vs.opacityContentOnSurfaceHover};
273
274
  }
274
275
 
275
276
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
276
- opacity: ${ms.opacityContentOnSurfaceSelected};
277
+ opacity: ${vs.opacityContentOnSurfaceSelected};
277
278
  }
278
279
 
279
280
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
280
- opacity: ${ms.opacityContentOnSurfaceFocused};
281
+ opacity: ${vs.opacityContentOnSurfaceFocused};
281
282
  }
282
283
 
283
284
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
284
- opacity: ${ms.opacityContentOnSurfacePressed};
285
+ opacity: ${vs.opacityContentOnSurfacePressed};
285
286
  transform: translate(-50%, -50%) scale(1);
286
287
  }
287
- `;const $s=xo.extend("--ft-typography-font-family","",wi.titleFont),Es=xo.extend("--ft-typography-font-family","",wi.contentFont),Is={fontFamily:Es,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ks={fontFamily:xo.extend("--ft-typography-title-font-family","",$s),fontSize:xo.extend("--ft-typography-title-font-size","",Is.fontSize,"20px"),fontWeight:xo.extend("--ft-typography-title-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-letter-spacing","",Is.letterSpacing,"0.15px"),lineHeight:xo.extend("--ft-typography-title-line-height","",Is.lineHeight,"1.2"),textTransform:xo.extend("--ft-typography-title-text-transform","",Is.textTransform,"inherit")},Rs={fontFamily:xo.extend("--ft-typography-title-dense-font-family","",$s),fontSize:xo.extend("--ft-typography-title-dense-font-size","",Is.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-title-dense-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-dense-letter-spacing","",Is.letterSpacing,"0.105px"),lineHeight:xo.extend("--ft-typography-title-dense-line-height","",Is.lineHeight,"1.7"),textTransform:xo.extend("--ft-typography-title-dense-text-transform","",Is.textTransform,"inherit")},Us=xo.extend("--ft-typography-subtitle1-font-family","",Es),Ls=xo.extend("--ft-typography-subtitle1-font-size","",Is.fontSize,"16px"),_s=xo.extend("--ft-typography-subtitle1-font-weight","",Is.fontWeight,"600"),As=xo.extend("--ft-typography-subtitle1-letter-spacing","",Is.letterSpacing,"0.144px"),Ws=xo.extend("--ft-typography-subtitle1-line-height","",Is.lineHeight,"1.5"),Ts=xo.extend("--ft-typography-subtitle1-text-transform","",Is.textTransform,"inherit"),zs=xo.extend("--ft-typography-subtitle2-font-family","",Es),Bs=xo.extend("--ft-typography-subtitle2-font-size","",Is.fontSize,"14px"),Fs=xo.extend("--ft-typography-subtitle2-font-weight","",Is.fontWeight,"normal"),Ds=xo.extend("--ft-typography-subtitle2-letter-spacing","",Is.letterSpacing,"0.098px"),Ms=xo.extend("--ft-typography-subtitle2-line-height","",Is.lineHeight,"1.7"),Ps=xo.extend("--ft-typography-subtitle2-text-transform","",Is.textTransform,"inherit"),js={fontFamily:xo.extend("--ft-typography-body1-font-family","",Es),fontSize:xo.extend("--ft-typography-body1-font-size","",Is.fontSize,"16px"),fontWeight:xo.extend("--ft-typography-body1-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body1-letter-spacing","",Is.letterSpacing,"0.496px"),lineHeight:xo.extend("--ft-typography-body1-line-height","",Is.lineHeight,"1.5"),textTransform:xo.extend("--ft-typography-body1-text-transform","",Is.textTransform,"inherit")},Zs=xo.extend("--ft-typography-body2-font-family","",Es),Ks=xo.extend("--ft-typography-body2-font-size","",Is.fontSize,"14px"),Hs=xo.extend("--ft-typography-body2-font-weight","",Is.fontWeight,"normal"),Gs=xo.extend("--ft-typography-body2-letter-spacing","",Is.letterSpacing,"0.252px"),Vs=xo.extend("--ft-typography-body2-line-height","",Is.lineHeight,"1.4"),qs=xo.extend("--ft-typography-body2-text-transform","",Is.textTransform,"inherit"),Ys={fontFamily:xo.extend("--ft-typography-caption-font-family","",Es),fontSize:xo.extend("--ft-typography-caption-font-size","",Is.fontSize,"12px"),fontWeight:xo.extend("--ft-typography-caption-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-caption-letter-spacing","",Is.letterSpacing,"0.396px"),lineHeight:xo.extend("--ft-typography-caption-line-height","",Is.lineHeight,"1.33"),textTransform:xo.extend("--ft-typography-caption-text-transform","",Is.textTransform,"inherit")},Js=xo.extend("--ft-typography-breadcrumb-font-family","",Es),Xs=xo.extend("--ft-typography-breadcrumb-font-size","",Is.fontSize,"10px"),Qs=xo.extend("--ft-typography-breadcrumb-font-weight","",Is.fontWeight,"normal"),tl=xo.extend("--ft-typography-breadcrumb-letter-spacing","",Is.letterSpacing,"0.33px"),el=xo.extend("--ft-typography-breadcrumb-line-height","",Is.lineHeight,"1.6"),ol=xo.extend("--ft-typography-breadcrumb-text-transform","",Is.textTransform,"inherit"),il=xo.extend("--ft-typography-overline-font-family","",Es),rl=xo.extend("--ft-typography-overline-font-size","",Is.fontSize,"10px"),nl=xo.extend("--ft-typography-overline-font-weight","",Is.fontWeight,"normal"),al=xo.extend("--ft-typography-overline-letter-spacing","",Is.letterSpacing,"1.5px"),sl=xo.extend("--ft-typography-overline-line-height","",Is.lineHeight,"1.6"),ll=xo.extend("--ft-typography-overline-text-transform","",Is.textTransform,"uppercase"),cl={fontFamily:xo.extend("--ft-typography-button-font-family","",Es),fontSize:xo.extend("--ft-typography-button-font-size","",Is.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",Is.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",Is.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",Is.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",Is.textTransform,"uppercase")},dl=ft`
288
+ `;const Es=xo.extend("--ft-typography-font-family","",Si.titleFont),ks=xo.extend("--ft-typography-font-family","",Si.contentFont),Is={fontFamily:ks,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Rs={fontFamily:xo.extend("--ft-typography-title-font-family","",Es),fontSize:xo.extend("--ft-typography-title-font-size","",Is.fontSize,"20px"),fontWeight:xo.extend("--ft-typography-title-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-letter-spacing","",Is.letterSpacing,"0.15px"),lineHeight:xo.extend("--ft-typography-title-line-height","",Is.lineHeight,"1.2"),textTransform:xo.extend("--ft-typography-title-text-transform","",Is.textTransform,"inherit")},Ls={fontFamily:xo.extend("--ft-typography-title-dense-font-family","",Es),fontSize:xo.extend("--ft-typography-title-dense-font-size","",Is.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-title-dense-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-dense-letter-spacing","",Is.letterSpacing,"0.105px"),lineHeight:xo.extend("--ft-typography-title-dense-line-height","",Is.lineHeight,"1.7"),textTransform:xo.extend("--ft-typography-title-dense-text-transform","",Is.textTransform,"inherit")},Us=xo.extend("--ft-typography-subtitle1-font-family","",ks),_s=xo.extend("--ft-typography-subtitle1-font-size","",Is.fontSize,"16px"),As=xo.extend("--ft-typography-subtitle1-font-weight","",Is.fontWeight,"600"),Ws=xo.extend("--ft-typography-subtitle1-letter-spacing","",Is.letterSpacing,"0.144px"),Bs=xo.extend("--ft-typography-subtitle1-line-height","",Is.lineHeight,"1.5"),zs=xo.extend("--ft-typography-subtitle1-text-transform","",Is.textTransform,"inherit"),Ts=xo.extend("--ft-typography-subtitle2-font-family","",ks),Fs=xo.extend("--ft-typography-subtitle2-font-size","",Is.fontSize,"14px"),Ms=xo.extend("--ft-typography-subtitle2-font-weight","",Is.fontWeight,"normal"),Ds=xo.extend("--ft-typography-subtitle2-letter-spacing","",Is.letterSpacing,"0.098px"),Ps=xo.extend("--ft-typography-subtitle2-line-height","",Is.lineHeight,"1.7"),js=xo.extend("--ft-typography-subtitle2-text-transform","",Is.textTransform,"inherit"),Zs={fontFamily:xo.extend("--ft-typography-body1-font-family","",ks),fontSize:xo.extend("--ft-typography-body1-font-size","",Is.fontSize,"16px"),fontWeight:xo.extend("--ft-typography-body1-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body1-letter-spacing","",Is.letterSpacing,"0.496px"),lineHeight:xo.extend("--ft-typography-body1-line-height","",Is.lineHeight,"1.5"),textTransform:xo.extend("--ft-typography-body1-text-transform","",Is.textTransform,"inherit")},Hs=xo.extend("--ft-typography-body2-font-family","",ks),Ks=xo.extend("--ft-typography-body2-font-size","",Is.fontSize,"14px"),Gs=xo.extend("--ft-typography-body2-font-weight","",Is.fontWeight,"normal"),Vs=xo.extend("--ft-typography-body2-letter-spacing","",Is.letterSpacing,"0.252px"),qs=xo.extend("--ft-typography-body2-line-height","",Is.lineHeight,"1.4"),Ys=xo.extend("--ft-typography-body2-text-transform","",Is.textTransform,"inherit"),Js={fontFamily:xo.extend("--ft-typography-caption-font-family","",ks),fontSize:xo.extend("--ft-typography-caption-font-size","",Is.fontSize,"12px"),fontWeight:xo.extend("--ft-typography-caption-font-weight","",Is.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-caption-letter-spacing","",Is.letterSpacing,"0.396px"),lineHeight:xo.extend("--ft-typography-caption-line-height","",Is.lineHeight,"1.33"),textTransform:xo.extend("--ft-typography-caption-text-transform","",Is.textTransform,"inherit")},Xs=xo.extend("--ft-typography-breadcrumb-font-family","",ks),Qs=xo.extend("--ft-typography-breadcrumb-font-size","",Is.fontSize,"10px"),tl=xo.extend("--ft-typography-breadcrumb-font-weight","",Is.fontWeight,"normal"),el=xo.extend("--ft-typography-breadcrumb-letter-spacing","",Is.letterSpacing,"0.33px"),ol=xo.extend("--ft-typography-breadcrumb-line-height","",Is.lineHeight,"1.6"),il=xo.extend("--ft-typography-breadcrumb-text-transform","",Is.textTransform,"inherit"),rl=xo.extend("--ft-typography-overline-font-family","",ks),nl=xo.extend("--ft-typography-overline-font-size","",Is.fontSize,"10px"),al=xo.extend("--ft-typography-overline-font-weight","",Is.fontWeight,"normal"),sl=xo.extend("--ft-typography-overline-letter-spacing","",Is.letterSpacing,"1.5px"),ll=xo.extend("--ft-typography-overline-line-height","",Is.lineHeight,"1.6"),cl=xo.extend("--ft-typography-overline-text-transform","",Is.textTransform,"uppercase"),dl={fontFamily:xo.extend("--ft-typography-button-font-family","",ks),fontSize:xo.extend("--ft-typography-button-font-size","",Is.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",Is.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",Is.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",Is.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",Is.textTransform,"uppercase")},fl=ht`
288
289
  .ft-typography--title {
289
- font-family: ${ks.fontFamily};
290
- font-size: ${ks.fontSize};
291
- font-weight: ${ks.fontWeight};
292
- letter-spacing: ${ks.letterSpacing};
293
- line-height: ${ks.lineHeight};
294
- text-transform: ${ks.textTransform};
295
- }
296
- `,hl=ft`
297
- .ft-typography--title-dense {
298
290
  font-family: ${Rs.fontFamily};
299
291
  font-size: ${Rs.fontSize};
300
292
  font-weight: ${Rs.fontWeight};
@@ -302,85 +294,94 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
302
294
  line-height: ${Rs.lineHeight};
303
295
  text-transform: ${Rs.textTransform};
304
296
  }
305
- `,fl=ft`
297
+ `,hl=ht`
298
+ .ft-typography--title-dense {
299
+ font-family: ${Ls.fontFamily};
300
+ font-size: ${Ls.fontSize};
301
+ font-weight: ${Ls.fontWeight};
302
+ letter-spacing: ${Ls.letterSpacing};
303
+ line-height: ${Ls.lineHeight};
304
+ text-transform: ${Ls.textTransform};
305
+ }
306
+ `,ul=ht`
306
307
  .ft-typography--subtitle1 {
307
308
  font-family: ${Us};
308
- font-size: ${Ls};
309
- font-weight: ${_s};
310
- letter-spacing: ${As};
311
- line-height: ${Ws};
312
- text-transform: ${Ts};
309
+ font-size: ${_s};
310
+ font-weight: ${As};
311
+ letter-spacing: ${Ws};
312
+ line-height: ${Bs};
313
+ text-transform: ${zs};
313
314
  }
314
- `,ul=ft`
315
+ `,pl=ht`
315
316
  .ft-typography--subtitle2 {
316
- font-family: ${zs};
317
- font-size: ${Bs};
318
- font-weight: ${Fs};
317
+ font-family: ${Ts};
318
+ font-size: ${Fs};
319
+ font-weight: ${Ms};
319
320
  letter-spacing: ${Ds};
320
- line-height: ${Ms};
321
- text-transform: ${Ps};
321
+ line-height: ${Ps};
322
+ text-transform: ${js};
322
323
  }
323
324
 
324
- `,pl=ft`
325
+ `,gl=ht`
325
326
  .ft-typography--body1 {
326
- font-family: ${js.fontFamily};
327
- font-size: ${js.fontSize};
328
- font-weight: ${js.fontWeight};
329
- letter-spacing: ${js.letterSpacing};
330
- line-height: ${js.lineHeight};
331
- text-transform: ${js.textTransform};
332
- }
333
- `,gl=ft`
327
+ font-family: ${Zs.fontFamily};
328
+ font-size: ${Zs.fontSize};
329
+ font-weight: ${Zs.fontWeight};
330
+ letter-spacing: ${Zs.letterSpacing};
331
+ line-height: ${Zs.lineHeight};
332
+ text-transform: ${Zs.textTransform};
333
+ }
334
+ `,yl=ht`
334
335
  .ft-typography--body2 {
335
- font-family: ${Zs};
336
+ font-family: ${Hs};
336
337
  font-size: ${Ks};
337
- font-weight: ${Hs};
338
- letter-spacing: ${Gs};
339
- line-height: ${Vs};
340
- text-transform: ${qs};
338
+ font-weight: ${Gs};
339
+ letter-spacing: ${Vs};
340
+ line-height: ${qs};
341
+ text-transform: ${Ys};
341
342
  }
342
- `,yl=ft`
343
+ `,bl=ht`
343
344
  .ft-typography--caption {
344
- font-family: ${Ys.fontFamily};
345
- font-size: ${Ys.fontSize};
346
- font-weight: ${Ys.fontWeight};
347
- letter-spacing: ${Ys.letterSpacing};
348
- line-height: ${Ys.lineHeight};
349
- text-transform: ${Ys.textTransform};
350
- }
351
- `,bl=ft`
345
+ font-family: ${Js.fontFamily};
346
+ font-size: ${Js.fontSize};
347
+ font-weight: ${Js.fontWeight};
348
+ letter-spacing: ${Js.letterSpacing};
349
+ line-height: ${Js.lineHeight};
350
+ text-transform: ${Js.textTransform};
351
+ }
352
+ `,ml=ht`
352
353
  .ft-typography--breadcrumb {
353
- font-family: ${Js};
354
- font-size: ${Xs};
355
- font-weight: ${Qs};
356
- letter-spacing: ${tl};
357
- line-height: ${el};
358
- text-transform: ${ol};
359
- }
360
- `,ml=ft`
354
+ font-family: ${Xs};
355
+ font-size: ${Qs};
356
+ font-weight: ${tl};
357
+ letter-spacing: ${el};
358
+ line-height: ${ol};
359
+ text-transform: ${il};
360
+ }
361
+ `,vl=ht`
361
362
  .ft-typography--overline {
362
- font-family: ${il};
363
- font-size: ${rl};
364
- font-weight: ${nl};
365
- letter-spacing: ${al};
366
- line-height: ${sl};
367
- text-transform: ${ll};
368
- }
369
- `,vl=ft`
363
+ font-family: ${rl};
364
+ font-size: ${nl};
365
+ font-weight: ${al};
366
+ letter-spacing: ${sl};
367
+ line-height: ${ll};
368
+ text-transform: ${cl};
369
+ }
370
+ `,xl=ht`
370
371
  .ft-typography--button {
371
- font-family: ${cl.fontFamily};
372
- font-size: ${cl.fontSize};
373
- font-weight: ${cl.fontWeight};
374
- letter-spacing: ${cl.letterSpacing};
375
- line-height: ${cl.lineHeight};
376
- text-transform: ${cl.textTransform};
377
- }
378
- `,xl=ft`
372
+ font-family: ${dl.fontFamily};
373
+ font-size: ${dl.fontSize};
374
+ font-weight: ${dl.fontWeight};
375
+ letter-spacing: ${dl.letterSpacing};
376
+ line-height: ${dl.lineHeight};
377
+ text-transform: ${dl.textTransform};
378
+ }
379
+ `,wl=ht`
379
380
  .ft-typography {
380
381
  vertical-align: inherit;
381
382
  }
382
- `,wl=[Object.keys(qo).map((t=>function(t){const e=qo[t];return ft`
383
- .ft-typography--${ht(t)} {
383
+ `,Sl=[Object.keys(qo).map((t=>function(t){const e=qo[t];return ht`
384
+ .ft-typography--${ft(t)} {
384
385
  font-family: ${e.fontFamily};
385
386
  font-size: ${e.fontSize};
386
387
  font-weight: ${e.fontWeight};
@@ -388,7 +389,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
388
389
  line-height: ${e.lineHeight};
389
390
  text-transform: ${e.textCase};
390
391
  }
391
- `}(t)))],Ol={color:xo.extend("--ft-loader-color","",wi.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Sl=ft`
392
+ `}(t)))],Ol={color:xo.extend("--ft-loader-color","",Si.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Cl=ht`
392
393
  :host {
393
394
  line-height: 0;
394
395
  }
@@ -457,7 +458,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
457
458
  transform: translate(calc(0.35 * ${Ol.size}), 0);
458
459
  }
459
460
  }
460
- `,Cl={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Nl=ft`
461
+ `,Nl={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},$l=ht`
461
462
  :host, i.ft-icon {
462
463
  display: inline-flex;
463
464
  align-items: center;
@@ -466,14 +467,14 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
466
467
  }
467
468
 
468
469
  :host {
469
- width: ${Cl.size};
470
- height: ${Cl.size};
470
+ width: ${Nl.size};
471
+ height: ${Nl.size};
471
472
  }
472
473
 
473
474
  i.ft-icon {
474
475
  width: 100%;
475
476
  height: 100%;
476
- font-size: ${Cl.size};
477
+ font-size: ${Nl.size};
477
478
  line-height: 1;
478
479
  font-weight: normal;
479
480
  text-transform: none;
@@ -484,28 +485,28 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
484
485
  text-rendering: auto;
485
486
  -webkit-font-smoothing: antialiased;
486
487
  -moz-osx-font-smoothing: grayscale;
487
- vertical-align: ${Cl.verticalAlign};
488
+ vertical-align: ${Nl.verticalAlign};
488
489
  }
489
490
 
490
491
  i.ft-icon.ft-icon--fluid-topics {
491
- font-family: ${Cl.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
492
+ font-family: ${Nl.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
492
493
 
493
494
  /* Ugly fix because font is broken */
494
- font-size: calc(0.75 * ${Cl.size});
495
- line-height: ${Cl.size};
495
+ font-size: calc(0.75 * ${Nl.size});
496
+ line-height: ${Nl.size};
496
497
  position: relative;
497
498
  top: -4%;
498
499
  justify-content: center;
499
500
  }
500
501
 
501
502
  .ft-icon--file-format {
502
- font-family: ${Cl.fileFormatFontFamily}, ft-mime, sans-serif;
503
+ font-family: ${Nl.fileFormatFontFamily}, ft-mime, sans-serif;
503
504
  }
504
505
 
505
506
  .ft-icon--material {
506
- font-family: ${Cl.materialFontFamily}, "Material Icons", sans-serif;
507
+ font-family: ${Nl.materialFontFamily}, "Material Icons", sans-serif;
507
508
  }
508
- `,$l=xo.extend("--ft-button-color","",wi.colorPrimary),El={backgroundColor:xo.extend("--ft-button-background-color","",wi.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",wi.borderRadiusL),color:$l,fontSize:xo.extend("--ft-button-font-size","",cl.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",$l),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(wi.colorOpacityDisabled,"Design system")},Il=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",wi.colorOnPrimary)),kl={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",wi.colorPrimary)),color:Il,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Il)},Rl=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",wi.borderRadiusM)),Ul=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ll=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),_l=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Al=[ft`
509
+ `,El=xo.extend("--ft-button-color","",Si.colorPrimary),kl={backgroundColor:xo.extend("--ft-button-background-color","",Si.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Si.borderRadiusL),color:El,fontSize:xo.extend("--ft-button-font-size","",dl.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",El),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Si.colorOpacityDisabled,"Design system")},Il=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Si.colorOnPrimary)),Rl={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Si.colorPrimary)),color:Il,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Il)},Ll=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Si.borderRadiusM)),Ul=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),_l=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Al=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Wl=[ht`
509
510
  :host {
510
511
  display: inline-block;
511
512
  max-width: 100%;
@@ -516,7 +517,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
516
517
  box-shadow: 0px 0px 0px transparent;
517
518
  border: 0px solid transparent;
518
519
  text-shadow: 0px 0px 0px transparent;
519
- font-size: ${El.fontSize};
520
+ font-size: ${kl.fontSize};
520
521
  }
521
522
 
522
523
  button:hover {
@@ -545,31 +546,31 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
545
546
  border: none;
546
547
  pointer-events: auto;
547
548
 
548
- --ft-button-internal-line-height: max(calc(${El.fontSize} + 2px), ${El.iconSize});
549
- --ft-button-internal-color: ${El.color};
550
- ${wo(Cl.size,El.iconSize)};
551
- ${wo(ms.color,El.rippleColor)};
549
+ --ft-button-internal-line-height: max(calc(${kl.fontSize} + 2px), ${kl.iconSize});
550
+ --ft-button-internal-color: ${kl.color};
551
+ ${wo(Nl.size,kl.iconSize)};
552
+ ${wo(vs.color,kl.rippleColor)};
552
553
 
553
- border-radius: ${El.borderRadius};
554
- padding: ${El.verticalPadding} ${El.horizontalPadding};
555
- background-color: ${El.backgroundColor};
554
+ border-radius: ${kl.borderRadius};
555
+ padding: ${kl.verticalPadding} ${kl.horizontalPadding};
556
+ background-color: ${kl.backgroundColor};
556
557
  color: var(--ft-button-internal-color);
557
558
  -webkit-mask-image: radial-gradient(white, black);
558
559
  }
559
560
 
560
561
  .ft-button.ft-button--outlined {
561
562
  border: 1px solid var(--ft-button-internal-color);
562
- padding: calc(${El.verticalPadding} - 1px) calc(${El.horizontalPadding} - 1px);
563
+ padding: calc(${kl.verticalPadding} - 1px) calc(${kl.horizontalPadding} - 1px);
563
564
  }
564
565
 
565
566
  .ft-button.ft-button--dense {
566
- padding: ${Ul} ${Ll};
567
- border-radius: ${Rl};
568
- gap: ${_l};
567
+ padding: ${Ul} ${_l};
568
+ border-radius: ${Ll};
569
+ gap: ${Al};
569
570
  }
570
571
 
571
572
  .ft-button.ft-button--dense.ft-button--outlined {
572
- padding: calc(${Ul} - 1px) calc(${Ll} - 1px);
573
+ padding: calc(${Ul} - 1px) calc(${_l} - 1px);
573
574
  }
574
575
 
575
576
  .ft-button:not([disabled]):hover {
@@ -577,7 +578,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
577
578
  }
578
579
 
579
580
  .ft-button--round {
580
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${El.verticalPadding});
581
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${kl.verticalPadding});
581
582
  }
582
583
 
583
584
  .ft-button--round.ft-button--dense {
@@ -586,13 +587,13 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
586
587
 
587
588
  .ft-button[disabled] {
588
589
  filter: grayscale(1);
589
- opacity: ${El.opacityDisabled};
590
+ opacity: ${kl.opacityDisabled};
590
591
  }
591
592
 
592
593
  .ft-button.ft-button--primary {
593
- background-color: ${kl.backgroundColor};
594
- --ft-button-internal-color: ${kl.color};
595
- ${wo(ms.color,kl.rippleColor)};
594
+ background-color: ${Rl.backgroundColor};
595
+ --ft-button-internal-color: ${Rl.color};
596
+ ${wo(vs.color,Rl.rippleColor)};
596
597
  }
597
598
 
598
599
  .ft-button:focus {
@@ -605,13 +606,13 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
605
606
  white-space: nowrap;
606
607
  text-overflow: ellipsis;
607
608
  display: block;
608
- margin: 0 ${El.iconPadding};
609
- ${wo(cl.fontSize,"1em")};
610
- ${wo(cl.lineHeight,"var(--ft-button-internal-line-height)")};
609
+ margin: 0 ${kl.iconPadding};
610
+ ${wo(dl.fontSize,"1em")};
611
+ ${wo(dl.lineHeight,"var(--ft-button-internal-line-height)")};
611
612
  }
612
613
 
613
614
  .ft-button--dense .ft-button--label {
614
- margin: 0 ${_l};
615
+ margin: 0 ${Al};
615
616
  }
616
617
 
617
618
  .ft-button--label[hidden] {
@@ -624,12 +625,12 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
624
625
  }
625
626
 
626
627
  .ft-button--label[hidden] + ft-icon {
627
- margin: 0 calc(${El.horizontalPadding} * -1);
628
- padding: 0 ${El.verticalPadding};
628
+ margin: 0 calc(${kl.horizontalPadding} * -1);
629
+ padding: 0 ${kl.verticalPadding};
629
630
  }
630
631
 
631
632
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
632
- margin: 0 calc(${Ll} * -1);
633
+ margin: 0 calc(${_l} * -1);
633
634
  padding: 0 ${Ul};
634
635
  }
635
636
 
@@ -639,10 +640,10 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
639
640
  }
640
641
 
641
642
  ft-loader {
642
- ${wo(Ol.size,El.iconSize)};
643
+ ${wo(Ol.size,kl.iconSize)};
643
644
  ${wo(Ol.color,"var(--ft-button-internal-color)")};
644
645
  }
645
- `,Vr],Wl={textColor:xo.extend("--ft-switch-text-color","",wi.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",wi.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",wi.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",wi.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",wi.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",wi.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",cl.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",wi.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",wi.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",wi.colorPrimary)},Tl={feedbackInputMinWidth:xo.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:xo.external(wi.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xo.extend("--ft-reader-feedback-send-feedback-color","",wi.colorOnPrimary),sendFeedbackBackgroundColor:xo.extend("--ft-reader-feedback-send-feedback-background-color","",wi.colorPrimary),filledRatingColor:xo.extend("--ft-reader-feedback-filled-rating-color","",wi.colorPrimary),emptyRatingColor:xo.extend("--ft-reader-feedback-empty-rating-color","",wi.colorOnSurfaceMedium),mainTitleFontSize:xo.external(ks.fontSize,"Typography"),sectionTitleFontSize:xo.external(Rs.fontSize,"Typography"),starsBackgroundColor:xo.create("--ft-reader-feedback-stars-background-color","","COLOR",wi.colorSurface)},zl=ft`
646
+ `,qr],Bl={textColor:xo.extend("--ft-switch-text-color","",Si.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",Si.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",Si.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",Si.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",Si.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",Si.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",dl.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",Si.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",Si.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",Si.colorPrimary)},zl={feedbackInputMinWidth:xo.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:xo.external(Si.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xo.extend("--ft-reader-feedback-send-feedback-color","",Si.colorOnPrimary),sendFeedbackBackgroundColor:xo.extend("--ft-reader-feedback-send-feedback-background-color","",Si.colorPrimary),filledRatingColor:xo.extend("--ft-reader-feedback-filled-rating-color","",Si.colorPrimary),emptyRatingColor:xo.extend("--ft-reader-feedback-empty-rating-color","",Si.colorOnSurfaceMedium),mainTitleFontSize:xo.external(Rs.fontSize,"Typography"),sectionTitleFontSize:xo.external(Ls.fontSize,"Typography"),starsBackgroundColor:xo.create("--ft-reader-feedback-stars-background-color","","COLOR",Si.colorSurface)},Tl=ht`
646
647
  .ft-reader-feedback {
647
648
  box-sizing: border-box;
648
649
  display: flex;
@@ -655,7 +656,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
655
656
  flex-direction: row;
656
657
  align-items: center;
657
658
  margin-left: -6px;
658
- ${wo(El.backgroundColor,Tl.starsBackgroundColor)}
659
+ ${wo(kl.backgroundColor,zl.starsBackgroundColor)}
659
660
  }
660
661
 
661
662
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -668,14 +669,14 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
668
669
  }
669
670
 
670
671
  .ft-reader-feedback--rating {
671
- ${wo(El.color,Tl.emptyRatingColor)};
672
- ${wo(El.rippleColor,Tl.filledRatingColor)};
673
- ${wo(Wl.textColor,Tl.emptyRatingColor)};
674
- ${wo(Wl.selectedTextColor,Tl.filledRatingColor)};
672
+ ${wo(kl.color,zl.emptyRatingColor)};
673
+ ${wo(kl.rippleColor,zl.filledRatingColor)};
674
+ ${wo(Bl.textColor,zl.emptyRatingColor)};
675
+ ${wo(Bl.selectedTextColor,zl.filledRatingColor)};
675
676
  }
676
677
 
677
678
  .ft-reader-feedback--rating .ft-reader-feedback--active {
678
- ${wo(El.color,Tl.filledRatingColor)};
679
+ ${wo(kl.color,zl.filledRatingColor)};
679
680
  }
680
681
 
681
682
  .ft-reader-feedback--feedback {
@@ -683,16 +684,16 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
683
684
  }
684
685
 
685
686
  .ft-reader-feedback--rating-date {
686
- color: ${Tl.ratedDateColor};
687
+ color: ${zl.ratedDateColor};
687
688
  }
688
689
 
689
690
  .ft-reader-feedback--feedback ft-text-area {
690
- min-width: ${Tl.feedbackInputMinWidth};
691
+ min-width: ${zl.feedbackInputMinWidth};
691
692
  }
692
693
 
693
694
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
694
- ${wo(El.color,Tl.sendFeedbackColor)};
695
- ${wo(El.backgroundColor,Tl.sendFeedbackBackgroundColor)};
695
+ ${wo(kl.color,zl.sendFeedbackColor)};
696
+ ${wo(kl.backgroundColor,zl.sendFeedbackBackgroundColor)};
696
697
  }
697
698
 
698
699
  [part="buttons-container"] {
@@ -703,14 +704,14 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
703
704
  * @license
704
705
  * Copyright 2020 Google LLC
705
706
  * SPDX-License-Identifier: BSD-3-Clause
706
- */,Bl=Symbol.for(""),Fl=t=>{if(t?.r===Bl)return t?._$litStatic$},Dl=t=>({_$litStatic$:t,r:Bl}),Ml=new Map,Pl=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Fl(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=Ml.get(t))&&(a.raw=a,Ml.set(t,e=a)),o=s}return t(e,...o)})(P);var jl;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(jl||(jl={}));var Zl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Kl extends Fr{constructor(){super(...arguments),this.variant=jl.body1}render(){return this.element?Pl`
707
+ */,Fl=Symbol.for(""),Ml=t=>{if(t?.r===Fl)return t?._$litStatic$},Dl=t=>({_$litStatic$:t,r:Fl}),Pl=new Map,jl=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Ml(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=Pl.get(t))&&(a.raw=a,Pl.set(t,e=a)),o=s}return t(e,...o)})(P);var Zl;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Zl||(Zl={}));var Hl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Kl extends Mr{constructor(){super(...arguments),this.variant=Zl.body1}render(){return this.element?jl`
707
708
  <${Dl(this.element)}
708
709
  class="ft-typography ft-typography--${this.variant}">
709
710
  <slot></slot>
710
711
  </${Dl(this.element)}>
711
- `:Pl`
712
+ `:jl`
712
713
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
713
- `}}Kl.styles=[dl,hl,fl,ul,pl,gl,yl,bl,ml,vl,xl,...wl],Zl([Oe()],Kl.prototype,"element",void 0),Zl([Oe()],Kl.prototype,"variant",void 0),go("ft-typography")(Kl);var Hl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gl extends Fr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new so(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 so(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
714
+ `}}Kl.styles=[fl,hl,ul,pl,gl,yl,bl,ml,vl,xl,wl,...Sl],Hl([Se()],Kl.prototype,"element",void 0),Hl([Se()],Kl.prototype,"variant",void 0),go("ft-typography")(Kl);var Gl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vl extends Mr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new so(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 so(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
714
715
  <style>
715
716
  .ft-ripple .ft-ripple--effect {
716
717
  left: ${this.originX}px;
@@ -721,7 +722,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
721
722
  <div class="ft-ripple--background"></div>
722
723
  <div class="ft-ripple--effect"></div>
723
724
  </div>
724
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Gl.elementDefinitions={},Gl.styles=Ns,Hl([Oe({type:Boolean})],Gl.prototype,"primary",void 0),Hl([Oe({type:Boolean})],Gl.prototype,"secondary",void 0),Hl([Oe({type:Boolean})],Gl.prototype,"unbounded",void 0),Hl([Oe({type:Boolean})],Gl.prototype,"activated",void 0),Hl([Oe({type:Boolean})],Gl.prototype,"selected",void 0),Hl([Oe({type:Boolean})],Gl.prototype,"disabled",void 0),Hl([Se()],Gl.prototype,"hovered",void 0),Hl([Se()],Gl.prototype,"focused",void 0),Hl([Se()],Gl.prototype,"pressed",void 0),Hl([Se()],Gl.prototype,"rippling",void 0),Hl([Se()],Gl.prototype,"originX",void 0),Hl([Se()],Gl.prototype,"originY",void 0),Hl([$e(".ft-ripple")],Gl.prototype,"ripple",void 0),Hl([$e(".ft-ripple--effect")],Gl.prototype,"rippleEffect",void 0),go("ft-ripple")(Gl);const Vl=xo.create("--ft-tooltip-distance","","SIZE","4px"),ql=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Yl=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Jl=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Xl=xo.external(wi.borderRadiusS,"Design system"),Ql=xo.create("--ft-tooltip-max-width","","SIZE","150px"),tc=ft`
725
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Vl.elementDefinitions={},Vl.styles=$s,Gl([Se({type:Boolean})],Vl.prototype,"primary",void 0),Gl([Se({type:Boolean})],Vl.prototype,"secondary",void 0),Gl([Se({type:Boolean})],Vl.prototype,"unbounded",void 0),Gl([Se({type:Boolean})],Vl.prototype,"activated",void 0),Gl([Se({type:Boolean})],Vl.prototype,"selected",void 0),Gl([Se({type:Boolean})],Vl.prototype,"disabled",void 0),Gl([Oe()],Vl.prototype,"hovered",void 0),Gl([Oe()],Vl.prototype,"focused",void 0),Gl([Oe()],Vl.prototype,"pressed",void 0),Gl([Oe()],Vl.prototype,"rippling",void 0),Gl([Oe()],Vl.prototype,"originX",void 0),Gl([Oe()],Vl.prototype,"originY",void 0),Gl([$e(".ft-ripple")],Vl.prototype,"ripple",void 0),Gl([$e(".ft-ripple--effect")],Vl.prototype,"rippleEffect",void 0),go("ft-ripple")(Vl);const ql=xo.create("--ft-tooltip-distance","","SIZE","4px"),Yl=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Jl=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Xl=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Ql=xo.external(Si.borderRadiusS,"Design system"),tc=xo.create("--ft-tooltip-max-width","","SIZE","150px"),ec=ht`
725
726
  .ft-tooltip--container {
726
727
  display: block;
727
728
  }
@@ -736,21 +737,21 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
736
737
  box-sizing: border-box;
737
738
  overflow: hidden;
738
739
  width: max-content;
739
- max-width: ${Ql};
740
+ max-width: ${tc};
740
741
  text-align: center;
741
- padding: ${Vl};
742
- z-index: ${Jl};
742
+ padding: ${ql};
743
+ z-index: ${Xl};
743
744
  }
744
745
 
745
746
  .ft-tooltip--content {
746
747
  padding: 4px 8px;
747
- border-radius: ${Xl};
748
- background-color: ${Yl};
749
- color: ${ql};
748
+ border-radius: ${Ql};
749
+ background-color: ${Jl};
750
+ color: ${Yl};
750
751
  position: relative;
751
752
  word-break: break-word;
752
753
  }
753
- `;var ec,oc,ic,rc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nc extends Fr{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 so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
754
+ `;var oc,ic,rc,nc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ac extends Mr{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 so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
754
755
  <div part="container"
755
756
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
756
757
  @mouseenter=${this.onHover}
@@ -768,12 +769,12 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
768
769
  </div>
769
770
  </div>
770
771
  </div>
771
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ir(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}nc.elementDefinitions={"ft-typography":Kl},nc.styles=tc,rc([Oe()],nc.prototype,"text",void 0),rc([Oe({type:Boolean})],nc.prototype,"manual",void 0),rc([Oe({type:Boolean})],nc.prototype,"inline",void 0),rc([Oe({type:Number})],nc.prototype,"delay",void 0),rc([Oe()],nc.prototype,"position",void 0),rc([ke()],nc.prototype,"slotNodes",void 0),rc([$e(".ft-tooltip--container")],nc.prototype,"container",void 0),rc([$e(".ft-tooltip")],nc.prototype,"tooltip",void 0),rc([$e(".ft-tooltip--content")],nc.prototype,"tooltipContent",void 0),rc([Se()],nc.prototype,"visible",void 0),rc([Ce({passive:!0})],nc.prototype,"onTouch",null),rc([Ce({passive:!0})],nc.prototype,"onHover",null),rc([Ce({passive:!0})],nc.prototype,"onOut",null),rc([Ce({passive:!0})],nc.prototype,"onClick",null),go("ft-tooltip")(nc),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",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="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;"}(ec||(ec={})),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;"}(oc||(oc={})),new Map([...["abw"].map((t=>[t,oc.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,oc.AUDIO])),...["avi"].map((t=>[t,oc.AVI])),...["chm","xhs"].map((t=>[t,oc.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,oc.CODE])),...["csv"].map((t=>[t,oc.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oc.DITA])),...["epub"].map((t=>[t,oc.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oc.EXCEL])),...["flac"].map((t=>[t,oc.FLAC])),...["gif"].map((t=>[t,oc.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oc.GZIP])),...["html","htm","xhtml"].map((t=>[t,oc.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,oc.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oc.JPEG])),...["json"].map((t=>[t,oc.JSON])),...["m4a","m4p"].map((t=>[t,oc.M4A])),...["mov","qt"].map((t=>[t,oc.MOV])),...["mp3"].map((t=>[t,oc.MP3])),...["mp4","m4v"].map((t=>[t,oc.MP4])),...["ogg","oga"].map((t=>[t,oc.OGG])),...["pdf","ps"].map((t=>[t,oc.PDF])),...["png"].map((t=>[t,oc.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oc.POWERPOINT])),...["rar"].map((t=>[t,oc.RAR])),...["stp"].map((t=>[t,oc.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oc.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,oc.VIDEO])),...["wav"].map((t=>[t,oc.WAV])),...["wma"].map((t=>[t,oc.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oc.WORD])),...["xml","xsl","rdf"].map((t=>[t,oc.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oc.YAML])),...["zip"].map((t=>[t,oc.ZIP]))]),oc.ABW,oc.AUDIO,oc.AVI,oc.CHM,oc.CODE,oc.CSV,oc.DITA,oc.EPUB,oc.EXCEL,oc.FLAC,oc.GIF,oc.GZIP,oc.HTML,oc.IMAGE,oc.JPEG,oc.JSON,oc.M4A,oc.MOV,oc.MP3,oc.MP4,oc.OGG,oc.PDF,oc.PNG,oc.POWERPOINT,oc.RAR,oc.STP,oc.TEXT,oc.UNKNOWN,oc.VIDEO,oc.WAV,oc.WMA,oc.WORD,oc.XML,oc.YAML,oc.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ic||(ic={}));var ac=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sc extends Fr{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(ic).includes(this.variant)?this.variant:ic.fluid_topics,e=t!==ic.material||!!this.value;return Jt`
772
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ir(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ac.elementDefinitions={"ft-typography":Kl},ac.styles=ec,nc([Se()],ac.prototype,"text",void 0),nc([Se({type:Boolean})],ac.prototype,"manual",void 0),nc([Se({type:Boolean})],ac.prototype,"inline",void 0),nc([Se({type:Number})],ac.prototype,"delay",void 0),nc([Se()],ac.prototype,"position",void 0),nc([Ie()],ac.prototype,"slotNodes",void 0),nc([$e(".ft-tooltip--container")],ac.prototype,"container",void 0),nc([$e(".ft-tooltip")],ac.prototype,"tooltip",void 0),nc([$e(".ft-tooltip--content")],ac.prototype,"tooltipContent",void 0),nc([Oe()],ac.prototype,"visible",void 0),nc([Ce({passive:!0})],ac.prototype,"onTouch",null),nc([Ce({passive:!0})],ac.prototype,"onHover",null),nc([Ce({passive:!0})],ac.prototype,"onOut",null),nc([Ce({passive:!0})],ac.prototype,"onClick",null),go("ft-tooltip")(ac),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",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="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;"}(oc||(oc={})),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;"}(ic||(ic={})),new Map([...["abw"].map((t=>[t,ic.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,ic.AUDIO])),...["avi"].map((t=>[t,ic.AVI])),...["chm","xhs"].map((t=>[t,ic.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,ic.CODE])),...["csv"].map((t=>[t,ic.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ic.DITA])),...["epub"].map((t=>[t,ic.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ic.EXCEL])),...["flac"].map((t=>[t,ic.FLAC])),...["gif"].map((t=>[t,ic.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ic.GZIP])),...["html","htm","xhtml"].map((t=>[t,ic.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,ic.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ic.JPEG])),...["json"].map((t=>[t,ic.JSON])),...["m4a","m4p"].map((t=>[t,ic.M4A])),...["mov","qt"].map((t=>[t,ic.MOV])),...["mp3"].map((t=>[t,ic.MP3])),...["mp4","m4v"].map((t=>[t,ic.MP4])),...["ogg","oga"].map((t=>[t,ic.OGG])),...["pdf","ps"].map((t=>[t,ic.PDF])),...["png"].map((t=>[t,ic.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ic.POWERPOINT])),...["rar"].map((t=>[t,ic.RAR])),...["stp"].map((t=>[t,ic.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ic.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,ic.VIDEO])),...["wav"].map((t=>[t,ic.WAV])),...["wma"].map((t=>[t,ic.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ic.WORD])),...["xml","xsl","rdf"].map((t=>[t,ic.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ic.YAML])),...["zip"].map((t=>[t,ic.ZIP]))]),ic.ABW,ic.AUDIO,ic.AVI,ic.CHM,ic.CODE,ic.CSV,ic.DITA,ic.EPUB,ic.EXCEL,ic.FLAC,ic.GIF,ic.GZIP,ic.HTML,ic.IMAGE,ic.JPEG,ic.JSON,ic.M4A,ic.MOV,ic.MP3,ic.MP4,ic.OGG,ic.PDF,ic.PNG,ic.POWERPOINT,ic.RAR,ic.STP,ic.TEXT,ic.UNKNOWN,ic.VIDEO,ic.WAV,ic.WMA,ic.WORD,ic.XML,ic.YAML,ic.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(rc||(rc={}));var sc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class lc extends Mr{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(rc).includes(this.variant)?this.variant:rc.fluid_topics,e=t!==rc.material||!!this.value;return Jt`
772
773
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
773
774
  ${Je(this.resolvedIcon)}
774
775
  <slot ?hidden=${e}></slot>
775
776
  </i>
776
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ic.file_format:this.resolvedIcon=null!==(t=oc[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ic.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=ec[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sc.elementDefinitions={},sc.styles=Nl,ac([Oe()],sc.prototype,"variant",void 0),ac([Oe()],sc.prototype,"value",void 0),ac([Se()],sc.prototype,"resolvedIcon",void 0),ac([$e("slot")],sc.prototype,"slottedContent",void 0),go("ft-icon")(sc);const lc={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",wi.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",wi.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},cc=ft`
777
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case rc.file_format:this.resolvedIcon=null!==(t=ic[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case rc.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=oc[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}lc.elementDefinitions={},lc.styles=$l,sc([Se()],lc.prototype,"variant",void 0),sc([Se()],lc.prototype,"value",void 0),sc([Oe()],lc.prototype,"resolvedIcon",void 0),sc([$e("slot")],lc.prototype,"slottedContent",void 0),go("ft-icon")(lc);const cc={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",Si.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",Si.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},dc=ht`
777
778
  .ft-switch-option {
778
779
  position: relative;
779
780
  display: inline-block;
@@ -787,20 +788,20 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
787
788
  }
788
789
 
789
790
  .ft-switch-option--content {
790
- --ft-switch-option-internal-line-height: calc(${Wl.fontSize} + 2px);
791
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Wl.iconSize});
791
+ --ft-switch-option-internal-line-height: calc(${Bl.fontSize} + 2px);
792
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Bl.iconSize});
792
793
 
793
794
  border-style: solid;
794
- border-color: ${Wl.borderColor};
795
- border-width: ${lc.borderWidthVertical} ${lc.borderWidthRight} ${lc.borderWidthVertical} ${lc.borderWidthLeft};
796
- border-radius: ${lc.borderRadiusLeft} ${lc.borderRadiusRight} ${lc.borderRadiusRight} ${lc.borderRadiusLeft};
795
+ border-color: ${Bl.borderColor};
796
+ border-width: ${cc.borderWidthVertical} ${cc.borderWidthRight} ${cc.borderWidthVertical} ${cc.borderWidthLeft};
797
+ border-radius: ${cc.borderRadiusLeft} ${cc.borderRadiusRight} ${cc.borderRadiusRight} ${cc.borderRadiusLeft};
797
798
  display: flex;
798
799
  align-items: center;
799
800
  justify-content: center;
800
801
  overflow: hidden;
801
- ${wo(Cl.size,Wl.iconSize)};
802
+ ${wo(Nl.size,Bl.iconSize)};
802
803
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
803
- background-color: ${Wl.backgroundColor};
804
+ background-color: ${Bl.backgroundColor};
804
805
  -webkit-mask-image: radial-gradient(white, black);
805
806
  }
806
807
 
@@ -809,28 +810,28 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
809
810
  }
810
811
 
811
812
  .ft-switch-option--selected .ft-switch-option--content:before {
812
- background-color: ${Wl.selectedBackgroundColor};
813
- border-radius: ${lc.borderRadiusLeft} ${lc.borderRadiusRight} ${lc.borderRadiusRight} ${lc.borderRadiusLeft};
813
+ background-color: ${Bl.selectedBackgroundColor};
814
+ border-radius: ${cc.borderRadiusLeft} ${cc.borderRadiusRight} ${cc.borderRadiusRight} ${cc.borderRadiusLeft};
814
815
  position: absolute;
815
816
  inset: 0;
816
817
  content: "";
817
818
  z-index: 1;
818
- opacity: ${wi.opacityPrimaryOnSurfaceSelected};
819
+ opacity: ${Si.opacityPrimaryOnSurfaceSelected};
819
820
  }
820
821
 
821
822
  .ft-switch-option--label {
822
- color: ${Wl.textColor};
823
+ color: ${Bl.textColor};
823
824
  overflow: hidden;
824
825
  white-space: nowrap;
825
826
  text-overflow: ellipsis;
826
827
  display: block;
827
828
  margin: 0 8px;
828
- ${wo(cl.fontSize,Wl.fontSize)};
829
- ${wo(cl.lineHeight,"var(--ft-switch-option-internal-content-height)")}
829
+ ${wo(dl.fontSize,Bl.fontSize)};
830
+ ${wo(dl.lineHeight,"var(--ft-switch-option-internal-content-height)")}
830
831
  }
831
832
 
832
833
  .ft-switch-option--selected .ft-switch-option--label {
833
- color: ${Wl.selectedTextColor};
834
+ color: ${Bl.selectedTextColor};
834
835
  }
835
836
 
836
837
  .ft-switch-option--label[hidden] {
@@ -838,7 +839,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
838
839
  }
839
840
 
840
841
  .ft-switch-option--ripple {
841
- ${wo(ms.color,Wl.rippleColor)};
842
+ ${wo(vs.color,Bl.rippleColor)};
842
843
  }
843
844
 
844
845
  ft-icon, ft-ripple, ft-typography {
@@ -851,20 +852,20 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
851
852
 
852
853
  ft-icon {
853
854
  flex-shrink: 0;
854
- color: ${Wl.iconColor};
855
+ color: ${Bl.iconColor};
855
856
  }
856
857
 
857
858
  .ft-switch-option--selected ft-icon {
858
- color: ${Wl.selectedTextColor};
859
+ color: ${Bl.selectedTextColor};
859
860
  }
860
- `;var dc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hc extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fc extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class uc extends Fr{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new fc(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Jt`
861
+ `;var fc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hc extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class uc extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class pc extends Mr{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new uc(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Jt`
861
862
  <label part="label" for="input" class=${Ze(t)}
862
863
  @click=${this.onChange}>
863
864
  <div class="ft-switch-option--content">
864
865
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
865
866
  <ft-typography part="text"
866
867
  variant="button"
867
- class="ft-switch-option--label ${ds?"ft-safari-ellipsis-fix":""}"
868
+ class="ft-switch-option--label ${fs?"ft-safari-ellipsis-fix":""}"
868
869
  ?hidden=${!this.hasTextContent()}>
869
870
  <slot @slotchange=${this.onSlotchange}></slot>
870
871
  </ft-typography>
@@ -881,21 +882,21 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
881
882
  </ft-tooltip>
882
883
  `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new hc(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Jt`
883
884
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
884
- `:te}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}uc.elementDefinitions={"ft-ripple":Gl,"ft-typography":Kl,"ft-tooltip":nc,"ft-icon":sc},uc.styles=[Yr,cc],dc([Oe()],uc.prototype,"value",void 0),dc([Oe()],uc.prototype,"icon",void 0),dc([Oe()],uc.prototype,"iconVariant",void 0),dc([Oe()],uc.prototype,"label",void 0),dc([Oe()],uc.prototype,"tooltipPosition",void 0),dc([Oe({type:Boolean,reflect:!0})],uc.prototype,"selected",void 0),dc([Oe({type:Boolean})],uc.prototype,"trailingIcon",void 0),dc([Oe({type:Boolean})],uc.prototype,"unselectable",void 0),dc([$e(".ft-switch-option--content slot")],uc.prototype,"slottedContent",void 0),dc([$e(".ft-switch-option--input")],uc.prototype,"input",void 0);var pc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gc extends CustomEvent{constructor(t){super("change",{detail:t})}}class yc extends Fr{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Jt`
885
+ `:te}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}pc.elementDefinitions={"ft-ripple":Vl,"ft-typography":Kl,"ft-tooltip":ac,"ft-icon":lc},pc.styles=[Jr,dc],fc([Se()],pc.prototype,"value",void 0),fc([Se()],pc.prototype,"icon",void 0),fc([Se()],pc.prototype,"iconVariant",void 0),fc([Se()],pc.prototype,"label",void 0),fc([Se()],pc.prototype,"tooltipPosition",void 0),fc([Se({type:Boolean,reflect:!0})],pc.prototype,"selected",void 0),fc([Se({type:Boolean})],pc.prototype,"trailingIcon",void 0),fc([Se({type:Boolean})],pc.prototype,"unselectable",void 0),fc([$e(".ft-switch-option--content slot")],pc.prototype,"slottedContent",void 0),fc([$e(".ft-switch-option--input")],pc.prototype,"input",void 0);var gc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class yc extends CustomEvent{constructor(t){super("change",{detail:t})}}class bc extends Mr{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Jt`
885
886
  <div @keydown=${this.onKeyDown} tabindex="0" class="${Ze(t)}">
886
887
  <slot @slotchange=${this.onSlotchange}
887
888
  @option-change=${this.onOptionChangeByScript}
888
889
  @option-change-by-user=${this.onOptionChangeByUser}
889
890
  ></slot>
890
891
  </div>
891
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof uc&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new gc(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}yc.elementDefinitions={},yc.styles=ft`
892
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof pc&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new yc(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}bc.elementDefinitions={},bc.styles=ht`
892
893
  :host {
893
894
  display: inline-block;
894
895
  }
895
896
 
896
897
  .ft-switch {
897
- border-radius: ${Wl.borderRadius};
898
- outline-color: ${Wl.outlineColor};
898
+ border-radius: ${Bl.borderRadius};
899
+ outline-color: ${Bl.outlineColor};
899
900
  }
900
901
 
901
902
  .ft-switch slot {
@@ -904,25 +905,25 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
904
905
  }
905
906
 
906
907
  .ft-switch slot::slotted(ft-switch-option) {
907
- ${wo(lc.borderRadiusLeft,"0")};
908
- ${wo(lc.borderRadiusRight,"0")};
909
- ${wo(lc.borderWidthLeft,"0")};
908
+ ${wo(cc.borderRadiusLeft,"0")};
909
+ ${wo(cc.borderRadiusRight,"0")};
910
+ ${wo(cc.borderWidthLeft,"0")};
910
911
  }
911
912
 
912
913
  .ft-switch slot::slotted(ft-switch-option:first-child) {
913
- ${wo(lc.borderRadiusLeft,Wl.borderRadius)};
914
- ${wo(lc.borderWidthLeft,"1px")};
914
+ ${wo(cc.borderRadiusLeft,Bl.borderRadius)};
915
+ ${wo(cc.borderWidthLeft,"1px")};
915
916
  }
916
917
 
917
918
  .ft-switch slot::slotted(ft-switch-option:last-child) {
918
- ${wo(lc.borderRadiusRight,Wl.borderRadius)};
919
+ ${wo(cc.borderRadiusRight,Bl.borderRadius)};
919
920
  }
920
921
 
921
922
  .ft-switch--dense slot::slotted(ft-switch-option) {
922
923
  --ft-switch-internal-vertical-padding: 2px;
923
924
  --ft-switch-internal-horizontal-padding: 4px;
924
925
  }
925
- `,pc([Oe({type:Boolean})],yc.prototype,"dense",void 0),pc([Oe({type:Boolean})],yc.prototype,"unselectable",void 0),pc([$e(".ft-switch slot")],yc.prototype,"slottedContent",void 0),pc([Se()],yc.prototype,"selectedOption",void 0),pc([$e(".ft-switch")],yc.prototype,"ftSwitchDiv",void 0),go("ft-switch")(yc),go("ft-switch-option")(uc);const bc=xo.external(wi.colorOutline,"Design system"),mc=xo.external(wi.colorOnSurfaceMedium,"Design system"),vc=ft`
926
+ `,gc([Se({type:Boolean})],bc.prototype,"dense",void 0),gc([Se({type:Boolean})],bc.prototype,"unselectable",void 0),gc([$e(".ft-switch slot")],bc.prototype,"slottedContent",void 0),gc([Oe()],bc.prototype,"selectedOption",void 0),gc([$e(".ft-switch")],bc.prototype,"ftSwitchDiv",void 0),go("ft-switch")(bc),go("ft-switch-option")(pc);const mc=xo.external(Si.colorOutline,"Design system"),vc=xo.external(Si.colorOnSurfaceMedium,"Design system"),xc=ht`
926
927
  :host {
927
928
  display: block;
928
929
  }
@@ -933,17 +934,17 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
933
934
 
934
935
  ft-icon {
935
936
  transform: rotate(-45deg);
936
- color: ${bc};
937
+ color: ${mc};
937
938
  }
938
939
 
939
940
  .ft-resizer--dragging ft-icon,
940
941
  .ft-resizer:hover ft-icon {
941
- color: ${mc};
942
+ color: ${vc};
942
943
  }
943
- `;var xc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wc extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Oc extends Fr{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=ic.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Jt`
944
+ `;var wc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sc extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Oc extends Mr{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=rc.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Jt`
944
945
  <style>
945
946
  .ft-resizer {
946
- cursor: ${ht(this.cursor)}
947
+ cursor: ${ft(this.cursor)}
947
948
  }
948
949
  </style>
949
950
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -951,25 +952,25 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
951
952
  @touchstart=${this.initDragFromTouch}>
952
953
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
953
954
  </div>
954
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new wc(o,i))}}Oc.elementDefinitions={"ft-icon":sc},Oc.styles=[Vr,vc],xc([Oe({type:Number})],Oc.prototype,"initialWidth",void 0),xc([Oe({type:Number})],Oc.prototype,"initialHeight",void 0),xc([Oe()],Oc.prototype,"icon",void 0),xc([Oe()],Oc.prototype,"iconVariant",void 0),xc([Oe()],Oc.prototype,"cursor",void 0),xc([Se()],Oc.prototype,"dragging",void 0),xc([Ce({passive:!0})],Oc.prototype,"initDragFromMouse",null),xc([Ce({passive:!0})],Oc.prototype,"initDragFromTouch",null),go("ft-resizer")(Oc);const Sc={fontSize:xo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:xo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:xo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:xo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:xo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:xo.extend("--ft-input-label-border-color","",wi.colorOutline),textColor:xo.extend("--ft-input-label-text-color","",wi.colorOnSurfaceMedium),disabledTextColor:xo.extend("--ft-input-label-disabled-text-color","",wi.colorOnSurfaceDisabled),colorSurface:xo.external(wi.colorSurface,"Design system"),borderRadiusS:xo.external(wi.borderRadiusS,"Design system"),colorError:xo.external(wi.colorError,"Design system")},Cc=ft`
955
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new Sc(o,i))}}Oc.elementDefinitions={"ft-icon":lc},Oc.styles=[qr,xc],wc([Se({type:Number})],Oc.prototype,"initialWidth",void 0),wc([Se({type:Number})],Oc.prototype,"initialHeight",void 0),wc([Se()],Oc.prototype,"icon",void 0),wc([Se()],Oc.prototype,"iconVariant",void 0),wc([Se()],Oc.prototype,"cursor",void 0),wc([Oe()],Oc.prototype,"dragging",void 0),wc([Ce({passive:!0})],Oc.prototype,"initDragFromMouse",null),wc([Ce({passive:!0})],Oc.prototype,"initDragFromTouch",null),go("ft-resizer")(Oc);const Cc={fontSize:xo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:xo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:xo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:xo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:xo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:xo.extend("--ft-input-label-border-color","",Si.colorOutline),textColor:xo.extend("--ft-input-label-text-color","",Si.colorOnSurfaceMedium),disabledTextColor:xo.extend("--ft-input-label-disabled-text-color","",Si.colorOnSurfaceDisabled),colorSurface:xo.external(Si.colorSurface,"Design system"),borderRadiusS:xo.external(Si.borderRadiusS,"Design system"),colorError:xo.external(Si.colorError,"Design system")},Nc=ht`
955
956
  .ft-input-label {
956
957
  position: absolute;
957
958
  inset: 0;
958
959
  display: flex;
959
- background-color: ${Sc.colorSurface};
960
- border-radius: ${Sc.borderRadiusS} ${Sc.borderRadiusS} 0 0;
960
+ background-color: ${Cc.colorSurface};
961
+ border-radius: ${Cc.borderRadiusS} ${Cc.borderRadiusS} 0 0;
961
962
  }
962
963
 
963
964
  .ft-input-label--outlined {
964
- border-radius: ${Sc.borderRadiusS};
965
+ border-radius: ${Cc.borderRadiusS};
965
966
  }
966
967
 
967
968
  .ft-input-label {
968
- border-color: ${Sc.borderColor};
969
+ border-color: ${Cc.borderColor};
969
970
  }
970
971
 
971
972
  .ft-input-label.ft-input-label--in-error {
972
- border-color: ${Sc.colorError}
973
+ border-color: ${Cc.colorError}
973
974
  }
974
975
 
975
976
  .ft-input-label:before,
@@ -982,7 +983,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
982
983
  }
983
984
 
984
985
  .ft-input-label:before {
985
- width: calc(${Sc.horizontalSpacing} - 4px);
986
+ width: calc(${Cc.horizontalSpacing} - 4px);
986
987
  flex-shrink: 0;
987
988
  }
988
989
 
@@ -998,20 +999,20 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
998
999
  border-bottom-width: 1px;
999
1000
  border-bottom-style: solid;
1000
1001
  border-color: inherit;
1001
- color: ${Sc.textColor};
1002
+ color: ${Cc.textColor};
1002
1003
  transition: font-size 250ms, line-height 250ms, color 250ms;
1003
- max-width: calc(${Sc.labelMaxWidth} - 2 * (${Sc.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1004
+ max-width: calc(${Cc.labelMaxWidth} - 2 * (${Cc.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1004
1005
  text-overflow: ellipsis;
1005
- ${wo(Ys.fontSize,Sc.fontSize)};
1006
- ${wo(Ys.lineHeight,Sc.fontSize)};
1006
+ ${wo(Js.fontSize,Cc.fontSize)};
1007
+ ${wo(Js.lineHeight,Cc.fontSize)};
1007
1008
  }
1008
1009
 
1009
1010
  .ft-input-label--in-error .ft-input-label--text {
1010
- color: ${Sc.colorError}
1011
+ color: ${Cc.colorError}
1011
1012
  }
1012
1013
 
1013
1014
  .ft-input-label--disabled .ft-input-label--text {
1014
- color: ${Sc.disabledTextColor};
1015
+ color: ${Cc.disabledTextColor};
1015
1016
  }
1016
1017
 
1017
1018
  .ft-input-label--hidden-text {
@@ -1028,19 +1029,19 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1028
1029
  overflow: hidden;
1029
1030
  white-space: nowrap;
1030
1031
  text-overflow: ellipsis;
1031
- padding: ${Sc.verticalSpacing} 4px;
1032
- margin: calc(${Sc.verticalSpacing} * -1) 0;
1032
+ padding: ${Cc.verticalSpacing} 4px;
1033
+ margin: calc(${Cc.verticalSpacing} * -1) 0;
1033
1034
  max-width: 100%;
1034
1035
  box-sizing: border-box;
1035
1036
  }
1036
1037
 
1037
1038
  .ft-input-label--raised .ft-input-label--text {
1038
- ${wo(Ys.fontSize,Sc.raisedFontSize)};
1039
- ${wo(Ys.lineHeight,Sc.raisedFontSize)};
1039
+ ${wo(Js.fontSize,Cc.raisedFontSize)};
1040
+ ${wo(Js.lineHeight,Cc.raisedFontSize)};
1040
1041
  }
1041
1042
 
1042
1043
  .ft-input-label--raised .ft-input-label--floating-text {
1043
- top: ${Sc.verticalSpacing};
1044
+ top: ${Cc.verticalSpacing};
1044
1045
  }
1045
1046
 
1046
1047
  .ft-input-label--outlined .ft-input-label--text,
@@ -1053,27 +1054,27 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1053
1054
  .ft-input-label--outlined:before {
1054
1055
  border-left-width: 1px;
1055
1056
  border-left-style: solid;
1056
- border-radius: ${Sc.borderRadiusS} 0 0 ${Sc.borderRadiusS};
1057
+ border-radius: ${Cc.borderRadiusS} 0 0 ${Cc.borderRadiusS};
1057
1058
  }
1058
1059
 
1059
1060
  .ft-input-label--outlined:after {
1060
1061
  border-right-width: 1px;
1061
1062
  border-right-style: solid;
1062
- border-radius: 0 ${Sc.borderRadiusS} ${Sc.borderRadiusS} 0;
1063
+ border-radius: 0 ${Cc.borderRadiusS} ${Cc.borderRadiusS} 0;
1063
1064
  }
1064
1065
 
1065
1066
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1066
1067
  padding: 2px 4px;
1067
- z-index: ${Sc.raisedZIndex};
1068
- background-color: ${Sc.colorSurface};
1069
- border-radius: ${Sc.borderRadiusS};
1068
+ z-index: ${Cc.raisedZIndex};
1069
+ background-color: ${Cc.colorSurface};
1070
+ border-radius: ${Cc.borderRadiusS};
1070
1071
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1071
1072
  }
1072
1073
 
1073
1074
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1074
1075
  border-top: none;
1075
1076
  }
1076
- `;var Nc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $c extends Fr{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Jt`
1077
+ `;var $c=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ec extends Mr{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Jt`
1077
1078
  <div class="${Ze(t)}">
1078
1079
  ${this.text?Jt`
1079
1080
  <div class="ft-input-label--text ft-typography--caption">
@@ -1082,7 +1083,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1082
1083
  </div>
1083
1084
  `:null}
1084
1085
  </div>
1085
- `}}$c.elementDefinitions={},$c.styles=[yl,Cc],Nc([Oe({type:String})],$c.prototype,"text",void 0),Nc([Oe({type:Boolean})],$c.prototype,"raised",void 0),Nc([Oe({type:Boolean})],$c.prototype,"outlined",void 0),Nc([Oe({type:Boolean})],$c.prototype,"disabled",void 0),Nc([Oe({type:Boolean})],$c.prototype,"error",void 0),go("ft-input-label")($c);const Ec={fontSize:xo.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-area-helper-color","",wi.colorOnSurfaceMedium),colorPrimary:xo.external(wi.colorPrimary,"Design system"),colorOnSurface:xo.external(wi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(wi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(wi.borderRadiusS,"Design system"),colorError:xo.external(wi.colorError,"Design system")},Ic=ft`
1086
+ `}}Ec.elementDefinitions={},Ec.styles=[bl,Nc],$c([Se({type:String})],Ec.prototype,"text",void 0),$c([Se({type:Boolean})],Ec.prototype,"raised",void 0),$c([Se({type:Boolean})],Ec.prototype,"outlined",void 0),$c([Se({type:Boolean})],Ec.prototype,"disabled",void 0),$c([Se({type:Boolean})],Ec.prototype,"error",void 0),go("ft-input-label")(Ec);const kc={fontSize:xo.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-area-helper-color","",Si.colorOnSurfaceMedium),colorPrimary:xo.external(Si.colorPrimary,"Design system"),colorOnSurface:xo.external(Si.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(Si.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(Si.borderRadiusS,"Design system"),colorError:xo.external(Si.colorError,"Design system")},Ic=ht`
1086
1087
  *:focus {
1087
1088
  outline: none;
1088
1089
  }
@@ -1094,10 +1095,10 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1094
1095
  }
1095
1096
 
1096
1097
  ft-input-label {
1097
- ${wo(Sc.fontSize,Ec.fontSize)};
1098
- ${wo(Sc.raisedFontSize,Ec.labelSize)};
1099
- ${wo(Sc.verticalSpacing,Ec.verticalSpacing)};
1100
- ${wo(Sc.horizontalSpacing,Ec.horizontalSpacing)};
1098
+ ${wo(Cc.fontSize,kc.fontSize)};
1099
+ ${wo(Cc.raisedFontSize,kc.labelSize)};
1100
+ ${wo(Cc.verticalSpacing,kc.verticalSpacing)};
1101
+ ${wo(Cc.horizontalSpacing,kc.horizontalSpacing)};
1101
1102
  }
1102
1103
 
1103
1104
  .ft-text-area--main-panel {
@@ -1115,8 +1116,8 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1115
1116
  }
1116
1117
 
1117
1118
  .ft-text-area--input-panel ft-ripple {
1118
- ${wo(ms.opacityContentOnSurfaceHover,"0.08")};
1119
- ${wo(ms.opacityContentOnSurfacePressed,"0.04")};
1119
+ ${wo(vs.opacityContentOnSurfaceHover,"0.08")};
1120
+ ${wo(vs.opacityContentOnSurfacePressed,"0.04")};
1120
1121
  }
1121
1122
 
1122
1123
  .ft-text-area--input {
@@ -1128,12 +1129,12 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1128
1129
  align-self: stretch;
1129
1130
  resize: none;
1130
1131
 
1131
- ${wo(js.fontSize,Ec.fontSize)};
1132
- ${wo(js.lineHeight,Ec.fontSize)};
1133
- color: ${Ec.colorOnSurface};
1132
+ ${wo(Zs.fontSize,kc.fontSize)};
1133
+ ${wo(Zs.lineHeight,kc.fontSize)};
1134
+ color: ${kc.colorOnSurface};
1134
1135
 
1135
- padding: 0 ${Ec.horizontalSpacing};
1136
- margin: calc(${Ec.verticalSpacing} + ${Ec.labelSize} / 2) 0 ${Ec.verticalSpacing} 0;
1136
+ padding: 0 ${kc.horizontalSpacing};
1137
+ margin: calc(${kc.verticalSpacing} + ${kc.labelSize} / 2) 0 ${kc.verticalSpacing} 0;
1137
1138
 
1138
1139
  border: none;
1139
1140
  background: none;
@@ -1142,7 +1143,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1142
1143
  }
1143
1144
 
1144
1145
  .ft-text-area--disabled .ft-text-area--input {
1145
- color: ${Ec.colorOnSurfaceDisabled};
1146
+ color: ${kc.colorOnSurfaceDisabled};
1146
1147
  }
1147
1148
 
1148
1149
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1150,42 +1151,42 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1150
1151
  }
1151
1152
 
1152
1153
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1153
- ${wo(Sc.borderColor,Ec.colorPrimary)};
1154
- ${wo(Sc.textColor,Ec.colorPrimary)};
1154
+ ${wo(Cc.borderColor,kc.colorPrimary)};
1155
+ ${wo(Cc.textColor,kc.colorPrimary)};
1155
1156
  }
1156
1157
 
1157
1158
  .ft-text-area--filled .ft-text-area--input-panel {
1158
- border-radius: ${Ec.borderRadiusS} ${Ec.borderRadiusS} 0 0;
1159
+ border-radius: ${kc.borderRadiusS} ${kc.borderRadiusS} 0 0;
1159
1160
  }
1160
1161
 
1161
1162
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1162
1163
  align-self: stretch;
1163
- margin-bottom: ${Ec.verticalSpacing};
1164
- margin-top: calc(${Ec.labelSize} + 2 * ${Ec.verticalSpacing});
1164
+ margin-bottom: ${kc.verticalSpacing};
1165
+ margin-top: calc(${kc.labelSize} + 2 * ${kc.verticalSpacing});
1165
1166
  }
1166
1167
 
1167
1168
  .ft-text-area--outlined .ft-text-area--input-panel {
1168
- border-radius: ${Ec.borderRadiusS};
1169
+ border-radius: ${kc.borderRadiusS};
1169
1170
  }
1170
1171
 
1171
1172
  .ft-text-area--helper-text {
1172
- padding: 0 12px 0 ${Ec.horizontalSpacing};
1173
- color: ${Ec.helperColor};
1173
+ padding: 0 12px 0 ${kc.horizontalSpacing};
1174
+ color: ${kc.helperColor};
1174
1175
  }
1175
1176
 
1176
1177
  .ft-text-area--in-error .ft-text-area--input,
1177
1178
  .ft-text-area--in-error .ft-text-area--helper-text {
1178
- color: ${Ec.colorError};
1179
+ color: ${kc.colorError};
1179
1180
  }
1180
1181
 
1181
1182
  ft-resizer {
1182
1183
  position: absolute;
1183
1184
  bottom: 0;
1184
1185
  }
1185
- `;var kc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rc extends(rs(Fr,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Jt`
1186
+ `;var Rc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Lc extends(ns(Mr,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Jt`
1186
1187
  <style>
1187
1188
  .ft-text-area--main-panel {
1188
- height: calc(4 * ${Ec.verticalSpacing} + ${Ec.labelSize} + ${Ec.fontSize} + ${this.height}px);
1189
+ height: calc(4 * ${kc.verticalSpacing} + ${kc.labelSize} + ${kc.fontSize} + ${this.height}px);
1189
1190
  }
1190
1191
 
1191
1192
  ft-resizer {
@@ -1224,14 +1225,14 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1224
1225
  ${this.helper}
1225
1226
  </ft-typography>`:void 0}
1226
1227
  </div>
1227
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Rc.elementDefinitions={"ft-input-label":$c,"ft-resizer":Oc,"ft-ripple":Gl,"ft-typography":Kl},Rc.styles=[pl,Ic],kc([Oe({type:String})],Rc.prototype,"label",void 0),kc([Oe({reflect:!0})],Rc.prototype,"value",void 0),kc([Oe({type:String})],Rc.prototype,"helper",void 0),kc([Oe({type:Boolean})],Rc.prototype,"outlined",void 0),kc([Oe({type:Boolean})],Rc.prototype,"disabled",void 0),kc([Oe({type:Boolean})],Rc.prototype,"error",void 0),kc([Oe({type:Number,reflect:!0})],Rc.prototype,"height",void 0),kc([$e("textarea")],Rc.prototype,"textarea",void 0),kc([Se()],Rc.prototype,"focused",void 0),go("ft-text-area")(Rc);class Uc extends Fr{render(){return Jt`
1228
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Lc.elementDefinitions={"ft-input-label":Ec,"ft-resizer":Oc,"ft-ripple":Vl,"ft-typography":Kl},Lc.styles=[gl,Ic],Rc([Se({type:String})],Lc.prototype,"label",void 0),Rc([Se({reflect:!0})],Lc.prototype,"value",void 0),Rc([Se({type:String})],Lc.prototype,"helper",void 0),Rc([Se({type:Boolean})],Lc.prototype,"outlined",void 0),Rc([Se({type:Boolean})],Lc.prototype,"disabled",void 0),Rc([Se({type:Boolean})],Lc.prototype,"error",void 0),Rc([Se({type:Number,reflect:!0})],Lc.prototype,"height",void 0),Rc([$e("textarea")],Lc.prototype,"textarea",void 0),Rc([Oe()],Lc.prototype,"focused",void 0),go("ft-text-area")(Lc);class Uc extends Mr{render(){return Jt`
1228
1229
  <div class="ft-loader">
1229
1230
  <div></div>
1230
1231
  <div></div>
1231
1232
  <div></div>
1232
1233
  <div></div>
1233
1234
  </div>
1234
- `}}Uc.styles=Sl,go("ft-loader")(Uc);var Lc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _c extends(rs(Fr,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(Jt`
1235
+ `}}Uc.styles=Cl,go("ft-loader")(Uc);var _c=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ac extends(ns(Mr,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(Jt`
1235
1236
  <button part="button"
1236
1237
  class="${Ze(this.buttonClasses)}"
1237
1238
  aria-label="${this.getLabel()}"
@@ -1240,7 +1241,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1240
1241
  <ft-typography part="label"
1241
1242
  variant=${this.typographyVariant}
1242
1243
  element="span"
1243
- class="ft-button--label ${ds?"ft-safari-ellipsis-fix":""}"
1244
+ class="ft-button--label ${fs?"ft-safari-ellipsis-fix":""}"
1244
1245
  ?hidden=${!this.hasTextContent()}>
1245
1246
  <slot @slotchange=${this.onSlotchange}></slot>
1246
1247
  </ft-typography>
@@ -1254,7 +1255,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1254
1255
  </ft-tooltip>
1255
1256
  `:t}resolveIcon(){return this.loading?Jt`
1256
1257
  <ft-loader part="loader icon"></ft-loader> `:this.icon?Jt`
1257
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}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}}_c.elementDefinitions={"ft-ripple":Gl,"ft-tooltip":nc,"ft-typography":Kl,"ft-icon":sc,"ft-loader":Uc},Lc([Oe({type:String,reflect:!0})],_c.prototype,"role",void 0),Lc([Oe()],_c.prototype,"type",void 0),Lc([Oe({type:Boolean})],_c.prototype,"disabled",void 0),Lc([Oe()],_c.prototype,"label",void 0),Lc([Oe()],_c.prototype,"icon",void 0),Lc([Oe()],_c.prototype,"iconVariant",void 0),Lc([Oe({type:Boolean})],_c.prototype,"trailingIcon",void 0),Lc([Oe({type:Boolean})],_c.prototype,"loading",void 0),Lc([Oe()],_c.prototype,"tooltipPosition",void 0),Lc([Oe({type:Boolean})],_c.prototype,"hideTooltip",void 0),Lc([Oe({type:Boolean})],_c.prototype,"forceTooltip",void 0),Lc([$e(".ft-button")],_c.prototype,"button",void 0),Lc([$e(".ft-button--label slot")],_c.prototype,"slottedContent",void 0);var Ac=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wc extends _c{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Wc.styles=[Yr,Al],Ac([Oe({type:Boolean})],Wc.prototype,"primary",void 0),Ac([Oe({type:Boolean})],Wc.prototype,"outlined",void 0),Ac([Oe({type:Boolean})],Wc.prototype,"dense",void 0),Ac([Oe({type:Boolean})],Wc.prototype,"round",void 0);const Tc=[ft`
1258
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}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}}Ac.elementDefinitions={"ft-ripple":Vl,"ft-tooltip":ac,"ft-typography":Kl,"ft-icon":lc,"ft-loader":Uc},_c([Se({type:String,reflect:!0})],Ac.prototype,"role",void 0),_c([Se()],Ac.prototype,"type",void 0),_c([Se({type:Boolean})],Ac.prototype,"disabled",void 0),_c([Se()],Ac.prototype,"label",void 0),_c([Se()],Ac.prototype,"icon",void 0),_c([Se()],Ac.prototype,"iconVariant",void 0),_c([Se({type:Boolean})],Ac.prototype,"trailingIcon",void 0),_c([Se({type:Boolean})],Ac.prototype,"loading",void 0),_c([Se()],Ac.prototype,"tooltipPosition",void 0),_c([Se({type:Boolean})],Ac.prototype,"hideTooltip",void 0),_c([Se({type:Boolean})],Ac.prototype,"forceTooltip",void 0),_c([$e(".ft-button")],Ac.prototype,"button",void 0),_c([$e(".ft-button--label slot")],Ac.prototype,"slottedContent",void 0);var Wc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bc extends Ac{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Bc.styles=[Jr,Wl],Wc([Se({type:Boolean})],Bc.prototype,"primary",void 0),Wc([Se({type:Boolean})],Bc.prototype,"outlined",void 0),Wc([Se({type:Boolean})],Bc.prototype,"dense",void 0),Wc([Se({type:Boolean})],Bc.prototype,"round",void 0);const zc=[ht`
1258
1259
  :host {
1259
1260
  display: inline-block;
1260
1261
  max-width: 100%;
@@ -1335,11 +1336,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1335
1336
  .ft-button--primary {
1336
1337
  ${wo(Ol.color,Jo.primaryIconColor)};
1337
1338
 
1338
- ${wo(ms.color,Jo.primaryStateLayerColor)};
1339
- ${wo(ms.opacityContentOnSurfaceHover,Jo.primaryHoverStateLayerOpacity)};
1340
- ${wo(ms.opacityContentOnSurfaceFocused,Jo.primaryFocusStateLayerOpacity)};
1341
- ${wo(ms.opacityContentOnSurfaceSelected,Jo.primaryActiveStateLayerOpacity)};
1342
- ${wo(ms.opacityContentOnSurfacePressed,Jo.primaryActiveStateLayerOpacity)};
1339
+ ${wo(vs.color,Jo.primaryStateLayerColor)};
1340
+ ${wo(vs.opacityContentOnSurfaceHover,Jo.primaryHoverStateLayerOpacity)};
1341
+ ${wo(vs.opacityContentOnSurfaceFocused,Jo.primaryFocusStateLayerOpacity)};
1342
+ ${wo(vs.opacityContentOnSurfaceSelected,Jo.primaryActiveStateLayerOpacity)};
1343
+ ${wo(vs.opacityContentOnSurfacePressed,Jo.primaryActiveStateLayerOpacity)};
1343
1344
 
1344
1345
  background-color: ${Jo.primaryBackgroundColor};
1345
1346
  color: ${Jo.primaryColor};
@@ -1359,11 +1360,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1359
1360
  .ft-button--secondary {
1360
1361
  ${wo(Ol.color,Jo.secondaryIconColor)};
1361
1362
 
1362
- ${wo(ms.color,Jo.secondaryStateLayerColor)};
1363
- ${wo(ms.opacityContentOnSurfaceHover,Jo.secondaryHoverStateLayerOpacity)};
1364
- ${wo(ms.opacityContentOnSurfaceFocused,Jo.secondaryFocusStateLayerOpacity)};
1365
- ${wo(ms.opacityContentOnSurfaceSelected,Jo.secondaryActiveStateLayerOpacity)};
1366
- ${wo(ms.opacityContentOnSurfacePressed,Jo.secondaryActiveStateLayerOpacity)};
1363
+ ${wo(vs.color,Jo.secondaryStateLayerColor)};
1364
+ ${wo(vs.opacityContentOnSurfaceHover,Jo.secondaryHoverStateLayerOpacity)};
1365
+ ${wo(vs.opacityContentOnSurfaceFocused,Jo.secondaryFocusStateLayerOpacity)};
1366
+ ${wo(vs.opacityContentOnSurfaceSelected,Jo.secondaryActiveStateLayerOpacity)};
1367
+ ${wo(vs.opacityContentOnSurfacePressed,Jo.secondaryActiveStateLayerOpacity)};
1367
1368
 
1368
1369
  background-color: ${Jo.secondaryBackgroundColor};
1369
1370
  color: ${Jo.secondaryColor};
@@ -1384,11 +1385,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1384
1385
  .ft-button--tertiary {
1385
1386
  ${wo(Ol.color,Jo.tertiaryIconColor)};
1386
1387
 
1387
- ${wo(ms.color,Jo.tertiaryStateLayerColor)};
1388
- ${wo(ms.opacityContentOnSurfaceHover,Jo.tertiaryHoverStateLayerOpacity)};
1389
- ${wo(ms.opacityContentOnSurfaceFocused,Jo.tertiaryFocusStateLayerOpacity)};
1390
- ${wo(ms.opacityContentOnSurfaceSelected,Jo.tertiaryActiveStateLayerOpacity)};
1391
- ${wo(ms.opacityContentOnSurfacePressed,Jo.tertiaryActiveStateLayerOpacity)};
1388
+ ${wo(vs.color,Jo.tertiaryStateLayerColor)};
1389
+ ${wo(vs.opacityContentOnSurfaceHover,Jo.tertiaryHoverStateLayerOpacity)};
1390
+ ${wo(vs.opacityContentOnSurfaceFocused,Jo.tertiaryFocusStateLayerOpacity)};
1391
+ ${wo(vs.opacityContentOnSurfaceSelected,Jo.tertiaryActiveStateLayerOpacity)};
1392
+ ${wo(vs.opacityContentOnSurfacePressed,Jo.tertiaryActiveStateLayerOpacity)};
1392
1393
 
1393
1394
  background-color: ${Jo.tertiaryBackgroundColor};
1394
1395
  color: ${Jo.tertiaryColor};
@@ -1408,11 +1409,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1408
1409
  .ft-button--neutral {
1409
1410
  ${wo(Ol.color,Jo.neutralIconColor)};
1410
1411
 
1411
- ${wo(ms.backgroundColor,Jo.neutralStateLayerColor)};
1412
- ${wo(ms.opacityContentOnSurfaceHover,Jo.neutralHoverStateLayerOpacity)};
1413
- ${wo(ms.opacityContentOnSurfaceFocused,Jo.neutralFocusStateLayerOpacity)};
1414
- ${wo(ms.opacityContentOnSurfaceSelected,Jo.neutralActiveStateLayerOpacity)};
1415
- ${wo(ms.opacityContentOnSurfacePressed,Jo.neutralActiveStateLayerOpacity)};
1412
+ ${wo(vs.backgroundColor,Jo.neutralStateLayerColor)};
1413
+ ${wo(vs.opacityContentOnSurfaceHover,Jo.neutralHoverStateLayerOpacity)};
1414
+ ${wo(vs.opacityContentOnSurfaceFocused,Jo.neutralFocusStateLayerOpacity)};
1415
+ ${wo(vs.opacityContentOnSurfaceSelected,Jo.neutralActiveStateLayerOpacity)};
1416
+ ${wo(vs.opacityContentOnSurfacePressed,Jo.neutralActiveStateLayerOpacity)};
1416
1417
 
1417
1418
  background-color: ${Jo.neutralBackgroundColor};
1418
1419
  color: ${Jo.neutralColor};
@@ -1430,7 +1431,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1430
1431
  /** Large styles **/
1431
1432
 
1432
1433
  .ft-button--large {
1433
- ${wo(Cl.size,Jo.largeIconSize)};
1434
+ ${wo(Nl.size,Jo.largeIconSize)};
1434
1435
  ${wo(Ol.size,Jo.largeIconSize)};
1435
1436
 
1436
1437
  height: ${Jo.largeHeight};
@@ -1453,7 +1454,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1453
1454
  /** Small styles **/
1454
1455
 
1455
1456
  .ft-button--small {
1456
- ${wo(Cl.size,Jo.smallIconSize)};
1457
+ ${wo(Nl.size,Jo.smallIconSize)};
1457
1458
  ${wo(Ol.size,Jo.smallIconSize)};
1458
1459
 
1459
1460
  height: ${Jo.smallHeight};
@@ -1472,15 +1473,15 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1472
1473
  width: ${Jo.smallIconOnlyWidth};
1473
1474
  padding: unset;
1474
1475
  }
1475
- `,Vr];var zc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bc extends _c{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?jl.caption1medium:jl.body2medium}}Bc.styles=[Yr,Tc],zc([Oe({type:Boolean})],Bc.prototype,"primary",void 0),zc([Oe({type:Boolean})],Bc.prototype,"secondary",void 0),zc([Oe({type:Boolean})],Bc.prototype,"tertiary",void 0),zc([Oe({type:Boolean})],Bc.prototype,"neutral",void 0),zc([Oe({type:Boolean})],Bc.prototype,"small",void 0),go("ft-button")(Wc),go("ftds-button")(Bc);const Fc=ft`
1476
- `,Dc=ft`
1477
- `,Mc=ts.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class Pc{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Mc.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Pc.build(t):null!==(e=Pc.API)&&void 0!==e?e:Pc.API=Pc.build()}static await(t){return new Promise((e=>{let o=Pc.get(t);if(o)e(o);else{const i=Mc.subscribe((()=>{o=Pc.get(t),o&&(i(),e(o))}))}}))}}class jc{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new io,this.cache=t?i.commonCache:new io}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Pc.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Pc.await()}clearCache(){this.cache.clearAll()}}var Zc;const Kc=Symbol("clearAfterUnitTest");class Hc extends jc{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zc]=()=>{this.defaultMessages={},this.cache=new io,this.listeners={}},this.currentUiLocale=Mc.getState().uiLocale,Mc.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Mc.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};uo(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Qr(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>co(0).then((()=>t())).catch((()=>null)))))}}Zc=Kc,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Hc{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Hc{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Gc=window.FluidTopicsI18nService,Vc=window.FluidTopicsCustomI18nService;var qc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yc extends Fr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Pc.get(),this.cache=new io,this.cleanSessionDebouncer=new so}render(){return Jt`
1476
+ `,qr];var Tc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fc extends Ac{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Zl.caption1medium:Zl.body2medium}}Fc.styles=[Jr,zc],Tc([Se({type:Boolean})],Fc.prototype,"primary",void 0),Tc([Se({type:Boolean})],Fc.prototype,"secondary",void 0),Tc([Se({type:Boolean})],Fc.prototype,"tertiary",void 0),Tc([Se({type:Boolean})],Fc.prototype,"neutral",void 0),Tc([Se({type:Boolean})],Fc.prototype,"small",void 0),go("ft-button")(Bc),go("ftds-button")(Fc);const Mc=ht`
1477
+ `,Dc=ht`
1478
+ `,Pc=es.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class jc{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Pc.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static await(t){return new Promise((e=>{let o=jc.get(t);if(o)e(o);else{const i=Pc.subscribe((()=>{o=jc.get(t),o&&(i(),e(o))}))}}))}}class Zc{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new io,this.cache=t?i.commonCache:new io}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:jc.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:jc.await()}clearCache(){this.cache.clearAll()}}var Hc;const Kc=Symbol("clearAfterUnitTest");class Gc extends Zc{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hc]=()=>{this.defaultMessages={},this.cache=new io,this.listeners={}},this.currentUiLocale=Pc.getState().uiLocale,Pc.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Pc.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};uo(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new tn(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>co(0).then((()=>t())).catch((()=>null)))))}}Hc=Kc,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Gc{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Gc{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Vc=window.FluidTopicsI18nService,qc=window.FluidTopicsCustomI18nService;var Yc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jc extends Mr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>jc.get(),this.cache=new io,this.cleanSessionDebouncer=new so}render(){return Jt`
1478
1479
  <slot></slot>
1479
- `}update(t){super.update(t),t.has("baseUrl")&&(Mc.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Mc.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Mc.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Mc.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Mc.actions.noCustom(this.noCustom),t.has("editorMode")&&Mc.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Mc.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Mc.actions.session(this.session),t.has("availableUiLocales")&&Mc.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Gc.addContext(t))),t.has("openExternalDocumentInNewTab")&&Mc.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Yc.elementDefinitions={},Yc.styles=Dc,qc([Oe()],Yc.prototype,"baseUrl",void 0),qc([Oe()],Yc.prototype,"apiIntegrationIdentifier",void 0),qc([Oe()],Yc.prototype,"uiLocale",void 0),qc([yo(null)],Yc.prototype,"availableUiLocales",void 0),qc([yo(null)],Yc.prototype,"metadataConfiguration",void 0),qc([Oe({type:Boolean})],Yc.prototype,"editorMode",void 0),qc([Oe({type:Boolean})],Yc.prototype,"noCustom",void 0),qc([Oe({type:Boolean})],Yc.prototype,"openExternalDocumentInNewTab",void 0),qc([Oe({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Yc.prototype,"noCustomComponent",void 0),qc([Oe({type:Boolean})],Yc.prototype,"withManualResources",void 0),qc([yo([])],Yc.prototype,"messageContexts",void 0),qc([yo(void 0)],Yc.prototype,"session",void 0),qc([Oe({type:Object})],Yc.prototype,"apiProvider",void 0);class Jc extends jc{async listMySearches(){let t=Mc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Xc extends jc{async listMyBookmarks(){let t=Mc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Qc=ts.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const td=new class{constructor(){this.currentSession=Mc.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xc,this.savedSearchesService=new Jc,Mc.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Mc.getState();uo(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qc.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qc.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Qc.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Qc.actions.bookmarks(e)}}};go("ft-app-context")(Yc);var ed=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const od=Symbol("i18nAttributes"),id=Symbol("i18nProperties"),rd=Symbol("i18nUnsubs");function nd(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Vc:Gc}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[od])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[id])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[od])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[id])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[id])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[od])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[rd].has(t)||this[rd].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[rd].forEach((t=>t())),this[rd].clear()}}return e=rd,ed([Oe({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ad extends(nd(Fr)){}class sd extends(nd(fn)){}var ld=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cd extends sd{constructor(){super(),this.editorMode=!1,this.addStore(Mc)}render(){return this.key&&this.context?Jt`
1480
+ `}update(t){super.update(t),t.has("baseUrl")&&(Pc.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Pc.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Pc.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Pc.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Pc.actions.noCustom(this.noCustom),t.has("editorMode")&&Pc.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Pc.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Pc.actions.session(this.session),t.has("availableUiLocales")&&Pc.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Vc.addContext(t))),t.has("openExternalDocumentInNewTab")&&Pc.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Jc.elementDefinitions={},Jc.styles=Dc,Yc([Se()],Jc.prototype,"baseUrl",void 0),Yc([Se()],Jc.prototype,"apiIntegrationIdentifier",void 0),Yc([Se()],Jc.prototype,"uiLocale",void 0),Yc([yo(null)],Jc.prototype,"availableUiLocales",void 0),Yc([yo(null)],Jc.prototype,"metadataConfiguration",void 0),Yc([Se({type:Boolean})],Jc.prototype,"editorMode",void 0),Yc([Se({type:Boolean})],Jc.prototype,"noCustom",void 0),Yc([Se({type:Boolean})],Jc.prototype,"openExternalDocumentInNewTab",void 0),Yc([Se({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Jc.prototype,"noCustomComponent",void 0),Yc([Se({type:Boolean})],Jc.prototype,"withManualResources",void 0),Yc([yo([])],Jc.prototype,"messageContexts",void 0),Yc([yo(void 0)],Jc.prototype,"session",void 0),Yc([Se({type:Object})],Jc.prototype,"apiProvider",void 0);class Xc extends Zc{async listMySearches(){let t=Pc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Qc extends Zc{async listMyBookmarks(){let t=Pc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const td=es.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ed=new class{constructor(){this.currentSession=Pc.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qc,this.savedSearchesService=new Xc,Pc.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Pc.getState();uo(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),td.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),td.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();td.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;td.actions.bookmarks(e)}}};go("ft-app-context")(Jc);var od=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const id=Symbol("i18nAttributes"),rd=Symbol("i18nProperties"),nd=Symbol("i18nUnsubs");function ad(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?qc:Vc}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[id])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[rd])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[id])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[rd])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[rd])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[id])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[nd].has(t)||this[nd].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[nd].forEach((t=>t())),this[nd].clear()}}return e=nd,od([Se({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class sd extends(ad(Mr)){}class ld extends(ad(un)){}var cd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dd extends ld{constructor(){super(),this.editorMode=!1,this.addStore(Pc)}render(){return this.key&&this.context?Jt`
1480
1481
  <span class="ft-i18n">
1481
1482
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1482
1483
  </span>
1483
- `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}cd.elementDefinitions={},cd.styles=Fc,ld([en()],cd.prototype,"editorMode",void 0),ld([Oe()],cd.prototype,"context",void 0),ld([Oe()],cd.prototype,"key",void 0),ld([yo([])],cd.prototype,"args",void 0),ld([Oe()],cd.prototype,"defaultMessage",void 0);class dd{static build(t){return new dd(t)}static fromGwt(t){return new dd(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Gc.resolveMessage(this.name,e,...t)})}}const hd=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[id]=null!==(n=o[id])&&void 0!==n?n:new Map,o[id].set(i,a)};go("ft-i18n")(cd);const fd=dd.build("integratedFeedbackComponent"),ud={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},pd={fontSize:xo.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-field-helper-color","",wi.colorOnSurfaceMedium),colorPrimary:xo.external(wi.colorPrimary,"Design system"),colorOnSurface:xo.external(wi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(wi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(wi.borderRadiusS,"Design system"),colorError:xo.external(wi.colorError,"Design system"),prefixColor:xo.extend("--ft-text-field-prefix-color","",wi.colorOnSurfaceMedium),iconColor:xo.extend("--ft-text-field-icon-color","",wi.colorOnSurfaceMedium),floatingZIndex:xo.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:xo.external(wi.colorSurface,"Design system"),colorOutline:xo.external(wi.colorOutline,"Design system"),elevation02:xo.external(wi.elevation02,"Design system"),suggestSize:xo.create("--ft-text-field-suggest-size","","SIZE","300px")},gd=ft`
1484
+ `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}dd.elementDefinitions={},dd.styles=Mc,cd([on()],dd.prototype,"editorMode",void 0),cd([Se()],dd.prototype,"context",void 0),cd([Se()],dd.prototype,"key",void 0),cd([yo([])],dd.prototype,"args",void 0),cd([Se()],dd.prototype,"defaultMessage",void 0);class fd{static build(t){return new fd(t)}static fromGwt(t){return new fd(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Vc.resolveMessage(this.name,e,...t)})}}const hd=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[rd]=null!==(n=o[rd])&&void 0!==n?n:new Map,o[rd].set(i,a)};go("ft-i18n")(dd);const ud=fd.build("integratedFeedbackComponent"),pd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},gd={fontSize:xo.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-field-helper-color","",Si.colorOnSurfaceMedium),colorPrimary:xo.external(Si.colorPrimary,"Design system"),colorOnSurface:xo.external(Si.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(Si.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(Si.borderRadiusS,"Design system"),colorError:xo.external(Si.colorError,"Design system"),prefixColor:xo.extend("--ft-text-field-prefix-color","",Si.colorOnSurfaceMedium),iconColor:xo.extend("--ft-text-field-icon-color","",Si.colorOnSurfaceMedium),floatingZIndex:xo.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:xo.external(Si.colorSurface,"Design system"),colorOutline:xo.external(Si.colorOutline,"Design system"),elevation02:xo.external(Si.elevation02,"Design system"),suggestSize:xo.create("--ft-text-field-suggest-size","","SIZE","300px")},yd=ht`
1484
1485
  *:focus {
1485
1486
  outline: none;
1486
1487
  }
@@ -1493,16 +1494,16 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1493
1494
  }
1494
1495
 
1495
1496
  ft-input-label {
1496
- ${wo(Sc.fontSize,pd.fontSize)};
1497
- ${wo(Sc.raisedFontSize,pd.labelSize)};
1498
- ${wo(Sc.verticalSpacing,pd.verticalSpacing)};
1499
- ${wo(Sc.horizontalSpacing,pd.horizontalSpacing)};
1497
+ ${wo(Cc.fontSize,gd.fontSize)};
1498
+ ${wo(Cc.raisedFontSize,gd.labelSize)};
1499
+ ${wo(Cc.verticalSpacing,gd.verticalSpacing)};
1500
+ ${wo(Cc.horizontalSpacing,gd.horizontalSpacing)};
1500
1501
  }
1501
1502
 
1502
1503
  .ft-text-field--main-panel {
1503
1504
  position: relative;
1504
1505
  display: flex;
1505
- height: calc(4 * ${pd.verticalSpacing} + ${pd.labelSize} + ${pd.fontSize});
1506
+ height: calc(4 * ${gd.verticalSpacing} + ${gd.labelSize} + ${gd.fontSize});
1506
1507
  }
1507
1508
 
1508
1509
  .ft-text-field--input-panel {
@@ -1511,24 +1512,24 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1511
1512
  display: flex;
1512
1513
  align-items: center;
1513
1514
  overflow: hidden;
1514
- padding: 0 ${pd.horizontalSpacing};
1515
+ padding: 0 ${gd.horizontalSpacing};
1515
1516
 
1516
- ${wo(js.fontSize,pd.fontSize)};
1517
- ${wo(js.lineHeight,pd.fontSize)};
1517
+ ${wo(Zs.fontSize,gd.fontSize)};
1518
+ ${wo(Zs.lineHeight,gd.fontSize)};
1518
1519
  }
1519
1520
 
1520
1521
  .ft-text-field--input-panel ft-ripple {
1521
- ${wo(ms.opacityContentOnSurfaceHover,"0.08")};
1522
- ${wo(ms.opacityContentOnSurfacePressed,"0.04")};
1522
+ ${wo(vs.opacityContentOnSurfaceHover,"0.08")};
1523
+ ${wo(vs.opacityContentOnSurfacePressed,"0.04")};
1523
1524
  }
1524
1525
 
1525
1526
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1526
1527
  align-items: flex-end;
1527
- padding: 0 ${pd.horizontalSpacing} ${pd.verticalSpacing} ${pd.horizontalSpacing};
1528
+ padding: 0 ${gd.horizontalSpacing} ${gd.verticalSpacing} ${gd.horizontalSpacing};
1528
1529
  }
1529
1530
 
1530
1531
  .ft-text-field--prefix {
1531
- color: ${pd.prefixColor};
1532
+ color: ${gd.prefixColor};
1532
1533
  margin-right: 2px;
1533
1534
  flex-shrink: 1;
1534
1535
  overflow: hidden;
@@ -1547,15 +1548,15 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1547
1548
  flex-shrink: 1;
1548
1549
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1549
1550
 
1550
- color: ${pd.colorOnSurface};
1551
- padding: calc(2 * ${pd.verticalSpacing}) 0;
1551
+ color: ${gd.colorOnSurface};
1552
+ padding: calc(2 * ${gd.verticalSpacing}) 0;
1552
1553
  border: none;
1553
1554
  background: none;
1554
1555
  }
1555
1556
 
1556
1557
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1557
1558
  padding-bottom: 0;
1558
- padding-top: calc(${pd.labelSize} + 2 * ${pd.verticalSpacing});
1559
+ padding-top: calc(${gd.labelSize} + 2 * ${gd.verticalSpacing});
1559
1560
  }
1560
1561
 
1561
1562
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1564,37 +1565,37 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1564
1565
  }
1565
1566
 
1566
1567
  .ft-text-field--disabled .ft-text-field--input {
1567
- color: ${pd.colorOnSurfaceDisabled};
1568
+ color: ${gd.colorOnSurfaceDisabled};
1568
1569
  }
1569
1570
 
1570
1571
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1571
- ${wo(Sc.borderColor,pd.colorPrimary)};
1572
- ${wo(Sc.textColor,pd.colorPrimary)};
1572
+ ${wo(Cc.borderColor,gd.colorPrimary)};
1573
+ ${wo(Cc.textColor,gd.colorPrimary)};
1573
1574
  }
1574
1575
 
1575
1576
  .ft-text-field--filled .ft-text-field--input-panel {
1576
- border-radius: ${pd.borderRadiusS} ${pd.borderRadiusS} 0 0;
1577
+ border-radius: ${gd.borderRadiusS} ${gd.borderRadiusS} 0 0;
1577
1578
  }
1578
1579
 
1579
1580
  .ft-text-field--outlined .ft-text-field--input-panel {
1580
- border-radius: ${pd.borderRadiusS};
1581
+ border-radius: ${gd.borderRadiusS};
1581
1582
  }
1582
1583
 
1583
1584
  .ft-text-field--helper-text {
1584
- padding: 0 12px 0 ${pd.horizontalSpacing};
1585
- color: ${pd.helperColor};
1585
+ padding: 0 12px 0 ${gd.horizontalSpacing};
1586
+ color: ${gd.helperColor};
1586
1587
  }
1587
1588
 
1588
1589
  .ft-text-field--in-error .ft-text-field--input,
1589
1590
  .ft-text-field--in-error .ft-text-field--helper-text,
1590
1591
  .ft-text-field--in-error .ft-text-field--prefix {
1591
- color: ${pd.colorError};
1592
+ color: ${gd.colorError};
1592
1593
  }
1593
1594
 
1594
1595
  .ft-text-field--icon {
1595
1596
  align-self: center;
1596
1597
  margin-left: 8px;
1597
- color: ${pd.iconColor};
1598
+ color: ${gd.iconColor};
1598
1599
  }
1599
1600
 
1600
1601
  .ft-text-field--container {
@@ -1605,13 +1606,13 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1605
1606
  display: none;
1606
1607
  flex-direction: column;
1607
1608
  position: absolute;
1608
- z-index: ${pd.floatingZIndex};
1609
- background: ${pd.colorSurface};
1610
- border: 1px solid ${pd.colorOutline};
1611
- border-radius: 0 0 ${pd.borderRadiusS} ${pd.borderRadiusS};
1612
- box-shadow: ${pd.elevation02};
1609
+ z-index: ${gd.floatingZIndex};
1610
+ background: ${gd.colorSurface};
1611
+ border: 1px solid ${gd.colorOutline};
1612
+ border-radius: 0 0 ${gd.borderRadiusS} ${gd.borderRadiusS};
1613
+ box-shadow: ${gd.elevation02};
1613
1614
  outline: none;
1614
- max-height: ${pd.suggestSize};
1615
+ max-height: ${gd.suggestSize};
1615
1616
  overflow-y: auto;
1616
1617
  }
1617
1618
 
@@ -1624,13 +1625,13 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1624
1625
  }
1625
1626
 
1626
1627
  .ft-text-field--with-icon {
1627
- ${wo(Sc.labelMaxWidth,`calc(100% - ${Cl.size} - ${Sc.horizontalSpacing})`)};
1628
+ ${wo(Cc.labelMaxWidth,`calc(100% - ${Nl.size} - ${Cc.horizontalSpacing})`)};
1628
1629
  }
1629
1630
 
1630
1631
  .ft-text-field--with-password ft-icon:hover {
1631
1632
  cursor: pointer;
1632
1633
  }
1633
- `;var yd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bd extends(rs(Fr,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ec.EYE_SLASH,this.passwordRevealedIcon=ec.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Jt`
1634
+ `;var bd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class md extends(ns(Mr,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=oc.EYE_SLASH,this.passwordRevealedIcon=oc.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Jt`
1634
1635
  <div class="${Ze(t)}">
1635
1636
  <div class="ft-text-field--main-panel"
1636
1637
  @keydown=${this.handleKeyboardNavigation}
@@ -1682,7 +1683,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1682
1683
  .variant=${this.iconVariant}
1683
1684
  .value=${this.icon}
1684
1685
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1685
- `:te}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Ir(this.mainPanel,this.suggestionsContainer,"bottom").then((({x:t,y:e})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${e}px`})))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}bd.elementDefinitions={"ft-input-label":$c,"ft-ripple":Gl,"ft-typography":Kl,"ft-icon":sc},bd.styles=[pl,gd],yd([Oe()],bd.prototype,"label",void 0),yd([Oe({noAccessor:!0})],bd.prototype,"value",null),yd([Se()],bd.prototype,"dispatchedValue",void 0),yd([Oe()],bd.prototype,"helper",void 0),yd([Oe({type:Boolean})],bd.prototype,"outlined",void 0),yd([Oe({type:Boolean})],bd.prototype,"disabled",void 0),yd([Oe({type:Boolean})],bd.prototype,"error",void 0),yd([Oe({type:Boolean})],bd.prototype,"fixedMenuPosition",void 0),yd([Oe()],bd.prototype,"prefix",void 0),yd([Oe()],bd.prototype,"icon",void 0),yd([Oe()],bd.prototype,"passwordHiddenIcon",void 0),yd([Oe()],bd.prototype,"passwordRevealedIcon",void 0),yd([Oe()],bd.prototype,"iconVariant",void 0),yd([Oe({type:Boolean})],bd.prototype,"filterSuggestions",void 0),yd([Oe({type:Number})],bd.prototype,"maxLength",void 0),yd([Oe({type:Boolean})],bd.prototype,"password",void 0),yd([Se()],bd.prototype,"focused",void 0),yd([Se()],bd.prototype,"hidePassword",void 0),yd([Se()],bd.prototype,"hideSuggestions",void 0),yd([Se()],bd.prototype,"visibleSuggestions",void 0),yd([$e(".ft-text-field--main-panel")],bd.prototype,"mainPanel",void 0),yd([$e(".ft-text-field--input")],bd.prototype,"input",void 0),yd([$e(".ft-text-field--suggestions")],bd.prototype,"suggestionsContainer",void 0),yd([Ie({selector:"ft-text-field-suggestion"})],bd.prototype,"suggestions",void 0);const md=ft`
1686
+ `:te}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Ir(this.mainPanel,this.suggestionsContainer,"bottom").then((({x:t,y:e})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${e}px`})))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}md.elementDefinitions={"ft-input-label":Ec,"ft-ripple":Vl,"ft-typography":Kl,"ft-icon":lc},md.styles=[gl,yd],bd([Se()],md.prototype,"label",void 0),bd([Se({noAccessor:!0})],md.prototype,"value",null),bd([Oe()],md.prototype,"dispatchedValue",void 0),bd([Se()],md.prototype,"helper",void 0),bd([Se({type:Boolean})],md.prototype,"outlined",void 0),bd([Se({type:Boolean})],md.prototype,"disabled",void 0),bd([Se({type:Boolean})],md.prototype,"error",void 0),bd([Se({type:Boolean})],md.prototype,"fixedMenuPosition",void 0),bd([Se()],md.prototype,"prefix",void 0),bd([Se()],md.prototype,"icon",void 0),bd([Se()],md.prototype,"passwordHiddenIcon",void 0),bd([Se()],md.prototype,"passwordRevealedIcon",void 0),bd([Se()],md.prototype,"iconVariant",void 0),bd([Se({type:Boolean})],md.prototype,"filterSuggestions",void 0),bd([Se({type:Number})],md.prototype,"maxLength",void 0),bd([Se({type:Boolean})],md.prototype,"password",void 0),bd([Oe()],md.prototype,"focused",void 0),bd([Oe()],md.prototype,"hidePassword",void 0),bd([Oe()],md.prototype,"hideSuggestions",void 0),bd([Oe()],md.prototype,"visibleSuggestions",void 0),bd([$e(".ft-text-field--main-panel")],md.prototype,"mainPanel",void 0),bd([$e(".ft-text-field--input")],md.prototype,"input",void 0),bd([$e(".ft-text-field--suggestions")],md.prototype,"suggestionsContainer",void 0),bd([ke({selector:"ft-text-field-suggestion"})],md.prototype,"suggestions",void 0);const vd=ht`
1686
1687
  .ft-text-field-suggestion {
1687
1688
  position: relative;
1688
1689
  padding: 8px 16px;
@@ -1707,7 +1708,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1707
1708
  slot {
1708
1709
  pointer-events: none;
1709
1710
  }
1710
- `;var vd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xd extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class wd extends Fr{render(){return Jt`
1711
+ `;var xd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wd extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Sd extends Mr{render(){return Jt`
1711
1712
  <div class="ft-text-field-suggestion"
1712
1713
  tabindex="-1"
1713
1714
  @keydown=${this.onKeyDown}
@@ -1719,15 +1720,15 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1719
1720
  <slot></slot>
1720
1721
  </ft-typography>
1721
1722
  </div>
1722
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new xd(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}wd.elementDefinitions={"ft-ripple":Gl,"ft-typography":Kl,"ft-icon":sc},wd.styles=md,vd([Oe()],wd.prototype,"value",void 0),vd([$e(".ft-text-field-suggestion")],wd.prototype,"container",void 0),vd([ke()],wd.prototype,"assignedNodes",void 0),go("ft-text-field")(bd),go("ft-text-field-suggestion")(wd);class Od{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Sd{convertPaginatedToc(t){return new Od(t).build()}}var Cd,Nd,$d,Ed,Id,kd,Rd,Ud,Ld,_d,Ad,Wd,Td,zd,Bd,Fd,Dd,Md;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=d(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),p.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},u.call(g.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Cd||(Cd={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Nd||(Nd={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}($d||($d={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ed||(Ed={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Id||(Id={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(kd||(kd={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Rd||(Rd={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ud||(Ud={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ld||(Ld={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(_d||(_d={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ad||(Ad={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Wd||(Wd={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Td||(Td={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zd||(zd={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bd||(Bd={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Fd||(Fd={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Dd||(Dd={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Md||(Md={}));const Pd={[Dd.PERSONAL_BOOK_SHARE_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.HTML_EXPORT_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.PDF_EXPORT_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.KHUB_ADMIN]:[Dd.CONTENT_PUBLISHER],[Dd.ADMIN]:[Dd.KHUB_ADMIN,Dd.USERS_ADMIN,Dd.PORTAL_ADMIN],[Dd.DEVELOPER]:[Dd.BETA_USER,Dd.DEBUG_USER]};function jd(t,e){return t===e||(Pd[t]??[]).some((t=>jd(t,e)))}function Zd(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>jd(t,e)))}class Kd extends jc{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Zd(null!==(e=null===(t=Mc.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Mc.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case fs.FEEDBACK:return Zd(null!=e?e:[],Dd.FEEDBACK_USER);case fs.RATING:return Zd(null!=e?e:[],Dd.RATING_USER)&&null!=o&&o!==Rd.NO_RATING;case fs.PRINT:return Zd(null!=e?e:[],Dd.PRINT_USER);case fs.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case fs.COLLECTIONS:return Zd(null!=e?e:[],Dd.COLLECTION_USER);case fs.PERSONAL_BOOKS:return Zd(null!=e?e:[],Dd.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Hd extends Kd{static async build(t){return new Hd(new Sd,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Gd{static build(t,e){return new Gd((t=>ts.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Hd.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new so(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return ho((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,i,r;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Qe||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new no(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Mc.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,o,i;const r=await ho((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(i=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===i?void 0:i[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Vd=ft`
1723
- `;class qd extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Yd extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Jd extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Xd extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Qd extends Event{constructor(){super("ft-reader-map-not-found")}}class th extends Event{constructor(){super("ft-reader-map-unauthorized")}}class eh extends Event{constructor(){super("ft-reader-map-forbidden")}}class oh extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var ih=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rh extends fn{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new so(5),this.navigationDebouncer=new so(10),this.mapLoadedEventDebouncer=new so(50),this.addStore(Mc)}render(){return Jt`
1723
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new wd(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Sd.elementDefinitions={"ft-ripple":Vl,"ft-typography":Kl,"ft-icon":lc},Sd.styles=vd,xd([Se()],Sd.prototype,"value",void 0),xd([$e(".ft-text-field-suggestion")],Sd.prototype,"container",void 0),xd([Ie()],Sd.prototype,"assignedNodes",void 0),go("ft-text-field")(md),go("ft-text-field-suggestion")(Sd);class Od{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Cd{convertPaginatedToc(t){return new Od(t).build()}}var Nd,$d,Ed,kd,Id,Rd,Ld,Ud,_d,Ad,Wd,Bd,zd,Td,Fd,Md,Dd,Pd;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=d(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),p.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},u.call(g.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Nd||(Nd={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}($d||($d={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ed||(Ed={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(kd||(kd={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Id||(Id={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Rd||(Rd={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ld||(Ld={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ud||(Ud={})),function(t){t.ASC="ASC",t.DESC="DESC"}(_d||(_d={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ad||(Ad={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Wd||(Wd={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Bd||(Bd={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(zd||(zd={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Td||(Td={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Fd||(Fd={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Md||(Md={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Dd||(Dd={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Pd||(Pd={}));const jd={[Dd.PERSONAL_BOOK_SHARE_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.HTML_EXPORT_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.PDF_EXPORT_USER]:[Dd.PERSONAL_BOOK_USER],[Dd.KHUB_ADMIN]:[Dd.CONTENT_PUBLISHER],[Dd.ADMIN]:[Dd.KHUB_ADMIN,Dd.USERS_ADMIN,Dd.PORTAL_ADMIN],[Dd.DEVELOPER]:[Dd.BETA_USER,Dd.DEBUG_USER]};function Zd(t,e){return t===e||(jd[t]??[]).some((t=>Zd(t,e)))}function Hd(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Zd(t,e)))}class Kd extends Zc{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Hd(null!==(e=null===(t=Pc.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Pc.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case us.FEEDBACK:return Hd(null!=e?e:[],Dd.FEEDBACK_USER);case us.RATING:return Hd(null!=e?e:[],Dd.RATING_USER)&&null!=o&&o!==Ld.NO_RATING;case us.PRINT:return Hd(null!=e?e:[],Dd.PRINT_USER);case us.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case us.COLLECTIONS:return Hd(null!=e?e:[],Dd.COLLECTION_USER);case us.PERSONAL_BOOKS:return Hd(null!=e?e:[],Dd.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Gd extends Kd{static async build(t){return new Gd(new Cd,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Vd{static build(t,e){return new Vd((t=>es.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Gd.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new so(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return fo((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,i,r;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Qe||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new no(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Pc.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,o,i;const r=await fo((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(i=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===i?void 0:i[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const qd=ht`
1724
+ `;class Yd extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Jd extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Xd extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Qd extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class tf extends Event{constructor(){super("ft-reader-map-not-found")}}class ef extends Event{constructor(){super("ft-reader-map-unauthorized")}}class of extends Event{constructor(){super("ft-reader-map-forbidden")}}class rf extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var nf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class af extends un{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new so(5),this.navigationDebouncer=new so(10),this.mapLoadedEventDebouncer=new so(50),this.addStore(Pc)}render(){return Jt`
1724
1725
  ${this.importStyleIfNeeded()}
1725
1726
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1726
1727
  `}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?te:Jt`
1727
1728
  <style>
1728
1729
  @import "${o}"
1729
1730
  </style>
1730
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Gd.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Jd(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Yd(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new oh),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new th):403===e.status?this.dispatchEvent(new eh):404===e.status?this.dispatchEvent(new Qd):this.dispatchEvent(new Xd(t))}reloadBookmarks(){td.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new qd(this.map,this.toc))}))}}var nh;rh.styles=Vd,ih([en({store:Mc.name})],rh.prototype,"baseUrl",void 0),ih([Oe()],rh.prototype,"mapId",void 0),ih([Oe()],rh.prototype,"tocId",void 0),ih([Oe()],rh.prototype,"section",void 0),ih([Oe()],rh.prototype,"topicPivot",void 0),ih([Oe()],rh.prototype,"searchInDocumentQuery",void 0),ih([Oe({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:nh}})],rh.prototype,"page",void 0),ih([en({store:"reader"})],rh.prototype,"map",void 0),ih([en({store:"reader"})],rh.prototype,"toc",void 0),ih([en({store:"reader"})],rh.prototype,"visibleTopics",void 0),ih([en({store:"reader"})],rh.prototype,"currentPage",void 0),ih([en({store:"reader"})],rh.prototype,"scrollTarget",void 0),ih([Oe({attribute:!1})],rh.prototype,"readerServiceProvider",void 0),go("ft-reader-context")(rh);class ah extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class sh extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class lh extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class ch extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class dh extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var hh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fh extends(nd(ys)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(fd,ud)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(fs.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(fs.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,e;const o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof o?fo(o):o}render(){return this.canAccessFeedback||this.canAccessRating?Jt`
1731
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Vd.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Xd(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Jd(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new rf),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new ef):403===e.status?this.dispatchEvent(new of):404===e.status?this.dispatchEvent(new tf):this.dispatchEvent(new Qd(t))}reloadBookmarks(){ed.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Yd(this.map,this.toc))}))}}var sf;af.styles=qd,nf([on({store:Pc.name})],af.prototype,"baseUrl",void 0),nf([Se()],af.prototype,"mapId",void 0),nf([Se()],af.prototype,"tocId",void 0),nf([Se()],af.prototype,"section",void 0),nf([Se()],af.prototype,"topicPivot",void 0),nf([Se()],af.prototype,"searchInDocumentQuery",void 0),nf([Se({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:sf}})],af.prototype,"page",void 0),nf([on({store:"reader"})],af.prototype,"map",void 0),nf([on({store:"reader"})],af.prototype,"toc",void 0),nf([on({store:"reader"})],af.prototype,"visibleTopics",void 0),nf([on({store:"reader"})],af.prototype,"currentPage",void 0),nf([on({store:"reader"})],af.prototype,"scrollTarget",void 0),nf([Se({attribute:!1})],af.prototype,"readerServiceProvider",void 0),go("ft-reader-context")(af);class lf extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class cf extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class df extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class ff extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class hf extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var uf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pf extends(ad(bs)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(ud,pd)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(us.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(us.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,e;const o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof o?ho(o):o}render(){return this.canAccessFeedback||this.canAccessRating?Jt`
1731
1732
  <div class="ft-reader-feedback">
1732
1733
  ${this.hideTitle?te:Jt`
1733
1734
  <ft-typography variant="title" part="main-title">
@@ -1747,11 +1748,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1747
1748
  ${this.renderRatingDate()}
1748
1749
  </ft-typography>
1749
1750
  </div>
1750
- `:te}renderRatingDate(){const t=this.ratingDate;if(null==t)return fd.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return fd.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?fd.messages.ratedToday():fd.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return Jt`
1751
+ `:te}renderRatingDate(){const t=this.ratingDate;if(null==t)return ud.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return ud.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?ud.messages.ratedToday():ud.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return Jt`
1751
1752
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1752
1753
  ${Pe(new Array(5),((t,e)=>e),((t,e)=>{let o="STARS"===this.ratingType&&this.ratingValue>e;const i=e+1;return Jt`
1753
1754
  <ft-button round part="rating-stars-${i}"
1754
- label="${fd.messages.starsRating(i)}"
1755
+ label="${ud.messages.starsRating(i)}"
1755
1756
  tooltipPosition="top"
1756
1757
  .iconVariant=${this.iconVariant}
1757
1758
  icon="${o?this.filledStarIcon:this.emptyStarIcon}"
@@ -1768,13 +1769,13 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1768
1769
  ?selected=${e}
1769
1770
  .iconVariant=${this.iconVariant}
1770
1771
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1771
- ${fd.messages.like()}
1772
+ ${ud.messages.like()}
1772
1773
  </ft-switch-option>
1773
1774
  <ft-switch-option .value=${0}
1774
1775
  ?selected=${t}
1775
1776
  .iconVariant=${this.iconVariant}
1776
1777
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1777
- ${fd.messages.dislike()}
1778
+ ${ud.messages.dislike()}
1778
1779
  </ft-switch-option>
1779
1780
  </ft-switch>
1780
1781
  `;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,i="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return Jt`
@@ -1783,11 +1784,11 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1783
1784
  part="rating rating-dichotomous">
1784
1785
  <ft-switch-option .value=${1}
1785
1786
  ?selected=${i}>
1786
- ${fd.messages.dichotomousYes()}
1787
+ ${ud.messages.dichotomousYes()}
1787
1788
  </ft-switch-option>
1788
1789
  <ft-switch-option .value=${0}
1789
1790
  ?selected=${o}>
1790
- ${fd.messages.dichotomousNo()}
1791
+ ${ud.messages.dichotomousNo()}
1791
1792
  </ft-switch-option>
1792
1793
  </ft-switch>
1793
1794
  `}return te}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,o,i,r;if(this.canAccessFeedback){const n=this.feedbackMailLinkBuilder(this.feedbackMessage);let a=Jt`
@@ -1796,7 +1797,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1796
1797
  class="ft-reader-feedback--send-feedback"
1797
1798
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1798
1799
  part="send-feedback">
1799
- ${fd.messages.okButton()}
1800
+ ${ud.messages.okButton()}
1800
1801
  </ft-button>
1801
1802
  `;n&&(a=Jt`
1802
1803
  <a class="ft-reader-feedback--feedback-link" href="${n}">
@@ -1808,7 +1809,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1808
1809
  class="ft-reader-feedback--more-options"
1809
1810
  @click="${this.onOpenMoreDetails}"
1810
1811
  part="more-options">
1811
- ${fd.messages.moreOptionsButton()}
1812
+ ${ud.messages.moreOptionsButton()}
1812
1813
  </ft-button>
1813
1814
  `:te;return Jt`
1814
1815
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
@@ -1819,15 +1820,15 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1819
1820
  ${null==(null===(i=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===i?void 0:i.userId)&&(null===(r=this.configuration)||void 0===r?void 0:r.mailsSentByFluidTopicsForUnauthenticatedUsers)?Jt`
1820
1821
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1821
1822
  class="ft-reader-feedback--from-input"
1822
- label=${fd.messages.feedbackfromEmail()}
1823
+ label=${ud.messages.feedbackfromEmail()}
1823
1824
  @change=${t=>this.from=t.detail.trim()}
1824
1825
  ?error=${this.from&&!this.validFromEmail()}
1825
- helper=${this.from&&!this.validFromEmail()?fd.messages.feedbackfromEmailInvalid():""}
1826
+ helper=${this.from&&!this.validFromEmail()?ud.messages.feedbackfromEmailInvalid():""}
1826
1827
  />
1827
1828
  `:te}
1828
1829
  <ft-text-area outlined
1829
1830
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1830
- label="${fd.messages.feedbackInputLabel()}"
1831
+ label="${ud.messages.feedbackInputLabel()}"
1831
1832
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1832
1833
  ></ft-text-area>
1833
1834
  <div part="buttons-container">
@@ -1835,7 +1836,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1835
1836
  ${a}
1836
1837
  </div>
1837
1838
  </form>
1838
- `}return te}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new ah({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}fh.elementDefinitions={"ft-button":Wc,"ft-typography":Kl,"ft-switch":yc,"ft-switch-option":uc,"ft-text-area":Rc,"ft-text-field":bd},fh.styles=zl,hh([Oe({type:Boolean})],fh.prototype,"editorMode",void 0),hh([Oe({type:Boolean})],fh.prototype,"hideTitle",void 0),hh([Oe({type:Boolean})],fh.prototype,"withMoreOptionsButton",void 0),hh([Oe({type:Boolean})],fh.prototype,"ratingAllowed",void 0),hh([Oe({attribute:!1})],fh.prototype,"i18nProperties",void 0),hh([Oe({attribute:!1})],fh.prototype,"ratingSummary",void 0),hh([Oe({attribute:!1})],fh.prototype,"session",void 0),hh([$e(".ft-reader-feedback--feedback-input")],fh.prototype,"feedbackInput",void 0),hh([Se()],fh.prototype,"from",void 0),hh([Se()],fh.prototype,"feedbackMessage",void 0),hh([Oe()],fh.prototype,"iconVariant",void 0),hh([Oe()],fh.prototype,"emptyStarIcon",void 0),hh([Oe()],fh.prototype,"filledStarIcon",void 0),hh([Oe()],fh.prototype,"emptyLikeIcon",void 0),hh([Oe()],fh.prototype,"filledLikeIcon",void 0),hh([Oe()],fh.prototype,"emptyDislikeIcon",void 0),hh([Oe()],fh.prototype,"filledDislikeIcon",void 0),hh([en({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fh.prototype,"configuration",void 0),hh([Oe()],fh.prototype,"feedbackMailLinkBuilder",void 0);const uh=dd.fromGwt("server");class ph{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${uh.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const gh=dd.build("inDesignerFeedbackComponent"),yh={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var bh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class mh extends(nd(ys)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=ic.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ph,this.i18nProperties={feedbackMainTitle:fd.properties.mapFeedbackMainTitle(),ratingSectionTitle:fd.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:fd.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:fd.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Mc)}render(){return Jt`
1839
+ `}return te}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new lf({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}pf.elementDefinitions={"ft-button":Bc,"ft-typography":Kl,"ft-switch":bc,"ft-switch-option":pc,"ft-text-area":Lc,"ft-text-field":md},pf.styles=Tl,uf([Se({type:Boolean})],pf.prototype,"editorMode",void 0),uf([Se({type:Boolean})],pf.prototype,"hideTitle",void 0),uf([Se({type:Boolean})],pf.prototype,"withMoreOptionsButton",void 0),uf([Se({type:Boolean})],pf.prototype,"ratingAllowed",void 0),uf([Se({attribute:!1})],pf.prototype,"i18nProperties",void 0),uf([Se({attribute:!1})],pf.prototype,"ratingSummary",void 0),uf([Se({attribute:!1})],pf.prototype,"session",void 0),uf([$e(".ft-reader-feedback--feedback-input")],pf.prototype,"feedbackInput",void 0),uf([Oe()],pf.prototype,"from",void 0),uf([Oe()],pf.prototype,"feedbackMessage",void 0),uf([Se()],pf.prototype,"iconVariant",void 0),uf([Se()],pf.prototype,"emptyStarIcon",void 0),uf([Se()],pf.prototype,"filledStarIcon",void 0),uf([Se()],pf.prototype,"emptyLikeIcon",void 0),uf([Se()],pf.prototype,"filledLikeIcon",void 0),uf([Se()],pf.prototype,"emptyDislikeIcon",void 0),uf([Se()],pf.prototype,"filledDislikeIcon",void 0),uf([on({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pf.prototype,"configuration",void 0),uf([Se()],pf.prototype,"feedbackMailLinkBuilder",void 0);const gf=fd.fromGwt("server");class yf{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${gf.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const bf=fd.build("inDesignerFeedbackComponent"),mf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var vf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xf extends(ad(bs)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=rc.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new yf,this.i18nProperties={feedbackMainTitle:ud.properties.mapFeedbackMainTitle(),ratingSectionTitle:ud.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:ud.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:ud.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Pc)}render(){return Jt`
1839
1840
  <ft-reader-feedback
1840
1841
  ratingAllowed
1841
1842
  .i18nProperties=${this.i18nProperties}
@@ -1857,7 +1858,7 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1857
1858
  @mailer-feedback=${this.onMailerFeedbackSent}
1858
1859
  @open-more-options=${this.openMoreOptions}
1859
1860
  ></ft-reader-feedback>
1860
- `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gh,yh),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Si({type:"error",message:fd.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Si({type:"info",message:gh.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Si({type:"info",message:gh.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Si({type:"info",message:fd.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Si({type:"error",message:fd.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new dh)}openMoreOptions(){var t,e,o;this.dispatchEvent(new lh({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||Rd.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}mh.elementDefinitions={"ft-reader-feedback":fh},bh([en({store:Mc.name})],mh.prototype,"session",void 0),bh([en({store:"reader"})],mh.prototype,"map",void 0),bh([en({store:Mc.name})],mh.prototype,"editorMode",void 0),bh([en({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],mh.prototype,"configuration",void 0),bh([Se()],mh.prototype,"ratingSummary",void 0),bh([Oe({type:Boolean})],mh.prototype,"hideTitle",void 0),bh([Oe({type:Boolean})],mh.prototype,"withMoreOptionsButton",void 0),bh([Oe()],mh.prototype,"iconVariant",void 0),bh([Oe()],mh.prototype,"emptyStarIcon",void 0),bh([Oe()],mh.prototype,"filledStarIcon",void 0),bh([Oe()],mh.prototype,"emptyLikeIcon",void 0),bh([Oe()],mh.prototype,"filledLikeIcon",void 0),bh([Oe()],mh.prototype,"emptyDislikeIcon",void 0),bh([Oe()],mh.prototype,"filledDislikeIcon",void 0),bh([$e("ft-reader-feedback")],mh.prototype,"readerFeedback",void 0),bh([hd(uh.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],mh.prototype,"mailSubject",void 0),bh([on({eventName:"rating-changed"})],mh.prototype,"fetchRatingSummary",null);var vh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xh extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const wh=Symbol("registerInterval");class Oh extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[wh]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[wh]):this.dispatchEvent(new xh)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=wh,vh([Se()],o.prototype,"tocNode",void 0),vh([Se()],o.prototype,"disableContextInteractions",void 0),o}(ys)){}var Sh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ch extends(nd(Oh)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=ic.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ph,this.i18nProperties={feedbackMainTitle:fd.properties.topicFeedbackMainTitle(),ratingSectionTitle:fd.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:fd.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:fd.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Mc)}render(){var t;return Jt`
1861
+ `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(bf,mf),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Ci({type:"error",message:ud.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:bf.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ci({type:"info",message:bf.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ci({type:"info",message:ud.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ci({type:"error",message:ud.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new hf)}openMoreOptions(){var t,e,o;this.dispatchEvent(new df({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||Ld.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}xf.elementDefinitions={"ft-reader-feedback":pf},vf([on({store:Pc.name})],xf.prototype,"session",void 0),vf([on({store:"reader"})],xf.prototype,"map",void 0),vf([on({store:Pc.name})],xf.prototype,"editorMode",void 0),vf([on({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],xf.prototype,"configuration",void 0),vf([Oe()],xf.prototype,"ratingSummary",void 0),vf([Se({type:Boolean})],xf.prototype,"hideTitle",void 0),vf([Se({type:Boolean})],xf.prototype,"withMoreOptionsButton",void 0),vf([Se()],xf.prototype,"iconVariant",void 0),vf([Se()],xf.prototype,"emptyStarIcon",void 0),vf([Se()],xf.prototype,"filledStarIcon",void 0),vf([Se()],xf.prototype,"emptyLikeIcon",void 0),vf([Se()],xf.prototype,"filledLikeIcon",void 0),vf([Se()],xf.prototype,"emptyDislikeIcon",void 0),vf([Se()],xf.prototype,"filledDislikeIcon",void 0),vf([$e("ft-reader-feedback")],xf.prototype,"readerFeedback",void 0),vf([hd(gf.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],xf.prototype,"mailSubject",void 0),vf([rn({eventName:"rating-changed"})],xf.prototype,"fetchRatingSummary",null);var wf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sf extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Of=Symbol("registerInterval");class Cf extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Of]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Of]):this.dispatchEvent(new Sf)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Of,wf([Oe()],o.prototype,"tocNode",void 0),wf([Oe()],o.prototype,"disableContextInteractions",void 0),o}(bs)){}var Nf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $f extends(ad(Cf)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=rc.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new yf,this.i18nProperties={feedbackMainTitle:ud.properties.topicFeedbackMainTitle(),ratingSectionTitle:ud.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:ud.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:ud.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Pc)}render(){var t;return Jt`
1861
1862
  <ft-reader-feedback
1862
1863
  .i18nProperties=${this.i18nProperties}
1863
1864
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
@@ -1879,4 +1880,4 @@ function Ie(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1879
1880
  @mailer-feedback=${this.onMailerFeedbackSent}
1880
1881
  @open-more-options=${this.openMoreOptions}
1881
1882
  ></ft-reader-feedback>
1882
- `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gh,yh),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Si({type:"error",message:fd.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Si({type:"info",message:gh.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Si({type:"info",message:fd.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Si({type:"info",message:gh.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Si({type:"error",message:fd.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new ch(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new sh({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:Rd.NO_RATING)||Rd.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}Ch.elementDefinitions={"ft-reader-feedback":fh},Sh([en({store:Mc.name})],Ch.prototype,"session",void 0),Sh([en({store:"reader"})],Ch.prototype,"map",void 0),Sh([en({store:Mc.name})],Ch.prototype,"editorMode",void 0),Sh([en({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ch.prototype,"configuration",void 0),Sh([Se()],Ch.prototype,"ratingSummary",void 0),Sh([Oe({type:Boolean})],Ch.prototype,"hideTitle",void 0),Sh([Oe({type:Boolean})],Ch.prototype,"withMoreOptionsButton",void 0),Sh([Oe()],Ch.prototype,"iconVariant",void 0),Sh([Oe()],Ch.prototype,"emptyStarIcon",void 0),Sh([Oe()],Ch.prototype,"filledStarIcon",void 0),Sh([Oe()],Ch.prototype,"emptyLikeIcon",void 0),Sh([Oe()],Ch.prototype,"filledLikeIcon",void 0),Sh([Oe()],Ch.prototype,"emptyDislikeIcon",void 0),Sh([Oe()],Ch.prototype,"filledDislikeIcon",void 0),Sh([$e("ft-reader-feedback")],Ch.prototype,"readerFeedback",void 0),Sh([hd(uh.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],Ch.prototype,"mailSubject",void 0),Sh([on({eventName:"rating-changed"})],Ch.prototype,"fetchRatingSummary",null),go("ft-reader-map-feedback")(mh),go("ft-reader-topic-feedback")(Ch),t.FtReaderFeedbackCssVariables=Tl,t.FtReaderMapFeedback=mh,t.FtReaderTopicFeedback=Ch,t.styles=zl}({});
1883
+ `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(bf,mf),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Ci({type:"error",message:ud.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:bf.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ci({type:"info",message:ud.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:bf.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ci({type:"error",message:ud.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new ff(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new cf({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:Ld.NO_RATING)||Ld.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}$f.elementDefinitions={"ft-reader-feedback":pf},Nf([on({store:Pc.name})],$f.prototype,"session",void 0),Nf([on({store:"reader"})],$f.prototype,"map",void 0),Nf([on({store:Pc.name})],$f.prototype,"editorMode",void 0),Nf([on({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],$f.prototype,"configuration",void 0),Nf([Oe()],$f.prototype,"ratingSummary",void 0),Nf([Se({type:Boolean})],$f.prototype,"hideTitle",void 0),Nf([Se({type:Boolean})],$f.prototype,"withMoreOptionsButton",void 0),Nf([Se()],$f.prototype,"iconVariant",void 0),Nf([Se()],$f.prototype,"emptyStarIcon",void 0),Nf([Se()],$f.prototype,"filledStarIcon",void 0),Nf([Se()],$f.prototype,"emptyLikeIcon",void 0),Nf([Se()],$f.prototype,"filledLikeIcon",void 0),Nf([Se()],$f.prototype,"emptyDislikeIcon",void 0),Nf([Se()],$f.prototype,"filledDislikeIcon",void 0),Nf([$e("ft-reader-feedback")],$f.prototype,"readerFeedback",void 0),Nf([hd(gf.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],$f.prototype,"mailSubject",void 0),Nf([rn({eventName:"rating-changed"})],$f.prototype,"fetchRatingSummary",null),go("ft-reader-map-feedback")(xf),go("ft-reader-topic-feedback")($f),t.FtReaderFeedbackCssVariables=zl,t.FtReaderMapFeedback=xf,t.FtReaderTopicFeedback=$f,t.styles=Tl}({});