@fluid-topics/ft-reader-feedback 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=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||[]);d(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 h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.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 i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}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)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!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((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o 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,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(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 i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ga){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.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)}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=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||[]);d(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 f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.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 i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}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)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!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((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o 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,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(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 i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(gs){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.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)}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -22,7 +22,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:h,defineProperty:f,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:p,getPrototypeOf:y}=Object,g=globalThis,b=g.trustedTypes,v=b?b.emptyScript:"",m=g.reactiveElementPolyfillSupport,x=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>!h(t,e),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let $=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=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&f(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...u(t),...p(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(n)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=r.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:w).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??O)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.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,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}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){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,m?.({ReactiveElement:$}),(g.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:f,defineProperty:h,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:p,getPrototypeOf:y}=Object,g=globalThis,b=g.trustedTypes,v=b?b.emptyScript:"",m=g.reactiveElementPolyfillSupport,x=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let $=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=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&h(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...u(t),...p(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(n)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=r.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:w).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??O)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.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,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}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){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,m?.({ReactiveElement:$}),(g.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
@@ -59,7 +59,7 @@ function U(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not(
59
59
  * @license
60
60
  * Copyright 2017 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const D=globalThis,F=D.trustedTypes,P=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,j="?"+z,B=`<${j}>`,K=document,Z=()=>K.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V=t=>G(t)||"function"==typeof t?.[Symbol.iterator],q="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),at=new WeakMap,st=K.createTreeWalker(K,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const ct=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Y;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,h=0;for(;h<i.length&&(a.lastIndex=h,l=a.exec(i),null!==l);)h=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=J:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=r??Y,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Q:'"'===l[3]?et:tt):a===et||a===tt?a=Q:a===X||a===J?a=Y:(a=Q,r=void 0);const f=a===Q&&t[e+1].startsWith("/>")?" ":"";n+=a===Y?i+B:c>=0?(o.push(s),i.slice(0,c)+M+i.slice(c)+z+f):i+z+(-2===c?e:f)}return[lt(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ht=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,h]=ct(e,i);if(this.el=t.createElement(c,o),st.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=h[a++],i=r.getAttribute(t).split(z),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?yt:"?"===o[1]?gt:"@"===o[1]?bt:pt}),r.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(it.test(r.tagName)){const t=r.textContent.split(z),e=t.length-1;if(e>0){r.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],Z()),st.nextNode(),l.push({type:2,index:++n});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===j)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}};function ft(t,e,i=t,o){if(e===rt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=H(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ft(t,r._$AS(t,e.values),r,o)),e}let dt=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:i}=this._$AD,o=(t?.creationScope??K).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ut(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new vt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=st.nextNode(),n++)}return st.currentNode=K,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ut=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=ft(this,t,e),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(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!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ht.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ht(t)),e}T(e){G(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Z()),this.k(Z()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ft(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ft(this,o[i+a],e,a),s===rt&&(s=this._$AH[a]),n||=!H(s)||s!==this._$AH[a],s===nt?t=nt:t!==nt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},yt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===nt?void 0:t}},gt=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}},bt=class extends pt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??nt)===rt)return;const i=this._$AH,o=t===nt&&i!==nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==nt&&(i===nt||o);o&&this.element.removeEventListener(this.name,this,i),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)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}};const mt={j:M,P:z,A:j,C:1,M:ct,L:dt,R:V,V:ft,D:ut,I:pt,H:gt,N:bt,U:yt,B:vt},xt=D.litHtmlPolyfillSupport;xt?.(ht,ut),(D.litHtmlVersions??=[]).push("3.1.0");
62
+ */const D=globalThis,F=D.trustedTypes,P=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,j="?"+z,B=`<${j}>`,K=document,Z=()=>K.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V=t=>G(t)||"function"==typeof t?.[Symbol.iterator],q="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),at=new WeakMap,st=K.createTreeWalker(K,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const ct=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Y;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=J:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=r??Y,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Q:'"'===l[3]?et:tt):a===et||a===tt?a=Q:a===X||a===J?a=Y:(a=Q,r=void 0);const h=a===Q&&t[e+1].startsWith("/>")?" ":"";n+=a===Y?i+B:c>=0?(o.push(s),i.slice(0,c)+M+i.slice(c)+z+h):i+z+(-2===c?e:h)}return[lt(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ft=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=ct(e,i);if(this.el=t.createElement(c,o),st.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=f[a++],i=r.getAttribute(t).split(z),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?yt:"?"===o[1]?gt:"@"===o[1]?bt:pt}),r.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(it.test(r.tagName)){const t=r.textContent.split(z),e=t.length-1;if(e>0){r.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],Z()),st.nextNode(),l.push({type:2,index:++n});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===j)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}};function ht(t,e,i=t,o){if(e===rt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=H(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ht(t,r._$AS(t,e.values),r,o)),e}let dt=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:i}=this._$AD,o=(t?.creationScope??K).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ut(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new vt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=st.nextNode(),n++)}return st.currentNode=K,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ut=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=ht(this,t,e),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(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!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ft.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ft(t)),e}T(e){G(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Z()),this.k(Z()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ht(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ht(this,o[i+a],e,a),s===rt&&(s=this._$AH[a]),n||=!H(s)||s!==this._$AH[a],s===nt?t=nt:t!==nt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},yt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===nt?void 0:t}},gt=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}},bt=class extends pt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??nt)===rt)return;const i=this._$AH,o=t===nt&&i!==nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==nt&&(i===nt||o);o&&this.element.removeEventListener(this.name,this,i),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)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};const mt={j:M,P:z,A:j,C:1,M:ct,L:dt,R:V,V:ht,D:ut,I:pt,H:gt,N:bt,U:yt,B:vt},xt=D.litHtmlPolyfillSupport;xt?.(ft,ut),(D.litHtmlVersions??=[]).push("3.1.0");
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2019 Google LLC
@@ -76,18 +76,18 @@ const wt=globalThis,Ot=wt.ShadowRoot&&(void 0===wt.ShadyCSS||wt.ShadyCSS.nativeS
76
76
  * Copyright 2017 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
78
  */
79
- const Kt=globalThis,Zt=Kt.trustedTypes,Ht=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gt="$lit$",Vt=`lit$${(Math.random()+"").slice(9)}$`,qt="?"+Vt,Yt=`<${qt}>`,Xt=document,Jt=()=>Xt.createComment(""),Qt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,te=Array.isArray,ee="[ \t\n\f\r]",ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oe=/-->/g,re=/>/g,ne=RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ae=/'/g,se=/"/g,le=/^(?:script|style|textarea|title)$/i,ce=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),he=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),de=new WeakMap,ue=Xt.createTreeWalker(Xt,129);function pe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ht?Ht.createHTML(e):e}class ye{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=ie;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,h=0;for(;h<i.length&&(a.lastIndex=h,l=a.exec(i),null!==l);)h=a.lastIndex,a===ie?"!--"===l[1]?a=oe:void 0!==l[1]?a=re:void 0!==l[2]?(le.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=ne):void 0!==l[3]&&(a=ne):a===ne?">"===l[0]?(a=r??ie,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ne:'"'===l[3]?se:ae):a===se||a===ae?a=ne:a===oe||a===re?a=ie:(a=ne,r=void 0);const f=a===ne&&t[e+1].startsWith("/>")?" ":"";n+=a===ie?i+Yt:c>=0?(o.push(s),i.slice(0,c)+Gt+i.slice(c)+Vt+f):i+Vt+(-2===c?e:f)}return[pe(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ye.createElement(l,i),ue.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ue.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Gt)){const e=c[n++],i=o.getAttribute(t).split(Vt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?me:"?"===a[1]?xe:"@"===a[1]?we:ve}),o.removeAttribute(t)}else t.startsWith(Vt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(le.test(o.tagName)){const t=o.textContent.split(Vt),e=t.length-1;if(e>0){o.textContent=Zt?Zt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Jt()),ue.nextNode(),s.push({type:2,index:++r});o.append(t[e],Jt())}}}else if(8===o.nodeType)if(o.data===qt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Vt,t+1));)s.push({type:7,index:r}),t+=Vt.length-1}r++}}static createElement(t,e){const i=Xt.createElement("template");return i.innerHTML=t,i}}function ge(t,e,i=t,o){if(e===he)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=Qt(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ge(t,r._$AS(t,e.values),r,o)),e}let be=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=ge(this,t,e),Qt(t)?t===fe||null==t||""===t?(this._$AH!==fe&&this._$AR(),this._$AH=fe):t!==this._$AH&&t!==he&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>te(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==fe&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Xt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ye.createElement(pe(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??Xt).importNode(e,!0);ue.currentNode=o;let r=ue.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new be(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Oe(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ue.nextNode(),n++)}return ue.currentNode=Xt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=de.get(t.strings);return void 0===e&&de.set(t.strings,e=new ye(t)),e}T(e){te(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Jt()),this.k(Jt()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=fe}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ge(this,t,e,0),n=!Qt(t)||t!==this._$AH&&t!==he,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ge(this,o[i+a],e,a),s===he&&(s=this._$AH[a]),n||=!Qt(s)||s!==this._$AH[a],s===fe?t=fe:t!==fe&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},me=class extends ve{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===fe?void 0:t}},xe=class extends ve{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==fe)}},we=class extends ve{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ge(this,t,e,0)??fe)===he)return;const i=this._$AH,o=t===fe&&i!==fe||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==fe&&(i===fe||o);o&&this.element.removeEventListener(this.name,this,i),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)}},Oe=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ge(this,t)}};const Se=Kt.litHtmlPolyfillSupport;Se?.(ye,be),(Kt.litHtmlVersions??=[]).push("3.1.0");
79
+ const Kt=globalThis,Zt=Kt.trustedTypes,Ht=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gt="$lit$",Vt=`lit$${(Math.random()+"").slice(9)}$`,qt="?"+Vt,Yt=`<${qt}>`,Xt=document,Jt=()=>Xt.createComment(""),Qt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,te=Array.isArray,ee="[ \t\n\f\r]",ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oe=/-->/g,re=/>/g,ne=RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ae=/'/g,se=/"/g,le=/^(?:script|style|textarea|title)$/i,ce=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),fe=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),de=new WeakMap,ue=Xt.createTreeWalker(Xt,129);function pe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ht?Ht.createHTML(e):e}class ye{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=ie;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===ie?"!--"===l[1]?a=oe:void 0!==l[1]?a=re:void 0!==l[2]?(le.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=ne):void 0!==l[3]&&(a=ne):a===ne?">"===l[0]?(a=r??ie,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ne:'"'===l[3]?se:ae):a===se||a===ae?a=ne:a===oe||a===re?a=ie:(a=ne,r=void 0);const h=a===ne&&t[e+1].startsWith("/>")?" ":"";n+=a===ie?i+Yt:c>=0?(o.push(s),i.slice(0,c)+Gt+i.slice(c)+Vt+h):i+Vt+(-2===c?e:h)}return[pe(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ye.createElement(l,i),ue.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ue.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Gt)){const e=c[n++],i=o.getAttribute(t).split(Vt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?me:"?"===a[1]?xe:"@"===a[1]?we:ve}),o.removeAttribute(t)}else t.startsWith(Vt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(le.test(o.tagName)){const t=o.textContent.split(Vt),e=t.length-1;if(e>0){o.textContent=Zt?Zt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Jt()),ue.nextNode(),s.push({type:2,index:++r});o.append(t[e],Jt())}}}else if(8===o.nodeType)if(o.data===qt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Vt,t+1));)s.push({type:7,index:r}),t+=Vt.length-1}r++}}static createElement(t,e){const i=Xt.createElement("template");return i.innerHTML=t,i}}function ge(t,e,i=t,o){if(e===fe)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=Qt(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ge(t,r._$AS(t,e.values),r,o)),e}let be=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=he,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=ge(this,t,e),Qt(t)?t===he||null==t||""===t?(this._$AH!==he&&this._$AR(),this._$AH=he):t!==this._$AH&&t!==fe&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>te(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==he&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Xt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ye.createElement(pe(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??Xt).importNode(e,!0);ue.currentNode=o;let r=ue.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new be(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Oe(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ue.nextNode(),n++)}return ue.currentNode=Xt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=de.get(t.strings);return void 0===e&&de.set(t.strings,e=new ye(t)),e}T(e){te(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Jt()),this.k(Jt()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=he,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=he}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ge(this,t,e,0),n=!Qt(t)||t!==this._$AH&&t!==fe,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ge(this,o[i+a],e,a),s===fe&&(s=this._$AH[a]),n||=!Qt(s)||s!==this._$AH[a],s===he?t=he:t!==he&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},me=class extends ve{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===he?void 0:t}},xe=class extends ve{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==he)}},we=class extends ve{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ge(this,t,e,0)??he)===fe)return;const i=this._$AH,o=t===he&&i!==he||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==he&&(i===he||o);o&&this.element.removeEventListener(this.name,this,i),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)}},Oe=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ge(this,t)}};const Se=Kt.litHtmlPolyfillSupport;Se?.(ye,be),(Kt.litHtmlVersions??=[]).push("3.1.0");
80
80
  /**
81
81
  * @license
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
84
  */
85
- let $e=class extends Bt{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=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new be(e.insertBefore(Jt(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return he}};$e._$litElement$=!0,$e.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$e});const Ne=globalThis.litElementPolyfillSupport;Ne?.({LitElement:$e}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ce=t=>"string"==typeof t?Ct(t):t;class Ee{static create(t,e,i,o){const r=t=>Ce(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Ce(null!=e?e:t.lastResortDefaultValue()),o=Et`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Et`var(${Ce(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function ke(t,e){return Ce(`${t.name}: ${e}`)}const Re={colorWhite:Ee.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ee.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ee.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ee.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ee.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ee.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ee.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ee.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ee.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ee.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ee.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ee.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ee.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ee.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ee.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ee.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ee.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ee.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ee.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ee.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ee.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ee.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ee.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ee.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ee.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ee.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ee.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ee.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ee.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ee.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ee.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ee.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ee.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ee.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ee.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ee.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ee.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ee.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ee.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ee.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ee.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ee.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ee.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ee.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ee.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ee.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ee.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ee.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ee.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ee.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ee.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ee.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ee.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ee.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ee.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ee.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ee.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ee.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ee.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ee.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ee.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ee.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ee.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ee.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ee.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ee.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ee.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ee.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ee.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ee.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ee.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ee.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ee.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ee.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ee.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ee.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ee.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ee.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ee.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ee.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ee.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ee.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ee.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ee.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ee.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ee.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ee.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ee.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ee.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ee.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ee.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ee.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ee.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ee.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ee.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ee.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ee.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ee.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ee.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ee.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ee.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ee.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ee.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ee.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ee.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ee.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ee.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ee.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ee.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ee.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ee.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ee.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ee.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ee.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ee.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ee.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ee.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ee.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ee.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ee.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ee.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ee.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ee.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ee.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ee.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ee.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ee.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ee.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ee.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ee.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ee.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ee.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ee.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ee.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ee.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ee.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ee.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ee.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ee.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ee.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ee.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ee.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ee.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ee.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ee.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ee.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ee.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ee.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ee.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ee.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ee.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ee.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ee.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ee.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ee.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ee.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ee.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ee.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ee.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ee.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ee.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ee.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ee.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ee.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ee.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ee.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ee.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ee.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ee.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ee.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ee.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ee.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ee.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ee.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ee.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ee.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ee.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ee.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ee.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ee.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ee.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ee.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ee.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ee.create("--ft-opacity-80","","NUMBER","0.8")},Ie={display:{fontFamily:Ee.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ee.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ee.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ee.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ee.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ee.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ee.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ee.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ee.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ee.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ee.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ee.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ee.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ee.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ee.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ee.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ee.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ee.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ee.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ee.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ee.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ee.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ee.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ee.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ee.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ee.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ee.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ue={backgroundActionPrimary:Ee.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Re.colorBrand0),backgroundErrorPrimary:Ee.extend("--ft-background-error-primary","Used as background of error components.",Re.colorRed0),backgroundErrorSubtle:Ee.extend("--ft-background-error-subtle","Used as background of subtle error components.",Re.colorRed10),backgroundInfoPrimary:Ee.extend("--ft-background-info-primary","Used as background of information components.",Re.colorCyan200),backgroundInfoSubtle:Ee.extend("--ft-background-info-subtle","Used as background of subtle information components.",Re.colorCyan10),backgroundWarningPrimary:Ee.extend("--ft-background-warning-primary","Used as background of warning components.",Re.colorOrange300),backgroundWarningSubtle:Ee.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Re.colorOrange10),backgroundSuccessPrimary:Ee.extend("--ft-background-success-primary","Used as background of success components.",Re.colorGreen200),backgroundSuccessSubtle:Ee.extend("--ft-background-success-subtle","Used as background of subtle success components.",Re.colorGreen10),backgroundGlobalSurface:Ee.extend("--ft-background-global-surface","Used as app background.",Re.colorWhite),backgroundGlobalOnSurface:Ee.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Re.colorGray10),backgroundGlobalOnSurfaceDark:Ee.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Re.colorGray30),contentActionPrimary:Ee.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Re.colorBrand0),contentWarningPrimary:Ee.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Re.colorOrange300),contentWarningIconOnly:Ee.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Re.colorOrange0),contentErrorPrimary:Ee.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Re.colorRed0),contentErrorIconOnly:Ee.extend("--ft-content-error-icon-only","Used on error status icons alone",Re.colorRed0),contentInfoPrimary:Ee.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Re.colorCyan200),contentInfoIconOnly:Ee.extend("--ft-content-info-icon-only","Used on info status icons alone",Re.colorCyan0),contentSuccessIconOnly:Ee.extend("--ft-content-success-icon-only","Used on success status icons alone",Re.colorGreen0),contentSuccessPrimary:Ee.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Re.colorGreen200),contentGlobalPrimary:Ee.extend("--ft-content-global-primary","Used for main content on the page.",Re.colorGray500),contentGlobalSecondary:Ee.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Re.colorGray200),contentGlobalSubtle:Ee.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Re.colorGray0),contentGlobalOnColor:Ee.extend("--ft-content-global-on-color","Used for content on a dominant color.",Re.colorWhite),borderActionPrimary:Ee.extend("--ft-border-action-primary","Used as border for primary action components.",Re.colorBrand0),borderActionFocusRing:Ee.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Re.colorCyan0),borderWarningPrimary:Ee.extend("--ft-border-warning-primary","Used as border for warning components.",Re.colorOrange30),borderSuccessPrimary:Ee.extend("--ft-border-success-primary","Used as border for success components.",Re.colorGreen30),borderErrorPrimary:Ee.extend("--ft-border-error-primary","Used as border for error components.",Re.colorRed30),borderInfoPrimary:Ee.extend("--ft-border-info-primary","Used as border for information components.",Re.colorCyan30),borderGlobalSubtle:Ee.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Re.colorGray30),borderGlobalPrimary:Ee.extend("--ft-border-global-primary","Used as border for element like input.",Re.colorGray50),borderInputPrimary:Ee.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Re.colorGray80)},Le={largeHeight:Ee.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ee.extend("--ft-button-large-horizontal-padding","",Re.spacing4),largeGap:Ee.extend("--ft-button-large-gap","",Re.spacing2),largeBorderRadius:Ee.extend("--ft-button-large-border-radius","",Re.borderRadiusS),largeIconSize:Ee.extend("--ft-button-large-icon-size","",Re.iconSize3),largeBorderWidth:Ee.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ee.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ee.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ee.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ee.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ee.extend("--ft-button-small-horizontal-padding","",Re.spacing3),smallGap:Ee.extend("--ft-button-small-gap","",Re.spacing2),smallBorderRadius:Ee.extend("--ft-button-small-border-radius","",Re.borderRadiusS),smallIconSize:Ee.extend("--ft-button-small-icon-size","",Re.iconSize2),smallBorderWidth:Ee.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ee.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ee.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ee.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ee.extend("--ft-button-primary-background-color","",Ue.backgroundActionPrimary),primaryColor:Ee.extend("--ft-button-primary-color","",Ue.contentGlobalOnColor),primaryIconColor:Ee.extend("--ft-button-primary-icon-color","",Ue.contentGlobalOnColor),primaryStateLayerColor:Ee.extend("--ft-button-primary-state-layer-color","",Ue.contentGlobalOnColor),primaryStateLayerOpacityHover:Ee.extend("--ft-button-primary-state-layer-opacity-hover","",Re.opacity16),primaryStateLayerOpacityFocus:Ee.extend("--ft-button-primary-state-layer-opacity-focus","",Re.opacity16),primaryStateLayerOpacityActive:Ee.extend("--ft-button-primary-state-layer-opacity-active","",Re.opacity24),primaryComponentOpacityDisabled:Ee.extend("--ft-button-primary-component-opacity-disabled","",Re.opacity40),focusFocusRingColor:Ee.extend("--ft-button-focus-focus-ring-color","",Ue.borderActionFocusRing),tertiaryBackgroundColor:Ee.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ee.extend("--ft-button-tertiary-color","",Ue.contentActionPrimary),tertiaryIconColor:Ee.extend("--ft-button-tertiary-icon-color","",Ue.contentActionPrimary),tertiaryStateLayerColor:Ee.extend("--ft-button-tertiary-state-layer-color","",Ue.contentActionPrimary),tertiaryStateLayerOpacityHover:Ee.extend("--ft-button-tertiary-state-layer-opacity-hover","",Re.opacity8),tertiaryStateLayerOpacityFocus:Ee.extend("--ft-button-tertiary-state-layer-opacity-focus","",Re.opacity8),tertiaryStateLayerOpacityActive:Ee.extend("--ft-button-tertiary-state-layer-opacity-active","",Re.opacity16),tertiaryComponentOpacityDisabled:Ee.extend("--ft-button-tertiary-component-opacity-disabled","",Re.opacity40),secondaryBackgroundColor:Ee.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ee.extend("--ft-button-secondary-color","",Ue.contentActionPrimary),secondaryIconColor:Ee.extend("--ft-button-secondary-icon-color","",Ue.contentActionPrimary),secondaryStateLayerColor:Ee.extend("--ft-button-secondary-state-layer-color","",Ue.contentActionPrimary),secondaryStateLayerOpacityHover:Ee.extend("--ft-button-secondary-state-layer-opacity-hover","",Re.opacity8),secondaryStateLayerOpacityFocus:Ee.extend("--ft-button-secondary-state-layer-opacity-focus","",Re.opacity8),secondaryStateLayerOpacityActive:Ee.extend("--ft-button-secondary-state-layer-opacity-active","",Re.opacity16),secondaryComponentOpacityDisabled:Ee.extend("--ft-button-secondary-component-opacity-disabled","",Re.opacity40),secondaryBorderColor:Ee.extend("--ft-button-secondary-border-color","",Ue.borderActionPrimary),neutralBackgroundColor:Ee.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ee.extend("--ft-button-neutral-icon-color","",Ue.contentGlobalSecondary),neutralColor:Ee.extend("--ft-button-neutral-color","",Ue.contentGlobalSecondary),neutralStateLayerColor:Ee.extend("--ft-button-neutral-state-layer-color","",Ue.contentGlobalSecondary),neutralStateLayerOpacityHover:Ee.extend("--ft-button-neutral-state-layer-opacity-hover","",Re.opacity8),neutralStateLayerOpacityFocus:Ee.extend("--ft-button-neutral-state-layer-opacity-focus","",Re.opacity8),neutralStateLayerOpacityActive:Ee.extend("--ft-button-neutral-state-layer-opacity-active","",Re.opacity16),neutralComponentOpacityDisabled:Ee.extend("--ft-button-neutral-component-opacity-disabled","",Re.opacity40)};Ee.extend("--ft-tabs-top-left-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-top-right-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-label-horizontal-padding","",Re.spacing4),Ee.extend("--ft-tabs-label-vertical-padding","",Re.spacing3),Ee.extend("--ft-tabs-label-gap","",Re.spacing1),Ee.extend("--ft-switch-group-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-group-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-group-gap","",Re.spacing1),Ee.extend("--ft-switch-group-background-color","",Ue.backgroundGlobalSurface),Ee.extend("--ft-switch-group-border-color","",Ue.borderGlobalSubtle),Ee.create("--ft-switch-group-border-radius","","SIZE","6px"),Ee.extend("--ft-switch-label-horizontal-padding","",Re.spacing2),Ee.extend("--ft-switch-label-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-vertical-padding","",Re.spacing1),Ee.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-switch-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-switch-option-border-radius","",Re.borderRadiusS),Ee.extend("--ft-switch-off-state-layer-opacity-hover","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-focus","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-active","",Re.opacity16),Ee.extend("--ft-switch-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-switch-off-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-switch-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-chart-1-light","for area color charts",Re.colorBrand40),Ee.extend("--ft-chart-1-base","for line charts",Re.colorBrand0),Ee.extend("--ft-chart-2-light","for area color charts",Re.colorYellow60),Ee.extend("--ft-chart-2-base","for line charts",Re.colorYellow100),Ee.extend("--ft-chart-3-light","",Re.colorUltramarine40),Ee.extend("--ft-chart-3-base","",Re.colorUltramarine70),Ee.extend("--ft-chart-4-light","",Re.colorCyan50),Ee.extend("--ft-chart-4-base","",Re.colorCyan100),Ee.extend("--ft-chart-5-light","",Re.colorRed40),Ee.extend("--ft-chart-5-base","",Re.colorRed60),Ee.extend("--ft-chart-6-light","",Re.colorGreen40),Ee.extend("--ft-chart-6-base","",Re.colorGreen70),Ee.extend("--ft-chart-7-light","",Re.colorOrange70),Ee.extend("--ft-chart-7-base","",Re.colorOrange100),Ee.extend("--ft-chart-8-light","",Re.colorAvocado70),Ee.extend("--ft-chart-8-base","",Re.colorAvocado200),Ee.extend("--ft-chart-9-light","",Re.colorBrown50),Ee.extend("--ft-chart-9-base","",Re.colorBrown200),Ee.extend("--ft-chart-10-light","",Re.colorGray50),Ee.extend("--ft-chart-10-base","",Re.colorGray80),Ee.extend("--ft-chart-monochrome-10","",Re.colorBrand10),Ee.extend("--ft-chart-monochrome-20","",Re.colorBrand20),Ee.extend("--ft-chart-monochrome-30","",Re.colorBrand40),Ee.extend("--ft-chart-monochrome-40","",Re.colorBrand60),Ee.extend("--ft-chart-monochrome-50","",Re.colorBrand0),Ee.extend("--ft-chart-monochrome-60","",Re.colorBrand200),Ee.extend("--ft-chip-large-horizontal-padding","",Re.spacing4),Ee.extend("--ft-chip-large-vertical-padding","",Re.spacing2),Ee.extend("--ft-chip-large-gap","",Re.spacing1),Ee.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-large-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-large-border-width","","SIZE","1px"),Ee.extend("--ft-chip-large-icon-size","",Re.iconSize3),Ee.extend("--ft-chip-medium-horizontal-padding","",Re.spacing3),Ee.extend("--ft-chip-medium-vertical-padding","",Re.spacing1),Ee.extend("--ft-chip-medium-gap","",Re.spacing1),Ee.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-medium-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-medium-border-width","","SIZE","1px"),Ee.extend("--ft-chip-medium-icon-size","",Re.iconSize2),Ee.extend("--ft-chip-small-horizontal-padding","",Re.spacing2),Ee.extend("--ft-chip-small-vertical-padding","",Re.spacing05),Ee.extend("--ft-chip-small-gap","",Re.spacing1),Ee.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-small-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-small-border-width","","SIZE","1px"),Ee.extend("--ft-chip-small-icon-size","",Re.iconSize1),Ee.extend("--ft-chip-neutral-background-color","",Ue.backgroundGlobalOnSurface),Ee.extend("--ft-chip-neutral-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-chip-neutral-border-color","",Ue.borderGlobalSubtle),Ee.extend("--ft-chip-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-chip-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-chip-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-chip-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-chip-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-chip-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-chip-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-chip-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-chip-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-chip-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-chip-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-chip-error-border-color","",Ue.borderErrorPrimary),Ee.create("--ft-notice-border-width","","SIZE","1px"),Ee.extend("--ft-notice-horizontal-padding","",Re.spacing2),Ee.extend("--ft-notice-vertical-padding","",Re.spacing1),Ee.extend("--ft-notice-border-radius","",Re.borderRadiusS),Ee.extend("--ft-notice-gap","",Re.spacing2),Ee.extend("--ft-notice-icon-size","",Re.iconSize3),Ee.extend("--ft-notice-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notice-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notice-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notice-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notice-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notice-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-checkbox-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-checkbox-checked-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-color","",Ue.contentGlobalOnColor),Ee.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-checked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-unchecked-border-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-checkbox-gap","",Re.spacing3),Ee.extend("--ft-toggle-off-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-off-background-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-icon-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-on-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-on-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-on-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-icon-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-toggle-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-toggle-gap","",Re.spacing3),Ee.extend("--ft-radio-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-radio-selected-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-selected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-unselected-state-layer-color","",Re.colorGray80),Ee.extend("--ft-radio-unselected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-unselected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-radio-gap","",Re.spacing3),Ee.extend("--ft-notification-icon-size","",Re.iconSize4),Ee.extend("--ft-notification-horizontal-padding","",Re.spacing4),Ee.extend("--ft-notification-vertical-padding","",Re.spacing4),Ee.extend("--ft-notification-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notification-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notification-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notification-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-notification-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-notification-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-notification-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notification-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-notification-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notification-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-notification-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-notification-error-border-color","",Ue.borderErrorPrimary),Ee.extend("--ft-notification-border-radius","",Re.borderRadiusPill),Ee.create("--ft-notification-border-width","","SIZE","1px"),Ee.extend("--ft-notification-gap-leading","",Re.spacing2),Ee.extend("--ft-notification-gap-trailing","",Re.spacing8);const Ae={colorPrimary:Ee.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ee.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ee.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ee.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ee.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ee.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ee.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ee.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ee.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ee.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ee.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ee.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ee.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ee.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ee.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ee.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ee.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ee.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ee.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ee.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ee.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ee.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ee.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ee.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ee.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ee.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ee.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ee.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ee.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ee.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ee.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ee.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ee.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ee.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ee.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ee.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ee.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ee.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ee.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ee.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ee.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ee.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ee.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ee.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ee.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ee.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ee.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ee.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ee.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _e extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
85
+ let $e=class extends Bt{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=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new be(e.insertBefore(Jt(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return fe}};$e._$litElement$=!0,$e.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$e});const Ne=globalThis.litElementPolyfillSupport;Ne?.({LitElement:$e}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ce=t=>"string"==typeof t?Ct(t):t;class Ee{static create(t,e,i,o){const r=t=>Ce(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Ce(null!=e?e:t.lastResortDefaultValue()),o=Et`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Et`var(${Ce(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function ke(t,e){return Ce(`${t.name}: ${e}`)}const Re={colorWhite:Ee.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ee.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ee.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ee.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ee.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ee.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ee.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ee.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ee.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ee.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ee.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ee.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ee.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ee.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ee.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ee.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ee.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ee.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ee.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ee.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ee.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ee.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ee.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ee.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ee.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ee.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ee.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ee.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ee.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ee.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ee.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ee.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ee.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ee.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ee.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ee.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ee.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ee.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ee.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ee.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ee.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ee.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ee.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ee.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ee.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ee.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ee.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ee.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ee.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ee.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ee.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ee.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ee.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ee.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ee.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ee.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ee.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ee.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ee.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ee.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ee.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ee.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ee.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ee.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ee.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ee.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ee.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ee.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ee.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ee.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ee.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ee.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ee.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ee.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ee.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ee.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ee.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ee.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ee.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ee.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ee.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ee.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ee.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ee.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ee.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ee.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ee.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ee.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ee.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ee.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ee.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ee.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ee.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ee.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ee.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ee.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ee.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ee.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ee.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ee.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ee.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ee.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ee.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ee.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ee.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ee.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ee.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ee.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ee.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ee.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ee.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ee.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ee.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ee.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ee.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ee.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ee.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ee.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ee.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ee.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ee.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ee.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ee.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ee.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ee.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ee.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ee.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ee.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ee.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ee.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ee.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ee.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ee.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ee.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ee.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ee.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ee.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ee.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ee.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ee.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ee.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ee.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ee.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ee.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ee.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ee.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ee.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ee.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ee.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ee.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ee.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ee.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ee.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ee.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ee.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ee.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ee.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ee.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ee.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ee.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ee.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ee.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ee.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ee.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ee.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ee.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ee.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ee.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ee.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ee.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ee.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ee.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ee.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ee.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ee.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ee.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ee.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ee.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ee.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ee.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ee.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ee.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ee.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ee.create("--ft-opacity-80","","NUMBER","0.8")},Ie={display:{fontFamily:Ee.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ee.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ee.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ee.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ee.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ee.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ee.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ee.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ee.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ee.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ee.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ee.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ee.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ee.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ee.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ee.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ee.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ee.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ee.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ee.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ee.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ee.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ee.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ee.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ee.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ee.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ee.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ue={backgroundActionPrimary:Ee.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Re.colorBrand0),backgroundErrorPrimary:Ee.extend("--ft-background-error-primary","Used as background of error components.",Re.colorRed0),backgroundErrorSubtle:Ee.extend("--ft-background-error-subtle","Used as background of subtle error components.",Re.colorRed10),backgroundInfoPrimary:Ee.extend("--ft-background-info-primary","Used as background of information components.",Re.colorCyan200),backgroundInfoSubtle:Ee.extend("--ft-background-info-subtle","Used as background of subtle information components.",Re.colorCyan10),backgroundWarningPrimary:Ee.extend("--ft-background-warning-primary","Used as background of warning components.",Re.colorOrange300),backgroundWarningSubtle:Ee.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Re.colorOrange10),backgroundSuccessPrimary:Ee.extend("--ft-background-success-primary","Used as background of success components.",Re.colorGreen200),backgroundSuccessSubtle:Ee.extend("--ft-background-success-subtle","Used as background of subtle success components.",Re.colorGreen10),backgroundGlobalSurface:Ee.extend("--ft-background-global-surface","Used as app background.",Re.colorWhite),backgroundGlobalOnSurface:Ee.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Re.colorGray10),backgroundGlobalOnSurfaceDark:Ee.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Re.colorGray30),contentActionPrimary:Ee.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Re.colorBrand0),contentWarningPrimary:Ee.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Re.colorOrange300),contentWarningIconOnly:Ee.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Re.colorOrange0),contentErrorPrimary:Ee.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Re.colorRed0),contentErrorIconOnly:Ee.extend("--ft-content-error-icon-only","Used on error status icons alone",Re.colorRed0),contentInfoPrimary:Ee.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Re.colorCyan200),contentInfoIconOnly:Ee.extend("--ft-content-info-icon-only","Used on info status icons alone",Re.colorCyan0),contentSuccessIconOnly:Ee.extend("--ft-content-success-icon-only","Used on success status icons alone",Re.colorGreen0),contentSuccessPrimary:Ee.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Re.colorGreen200),contentGlobalPrimary:Ee.extend("--ft-content-global-primary","Used for main content on the page.",Re.colorGray500),contentGlobalSecondary:Ee.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Re.colorGray200),contentGlobalSubtle:Ee.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Re.colorGray0),contentGlobalOnColor:Ee.extend("--ft-content-global-on-color","Used for content on a dominant color.",Re.colorWhite),borderActionPrimary:Ee.extend("--ft-border-action-primary","Used as border for primary action components.",Re.colorBrand0),borderActionFocusRing:Ee.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Re.colorCyan0),borderWarningPrimary:Ee.extend("--ft-border-warning-primary","Used as border for warning components.",Re.colorOrange30),borderSuccessPrimary:Ee.extend("--ft-border-success-primary","Used as border for success components.",Re.colorGreen30),borderErrorPrimary:Ee.extend("--ft-border-error-primary","Used as border for error components.",Re.colorRed30),borderInfoPrimary:Ee.extend("--ft-border-info-primary","Used as border for information components.",Re.colorCyan30),borderGlobalSubtle:Ee.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Re.colorGray30),borderGlobalPrimary:Ee.extend("--ft-border-global-primary","Used as border for element like input.",Re.colorGray50),borderInputPrimary:Ee.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Re.colorGray80)},Le={largeHeight:Ee.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ee.extend("--ft-button-large-horizontal-padding","",Re.spacing4),largeGap:Ee.extend("--ft-button-large-gap","",Re.spacing2),largeBorderRadius:Ee.extend("--ft-button-large-border-radius","",Re.borderRadiusS),largeIconSize:Ee.extend("--ft-button-large-icon-size","",Re.iconSize3),largeBorderWidth:Ee.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ee.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ee.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ee.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ee.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ee.extend("--ft-button-small-horizontal-padding","",Re.spacing3),smallGap:Ee.extend("--ft-button-small-gap","",Re.spacing2),smallBorderRadius:Ee.extend("--ft-button-small-border-radius","",Re.borderRadiusS),smallIconSize:Ee.extend("--ft-button-small-icon-size","",Re.iconSize2),smallBorderWidth:Ee.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ee.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ee.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ee.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ee.extend("--ft-button-primary-background-color","",Ue.backgroundActionPrimary),primaryColor:Ee.extend("--ft-button-primary-color","",Ue.contentGlobalOnColor),primaryIconColor:Ee.extend("--ft-button-primary-icon-color","",Ue.contentGlobalOnColor),primaryStateLayerColor:Ee.extend("--ft-button-primary-state-layer-color","",Ue.contentGlobalOnColor),primaryStateLayerOpacityHover:Ee.extend("--ft-button-primary-state-layer-opacity-hover","",Re.opacity16),primaryStateLayerOpacityFocus:Ee.extend("--ft-button-primary-state-layer-opacity-focus","",Re.opacity16),primaryStateLayerOpacityActive:Ee.extend("--ft-button-primary-state-layer-opacity-active","",Re.opacity24),primaryComponentOpacityDisabled:Ee.extend("--ft-button-primary-component-opacity-disabled","",Re.opacity40),focusFocusRingColor:Ee.extend("--ft-button-focus-focus-ring-color","",Ue.borderActionFocusRing),tertiaryBackgroundColor:Ee.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ee.extend("--ft-button-tertiary-color","",Ue.contentActionPrimary),tertiaryIconColor:Ee.extend("--ft-button-tertiary-icon-color","",Ue.contentActionPrimary),tertiaryStateLayerColor:Ee.extend("--ft-button-tertiary-state-layer-color","",Ue.contentActionPrimary),tertiaryStateLayerOpacityHover:Ee.extend("--ft-button-tertiary-state-layer-opacity-hover","",Re.opacity8),tertiaryStateLayerOpacityFocus:Ee.extend("--ft-button-tertiary-state-layer-opacity-focus","",Re.opacity8),tertiaryStateLayerOpacityActive:Ee.extend("--ft-button-tertiary-state-layer-opacity-active","",Re.opacity16),tertiaryComponentOpacityDisabled:Ee.extend("--ft-button-tertiary-component-opacity-disabled","",Re.opacity40),secondaryBackgroundColor:Ee.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ee.extend("--ft-button-secondary-color","",Ue.contentActionPrimary),secondaryIconColor:Ee.extend("--ft-button-secondary-icon-color","",Ue.contentActionPrimary),secondaryStateLayerColor:Ee.extend("--ft-button-secondary-state-layer-color","",Ue.contentActionPrimary),secondaryStateLayerOpacityHover:Ee.extend("--ft-button-secondary-state-layer-opacity-hover","",Re.opacity8),secondaryStateLayerOpacityFocus:Ee.extend("--ft-button-secondary-state-layer-opacity-focus","",Re.opacity8),secondaryStateLayerOpacityActive:Ee.extend("--ft-button-secondary-state-layer-opacity-active","",Re.opacity16),secondaryComponentOpacityDisabled:Ee.extend("--ft-button-secondary-component-opacity-disabled","",Re.opacity40),secondaryBorderColor:Ee.extend("--ft-button-secondary-border-color","",Ue.borderActionPrimary),neutralBackgroundColor:Ee.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ee.extend("--ft-button-neutral-icon-color","",Ue.contentGlobalSecondary),neutralColor:Ee.extend("--ft-button-neutral-color","",Ue.contentGlobalSecondary),neutralStateLayerColor:Ee.extend("--ft-button-neutral-state-layer-color","",Ue.contentGlobalSecondary),neutralStateLayerOpacityHover:Ee.extend("--ft-button-neutral-state-layer-opacity-hover","",Re.opacity8),neutralStateLayerOpacityFocus:Ee.extend("--ft-button-neutral-state-layer-opacity-focus","",Re.opacity8),neutralStateLayerOpacityActive:Ee.extend("--ft-button-neutral-state-layer-opacity-active","",Re.opacity16),neutralComponentOpacityDisabled:Ee.extend("--ft-button-neutral-component-opacity-disabled","",Re.opacity40)};Ee.extend("--ft-tabs-top-left-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-top-right-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-label-horizontal-padding","",Re.spacing4),Ee.extend("--ft-tabs-label-vertical-padding","",Re.spacing3),Ee.extend("--ft-tabs-label-gap","",Re.spacing1),Ee.extend("--ft-switch-group-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-group-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-group-gap","",Re.spacing1),Ee.extend("--ft-switch-group-background-color","",Ue.backgroundGlobalSurface),Ee.extend("--ft-switch-group-border-color","",Ue.borderGlobalSubtle),Ee.create("--ft-switch-group-border-radius","","SIZE","6px"),Ee.extend("--ft-switch-label-horizontal-padding","",Re.spacing2),Ee.extend("--ft-switch-label-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-vertical-padding","",Re.spacing1),Ee.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-switch-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-switch-option-border-radius","",Re.borderRadiusS),Ee.extend("--ft-switch-off-state-layer-opacity-hover","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-focus","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-active","",Re.opacity16),Ee.extend("--ft-switch-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-switch-off-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-switch-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-chart-1-light","for area color charts",Re.colorBrand40),Ee.extend("--ft-chart-1-base","for line charts",Re.colorBrand0),Ee.extend("--ft-chart-2-light","for area color charts",Re.colorYellow60),Ee.extend("--ft-chart-2-base","for line charts",Re.colorYellow100),Ee.extend("--ft-chart-3-light","",Re.colorUltramarine40),Ee.extend("--ft-chart-3-base","",Re.colorUltramarine70),Ee.extend("--ft-chart-4-light","",Re.colorCyan50),Ee.extend("--ft-chart-4-base","",Re.colorCyan100),Ee.extend("--ft-chart-5-light","",Re.colorRed40),Ee.extend("--ft-chart-5-base","",Re.colorRed60),Ee.extend("--ft-chart-6-light","",Re.colorGreen40),Ee.extend("--ft-chart-6-base","",Re.colorGreen70),Ee.extend("--ft-chart-7-light","",Re.colorOrange70),Ee.extend("--ft-chart-7-base","",Re.colorOrange100),Ee.extend("--ft-chart-8-light","",Re.colorAvocado70),Ee.extend("--ft-chart-8-base","",Re.colorAvocado200),Ee.extend("--ft-chart-9-light","",Re.colorBrown50),Ee.extend("--ft-chart-9-base","",Re.colorBrown200),Ee.extend("--ft-chart-10-light","",Re.colorGray50),Ee.extend("--ft-chart-10-base","",Re.colorGray80),Ee.extend("--ft-chart-monochrome-10","",Re.colorBrand10),Ee.extend("--ft-chart-monochrome-20","",Re.colorBrand20),Ee.extend("--ft-chart-monochrome-30","",Re.colorBrand40),Ee.extend("--ft-chart-monochrome-40","",Re.colorBrand60),Ee.extend("--ft-chart-monochrome-50","",Re.colorBrand0),Ee.extend("--ft-chart-monochrome-60","",Re.colorBrand200),Ee.extend("--ft-chip-large-horizontal-padding","",Re.spacing4),Ee.extend("--ft-chip-large-vertical-padding","",Re.spacing2),Ee.extend("--ft-chip-large-gap","",Re.spacing1),Ee.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-large-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-large-border-width","","SIZE","1px"),Ee.extend("--ft-chip-large-icon-size","",Re.iconSize3),Ee.extend("--ft-chip-medium-horizontal-padding","",Re.spacing3),Ee.extend("--ft-chip-medium-vertical-padding","",Re.spacing1),Ee.extend("--ft-chip-medium-gap","",Re.spacing1),Ee.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-medium-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-medium-border-width","","SIZE","1px"),Ee.extend("--ft-chip-medium-icon-size","",Re.iconSize2),Ee.extend("--ft-chip-small-horizontal-padding","",Re.spacing2),Ee.extend("--ft-chip-small-vertical-padding","",Re.spacing05),Ee.extend("--ft-chip-small-gap","",Re.spacing1),Ee.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-small-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-small-border-width","","SIZE","1px"),Ee.extend("--ft-chip-small-icon-size","",Re.iconSize1),Ee.extend("--ft-chip-neutral-background-color","",Ue.backgroundGlobalOnSurface),Ee.extend("--ft-chip-neutral-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-chip-neutral-border-color","",Ue.borderGlobalSubtle),Ee.extend("--ft-chip-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-chip-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-chip-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-chip-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-chip-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-chip-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-chip-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-chip-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-chip-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-chip-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-chip-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-chip-error-border-color","",Ue.borderErrorPrimary),Ee.create("--ft-notice-border-width","","SIZE","1px"),Ee.extend("--ft-notice-horizontal-padding","",Re.spacing2),Ee.extend("--ft-notice-vertical-padding","",Re.spacing1),Ee.extend("--ft-notice-border-radius","",Re.borderRadiusS),Ee.extend("--ft-notice-gap","",Re.spacing2),Ee.extend("--ft-notice-icon-size","",Re.iconSize3),Ee.extend("--ft-notice-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notice-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notice-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notice-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notice-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notice-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-checkbox-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-checkbox-checked-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-color","",Ue.contentGlobalOnColor),Ee.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-checked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-unchecked-border-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-checkbox-gap","",Re.spacing3),Ee.extend("--ft-toggle-off-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-off-background-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-icon-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-on-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-on-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-on-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-icon-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-toggle-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-toggle-gap","",Re.spacing3),Ee.extend("--ft-radio-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-radio-selected-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-selected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-unselected-state-layer-color","",Re.colorGray80),Ee.extend("--ft-radio-unselected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-unselected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-radio-gap","",Re.spacing3),Ee.extend("--ft-notification-icon-size","",Re.iconSize4),Ee.extend("--ft-notification-horizontal-padding","",Re.spacing4),Ee.extend("--ft-notification-vertical-padding","",Re.spacing4),Ee.extend("--ft-notification-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notification-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notification-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notification-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-notification-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-notification-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-notification-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notification-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-notification-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notification-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-notification-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-notification-error-border-color","",Ue.borderErrorPrimary),Ee.extend("--ft-notification-border-radius","",Re.borderRadiusPill),Ee.create("--ft-notification-border-width","","SIZE","1px"),Ee.extend("--ft-notification-gap-leading","",Re.spacing2),Ee.extend("--ft-notification-gap-trailing","",Re.spacing8);const Ae={colorPrimary:Ee.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ee.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ee.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ee.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ee.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ee.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ee.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ee.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ee.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ee.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ee.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ee.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ee.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ee.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ee.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ee.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ee.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ee.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ee.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ee.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ee.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ee.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ee.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ee.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ee.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ee.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ee.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ee.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ee.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ee.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ee.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ee.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ee.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ee.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ee.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ee.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ee.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ee.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ee.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ee.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ee.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ee.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ee.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ee.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ee.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ee.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ee.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ee.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ee.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _e extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
86
86
  /**
87
87
  * @license
88
88
  * Copyright 2019 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
- */const Te=window,We=Te.ShadowRoot&&(void 0===Te.ShadyCSS||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class De extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Te.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Fe,Pe=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Me=Symbol("constructorPrototype"),ze=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Be extends De{constructor(){super(),this[Fe]=new L(5),this[ze]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=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,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Fe=je,Pe([E()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([E()],Be.prototype,"customStylesheet",void 0);const Ke=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
90
+ */const Te=window,We=Te.ShadowRoot&&(void 0===Te.ShadyCSS||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class De extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Te.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Fe,Pe=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Me=Symbol("constructorPrototype"),ze=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Be extends De{constructor(){super(),this[Fe]=new L(5),this[ze]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=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,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Fe=je,Pe([E()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([E()],Be.prototype,"customStylesheet",void 0);const Ke=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
91
91
  .highlight-html-match {
92
92
  background: ${Ke};
93
93
  }
@@ -123,7 +123,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
123
123
  display: inline-block;
124
124
  width: 0;
125
125
  }
126
- `;class Ge{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),ti=Symbol("internalStores");class ei extends Be{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ti].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ti].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ti].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ve(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ti].delete(e)}setupStore(t,e){this[ti].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ti].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Je].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ii(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function oi(t){return!!t&&!!t[Bi]}function ri(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ki}(t)||Array.isArray(t)||!!t[ji]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ji])||hi(t)||fi(t))}function ni(t,e,i){void 0===i&&(i=!1),0===ai(t)?(i?Object.keys:Zi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ai(t){var e=t[Bi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hi(t)?2:fi(t)?3:0}function si(t,e){return 2===ai(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function li(t,e,i){var o=ai(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function ci(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function hi(t){return Fi&&t instanceof Map}function fi(t){return Pi&&t instanceof Set}function di(t){return t.o||t.t}function ui(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Hi(t);delete e[Bi];for(var i=Zi(e),o=0;o<i.length;o++){var r=i[o],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 pi(t,e){return void 0===e&&(e=!1),gi(t)||oi(t)||!ri(t)||(ai(t)>1&&(t.set=t.add=t.clear=t.delete=yi),Object.freeze(t),e&&ni(t,(function(t,e){return pi(e,!0)}),!0)),t}function yi(){ii(2)}function gi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bi(t){var e=Gi[t];return e||ii(18,t),e}function vi(){return Wi}function mi(t,e){e&&(bi("Patches"),t.u=[],t.s=[],t.v=e)}function xi(t){wi(t),t.p.forEach(Si),t.p=null}function wi(t){t===Wi&&(Wi=t.l)}function Oi(t){return Wi={p:[],l:Wi,h:t,m:!0,_:0}}function Si(t){var e=t[Bi];0===e.i||1===e.i?e.j():e.g=!0}function $i(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||bi("ES5").S(e,t,o),o?(i[Bi].P&&(xi(e),ii(4)),ri(t)&&(t=Ni(e,t),e.l||Ei(e,t)),e.u&&bi("Patches").M(i[Bi].t,t,e.u,e.s)):t=Ni(e,i,[]),xi(e),e.u&&e.v(e.u,e.s),t!==zi?t:void 0}function Ni(t,e,i){if(gi(e))return e;var o=e[Bi];if(!o)return ni(e,(function(r,n){return Ci(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ei(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ui(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ni(n,(function(e,n){return Ci(t,o,r,e,n,i,a)})),Ei(t,r,!1),i&&t.u&&bi("Patches").N(o,i,t.u,t.s)}return o.o}function Ci(t,e,i,o,r,n,a){if(oi(r)){var s=Ni(t,r,n&&e&&3!==e.i&&!si(e.R,o)?n.concat(o):void 0);if(li(i,o,s),!oi(s))return;t.m=!1}else a&&i.add(r);if(ri(r)&&!gi(r)){if(!t.h.D&&t._<1)return;Ni(t,r),e&&e.A.l||Ei(t,r)}}function Ei(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&pi(e,i)}function ki(t,e){var i=t[Bi];return(i?di(i):t)[e]}function Ri(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ii(t){t.P||(t.P=!0,t.l&&Ii(t.l))}function Ui(t){t.o||(t.o=ui(t.t))}function Li(t,e,i){var o=hi(e)?bi("MapSet").F(e,i):fi(e)?bi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:vi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Vi;i&&(r=[o],n=qi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):bi("ES5").J(e,i);return(i?i.A:vi()).p.push(o),o}function Ai(t){return oi(t)||ii(22,t),function t(e){if(!ri(e))return e;var i,o=e[Bi],r=ai(e);if(o){if(!o.P&&(o.i<4||!bi("ES5").K(o)))return o.t;o.I=!0,i=_i(e,r),o.I=!1}else i=_i(e,r);return ni(i,(function(e,r){o&&function(t,e){return 2===ai(t)?t.get(e):t[e]}(o.t,e)===r||li(i,e,t(r))})),3===r?new Set(i):i}(t)}function _i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ui(t)}qe=Qe,Ye=ti,Xe=Je;var Ti,Wi,Di="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fi="undefined"!=typeof Map,Pi="undefined"!=typeof Set,Mi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,zi=Di?Symbol.for("immer-nothing"):((Ti={})["immer-nothing"]=!0,Ti),ji=Di?Symbol.for("immer-draftable"):"__$immer_draftable",Bi=Di?Symbol.for("immer-state"):"__$immer_state",Ki=""+Object.prototype.constructor,Zi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Hi=Object.getOwnPropertyDescriptors||function(t){var e={};return Zi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Gi={},Vi={get:function(t,e){if(e===Bi)return t;var i=di(t);if(!si(i,e))return function(t,e,i){var o,r=Ri(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!ri(o)?o:o===ki(t.t,e)?(Ui(t),t.o[e]=Li(t.A.h,o,t)):o},has:function(t,e){return e in di(t)},ownKeys:function(t){return Reflect.ownKeys(di(t))},set:function(t,e,i){var o=Ri(di(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=ki(di(t),e),n=null==r?void 0:r[Bi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ci(i,r)&&(void 0!==i||si(t.t,e)))return!0;Ui(t),Ii(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ki(t.t,e)||e in t.t?(t.R[e]=!1,Ui(t),Ii(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=di(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ii(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ii(12)}},qi={};ni(Vi,(function(t,e){qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)},qi.set=function(t,e,i){return Vi.set.call(this,t[0],e,i,t[0])};var Yi=function(){function t(t){var e=this;this.O=Mi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ii(6),void 0!==o&&"function"!=typeof o&&ii(7),ri(t)){var s=Oi(e),l=Li(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?xi(s):wi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return mi(s,o),$i(t,s)}),(function(t){throw xi(s),t})):(mi(s,o),$i(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===zi&&(a=void 0),e.D&&pi(a,!0),o){var h=[],f=[];bi("Patches").M(t,a,h,f),o(h,f)}return a}ii(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,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){ri(t)||ii(8),oi(t)&&(t=Ai(t));var e=Oi(this),i=Li(this,t,void 0);return i[Bi].C=!0,wi(e),i},e.finishDraft=function(t,e){var i=(t&&t[Bi]).A;return mi(i,e),$i(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Mi&&ii(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=bi("Patches").$;return oi(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Xi=new Yi,Ji=Xi.produce;function Qi(t){return Qi="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},Qi(t)}function to(t){var e=function(t,e){if("object"!==Qi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==Qi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qi(e)?e:String(e)}function eo(t,e,i){return(e=to(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function io(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function oo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?io(Object(i),!0).forEach((function(e){eo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):io(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ro(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. "}Xi.produceWithPatches.bind(Xi),Xi.setAutoFreeze.bind(Xi),Xi.setUseProxies.bind(Xi),Xi.applyPatches.bind(Xi),Xi.createDraft.bind(Xi),Xi.finishDraft.bind(Xi);var no="function"==typeof Symbol&&Symbol.observable||"@@observable",ao=function(){return Math.random().toString(36).substring(7).split("").join(".")},so={INIT:"@@redux/INIT"+ao(),REPLACE:"@@redux/REPLACE"+ao(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ao()}};function lo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ro(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ro(1));return i(lo)(t,e)}if("function"!=typeof t)throw new Error(ro(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(ro(3));return n}function f(t){if("function"!=typeof t)throw new Error(ro(4));if(l)throw new Error(ro(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ro(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(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(ro(7));if(void 0===t.type)throw new Error(ro(8));if(l)throw new Error(ro(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:so.INIT}),(o={dispatch:d,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ro(10));r=t,d({type:so.REPLACE})}})[no]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ro(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[no]=function(){return this},t},o}function co(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:so.INIT}))throw new Error(ro(12));if(void 0===i(void 0,{type:so.PROBE_UNKNOWN_ACTION()}))throw new Error(ro(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ro(14));r[l]=f,o=o||f!==h}return(o=o||a.length!==Object.keys(t).length)?r:t}}function ho(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function fo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(ro(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ho.apply(void 0,n)(i.dispatch),oo(oo({},i),{},{dispatch:o})}}}function uo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var po=uo();po.withExtraArgument=uo;var yo,go=po,bo=(yo=function(t,e){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},yo(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),vo=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=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++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},mo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},xo=Object.defineProperty,wo=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Co=function(t,e,i){return e in t?xo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Eo=function(t,e){for(var i in e||(e={}))$o.call(e,i)&&Co(t,i,e[i]);if(So)for(var o=0,r=So(e);o<r.length;o++){i=r[o];No.call(e,i)&&Co(t,i,e[i])}return t},ko=function(t,e){return wo(t,Oo(e))},Ro="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ho:ho.apply(null,arguments)};var Io=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return bo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mo([void 0],t[0].concat(this)))):new(e.bind.apply(e,mo([void 0],t.concat(this))))},e}(Array),Uo=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return bo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mo([void 0],t[0].concat(this)))):new(e.bind.apply(e,mo([void 0],t.concat(this))))},e}(Array);function Lo(t){return ri(t)?Ji(t,(function(){})):t}function Ao(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Io;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(go.withExtraArgument(i.extraArgument)):o.push(go));return o}(t)}}function _o(t){var e,i=Ao(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,h=o.preloadedState,f=void 0===h?void 0:h,d=o.enhancers,u=void 0===d?void 0:d;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=co(n)}var p=s;"function"==typeof p&&(p=p(i));var y=fo.apply(void 0,p),g=ho;c&&(g=Ro(Eo({trace:!1},"object"==typeof c&&c)));var b=new Uo(y),v=b;return Array.isArray(u)?v=mo([y],u):"function"==typeof u&&(v=u(b)),lo(e,f,g.apply(void 0,v))}function To(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Eo(Eo({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Wo(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Do(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Lo(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Wo(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Eo(Eo({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Wo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Lo(t())};else{var c=Lo(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=mo([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(oi(t))return void 0===(o=i(t,e))?t:o;if(ri(t))return Ji(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?To(c,o):To(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Fo=["name","message","stack","code"],Po=function(t,e){this.payload=t,this.meta=e},Mo=function(t,e){this.payload=t,this.meta=e},zo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Fo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function jo(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=To(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:ko(Eo({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=To(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ko(Eo({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=To(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||zo)(t||"Rejected"),meta:ko(Eo({},n||{}),{arg:o,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 h,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){h=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return vo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(f,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{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:d.signal,abort:u,rejectWithValue:function(t,e){return new Po(t,e)},fulfillWithValue:function(t,e){return new Mo(t,e)}})).then((function(e){if(e instanceof Po)throw e;return e instanceof Mo?o(e.payload,f,t,e.meta):o(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Po?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:f,arg:t,unwrap:function(){return p.then(jo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Bo="listenerMiddleware";To(Bo+"/add"),To(Bo+"/removeAll"),To(Bo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Bi];return Vi.get(e,t)},set:function(e){var i=this[Bi];Vi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Bi];if(!r.P)switch(r.i){case 5:o(r)&&Ii(r);break;case 4:i(r)&&Ii(r)}}}function i(t){for(var e=t.t,i=t.k,o=Zi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Bi){var a=e[n];if(void 0===a&&!si(e,n))return!0;var s=i[n],l=s&&s[Bi];if(l?l.t!==a:!ci(s,a))return!0}}var c=!!e[Bi];return o.length!==Zi(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Gi[t]||(Gi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Hi(i);delete n[Bi];for(var a=Zi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:vi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Bi,{value:n,writable:!0}),r},S:function(t,i,r){r?oi(i)&&i[Bi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Bi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ni(n,(function(e){e!==Bi&&(void 0!==r[e]||si(r,e)?a[e]||t(n[e]):(a[e]=!0,Ii(i)))})),ni(r,(function(t){void 0!==n[t]||si(n,t)||(a[t]=!1,Ii(i))}));else if(5===s){if(o(i)&&(Ii(i),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 h=Math.min(n.length,r.length),f=0;f<h;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?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ko{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Ve(r))return r;if(null==o)return;const n=Do({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=_o({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ko(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Zo=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};E(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Ho=Symbol("elementInternals");function Go(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ho].form}constructor(...t){super(t),this[Ho]=this.attachInternals(),this[Ho].role=e}setFormValue(t){this[Ho].setFormValue(t)}}}var Vo,qo,Yo;const Xo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yo=null===(qo=null===(Vo=window.safari)||void 0===Vo?void 0:Vo.pushNotification)||void 0===qo?void 0:qo.toString())&&void 0!==Yo?Yo:"");var Jo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Jo||(Jo={}));var Qo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class tr extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const er=Symbol("registerInterval");class ir extends(function(t){var e;class i 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[er]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[er]):this.dispatchEvent(new tr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=er,Qo([k()],i.prototype,"stateManager",void 0),i}(ei)){}const or=Ee.extend("--ft-ripple-color","",Ae.colorContent),rr={color:or,backgroundColor:Ee.extend("--ft-ripple-background-color","",or),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},nr=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),ar=nr,sr=Ee.extend("--ft-ripple-background-color","",nr),lr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),cr=lr,hr=Ee.extend("--ft-ripple-background-color","",lr),fr=Et`
126
+ `;class Ge{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Ve=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};E(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class qe{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Ye(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Xe,Je,Qe;const ti=Symbol("internalReduxEventsUnsubscribers"),ei=Symbol("internalStoresUnsubscribers"),ii=Symbol("internalStores");class oi extends Be{constructor(){super(...arguments),this[Xe]=new Map,this[Je]=new Map,this[Qe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ii].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ii].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ii].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ye(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ii].delete(e)}setupStore(t,e){this[ii].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ii].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ei].has(t.store):this[ei].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ei].set(t,e.subscribe((()=>this.updateFromStores()))),Ye(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[ti].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ei].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ti].forEach((t=>t())),this[ti]=[]}unsubscribeFromStore(t){this[ei].has(t)&&this[ei].get(t)(),this[ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ri(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ni(t){return!!t&&!!t[Zi]}function ai(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Hi}(t)||Array.isArray(t)||!!t[Ki]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ki])||di(t)||ui(t))}function si(t,e,i){void 0===i&&(i=!1),0===li(t)?(i?Object.keys:Gi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function li(t){var e=t[Zi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:di(t)?2:ui(t)?3:0}function ci(t,e){return 2===li(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fi(t,e,i){var o=li(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function hi(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function di(t){return Mi&&t instanceof Map}function ui(t){return zi&&t instanceof Set}function pi(t){return t.o||t.t}function yi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vi(t);delete e[Zi];for(var i=Gi(e),o=0;o<i.length;o++){var r=i[o],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 gi(t,e){return void 0===e&&(e=!1),vi(t)||ni(t)||!ai(t)||(li(t)>1&&(t.set=t.add=t.clear=t.delete=bi),Object.freeze(t),e&&si(t,(function(t,e){return gi(e,!0)}),!0)),t}function bi(){ri(2)}function vi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mi(t){var e=qi[t];return e||ri(18,t),e}function xi(){return Fi}function wi(t,e){e&&(mi("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){Si(t),t.p.forEach(Ni),t.p=null}function Si(t){t===Fi&&(Fi=t.l)}function $i(t){return Fi={p:[],l:Fi,h:t,m:!0,_:0}}function Ni(t){var e=t[Zi];0===e.i||1===e.i?e.j():e.g=!0}function Ci(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||mi("ES5").S(e,t,o),o?(i[Zi].P&&(Oi(e),ri(4)),ai(t)&&(t=Ei(e,t),e.l||Ri(e,t)),e.u&&mi("Patches").M(i[Zi].t,t,e.u,e.s)):t=Ei(e,i,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==Bi?t:void 0}function Ei(t,e,i){if(vi(e))return e;var o=e[Zi];if(!o)return si(e,(function(r,n){return ki(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ri(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=yi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),si(n,(function(e,n){return ki(t,o,r,e,n,i,a)})),Ri(t,r,!1),i&&t.u&&mi("Patches").N(o,i,t.u,t.s)}return o.o}function ki(t,e,i,o,r,n,a){if(ni(r)){var s=Ei(t,r,n&&e&&3!==e.i&&!ci(e.R,o)?n.concat(o):void 0);if(fi(i,o,s),!ni(s))return;t.m=!1}else a&&i.add(r);if(ai(r)&&!vi(r)){if(!t.h.D&&t._<1)return;Ei(t,r),e&&e.A.l||Ri(t,r)}}function Ri(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&gi(e,i)}function Ii(t,e){var i=t[Zi];return(i?pi(i):t)[e]}function Ui(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Li(t){t.P||(t.P=!0,t.l&&Li(t.l))}function Ai(t){t.o||(t.o=yi(t.t))}function _i(t,e,i){var o=di(e)?mi("MapSet").F(e,i):ui(e)?mi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:xi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Yi;i&&(r=[o],n=Xi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):mi("ES5").J(e,i);return(i?i.A:xi()).p.push(o),o}function Ti(t){return ni(t)||ri(22,t),function t(e){if(!ai(e))return e;var i,o=e[Zi],r=li(e);if(o){if(!o.P&&(o.i<4||!mi("ES5").K(o)))return o.t;o.I=!0,i=Wi(e,r),o.I=!1}else i=Wi(e,r);return si(i,(function(e,r){o&&function(t,e){return 2===li(t)?t.get(e):t[e]}(o.t,e)===r||fi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Wi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yi(t)}Xe=ei,Je=ii,Qe=ti;var Di,Fi,Pi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Mi="undefined"!=typeof Map,zi="undefined"!=typeof Set,ji="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Bi=Pi?Symbol.for("immer-nothing"):((Di={})["immer-nothing"]=!0,Di),Ki=Pi?Symbol.for("immer-draftable"):"__$immer_draftable",Zi=Pi?Symbol.for("immer-state"):"__$immer_state",Hi=""+Object.prototype.constructor,Gi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vi=Object.getOwnPropertyDescriptors||function(t){var e={};return Gi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},qi={},Yi={get:function(t,e){if(e===Zi)return t;var i=pi(t);if(!ci(i,e))return function(t,e,i){var o,r=Ui(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!ai(o)?o:o===Ii(t.t,e)?(Ai(t),t.o[e]=_i(t.A.h,o,t)):o},has:function(t,e){return e in pi(t)},ownKeys:function(t){return Reflect.ownKeys(pi(t))},set:function(t,e,i){var o=Ui(pi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ii(pi(t),e),n=null==r?void 0:r[Zi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(hi(i,r)&&(void 0!==i||ci(t.t,e)))return!0;Ai(t),Li(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ii(t.t,e)||e in t.t?(t.R[e]=!1,Ai(t),Li(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=pi(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ri(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ri(12)}},Xi={};si(Yi,(function(t,e){Xi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xi.deleteProperty=function(t,e){return Xi.set.call(this,t,e,void 0)},Xi.set=function(t,e,i){return Yi.set.call(this,t[0],e,i,t[0])};var Ji=function(){function t(t){var e=this;this.O=ji,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ri(6),void 0!==o&&"function"!=typeof o&&ri(7),ai(t)){var s=$i(e),l=_i(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Oi(s):Si(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return wi(s,o),Ci(t,s)}),(function(t){throw Oi(s),t})):(wi(s,o),Ci(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Bi&&(a=void 0),e.D&&gi(a,!0),o){var f=[],h=[];mi("Patches").M(t,a,f,h),o(f,h)}return a}ri(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,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){ai(t)||ri(8),ni(t)&&(t=Ti(t));var e=$i(this),i=_i(this,t,void 0);return i[Zi].C=!0,Si(e),i},e.finishDraft=function(t,e){var i=(t&&t[Zi]).A;return wi(i,e),Ci(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ji&&ri(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=mi("Patches").$;return ni(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Qi=new Ji,to=Qi.produce;function eo(t){return eo="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},eo(t)}function io(t){var e=function(t,e){if("object"!==eo(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==eo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eo(e)?e:String(e)}function oo(t,e,i){return(e=io(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ro(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function no(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(i),!0).forEach((function(e){oo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ro(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ao(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. "}Qi.produceWithPatches.bind(Qi),Qi.setAutoFreeze.bind(Qi),Qi.setUseProxies.bind(Qi),Qi.applyPatches.bind(Qi),Qi.createDraft.bind(Qi),Qi.finishDraft.bind(Qi);var so="function"==typeof Symbol&&Symbol.observable||"@@observable",lo=function(){return Math.random().toString(36).substring(7).split("").join(".")},co={INIT:"@@redux/INIT"+lo(),REPLACE:"@@redux/REPLACE"+lo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+lo()}};function fo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ao(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ao(1));return i(fo)(t,e)}if("function"!=typeof t)throw new Error(ao(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ao(3));return n}function h(t){if("function"!=typeof t)throw new Error(ao(4));if(l)throw new Error(ao(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ao(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(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(ao(7));if(void 0===t.type)throw new Error(ao(8));if(l)throw new Error(ao(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:co.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ao(10));r=t,d({type:co.REPLACE})}})[so]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ao(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[so]=function(){return this},t},o}function ho(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:co.INIT}))throw new Error(ao(12));if(void 0===i(void 0,{type:co.PROBE_UNKNOWN_ACTION()}))throw new Error(ao(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ao(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function uo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function po(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(ao(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=uo.apply(void 0,n)(i.dispatch),no(no({},i),{},{dispatch:o})}}}function yo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var go=yo();go.withExtraArgument=yo;var bo,vo=go,mo=(bo=function(t,e){return bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},bo(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}bo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),xo=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=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++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Oo=Object.defineProperty,So=Object.defineProperties,$o=Object.getOwnPropertyDescriptors,No=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,ko=function(t,e,i){return e in t?Oo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Ro=function(t,e){for(var i in e||(e={}))Co.call(e,i)&&ko(t,i,e[i]);if(No)for(var o=0,r=No(e);o<r.length;o++){i=r[o];Eo.call(e,i)&&ko(t,i,e[i])}return t},Io=function(t,e){return So(t,$o(e))},Uo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?uo:uo.apply(null,arguments)};var Lo=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return mo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wo([void 0],t[0].concat(this)))):new(e.bind.apply(e,wo([void 0],t.concat(this))))},e}(Array),Ao=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return mo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wo([void 0],t[0].concat(this)))):new(e.bind.apply(e,wo([void 0],t.concat(this))))},e}(Array);function _o(t){return ai(t)?to(t,(function(){})):t}function To(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Lo;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(vo.withExtraArgument(i.extraArgument)):o.push(vo));return o}(t)}}function Wo(t){var e,i=To(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=ho(n)}var p=s;"function"==typeof p&&(p=p(i));var y=po.apply(void 0,p),g=uo;c&&(g=Uo(Ro({trace:!1},"object"==typeof c&&c)));var b=new Ao(y),v=b;return Array.isArray(u)?v=wo([y],u):"function"==typeof u&&(v=u(b)),fo(e,h,g.apply(void 0,v))}function Do(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Ro(Ro({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Fo(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Po(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:_o(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Fo(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ro(Ro({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Fo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return _o(t())};else{var c=_o(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=wo([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(ni(t))return void 0===(o=i(t,e))?t:o;if(ai(t))return to(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Do(c,o):Do(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Mo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},jo=function(t,e){this.payload=t,this.meta=e},Bo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Mo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ko(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Do(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Io(Ro({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Do(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Io(Ro({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Do(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Bo)(t||"Rejected"),meta:Io(Ro({},n||{}),{arg:o,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 f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return xo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{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:d.signal,abort:u,rejectWithValue:function(t,e){return new zo(t,e)},fulfillWithValue:function(t,e){return new jo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof jo?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof zo?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ko)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Zo="listenerMiddleware";Do(Zo+"/add"),Do(Zo+"/removeAll"),Do(Zo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Zi];return Yi.get(e,t)},set:function(e){var i=this[Zi];Yi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zi];if(!r.P)switch(r.i){case 5:o(r)&&Li(r);break;case 4:i(r)&&Li(r)}}}function i(t){for(var e=t.t,i=t.k,o=Gi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Zi){var a=e[n];if(void 0===a&&!ci(e,n))return!0;var s=i[n],l=s&&s[Zi];if(l?l.t!==a:!hi(s,a))return!0}}var c=!!e[Zi];return o.length!==Gi(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){qi[t]||(qi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Vi(i);delete n[Zi];for(var a=Gi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:xi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zi,{value:n,writable:!0}),r},S:function(t,i,r){r?ni(i)&&i[Zi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Zi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)si(n,(function(e){e!==Zi&&(void 0!==r[e]||ci(r,e)?a[e]||t(n[e]):(a[e]=!0,Li(i)))})),si(r,(function(t){void 0!==n[t]||ci(n,t)||(a[t]=!1,Li(i))}));else if(5===s){if(o(i)&&(Li(i),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 f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ho{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Ye(r))return r;if(null==o)return;const n=Po({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Wo({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ho(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new qe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Go=Symbol("elementInternals");function Vo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=e}setFormValue(t){this[Go].setFormValue(t)}}}var qo,Yo,Xo;const Jo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xo=null===(Yo=null===(qo=window.safari)||void 0===qo?void 0:qo.pushNotification)||void 0===Yo?void 0:Yo.toString())&&void 0!==Xo?Xo:"");var Qo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Qo||(Qo={}));var tr=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class er extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ir=Symbol("registerInterval");class or extends(function(t){var e;class i 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[ir]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ir]):this.dispatchEvent(new er)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ir,tr([k()],i.prototype,"stateManager",void 0),i}(oi)){}const rr=Ee.extend("--ft-ripple-color","",Ae.colorContent),nr={color:rr,backgroundColor:Ee.extend("--ft-ripple-background-color","",rr),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},ar=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),sr=ar,lr=Ee.extend("--ft-ripple-background-color","",ar),cr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),fr=cr,hr=Ee.extend("--ft-ripple-background-color","",cr),dr=Et`
127
127
  :host {
128
128
  display: contents;
129
129
  }
@@ -136,7 +136,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
136
136
 
137
137
  .ft-ripple:not(.ft-ripple--unbounded) {
138
138
  overflow: hidden;
139
- border-radius: ${rr.borderRadius};
139
+ border-radius: ${nr.borderRadius};
140
140
  }
141
141
 
142
142
  .ft-ripple .ft-ripple--background,
@@ -170,11 +170,11 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
170
170
  }
171
171
 
172
172
  .ft-ripple .ft-ripple--background {
173
- background-color: ${rr.backgroundColor};
173
+ background-color: ${nr.backgroundColor};
174
174
  }
175
175
 
176
176
  .ft-ripple .ft-ripple--effect {
177
- background-color: ${rr.color};
177
+ background-color: ${nr.color};
178
178
  }
179
179
 
180
180
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -182,15 +182,15 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
182
182
  }
183
183
 
184
184
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
185
- background-color: ${cr};
185
+ background-color: ${fr};
186
186
  }
187
187
 
188
188
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
189
- background-color: ${sr};
189
+ background-color: ${lr};
190
190
  }
191
191
 
192
192
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
193
- background-color: ${ar};
193
+ background-color: ${sr};
194
194
  }
195
195
 
196
196
  .ft-ripple .ft-ripple--background {
@@ -220,32 +220,23 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
220
220
  }
221
221
 
222
222
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
223
- opacity: ${rr.opacityContentOnSurfaceHover};
223
+ opacity: ${nr.opacityContentOnSurfaceHover};
224
224
  }
225
225
 
226
226
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
227
- opacity: ${rr.opacityContentOnSurfaceSelected};
227
+ opacity: ${nr.opacityContentOnSurfaceSelected};
228
228
  }
229
229
 
230
230
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
231
- opacity: ${rr.opacityContentOnSurfaceFocused};
231
+ opacity: ${nr.opacityContentOnSurfaceFocused};
232
232
  }
233
233
 
234
234
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
235
- opacity: ${rr.opacityContentOnSurfacePressed};
235
+ opacity: ${nr.opacityContentOnSurfacePressed};
236
236
  transform: translate(-50%, -50%) scale(1);
237
237
  }
238
- `;const dr=Ee.extend("--ft-typography-font-family","",Ae.titleFont),ur=Ee.extend("--ft-typography-font-family","",Ae.contentFont),pr={fontFamily:ur,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yr={fontFamily:Ee.extend("--ft-typography-title-font-family","",dr),fontSize:Ee.extend("--ft-typography-title-font-size","",pr.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",pr.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",pr.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",pr.textTransform,"inherit")},gr={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",dr),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",pr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",pr.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",pr.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",pr.textTransform,"inherit")},br=Ee.extend("--ft-typography-subtitle1-font-family","",ur),vr=Ee.extend("--ft-typography-subtitle1-font-size","",pr.fontSize,"16px"),mr=Ee.extend("--ft-typography-subtitle1-font-weight","",pr.fontWeight,"600"),xr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",pr.letterSpacing,"0.144px"),wr=Ee.extend("--ft-typography-subtitle1-line-height","",pr.lineHeight,"1.5"),Or=Ee.extend("--ft-typography-subtitle1-text-transform","",pr.textTransform,"inherit"),Sr=Ee.extend("--ft-typography-subtitle2-font-family","",ur),$r=Ee.extend("--ft-typography-subtitle2-font-size","",pr.fontSize,"14px"),Nr=Ee.extend("--ft-typography-subtitle2-font-weight","",pr.fontWeight,"normal"),Cr=Ee.extend("--ft-typography-subtitle2-letter-spacing","",pr.letterSpacing,"0.098px"),Er=Ee.extend("--ft-typography-subtitle2-line-height","",pr.lineHeight,"1.7"),kr=Ee.extend("--ft-typography-subtitle2-text-transform","",pr.textTransform,"inherit"),Rr={fontFamily:Ee.extend("--ft-typography-body1-font-family","",ur),fontSize:Ee.extend("--ft-typography-body1-font-size","",pr.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",pr.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",pr.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",pr.textTransform,"inherit")},Ir=Ee.extend("--ft-typography-body2-font-family","",ur),Ur=Ee.extend("--ft-typography-body2-font-size","",pr.fontSize,"14px"),Lr=Ee.extend("--ft-typography-body2-font-weight","",pr.fontWeight,"normal"),Ar=Ee.extend("--ft-typography-body2-letter-spacing","",pr.letterSpacing,"0.252px"),_r=Ee.extend("--ft-typography-body2-line-height","",pr.lineHeight,"1.4"),Tr=Ee.extend("--ft-typography-body2-text-transform","",pr.textTransform,"inherit"),Wr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",ur),fontSize:Ee.extend("--ft-typography-caption-font-size","",pr.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",pr.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",pr.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",pr.textTransform,"inherit")},Dr=Ee.extend("--ft-typography-breadcrumb-font-family","",ur),Fr=Ee.extend("--ft-typography-breadcrumb-font-size","",pr.fontSize,"10px"),Pr=Ee.extend("--ft-typography-breadcrumb-font-weight","",pr.fontWeight,"normal"),Mr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",pr.letterSpacing,"0.33px"),zr=Ee.extend("--ft-typography-breadcrumb-line-height","",pr.lineHeight,"1.6"),jr=Ee.extend("--ft-typography-breadcrumb-text-transform","",pr.textTransform,"inherit"),Br=Ee.extend("--ft-typography-overline-font-family","",ur),Kr=Ee.extend("--ft-typography-overline-font-size","",pr.fontSize,"10px"),Zr=Ee.extend("--ft-typography-overline-font-weight","",pr.fontWeight,"normal"),Hr=Ee.extend("--ft-typography-overline-letter-spacing","",pr.letterSpacing,"1.5px"),Gr=Ee.extend("--ft-typography-overline-line-height","",pr.lineHeight,"1.6"),Vr=Ee.extend("--ft-typography-overline-text-transform","",pr.textTransform,"uppercase"),qr={fontFamily:Ee.extend("--ft-typography-button-font-family","",ur),fontSize:Ee.extend("--ft-typography-button-font-size","",pr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",pr.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",pr.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",pr.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",pr.textTransform,"uppercase")},Yr=Et`
238
+ `;const ur=Ee.extend("--ft-typography-font-family","",Ae.titleFont),pr=Ee.extend("--ft-typography-font-family","",Ae.contentFont),yr={fontFamily:pr,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gr={fontFamily:Ee.extend("--ft-typography-title-font-family","",ur),fontSize:Ee.extend("--ft-typography-title-font-size","",yr.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",yr.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",yr.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",yr.textTransform,"inherit")},br={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",ur),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",yr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",yr.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",yr.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",yr.textTransform,"inherit")},vr=Ee.extend("--ft-typography-subtitle1-font-family","",pr),mr=Ee.extend("--ft-typography-subtitle1-font-size","",yr.fontSize,"16px"),xr=Ee.extend("--ft-typography-subtitle1-font-weight","",yr.fontWeight,"600"),wr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",yr.letterSpacing,"0.144px"),Or=Ee.extend("--ft-typography-subtitle1-line-height","",yr.lineHeight,"1.5"),Sr=Ee.extend("--ft-typography-subtitle1-text-transform","",yr.textTransform,"inherit"),$r=Ee.extend("--ft-typography-subtitle2-font-family","",pr),Nr=Ee.extend("--ft-typography-subtitle2-font-size","",yr.fontSize,"14px"),Cr=Ee.extend("--ft-typography-subtitle2-font-weight","",yr.fontWeight,"normal"),Er=Ee.extend("--ft-typography-subtitle2-letter-spacing","",yr.letterSpacing,"0.098px"),kr=Ee.extend("--ft-typography-subtitle2-line-height","",yr.lineHeight,"1.7"),Rr=Ee.extend("--ft-typography-subtitle2-text-transform","",yr.textTransform,"inherit"),Ir={fontFamily:Ee.extend("--ft-typography-body1-font-family","",pr),fontSize:Ee.extend("--ft-typography-body1-font-size","",yr.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",yr.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",yr.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",yr.textTransform,"inherit")},Ur=Ee.extend("--ft-typography-body2-font-family","",pr),Lr=Ee.extend("--ft-typography-body2-font-size","",yr.fontSize,"14px"),Ar=Ee.extend("--ft-typography-body2-font-weight","",yr.fontWeight,"normal"),_r=Ee.extend("--ft-typography-body2-letter-spacing","",yr.letterSpacing,"0.252px"),Tr=Ee.extend("--ft-typography-body2-line-height","",yr.lineHeight,"1.4"),Wr=Ee.extend("--ft-typography-body2-text-transform","",yr.textTransform,"inherit"),Dr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",pr),fontSize:Ee.extend("--ft-typography-caption-font-size","",yr.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",yr.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",yr.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",yr.textTransform,"inherit")},Fr=Ee.extend("--ft-typography-breadcrumb-font-family","",pr),Pr=Ee.extend("--ft-typography-breadcrumb-font-size","",yr.fontSize,"10px"),Mr=Ee.extend("--ft-typography-breadcrumb-font-weight","",yr.fontWeight,"normal"),zr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",yr.letterSpacing,"0.33px"),jr=Ee.extend("--ft-typography-breadcrumb-line-height","",yr.lineHeight,"1.6"),Br=Ee.extend("--ft-typography-breadcrumb-text-transform","",yr.textTransform,"inherit"),Kr=Ee.extend("--ft-typography-overline-font-family","",pr),Zr=Ee.extend("--ft-typography-overline-font-size","",yr.fontSize,"10px"),Hr=Ee.extend("--ft-typography-overline-font-weight","",yr.fontWeight,"normal"),Gr=Ee.extend("--ft-typography-overline-letter-spacing","",yr.letterSpacing,"1.5px"),Vr=Ee.extend("--ft-typography-overline-line-height","",yr.lineHeight,"1.6"),qr=Ee.extend("--ft-typography-overline-text-transform","",yr.textTransform,"uppercase"),Yr={fontFamily:Ee.extend("--ft-typography-button-font-family","",pr),fontSize:Ee.extend("--ft-typography-button-font-size","",yr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",yr.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",yr.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",yr.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",yr.textTransform,"uppercase")},Xr=Et`
239
239
  .ft-typography--title {
240
- font-family: ${yr.fontFamily};
241
- font-size: ${yr.fontSize};
242
- font-weight: ${yr.fontWeight};
243
- letter-spacing: ${yr.letterSpacing};
244
- line-height: ${yr.lineHeight};
245
- text-transform: ${yr.textTransform};
246
- }
247
- `,Xr=Et`
248
- .ft-typography--title-dense {
249
240
  font-family: ${gr.fontFamily};
250
241
  font-size: ${gr.fontSize};
251
242
  font-weight: ${gr.fontWeight};
@@ -254,83 +245,92 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
254
245
  text-transform: ${gr.textTransform};
255
246
  }
256
247
  `,Jr=Et`
257
- .ft-typography--subtitle1 {
258
- font-family: ${br};
259
- font-size: ${vr};
260
- font-weight: ${mr};
261
- letter-spacing: ${xr};
262
- line-height: ${wr};
263
- text-transform: ${Or};
248
+ .ft-typography--title-dense {
249
+ font-family: ${br.fontFamily};
250
+ font-size: ${br.fontSize};
251
+ font-weight: ${br.fontWeight};
252
+ letter-spacing: ${br.letterSpacing};
253
+ line-height: ${br.lineHeight};
254
+ text-transform: ${br.textTransform};
264
255
  }
265
256
  `,Qr=Et`
266
- .ft-typography--subtitle2 {
267
- font-family: ${Sr};
268
- font-size: ${$r};
269
- font-weight: ${Nr};
270
- letter-spacing: ${Cr};
271
- line-height: ${Er};
272
- text-transform: ${kr};
257
+ .ft-typography--subtitle1 {
258
+ font-family: ${vr};
259
+ font-size: ${mr};
260
+ font-weight: ${xr};
261
+ letter-spacing: ${wr};
262
+ line-height: ${Or};
263
+ text-transform: ${Sr};
273
264
  }
274
-
275
265
  `,tn=Et`
276
- .ft-typography--body1 {
277
- font-family: ${Rr.fontFamily};
278
- font-size: ${Rr.fontSize};
279
- font-weight: ${Rr.fontWeight};
280
- letter-spacing: ${Rr.letterSpacing};
281
- line-height: ${Rr.lineHeight};
282
- text-transform: ${Rr.textTransform};
266
+ .ft-typography--subtitle2 {
267
+ font-family: ${$r};
268
+ font-size: ${Nr};
269
+ font-weight: ${Cr};
270
+ letter-spacing: ${Er};
271
+ line-height: ${kr};
272
+ text-transform: ${Rr};
283
273
  }
274
+
284
275
  `,en=Et`
285
- .ft-typography--body2 {
286
- font-family: ${Ir};
287
- font-size: ${Ur};
288
- font-weight: ${Lr};
289
- letter-spacing: ${Ar};
290
- line-height: ${_r};
291
- text-transform: ${Tr};
276
+ .ft-typography--body1 {
277
+ font-family: ${Ir.fontFamily};
278
+ font-size: ${Ir.fontSize};
279
+ font-weight: ${Ir.fontWeight};
280
+ letter-spacing: ${Ir.letterSpacing};
281
+ line-height: ${Ir.lineHeight};
282
+ text-transform: ${Ir.textTransform};
292
283
  }
293
284
  `,on=Et`
294
- .ft-typography--caption {
295
- font-family: ${Wr.fontFamily};
296
- font-size: ${Wr.fontSize};
297
- font-weight: ${Wr.fontWeight};
298
- letter-spacing: ${Wr.letterSpacing};
299
- line-height: ${Wr.lineHeight};
300
- text-transform: ${Wr.textTransform};
285
+ .ft-typography--body2 {
286
+ font-family: ${Ur};
287
+ font-size: ${Lr};
288
+ font-weight: ${Ar};
289
+ letter-spacing: ${_r};
290
+ line-height: ${Tr};
291
+ text-transform: ${Wr};
301
292
  }
302
293
  `,rn=Et`
303
- .ft-typography--breadcrumb {
304
- font-family: ${Dr};
305
- font-size: ${Fr};
306
- font-weight: ${Pr};
307
- letter-spacing: ${Mr};
308
- line-height: ${zr};
309
- text-transform: ${jr};
294
+ .ft-typography--caption {
295
+ font-family: ${Dr.fontFamily};
296
+ font-size: ${Dr.fontSize};
297
+ font-weight: ${Dr.fontWeight};
298
+ letter-spacing: ${Dr.letterSpacing};
299
+ line-height: ${Dr.lineHeight};
300
+ text-transform: ${Dr.textTransform};
310
301
  }
311
302
  `,nn=Et`
312
- .ft-typography--overline {
313
- font-family: ${Br};
314
- font-size: ${Kr};
315
- font-weight: ${Zr};
316
- letter-spacing: ${Hr};
317
- line-height: ${Gr};
318
- text-transform: ${Vr};
303
+ .ft-typography--breadcrumb {
304
+ font-family: ${Fr};
305
+ font-size: ${Pr};
306
+ font-weight: ${Mr};
307
+ letter-spacing: ${zr};
308
+ line-height: ${jr};
309
+ text-transform: ${Br};
319
310
  }
320
311
  `,an=Et`
321
- .ft-typography--button {
322
- font-family: ${qr.fontFamily};
323
- font-size: ${qr.fontSize};
324
- font-weight: ${qr.fontWeight};
325
- letter-spacing: ${qr.letterSpacing};
326
- line-height: ${qr.lineHeight};
327
- text-transform: ${qr.textTransform};
312
+ .ft-typography--overline {
313
+ font-family: ${Kr};
314
+ font-size: ${Zr};
315
+ font-weight: ${Hr};
316
+ letter-spacing: ${Gr};
317
+ line-height: ${Vr};
318
+ text-transform: ${qr};
328
319
  }
329
320
  `,sn=Et`
321
+ .ft-typography--button {
322
+ font-family: ${Yr.fontFamily};
323
+ font-size: ${Yr.fontSize};
324
+ font-weight: ${Yr.fontWeight};
325
+ letter-spacing: ${Yr.letterSpacing};
326
+ line-height: ${Yr.lineHeight};
327
+ text-transform: ${Yr.textTransform};
328
+ }
329
+ `,ln=Et`
330
330
  .ft-typography {
331
331
  vertical-align: inherit;
332
332
  }
333
- `,ln=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
333
+ `,cn=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
334
334
  .ft-typography--${Ct(t)} {
335
335
  font-family: ${e.fontFamily};
336
336
  font-size: ${e.fontSize};
@@ -339,7 +339,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
339
339
  line-height: ${e.lineHeight};
340
340
  text-transform: ${e.textCase};
341
341
  }
342
- `}(t)))],cn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},hn=Et`
342
+ `}(t)))],fn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},hn=Et`
343
343
  :host {
344
344
  line-height: 0;
345
345
  }
@@ -348,8 +348,8 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
348
348
  display: inline-block;
349
349
  position: relative;
350
350
 
351
- width: ${cn.size};
352
- height: ${cn.size};
351
+ width: ${fn.size};
352
+ height: ${fn.size};
353
353
  }
354
354
 
355
355
  .ft-loader div {
@@ -358,7 +358,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
358
358
  width: 25%;
359
359
  height: 25%;
360
360
  border-radius: 50%;
361
- background: ${cn.color};
361
+ background: ${fn.color};
362
362
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
363
363
  }
364
364
 
@@ -405,10 +405,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
405
405
  transform: translate(0, 0);
406
406
  }
407
407
  100% {
408
- transform: translate(calc(0.35 * ${cn.size}), 0);
408
+ transform: translate(calc(0.35 * ${fn.size}), 0);
409
409
  }
410
410
  }
411
- `,fn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},dn=Et`
411
+ `,dn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},un=Et`
412
412
  :host, i.ft-icon {
413
413
  display: inline-flex;
414
414
  align-items: center;
@@ -417,14 +417,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
417
417
  }
418
418
 
419
419
  :host {
420
- width: ${fn.size};
421
- height: ${fn.size};
420
+ width: ${dn.size};
421
+ height: ${dn.size};
422
422
  }
423
423
 
424
424
  i.ft-icon {
425
425
  width: 100%;
426
426
  height: 100%;
427
- font-size: ${fn.size};
427
+ font-size: ${dn.size};
428
428
  line-height: 1;
429
429
  font-weight: normal;
430
430
  text-transform: none;
@@ -435,28 +435,28 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
435
435
  text-rendering: auto;
436
436
  -webkit-font-smoothing: antialiased;
437
437
  -moz-osx-font-smoothing: grayscale;
438
- vertical-align: ${fn.verticalAlign};
438
+ vertical-align: ${dn.verticalAlign};
439
439
  }
440
440
 
441
441
  i.ft-icon.ft-icon--fluid-topics {
442
- font-family: ${fn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
442
+ font-family: ${dn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
443
443
 
444
444
  /* Ugly fix because font is broken */
445
- font-size: calc(0.75 * ${fn.size});
446
- line-height: ${fn.size};
445
+ font-size: calc(0.75 * ${dn.size});
446
+ line-height: ${dn.size};
447
447
  position: relative;
448
448
  top: -4%;
449
449
  justify-content: center;
450
450
  }
451
451
 
452
452
  .ft-icon--file-format {
453
- font-family: ${fn.fileFormatFontFamily}, ft-mime, sans-serif;
453
+ font-family: ${dn.fileFormatFontFamily}, ft-mime, sans-serif;
454
454
  }
455
455
 
456
456
  .ft-icon--material {
457
- font-family: ${fn.materialFontFamily}, "Material Icons", sans-serif;
457
+ font-family: ${dn.materialFontFamily}, "Material Icons", sans-serif;
458
458
  }
459
- `,un=Ee.extend("--ft-button-color","",Ae.colorPrimary),pn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:un,fontSize:Ee.extend("--ft-button-font-size","",qr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",un),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},yn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),gn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:yn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",yn)},bn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),vn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),mn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),xn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),wn=[Et`
459
+ `,pn=Ee.extend("--ft-button-color","",Ae.colorPrimary),yn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:pn,fontSize:Ee.extend("--ft-button-font-size","",Yr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",pn),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},gn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),bn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:gn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",gn)},vn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),mn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),xn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),wn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),On=[Et`
460
460
  :host {
461
461
  display: inline-block;
462
462
  max-width: 100%;
@@ -467,7 +467,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
467
467
  box-shadow: 0px 0px 0px transparent;
468
468
  border: 0px solid transparent;
469
469
  text-shadow: 0px 0px 0px transparent;
470
- font-size: ${pn.fontSize};
470
+ font-size: ${yn.fontSize};
471
471
  }
472
472
 
473
473
  button:hover {
@@ -496,31 +496,31 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
496
496
  border: none;
497
497
  pointer-events: auto;
498
498
 
499
- --ft-button-internal-line-height: max(calc(${pn.fontSize} + 2px), ${pn.iconSize});
500
- --ft-button-internal-color: ${pn.color};
501
- ${ke(fn.size,pn.iconSize)};
502
- ${ke(rr.color,pn.rippleColor)};
499
+ --ft-button-internal-line-height: max(calc(${yn.fontSize} + 2px), ${yn.iconSize});
500
+ --ft-button-internal-color: ${yn.color};
501
+ ${ke(dn.size,yn.iconSize)};
502
+ ${ke(nr.color,yn.rippleColor)};
503
503
 
504
- border-radius: ${pn.borderRadius};
505
- padding: ${pn.verticalPadding} ${pn.horizontalPadding};
506
- background-color: ${pn.backgroundColor};
504
+ border-radius: ${yn.borderRadius};
505
+ padding: ${yn.verticalPadding} ${yn.horizontalPadding};
506
+ background-color: ${yn.backgroundColor};
507
507
  color: var(--ft-button-internal-color);
508
508
  -webkit-mask-image: radial-gradient(white, black);
509
509
  }
510
510
 
511
511
  .ft-button.ft-button--outlined {
512
512
  border: 1px solid var(--ft-button-internal-color);
513
- padding: calc(${pn.verticalPadding} - 1px) calc(${pn.horizontalPadding} - 1px);
513
+ padding: calc(${yn.verticalPadding} - 1px) calc(${yn.horizontalPadding} - 1px);
514
514
  }
515
515
 
516
516
  .ft-button.ft-button--dense {
517
- padding: ${vn} ${mn};
518
- border-radius: ${bn};
519
- gap: ${xn};
517
+ padding: ${mn} ${xn};
518
+ border-radius: ${vn};
519
+ gap: ${wn};
520
520
  }
521
521
 
522
522
  .ft-button.ft-button--dense.ft-button--outlined {
523
- padding: calc(${vn} - 1px) calc(${mn} - 1px);
523
+ padding: calc(${mn} - 1px) calc(${xn} - 1px);
524
524
  }
525
525
 
526
526
  .ft-button:not([disabled]):hover {
@@ -528,22 +528,22 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
528
528
  }
529
529
 
530
530
  .ft-button--round {
531
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${pn.verticalPadding});
531
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${yn.verticalPadding});
532
532
  }
533
533
 
534
534
  .ft-button--round.ft-button--dense {
535
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${vn});
535
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${mn});
536
536
  }
537
537
 
538
538
  .ft-button[disabled] {
539
539
  filter: grayscale(1);
540
- opacity: ${pn.opacityDisabled};
540
+ opacity: ${yn.opacityDisabled};
541
541
  }
542
542
 
543
543
  .ft-button.ft-button--primary {
544
- background-color: ${gn.backgroundColor};
545
- --ft-button-internal-color: ${gn.color};
546
- ${ke(rr.color,gn.rippleColor)};
544
+ background-color: ${bn.backgroundColor};
545
+ --ft-button-internal-color: ${bn.color};
546
+ ${ke(nr.color,bn.rippleColor)};
547
547
  }
548
548
 
549
549
  .ft-button:focus {
@@ -556,13 +556,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
556
556
  white-space: nowrap;
557
557
  text-overflow: ellipsis;
558
558
  display: block;
559
- margin: 0 ${pn.iconPadding};
560
- ${ke(qr.fontSize,"1em")};
561
- ${ke(qr.lineHeight,"var(--ft-button-internal-line-height)")};
559
+ margin: 0 ${yn.iconPadding};
560
+ ${ke(Yr.fontSize,"1em")};
561
+ ${ke(Yr.lineHeight,"var(--ft-button-internal-line-height)")};
562
562
  }
563
563
 
564
564
  .ft-button--dense .ft-button--label {
565
- margin: 0 ${xn};
565
+ margin: 0 ${wn};
566
566
  }
567
567
 
568
568
  .ft-button--label[hidden] {
@@ -575,13 +575,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
575
575
  }
576
576
 
577
577
  .ft-button--label[hidden] + ft-icon {
578
- margin: 0 calc(${pn.horizontalPadding} * -1);
579
- padding: 0 ${pn.verticalPadding};
578
+ margin: 0 calc(${yn.horizontalPadding} * -1);
579
+ padding: 0 ${yn.verticalPadding};
580
580
  }
581
581
 
582
582
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
583
- margin: 0 calc(${mn} * -1);
584
- padding: 0 ${vn};
583
+ margin: 0 calc(${xn} * -1);
584
+ padding: 0 ${mn};
585
585
  }
586
586
 
587
587
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -590,10 +590,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
590
590
  }
591
591
 
592
592
  ft-loader {
593
- ${ke(cn.size,pn.iconSize)};
594
- ${ke(cn.color,"var(--ft-button-internal-color)")};
593
+ ${ke(fn.size,yn.iconSize)};
594
+ ${ke(fn.color,"var(--ft-button-internal-color)")};
595
595
  }
596
- `,Ze],On={textColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceHigh),backgroundColor:Ee.extend("--ft-switch-background-color","",Ae.colorSurface),selectedTextColor:Ee.extend("--ft-switch-selected-text-color","",Ae.colorPrimary),selectedBackgroundColor:Ee.extend("--ft-switch-selected-background-color","",Ae.colorPrimary),borderColor:Ee.extend("--ft-switch-border-color","",Ae.colorOutline),borderRadius:Ee.extend("--ft-switch-border-radius","",Ae.borderRadiusL),fontSize:Ee.extend("--ft-switch-font-size","",qr.fontSize),iconSize:Ee.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceMedium),rippleColor:Ee.extend("--ft-switch-ripple-color","",Ae.colorPrimary),outlineColor:Ee.extend("--ft-switch-outline-color","",Ae.colorPrimary)},Sn={feedbackInputMinWidth:Ee.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ee.extend("--ft-reader-feedback-send-feedback-color","",Ae.colorOnPrimary),sendFeedbackBackgroundColor:Ee.extend("--ft-reader-feedback-send-feedback-background-color","",Ae.colorPrimary),filledRatingColor:Ee.extend("--ft-reader-feedback-filled-rating-color","",Ae.colorPrimary),emptyRatingColor:Ee.extend("--ft-reader-feedback-empty-rating-color","",Ae.colorOnSurfaceMedium),mainTitleFontSize:Ee.external(yr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(gr.fontSize,"Typography")},$n=Et`
596
+ `,Ze],Sn={textColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceHigh),backgroundColor:Ee.extend("--ft-switch-background-color","",Ae.colorSurface),selectedTextColor:Ee.extend("--ft-switch-selected-text-color","",Ae.colorPrimary),selectedBackgroundColor:Ee.extend("--ft-switch-selected-background-color","",Ae.colorPrimary),borderColor:Ee.extend("--ft-switch-border-color","",Ae.colorOutline),borderRadius:Ee.extend("--ft-switch-border-radius","",Ae.borderRadiusL),fontSize:Ee.extend("--ft-switch-font-size","",Yr.fontSize),iconSize:Ee.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceMedium),rippleColor:Ee.extend("--ft-switch-ripple-color","",Ae.colorPrimary),outlineColor:Ee.extend("--ft-switch-outline-color","",Ae.colorPrimary)},$n={feedbackInputMinWidth:Ee.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ee.extend("--ft-reader-feedback-send-feedback-color","",Ae.colorOnPrimary),sendFeedbackBackgroundColor:Ee.extend("--ft-reader-feedback-send-feedback-background-color","",Ae.colorPrimary),filledRatingColor:Ee.extend("--ft-reader-feedback-filled-rating-color","",Ae.colorPrimary),emptyRatingColor:Ee.extend("--ft-reader-feedback-empty-rating-color","",Ae.colorOnSurfaceMedium),mainTitleFontSize:Ee.external(gr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(br.fontSize,"Typography")},Nn=Et`
597
597
  .ft-reader-feedback {
598
598
  box-sizing: border-box;
599
599
  display: flex;
@@ -639,14 +639,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
639
639
  }
640
640
 
641
641
  .ft-reader-feedback--rating {
642
- ${ke(pn.color,Sn.emptyRatingColor)};
643
- ${ke(pn.rippleColor,Sn.filledRatingColor)};
644
- ${ke(On.textColor,Sn.emptyRatingColor)};
645
- ${ke(On.selectedTextColor,Sn.filledRatingColor)};
642
+ ${ke(yn.color,$n.emptyRatingColor)};
643
+ ${ke(yn.rippleColor,$n.filledRatingColor)};
644
+ ${ke(Sn.textColor,$n.emptyRatingColor)};
645
+ ${ke(Sn.selectedTextColor,$n.filledRatingColor)};
646
646
  }
647
647
 
648
648
  .ft-reader-feedback--rating .ft-reader-feedback--active {
649
- ${ke(pn.color,Sn.filledRatingColor)};
649
+ ${ke(yn.color,$n.filledRatingColor)};
650
650
  }
651
651
 
652
652
  .ft-reader-feedback--feedback {
@@ -654,47 +654,47 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
654
654
  }
655
655
 
656
656
  .ft-reader-feedback--rating-date {
657
- color: ${Sn.ratedDateColor};
657
+ color: ${$n.ratedDateColor};
658
658
  }
659
659
 
660
660
  .ft-reader-feedback--feedback ft-text-area {
661
- min-width: ${Sn.feedbackInputMinWidth};
661
+ min-width: ${$n.feedbackInputMinWidth};
662
662
  }
663
663
 
664
664
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
665
665
  align-self: flex-end;
666
- ${ke(pn.color,Sn.sendFeedbackColor)};
667
- ${ke(pn.backgroundColor,Sn.sendFeedbackBackgroundColor)};
666
+ ${ke(yn.color,$n.sendFeedbackColor)};
667
+ ${ke(yn.backgroundColor,$n.sendFeedbackBackgroundColor)};
668
668
  }
669
- `;var Nn,Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn,Fn;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[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&&o.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 i.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 h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function d(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:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new 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=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),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 g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),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)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.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 v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,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"}(Nn||(Nn={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Cn||(Cn={})),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"}(En||(En={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(kn||(kn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Rn||(Rn={})),function(t){t.ASC="ASC",t.DESC="DESC"}(In||(In={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Un||(Un={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ln||(Ln={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(An||(An={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(_n||(_n={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Tn||(Tn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Wn||(Wn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Dn||(Dn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Fn||(Fn={}));const Pn={[Fn.PERSONAL_BOOK_SHARE_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.HTML_EXPORT_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.PDF_EXPORT_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.KHUB_ADMIN]:[Fn.CONTENT_PUBLISHER],[Fn.ADMIN]:[Fn.KHUB_ADMIN,Fn.USERS_ADMIN,Fn.PORTAL_ADMIN],[Fn.DEVELOPER]:[Fn.BETA_USER,Fn.DEBUG_USER]};function Mn(t,e){return t===e||(Pn[t]??[]).some((t=>Mn(t,e)))}function zn(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=>Mn(t,e)))}
669
+ `;var Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn,Fn,Pn;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[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&&o.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 i.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 f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(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:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new 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=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),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 g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),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)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.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 v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,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"}(Cn||(Cn={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(En||(En={})),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"}(kn||(kn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Rn||(Rn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(In||(In={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Un||(Un={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ln||(Ln={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(An||(An={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_n||(_n={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Tn||(Tn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Wn||(Wn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Dn||(Dn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Fn||(Fn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Pn||(Pn={}));const Mn={[Pn.PERSONAL_BOOK_SHARE_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.HTML_EXPORT_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.PDF_EXPORT_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.KHUB_ADMIN]:[Pn.CONTENT_PUBLISHER],[Pn.ADMIN]:[Pn.KHUB_ADMIN,Pn.USERS_ADMIN,Pn.PORTAL_ADMIN],[Pn.DEVELOPER]:[Pn.BETA_USER,Pn.DEBUG_USER]};function zn(t,e){return t===e||(Mn[t]??[]).some((t=>zn(t,e)))}function jn(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=>zn(t,e)))}
670
670
  /**
671
671
  * @license
672
672
  * Copyright 2020 Google LLC
673
673
  * SPDX-License-Identifier: BSD-3-Clause
674
- */const jn=Symbol.for(""),Bn=t=>{if(t?.r===jn)return t?._$litStatic$},Kn=t=>({_$litStatic$:t,r:jn}),Zn=new Map,Hn=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Bn(n));)l+=r+e[++c],h=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=Zn.get(t))&&(a.raw=a,Zn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Gn;!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"}(Gn||(Gn={}));var Vn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class qn extends Be{constructor(){super(...arguments),this.variant=Gn.body1}render(){return this.element?Hn`
675
- <${Kn(this.element)}
674
+ */const Bn=Symbol.for(""),Kn=t=>{if(t?.r===Bn)return t?._$litStatic$},Zn=t=>({_$litStatic$:t,r:Bn}),Hn=new Map,Gn=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Kn(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=Hn.get(t))&&(a.raw=a,Hn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Vn;!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"}(Vn||(Vn={}));var qn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Yn extends Be{constructor(){super(...arguments),this.variant=Vn.body1}render(){return this.element?Gn`
675
+ <${Zn(this.element)}
676
676
  class="ft-typography ft-typography--${this.variant}">
677
677
  <slot></slot>
678
- </${Kn(this.element)}>
679
- `:Hn`
678
+ </${Zn(this.element)}>
679
+ `:Gn`
680
680
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
681
- `}}qn.styles=[Yr,Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,...ln],Vn([E()],qn.prototype,"element",void 0),Vn([E()],qn.prototype,"variant",void 0),T("ft-typography")(qn);
681
+ `}}Yn.styles=[Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,ln,...cn],qn([E()],Yn.prototype,"element",void 0),qn([E()],Yn.prototype,"variant",void 0),T("ft-typography")(Yn);
682
682
  /**
683
683
  * @license
684
684
  * Copyright 2017 Google LLC
685
685
  * SPDX-License-Identifier: BSD-3-Clause
686
686
  */
687
- const Yn=1,Xn=2,Jn=t=>(...e)=>({_$litDirective$:t,values:e});class Qn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
687
+ const Xn=1,Jn=2,Qn=t=>(...e)=>({_$litDirective$:t,values:e});class ta{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
688
688
  /**
689
689
  * @license
690
690
  * Copyright 2017 Google LLC
691
691
  * SPDX-License-Identifier: BSD-3-Clause
692
- */let ta=class extends Qn{constructor(t){if(super(t),this.et=nt,t.type!==Xn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)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:[]}}};ta.directiveName="unsafeHTML",ta.resultType=1;const ea=Jn(ta);var ia,oa,ra;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ia||(ia={})),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;"}(oa||(oa={})),new Map([...["abw"].map((t=>[t,oa.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,oa.AUDIO])),...["avi"].map((t=>[t,oa.AVI])),...["chm","xhs"].map((t=>[t,oa.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,oa.CODE])),...["csv"].map((t=>[t,oa.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oa.DITA])),...["epub"].map((t=>[t,oa.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oa.EXCEL])),...["flac"].map((t=>[t,oa.FLAC])),...["gif"].map((t=>[t,oa.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oa.GZIP])),...["html","htm","xhtml"].map((t=>[t,oa.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,oa.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oa.JPEG])),...["json"].map((t=>[t,oa.JSON])),...["m4a","m4p"].map((t=>[t,oa.M4A])),...["mov","qt"].map((t=>[t,oa.MOV])),...["mp3"].map((t=>[t,oa.MP3])),...["mp4","m4v"].map((t=>[t,oa.MP4])),...["ogg","oga"].map((t=>[t,oa.OGG])),...["pdf","ps"].map((t=>[t,oa.PDF])),...["png"].map((t=>[t,oa.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oa.POWERPOINT])),...["rar"].map((t=>[t,oa.RAR])),...["stp"].map((t=>[t,oa.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oa.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,oa.VIDEO])),...["wav"].map((t=>[t,oa.WAV])),...["wma"].map((t=>[t,oa.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oa.WORD])),...["xml","xsl","rdf"].map((t=>[t,oa.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oa.YAML])),...["zip"].map((t=>[t,oa.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ra||(ra={}));var na=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class aa extends Be{constructor(){super(...arguments),this.resolvedIcon=fe}render(){const t=this.variant&&Object.values(ra).includes(this.variant)?this.variant:ra.fluid_topics,e=t!==ra.material||!!this.value;return ce`
692
+ */let ea=class extends ta{constructor(t){if(super(t),this.et=nt,t.type!==Jn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)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:[]}}};ea.directiveName="unsafeHTML",ea.resultType=1;const ia=Qn(ea);var oa,ra,na;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(oa||(oa={})),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;"}(ra||(ra={})),new Map([...["abw"].map((t=>[t,ra.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,ra.AUDIO])),...["avi"].map((t=>[t,ra.AVI])),...["chm","xhs"].map((t=>[t,ra.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,ra.CODE])),...["csv"].map((t=>[t,ra.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ra.DITA])),...["epub"].map((t=>[t,ra.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ra.EXCEL])),...["flac"].map((t=>[t,ra.FLAC])),...["gif"].map((t=>[t,ra.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ra.GZIP])),...["html","htm","xhtml"].map((t=>[t,ra.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ra.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ra.JPEG])),...["json"].map((t=>[t,ra.JSON])),...["m4a","m4p"].map((t=>[t,ra.M4A])),...["mov","qt"].map((t=>[t,ra.MOV])),...["mp3"].map((t=>[t,ra.MP3])),...["mp4","m4v"].map((t=>[t,ra.MP4])),...["ogg","oga"].map((t=>[t,ra.OGG])),...["pdf","ps"].map((t=>[t,ra.PDF])),...["png"].map((t=>[t,ra.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ra.POWERPOINT])),...["rar"].map((t=>[t,ra.RAR])),...["stp"].map((t=>[t,ra.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ra.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,ra.VIDEO])),...["wav"].map((t=>[t,ra.WAV])),...["wma"].map((t=>[t,ra.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ra.WORD])),...["xml","xsl","rdf"].map((t=>[t,ra.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ra.YAML])),...["zip"].map((t=>[t,ra.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(na||(na={}));var aa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sa extends Be{constructor(){super(...arguments),this.resolvedIcon=he}render(){const t=this.variant&&Object.values(na).includes(this.variant)?this.variant:na.fluid_topics,e=t!==na.material||!!this.value;return ce`
693
693
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
694
- ${ea(this.resolvedIcon)}
694
+ ${ia(this.resolvedIcon)}
695
695
  <slot ?hidden=${e}></slot>
696
696
  </i>
697
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case ra.file_format:this.resolvedIcon=null!==(t=oa[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ra.material:this.resolvedIcon=this.value||fe;break;default:this.resolvedIcon=null!==(e=ia[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}aa.elementDefinitions={},aa.styles=dn,na([E()],aa.prototype,"variant",void 0),na([E()],aa.prototype,"value",void 0),na([k()],aa.prototype,"resolvedIcon",void 0),na([I("slot")],aa.prototype,"slottedContent",void 0),T("ft-icon")(aa);const sa=Ee.create("--ft-tooltip-distance","","SIZE","4px"),la=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ca=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ha=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),fa=Ee.external(Ae.borderRadiusS,"Design system"),da=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),ua=Et`
697
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case na.file_format:this.resolvedIcon=null!==(t=ra[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case na.material:this.resolvedIcon=this.value||he;break;default:this.resolvedIcon=null!==(e=oa[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sa.elementDefinitions={},sa.styles=un,aa([E()],sa.prototype,"variant",void 0),aa([E()],sa.prototype,"value",void 0),aa([k()],sa.prototype,"resolvedIcon",void 0),aa([I("slot")],sa.prototype,"slottedContent",void 0),T("ft-icon")(sa);const la=Ee.create("--ft-tooltip-distance","","SIZE","4px"),ca=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),fa=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ha=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),da=Ee.external(Ae.borderRadiusS,"Design system"),ua=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),pa=Et`
698
698
  .ft-tooltip--container {
699
699
  display: block;
700
700
  }
@@ -709,21 +709,21 @@ const Yn=1,Xn=2,Jn=t=>(...e)=>({_$litDirective$:t,values:e});class Qn{constructo
709
709
  box-sizing: border-box;
710
710
  overflow: hidden;
711
711
  width: max-content;
712
- max-width: ${da};
712
+ max-width: ${ua};
713
713
  text-align: center;
714
- padding: ${sa};
714
+ padding: ${la};
715
715
  z-index: ${ha};
716
716
  }
717
717
 
718
718
  .ft-tooltip--content {
719
719
  padding: 4px 8px;
720
- border-radius: ${fa};
721
- background-color: ${ca};
722
- color: ${la};
720
+ border-radius: ${da};
721
+ background-color: ${fa};
722
+ color: ${ca};
723
723
  position: relative;
724
724
  word-break: break-word;
725
725
  }
726
- `;var pa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ya extends Be{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 L,this.revealDebouncer=new L}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
726
+ `,ya=["start","end"],ga=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ya[0],e+"-"+ya[1])),[]),ba=Math.min,va=Math.max,ma=Math.round,xa=t=>({x:t,y:t}),wa={left:"right",right:"left",bottom:"top",top:"bottom"},Oa={start:"end",end:"start"};function Sa(t,e,i){return va(t,ba(e,i))}function $a(t,e){return"function"==typeof t?t(e):t}function Na(t){return t.split("-")[0]}function Ca(t){return t.split("-")[1]}function Ea(t){return"x"===t?"y":"x"}function ka(t){return"y"===t?"height":"width"}function Ra(t){return["top","bottom"].includes(Na(t))?"y":"x"}function Ia(t){return Ea(Ra(t))}function Ua(t){return t.replace(/left|right|bottom|top/g,(t=>wa[t]))}function La(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Aa(t,e,i){let{reference:o,floating:r}=t;const n=Ra(e),a=Ia(e),s=ka(a),l=Na(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ca(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function _a(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=$a(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),y=s[d?"floating"===h?"reference":"floating":h],g=La(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=La(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function Ta(t,e,i){return(t?[...i.filter((e=>Ca(e)===t)),...i.filter((e=>Ca(e)!==t))]:i.filter((t=>Na(t)===t))).filter((i=>!t||(Ca(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Oa[t]))}(i)!==i)))}const Wa=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=ga,autoAlignment:u=!0,...p}=$a(t,e),y=void 0!==h||d===ga?Ta(h||null,u,d):d,g=await _a(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ca(t),r=Ia(t),n=ka(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ua(a)),[a,Ua(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Na(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ca(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ca(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Da(t){return Ma(t)?(t.nodeName||"").toLowerCase():"#document"}function Fa(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Pa(t){var e;return null==(e=(Ma(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ma(t){return t instanceof Node||t instanceof Fa(t).Node}function za(t){return t instanceof Element||t instanceof Fa(t).Element}function ja(t){return t instanceof HTMLElement||t instanceof Fa(t).HTMLElement}function Ba(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Fa(t).ShadowRoot)}function Ka(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=qa(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Za(t){return["table","td","th"].includes(Da(t))}function Ha(t){const e=Ga(),i=qa(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Ga(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Va(t){return["html","body","#document"].includes(Da(t))}function qa(t){return Fa(t).getComputedStyle(t)}function Ya(t){return za(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xa(t){if("html"===Da(t))return t;const e=t.assignedSlot||t.parentNode||Ba(t)&&t.host||Pa(t);return Ba(e)?e.host:e}function Ja(t){const e=Xa(t);return Va(e)?t.ownerDocument?t.ownerDocument.body:t.body:ja(e)&&Ka(e)?e:Ja(e)}function Qa(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=Ja(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Fa(r);return n?e.concat(a,a.visualViewport||[],Ka(r)?r:[],a.frameElement&&i?Qa(a.frameElement):[]):e.concat(r,Qa(r,[],i))}function ts(t){const e=qa(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=ja(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ma(i)!==n||ma(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function es(t){return za(t)?t:t.contextElement}function is(t){const e=es(t);if(!ja(e))return xa(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=ts(e);let a=(n?ma(i.width):i.width)/o,s=(n?ma(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const os=xa(0);function rs(t){const e=Fa(t);return Ga()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:os}function ns(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=es(t);let a=xa(1);e&&(o?za(o)&&(a=is(o)):a=is(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Fa(t))&&e}(n,i,o)?rs(n):xa(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Fa(n),e=o&&za(o)?Fa(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=is(i),e=i.getBoundingClientRect(),o=qa(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=Fa(i).frameElement}}return La({width:f,height:h,x:l,y:c})}function as(t){return ns(Pa(t)).left+Ya(t).scrollLeft}function ss(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Fa(t),o=Pa(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Ga();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=Pa(t),i=Ya(t),o=t.ownerDocument.body,r=va(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=va(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+as(t);const s=-i.scrollTop;return"rtl"===qa(o).direction&&(a+=va(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Pa(t));else if(za(e))o=function(t,e){const i=ns(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=ja(t)?is(t):xa(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=rs(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return La(o)}function ls(t,e){const i=Xa(t);return!(i===e||!za(i)||Va(i))&&("fixed"===qa(i).position||ls(i,e))}function cs(t,e,i){const o=ja(e),r=Pa(e),n="fixed"===i,a=ns(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=xa(0);if(o||!o&&!n)if(("body"!==Da(e)||Ka(r))&&(s=Ya(e)),o){const t=ns(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=as(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fs(t,e){return ja(t)&&"fixed"!==qa(t).position?e?e(t):t.offsetParent:null}function hs(t,e){const i=Fa(t);if(!ja(t))return i;let o=fs(t,e);for(;o&&Za(o)&&"static"===qa(o).position;)o=fs(o,e);return o&&("html"===Da(o)||"body"===Da(o)&&"static"===qa(o).position&&!Ha(o))?i:o||function(t){let e=Xa(t);for(;ja(e)&&!Va(e);){if(Ha(e))return e;e=Xa(e)}return null}(t)||i}const ds={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=ja(i),n=Pa(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=xa(1);const l=xa(0);if((r||!r&&"fixed"!==o)&&(("body"!==Da(i)||Ka(n))&&(a=Ya(i)),ja(i))){const t=ns(i);s=is(i),l.x=t.x+i.clientLeft,l.y=t.y+i.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:Pa,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=Qa(t,[],!1).filter((t=>za(t)&&"body"!==Da(t))),r=null;const n="fixed"===qa(t).position;let a=n?Xa(t):t;for(;za(a)&&!Va(a);){const e=qa(a),i=Ha(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ka(a)&&!i&&ls(t,a))?o=o.filter((t=>t!==a)):r=e,a=Xa(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=ss(e,i,r);return t.top=va(o.top,t.top),t.right=ba(o.right,t.right),t.bottom=ba(o.bottom,t.bottom),t.left=va(o.left,t.left),t}),ss(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:hs,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||hs,n=this.getDimensions;return{reference:cs(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ts(t)},getScale:is,isElement:za,isRTL:function(t){return"rtl"===qa(t).direction}},us=(t,e,i)=>{const o=new Map,r={platform:ds,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,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:f,y:h}=Aa(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=Aa(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};var ps=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ys extends Be{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 L,this.revealDebouncer=new L}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
727
727
  <div part="container"
728
728
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
729
729
  @mouseenter=${this.onHover}
@@ -741,24 +741,24 @@ const Yn=1,Xn=2,Jn=t=>(...e)=>({_$litDirective$:t,values:e});class Qn{constructo
741
741
  </div>
742
742
  </div>
743
743
  </div>
744
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,d=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,d))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${da})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ya.elementDefinitions={"ft-typography":qn},ya.styles=ua,pa([E()],ya.prototype,"text",void 0),pa([E({type:Boolean})],ya.prototype,"manual",void 0),pa([E({type:Boolean})],ya.prototype,"inline",void 0),pa([E({type:Number})],ya.prototype,"delay",void 0),pa([E()],ya.prototype,"position",void 0),pa([U()],ya.prototype,"slotNodes",void 0),pa([I(".ft-tooltip--container")],ya.prototype,"container",void 0),pa([I(".ft-tooltip")],ya.prototype,"tooltip",void 0),pa([I(".ft-tooltip--content")],ya.prototype,"tooltipContent",void 0),pa([k()],ya.prototype,"visible",void 0),T("ft-tooltip")(ya);
744
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=$a(t,e),c={x:i,y:o},f=await _a(e,l),h=Ra(Na(r)),d=Ea(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=Sa(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=Sa(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...e,[d]:u,[h]:p});return{...y,data:{x:y.x-i,y:y.y-o}}}}),Wa({allowedPlacements:[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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ys.elementDefinitions={"ft-typography":Yn},ys.styles=pa,ps([E()],ys.prototype,"text",void 0),ps([E({type:Boolean})],ys.prototype,"manual",void 0),ps([E({type:Boolean})],ys.prototype,"inline",void 0),ps([E({type:Number})],ys.prototype,"delay",void 0),ps([E()],ys.prototype,"position",void 0),ps([U()],ys.prototype,"slotNodes",void 0),ps([I(".ft-tooltip--container")],ys.prototype,"container",void 0),ps([I(".ft-tooltip")],ys.prototype,"tooltip",void 0),ps([I(".ft-tooltip--content")],ys.prototype,"tooltipContent",void 0),ps([k()],ys.prototype,"visible",void 0),T("ft-tooltip")(ys);
745
745
  /**
746
746
  * @license
747
747
  * Copyright 2018 Google LLC
748
748
  * SPDX-License-Identifier: BSD-3-Clause
749
749
  */
750
- const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"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 i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return rt}});var ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class va extends Be{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 L(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 L(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-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 ce`
750
+ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"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 i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return rt}});var bs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vs extends Be{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 L(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 L(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-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 ce`
751
751
  <style>
752
752
  .ft-ripple .ft-ripple--effect {
753
753
  left: ${this.originX}px;
754
754
  top: ${this.originY}px;
755
755
  }
756
756
  </style>
757
- <div class="${ga(t)}">
757
+ <div class="${gs(t)}">
758
758
  <div class="ft-ripple--background"></div>
759
759
  <div class="ft-ripple--effect"></div>
760
760
  </div>
761
- `}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}va.elementDefinitions={},va.styles=fr,ba([E({type:Boolean})],va.prototype,"primary",void 0),ba([E({type:Boolean})],va.prototype,"secondary",void 0),ba([E({type:Boolean})],va.prototype,"unbounded",void 0),ba([E({type:Boolean})],va.prototype,"activated",void 0),ba([E({type:Boolean})],va.prototype,"selected",void 0),ba([E({type:Boolean})],va.prototype,"disabled",void 0),ba([k()],va.prototype,"hovered",void 0),ba([k()],va.prototype,"focused",void 0),ba([k()],va.prototype,"pressed",void 0),ba([k()],va.prototype,"rippling",void 0),ba([k()],va.prototype,"originX",void 0),ba([k()],va.prototype,"originY",void 0),ba([I(".ft-ripple")],va.prototype,"ripple",void 0),ba([I(".ft-ripple--effect")],va.prototype,"rippleEffect",void 0),T("ft-ripple")(va);const ma={borderRadiusLeft:Ee.extend("--ft-switch-option-border-radius-left","",Ae.borderRadiusL),borderRadiusRight:Ee.extend("--ft-switch-option-border-radius-right","",Ae.borderRadiusL),borderWidthLeft:Ee.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ee.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ee.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},xa=Et`
761
+ `}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}vs.elementDefinitions={},vs.styles=dr,bs([E({type:Boolean})],vs.prototype,"primary",void 0),bs([E({type:Boolean})],vs.prototype,"secondary",void 0),bs([E({type:Boolean})],vs.prototype,"unbounded",void 0),bs([E({type:Boolean})],vs.prototype,"activated",void 0),bs([E({type:Boolean})],vs.prototype,"selected",void 0),bs([E({type:Boolean})],vs.prototype,"disabled",void 0),bs([k()],vs.prototype,"hovered",void 0),bs([k()],vs.prototype,"focused",void 0),bs([k()],vs.prototype,"pressed",void 0),bs([k()],vs.prototype,"rippling",void 0),bs([k()],vs.prototype,"originX",void 0),bs([k()],vs.prototype,"originY",void 0),bs([I(".ft-ripple")],vs.prototype,"ripple",void 0),bs([I(".ft-ripple--effect")],vs.prototype,"rippleEffect",void 0),T("ft-ripple")(vs);const ms={borderRadiusLeft:Ee.extend("--ft-switch-option-border-radius-left","",Ae.borderRadiusL),borderRadiusRight:Ee.extend("--ft-switch-option-border-radius-right","",Ae.borderRadiusL),borderWidthLeft:Ee.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ee.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ee.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},xs=Et`
762
762
  .ft-switch-option {
763
763
  position: relative;
764
764
  display: inline-block;
@@ -772,20 +772,20 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
772
772
  }
773
773
 
774
774
  .ft-switch-option--content {
775
- --ft-switch-option-internal-line-height: calc(${On.fontSize} + 2px);
776
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${On.iconSize});
775
+ --ft-switch-option-internal-line-height: calc(${Sn.fontSize} + 2px);
776
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Sn.iconSize});
777
777
 
778
778
  border-style: solid;
779
- border-color: ${On.borderColor};
780
- border-width: ${ma.borderWidthVertical} ${ma.borderWidthRight} ${ma.borderWidthVertical} ${ma.borderWidthLeft};
781
- border-radius: ${ma.borderRadiusLeft} ${ma.borderRadiusRight} ${ma.borderRadiusRight} ${ma.borderRadiusLeft};
779
+ border-color: ${Sn.borderColor};
780
+ border-width: ${ms.borderWidthVertical} ${ms.borderWidthRight} ${ms.borderWidthVertical} ${ms.borderWidthLeft};
781
+ border-radius: ${ms.borderRadiusLeft} ${ms.borderRadiusRight} ${ms.borderRadiusRight} ${ms.borderRadiusLeft};
782
782
  display: flex;
783
783
  align-items: center;
784
784
  justify-content: center;
785
785
  overflow: hidden;
786
- ${ke(fn.size,On.iconSize)};
786
+ ${ke(dn.size,Sn.iconSize)};
787
787
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
788
- background-color: ${On.backgroundColor};
788
+ background-color: ${Sn.backgroundColor};
789
789
  -webkit-mask-image: radial-gradient(white, black);
790
790
  }
791
791
 
@@ -794,8 +794,8 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
794
794
  }
795
795
 
796
796
  .ft-switch-option--selected .ft-switch-option--content:before {
797
- background-color: ${On.selectedBackgroundColor};
798
- border-radius: ${ma.borderRadiusLeft} ${ma.borderRadiusRight} ${ma.borderRadiusRight} ${ma.borderRadiusLeft};
797
+ background-color: ${Sn.selectedBackgroundColor};
798
+ border-radius: ${ms.borderRadiusLeft} ${ms.borderRadiusRight} ${ms.borderRadiusRight} ${ms.borderRadiusLeft};
799
799
  position: absolute;
800
800
  inset: 0;
801
801
  content: "";
@@ -804,18 +804,18 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
804
804
  }
805
805
 
806
806
  .ft-switch-option--label {
807
- color: ${On.textColor};
807
+ color: ${Sn.textColor};
808
808
  overflow: hidden;
809
809
  white-space: nowrap;
810
810
  text-overflow: ellipsis;
811
811
  display: block;
812
812
  margin: 0 8px;
813
- ${ke(qr.fontSize,On.fontSize)};
814
- ${ke(qr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
813
+ ${ke(Yr.fontSize,Sn.fontSize)};
814
+ ${ke(Yr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
815
815
  }
816
816
 
817
817
  .ft-switch-option--selected .ft-switch-option--label {
818
- color: ${On.selectedTextColor};
818
+ color: ${Sn.selectedTextColor};
819
819
  }
820
820
 
821
821
  .ft-switch-option--label[hidden] {
@@ -823,7 +823,7 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
823
823
  }
824
824
 
825
825
  .ft-switch-option--ripple {
826
- ${ke(rr.color,On.rippleColor)};
826
+ ${ke(nr.color,Sn.rippleColor)};
827
827
  }
828
828
 
829
829
  ft-icon, ft-ripple, ft-typography {
@@ -836,20 +836,20 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
836
836
 
837
837
  ft-icon {
838
838
  flex-shrink: 0;
839
- color: ${On.iconColor};
839
+ color: ${Sn.iconColor};
840
840
  }
841
841
 
842
842
  .ft-switch-option--selected ft-icon {
843
- color: ${On.selectedTextColor};
843
+ color: ${Sn.selectedTextColor};
844
844
  }
845
- `;var wa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Oa extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Sa extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class $a extends Be{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 Sa(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(ce`
846
- <label part="label" for="input" class=${ga(t)}
845
+ `;var ws=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Os extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Ss extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class $s extends Be{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 Ss(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(ce`
846
+ <label part="label" for="input" class=${gs(t)}
847
847
  @click=${this.onChange}>
848
848
  <div class="ft-switch-option--content">
849
849
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
850
850
  <ft-typography part="text"
851
851
  variant="button"
852
- class="ft-switch-option--label ${Xo?"ft-safari-ellipsis-fix":""}"
852
+ class="ft-switch-option--label ${Jo?"ft-safari-ellipsis-fix":""}"
853
853
  ?hidden=${!this.hasTextContent()}>
854
854
  <slot @slotchange=${this.onSlotchange}></slot>
855
855
  </ft-typography>
@@ -864,23 +864,23 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
864
864
  position="${this.tooltipPosition}">
865
865
  ${t}
866
866
  </ft-tooltip>
867
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Oa(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
867
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Os(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
868
868
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
869
- `:fe}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()}}$a.elementDefinitions={"ft-ripple":va,"ft-typography":qn,"ft-tooltip":ya,"ft-icon":aa},$a.styles=[He,xa],wa([E()],$a.prototype,"value",void 0),wa([E()],$a.prototype,"icon",void 0),wa([E()],$a.prototype,"iconVariant",void 0),wa([E()],$a.prototype,"label",void 0),wa([E()],$a.prototype,"tooltipPosition",void 0),wa([E({type:Boolean,reflect:!0})],$a.prototype,"selected",void 0),wa([E({type:Boolean})],$a.prototype,"trailingIcon",void 0),wa([E({type:Boolean})],$a.prototype,"unselectable",void 0),wa([I(".ft-switch-option--content slot")],$a.prototype,"slottedContent",void 0),wa([I(".ft-switch-option--input")],$a.prototype,"input",void 0);var Na=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ca extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ea extends Be{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 ce`
870
- <div @keydown=${this.onKeyDown} tabindex="0" class="${ga(t)}">
869
+ `:he}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()}}$s.elementDefinitions={"ft-ripple":vs,"ft-typography":Yn,"ft-tooltip":ys,"ft-icon":sa},$s.styles=[He,xs],ws([E()],$s.prototype,"value",void 0),ws([E()],$s.prototype,"icon",void 0),ws([E()],$s.prototype,"iconVariant",void 0),ws([E()],$s.prototype,"label",void 0),ws([E()],$s.prototype,"tooltipPosition",void 0),ws([E({type:Boolean,reflect:!0})],$s.prototype,"selected",void 0),ws([E({type:Boolean})],$s.prototype,"trailingIcon",void 0),ws([E({type:Boolean})],$s.prototype,"unselectable",void 0),ws([I(".ft-switch-option--content slot")],$s.prototype,"slottedContent",void 0),ws([I(".ft-switch-option--input")],$s.prototype,"input",void 0);var Ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Cs extends CustomEvent{constructor(t){super("change",{detail:t})}}class Es extends Be{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 ce`
870
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${gs(t)}">
871
871
  <slot @slotchange=${this.onSlotchange}
872
872
  @option-change=${this.onOptionChangeByScript}
873
873
  @option-change-by-user=${this.onOptionChangeByUser}
874
874
  ></slot>
875
875
  </div>
876
- `}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 $a&&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 Ca(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}))}}Ea.elementDefinitions={},Ea.styles=Et`
876
+ `}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 $s&&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 Cs(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}))}}Es.elementDefinitions={},Es.styles=Et`
877
877
  :host {
878
878
  display: inline-block;
879
879
  }
880
880
 
881
881
  .ft-switch {
882
- border-radius: ${On.borderRadius};
883
- outline-color: ${On.outlineColor};
882
+ border-radius: ${Sn.borderRadius};
883
+ outline-color: ${Sn.outlineColor};
884
884
  }
885
885
 
886
886
  .ft-switch slot {
@@ -889,25 +889,25 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
889
889
  }
890
890
 
891
891
  .ft-switch slot::slotted(ft-switch-option) {
892
- ${ke(ma.borderRadiusLeft,"0")};
893
- ${ke(ma.borderRadiusRight,"0")};
894
- ${ke(ma.borderWidthLeft,"0")};
892
+ ${ke(ms.borderRadiusLeft,"0")};
893
+ ${ke(ms.borderRadiusRight,"0")};
894
+ ${ke(ms.borderWidthLeft,"0")};
895
895
  }
896
896
 
897
897
  .ft-switch slot::slotted(ft-switch-option:first-child) {
898
- ${ke(ma.borderRadiusLeft,On.borderRadius)};
899
- ${ke(ma.borderWidthLeft,"1px")};
898
+ ${ke(ms.borderRadiusLeft,Sn.borderRadius)};
899
+ ${ke(ms.borderWidthLeft,"1px")};
900
900
  }
901
901
 
902
902
  .ft-switch slot::slotted(ft-switch-option:last-child) {
903
- ${ke(ma.borderRadiusRight,On.borderRadius)};
903
+ ${ke(ms.borderRadiusRight,Sn.borderRadius)};
904
904
  }
905
905
 
906
906
  .ft-switch--dense slot::slotted(ft-switch-option) {
907
907
  --ft-switch-internal-vertical-padding: 2px;
908
908
  --ft-switch-internal-horizontal-padding: 4px;
909
909
  }
910
- `,Na([E({type:Boolean})],Ea.prototype,"dense",void 0),Na([E({type:Boolean})],Ea.prototype,"unselectable",void 0),Na([I(".ft-switch slot")],Ea.prototype,"slottedContent",void 0),Na([k()],Ea.prototype,"selectedOption",void 0),Na([I(".ft-switch")],Ea.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Ea),T("ft-switch-option")($a);const ka=Ee.external(Ae.colorOutline,"Design system"),Ra=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Ia=Et`
910
+ `,Ns([E({type:Boolean})],Es.prototype,"dense",void 0),Ns([E({type:Boolean})],Es.prototype,"unselectable",void 0),Ns([I(".ft-switch slot")],Es.prototype,"slottedContent",void 0),Ns([k()],Es.prototype,"selectedOption",void 0),Ns([I(".ft-switch")],Es.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Es),T("ft-switch-option")($s);const ks=Ee.external(Ae.colorOutline,"Design system"),Rs=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Is=Et`
911
911
  :host {
912
912
  display: block;
913
913
  }
@@ -918,14 +918,14 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
918
918
 
919
919
  ft-icon {
920
920
  transform: rotate(-45deg);
921
- color: ${ka};
921
+ color: ${ks};
922
922
  }
923
923
 
924
924
  .ft-resizer--dragging ft-icon,
925
925
  .ft-resizer:hover ft-icon {
926
- color: ${Ra};
926
+ color: ${Rs};
927
927
  }
928
- `;var Ua=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class La extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Aa extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=ra.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 ce`
928
+ `;var Us=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ls extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class As extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=na.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 ce`
929
929
  <style>
930
930
  .ft-resizer {
931
931
  cursor: ${Ct(this.cursor)}
@@ -936,25 +936,25 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
936
936
  @touchstart=${this.initDragFromTouch}>
937
937
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
938
938
  </div>
939
- `}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 i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new La(i,o))}}Aa.elementDefinitions={"ft-icon":aa},Aa.styles=[Ze,Ia],Ua([E({type:Number})],Aa.prototype,"initialWidth",void 0),Ua([E({type:Number})],Aa.prototype,"initialHeight",void 0),Ua([E()],Aa.prototype,"icon",void 0),Ua([E()],Aa.prototype,"iconVariant",void 0),Ua([E()],Aa.prototype,"cursor",void 0),Ua([k()],Aa.prototype,"dragging",void 0),T("ft-resizer")(Aa);const _a={fontSize:Ee.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ee.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ee.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ee.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ee.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ee.extend("--ft-input-label-border-color","",Ae.colorOutline),textColor:Ee.extend("--ft-input-label-text-color","",Ae.colorOnSurfaceMedium),disabledTextColor:Ee.extend("--ft-input-label-disabled-text-color","",Ae.colorOnSurfaceDisabled),colorSurface:Ee.external(Ae.colorSurface,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Ta=Et`
939
+ `}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 i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ls(i,o))}}As.elementDefinitions={"ft-icon":sa},As.styles=[Ze,Is],Us([E({type:Number})],As.prototype,"initialWidth",void 0),Us([E({type:Number})],As.prototype,"initialHeight",void 0),Us([E()],As.prototype,"icon",void 0),Us([E()],As.prototype,"iconVariant",void 0),Us([E()],As.prototype,"cursor",void 0),Us([k()],As.prototype,"dragging",void 0),T("ft-resizer")(As);const _s={fontSize:Ee.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ee.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ee.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ee.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ee.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ee.extend("--ft-input-label-border-color","",Ae.colorOutline),textColor:Ee.extend("--ft-input-label-text-color","",Ae.colorOnSurfaceMedium),disabledTextColor:Ee.extend("--ft-input-label-disabled-text-color","",Ae.colorOnSurfaceDisabled),colorSurface:Ee.external(Ae.colorSurface,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Ts=Et`
940
940
  .ft-input-label {
941
941
  position: absolute;
942
942
  inset: 0;
943
943
  display: flex;
944
- background-color: ${_a.colorSurface};
945
- border-radius: ${_a.borderRadiusS} ${_a.borderRadiusS} 0 0;
944
+ background-color: ${_s.colorSurface};
945
+ border-radius: ${_s.borderRadiusS} ${_s.borderRadiusS} 0 0;
946
946
  }
947
947
 
948
948
  .ft-input-label--outlined {
949
- border-radius: ${_a.borderRadiusS};
949
+ border-radius: ${_s.borderRadiusS};
950
950
  }
951
951
 
952
952
  .ft-input-label {
953
- border-color: ${_a.borderColor};
953
+ border-color: ${_s.borderColor};
954
954
  }
955
955
 
956
956
  .ft-input-label.ft-input-label--in-error {
957
- border-color: ${_a.colorError}
957
+ border-color: ${_s.colorError}
958
958
  }
959
959
 
960
960
  .ft-input-label:before,
@@ -967,7 +967,7 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
967
967
  }
968
968
 
969
969
  .ft-input-label:before {
970
- width: calc(${_a.horizontalSpacing} - 4px);
970
+ width: calc(${_s.horizontalSpacing} - 4px);
971
971
  flex-shrink: 0;
972
972
  }
973
973
 
@@ -983,20 +983,20 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
983
983
  border-bottom-width: 1px;
984
984
  border-bottom-style: solid;
985
985
  border-color: inherit;
986
- color: ${_a.textColor};
986
+ color: ${_s.textColor};
987
987
  transition: font-size 250ms, line-height 250ms, color 250ms;
988
- max-width: calc(${_a.labelMaxWidth} - 2 * (${_a.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
988
+ max-width: calc(${_s.labelMaxWidth} - 2 * (${_s.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
989
989
  text-overflow: ellipsis;
990
- ${ke(Wr.fontSize,_a.fontSize)};
991
- ${ke(Wr.lineHeight,_a.fontSize)};
990
+ ${ke(Dr.fontSize,_s.fontSize)};
991
+ ${ke(Dr.lineHeight,_s.fontSize)};
992
992
  }
993
993
 
994
994
  .ft-input-label--in-error .ft-input-label--text {
995
- color: ${_a.colorError}
995
+ color: ${_s.colorError}
996
996
  }
997
997
 
998
998
  .ft-input-label--disabled .ft-input-label--text {
999
- color: ${_a.disabledTextColor};
999
+ color: ${_s.disabledTextColor};
1000
1000
  }
1001
1001
 
1002
1002
  .ft-input-label--hidden-text {
@@ -1013,19 +1013,19 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1013
1013
  overflow: hidden;
1014
1014
  white-space: nowrap;
1015
1015
  text-overflow: ellipsis;
1016
- padding: ${_a.verticalSpacing} 4px;
1017
- margin: calc(${_a.verticalSpacing} * -1) 0;
1016
+ padding: ${_s.verticalSpacing} 4px;
1017
+ margin: calc(${_s.verticalSpacing} * -1) 0;
1018
1018
  max-width: 100%;
1019
1019
  box-sizing: border-box;
1020
1020
  }
1021
1021
 
1022
1022
  .ft-input-label--raised .ft-input-label--text {
1023
- ${ke(Wr.fontSize,_a.raisedFontSize)};
1024
- ${ke(Wr.lineHeight,_a.raisedFontSize)};
1023
+ ${ke(Dr.fontSize,_s.raisedFontSize)};
1024
+ ${ke(Dr.lineHeight,_s.raisedFontSize)};
1025
1025
  }
1026
1026
 
1027
1027
  .ft-input-label--raised .ft-input-label--floating-text {
1028
- top: ${_a.verticalSpacing};
1028
+ top: ${_s.verticalSpacing};
1029
1029
  }
1030
1030
 
1031
1031
  .ft-input-label--outlined .ft-input-label--text,
@@ -1038,28 +1038,28 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1038
1038
  .ft-input-label--outlined:before {
1039
1039
  border-left-width: 1px;
1040
1040
  border-left-style: solid;
1041
- border-radius: ${_a.borderRadiusS} 0 0 ${_a.borderRadiusS};
1041
+ border-radius: ${_s.borderRadiusS} 0 0 ${_s.borderRadiusS};
1042
1042
  }
1043
1043
 
1044
1044
  .ft-input-label--outlined:after {
1045
1045
  border-right-width: 1px;
1046
1046
  border-right-style: solid;
1047
- border-radius: 0 ${_a.borderRadiusS} ${_a.borderRadiusS} 0;
1047
+ border-radius: 0 ${_s.borderRadiusS} ${_s.borderRadiusS} 0;
1048
1048
  }
1049
1049
 
1050
1050
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1051
1051
  padding: 2px 4px;
1052
- z-index: ${_a.raisedZIndex};
1053
- background-color: ${_a.colorSurface};
1054
- border-radius: ${_a.borderRadiusS};
1052
+ z-index: ${_s.raisedZIndex};
1053
+ background-color: ${_s.colorSurface};
1054
+ border-radius: ${_s.borderRadiusS};
1055
1055
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1056
1056
  }
1057
1057
 
1058
1058
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1059
1059
  border-top: none;
1060
1060
  }
1061
- `;var Wa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Da extends Be{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 ce`
1062
- <div class="${ga(t)}">
1061
+ `;var Ws=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ds extends Be{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 ce`
1062
+ <div class="${gs(t)}">
1063
1063
  ${this.text?ce`
1064
1064
  <div class="ft-input-label--text ft-typography--caption">
1065
1065
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1067,7 +1067,7 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1067
1067
  </div>
1068
1068
  `:null}
1069
1069
  </div>
1070
- `}}Da.elementDefinitions={},Da.styles=[on,Ta],Wa([E({type:String})],Da.prototype,"text",void 0),Wa([E({type:Boolean})],Da.prototype,"raised",void 0),Wa([E({type:Boolean})],Da.prototype,"outlined",void 0),Wa([E({type:Boolean})],Da.prototype,"disabled",void 0),Wa([E({type:Boolean})],Da.prototype,"error",void 0),T("ft-input-label")(Da);const Fa={fontSize:Ee.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-area-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Pa=Et`
1070
+ `}}Ds.elementDefinitions={},Ds.styles=[rn,Ts],Ws([E({type:String})],Ds.prototype,"text",void 0),Ws([E({type:Boolean})],Ds.prototype,"raised",void 0),Ws([E({type:Boolean})],Ds.prototype,"outlined",void 0),Ws([E({type:Boolean})],Ds.prototype,"disabled",void 0),Ws([E({type:Boolean})],Ds.prototype,"error",void 0),T("ft-input-label")(Ds);const Fs={fontSize:Ee.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-area-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Ps=Et`
1071
1071
  *:focus {
1072
1072
  outline: none;
1073
1073
  }
@@ -1079,10 +1079,10 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1079
1079
  }
1080
1080
 
1081
1081
  ft-input-label {
1082
- ${ke(_a.fontSize,Fa.fontSize)};
1083
- ${ke(_a.raisedFontSize,Fa.labelSize)};
1084
- ${ke(_a.verticalSpacing,Fa.verticalSpacing)};
1085
- ${ke(_a.horizontalSpacing,Fa.horizontalSpacing)};
1082
+ ${ke(_s.fontSize,Fs.fontSize)};
1083
+ ${ke(_s.raisedFontSize,Fs.labelSize)};
1084
+ ${ke(_s.verticalSpacing,Fs.verticalSpacing)};
1085
+ ${ke(_s.horizontalSpacing,Fs.horizontalSpacing)};
1086
1086
  }
1087
1087
 
1088
1088
  .ft-text-area--main-panel {
@@ -1100,8 +1100,8 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1100
1100
  }
1101
1101
 
1102
1102
  .ft-text-area--input-panel ft-ripple {
1103
- ${ke(rr.opacityContentOnSurfaceHover,"0.08")};
1104
- ${ke(rr.opacityContentOnSurfacePressed,"0.04")};
1103
+ ${ke(nr.opacityContentOnSurfaceHover,"0.08")};
1104
+ ${ke(nr.opacityContentOnSurfacePressed,"0.04")};
1105
1105
  }
1106
1106
 
1107
1107
  .ft-text-area--input {
@@ -1113,12 +1113,12 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1113
1113
  align-self: stretch;
1114
1114
  resize: none;
1115
1115
 
1116
- ${ke(Rr.fontSize,Fa.fontSize)};
1117
- ${ke(Rr.lineHeight,Fa.fontSize)};
1118
- color: ${Fa.colorOnSurface};
1116
+ ${ke(Ir.fontSize,Fs.fontSize)};
1117
+ ${ke(Ir.lineHeight,Fs.fontSize)};
1118
+ color: ${Fs.colorOnSurface};
1119
1119
 
1120
- padding: 0 ${Fa.horizontalSpacing};
1121
- margin: calc(${Fa.verticalSpacing} + ${Fa.labelSize} / 2) 0 ${Fa.verticalSpacing} 0;
1120
+ padding: 0 ${Fs.horizontalSpacing};
1121
+ margin: calc(${Fs.verticalSpacing} + ${Fs.labelSize} / 2) 0 ${Fs.verticalSpacing} 0;
1122
1122
 
1123
1123
  border: none;
1124
1124
  background: none;
@@ -1127,7 +1127,7 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1127
1127
  }
1128
1128
 
1129
1129
  .ft-text-area--disabled .ft-text-area--input {
1130
- color: ${Fa.colorOnSurfaceDisabled};
1130
+ color: ${Fs.colorOnSurfaceDisabled};
1131
1131
  }
1132
1132
 
1133
1133
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1135,49 +1135,49 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1135
1135
  }
1136
1136
 
1137
1137
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1138
- ${ke(_a.borderColor,Fa.colorPrimary)};
1139
- ${ke(_a.textColor,Fa.colorPrimary)};
1138
+ ${ke(_s.borderColor,Fs.colorPrimary)};
1139
+ ${ke(_s.textColor,Fs.colorPrimary)};
1140
1140
  }
1141
1141
 
1142
1142
  .ft-text-area--filled .ft-text-area--input-panel {
1143
- border-radius: ${Fa.borderRadiusS} ${Fa.borderRadiusS} 0 0;
1143
+ border-radius: ${Fs.borderRadiusS} ${Fs.borderRadiusS} 0 0;
1144
1144
  }
1145
1145
 
1146
1146
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1147
1147
  align-self: stretch;
1148
- margin-bottom: ${Fa.verticalSpacing};
1149
- margin-top: calc(${Fa.labelSize} + 2 * ${Fa.verticalSpacing});
1148
+ margin-bottom: ${Fs.verticalSpacing};
1149
+ margin-top: calc(${Fs.labelSize} + 2 * ${Fs.verticalSpacing});
1150
1150
  }
1151
1151
 
1152
1152
  .ft-text-area--outlined .ft-text-area--input-panel {
1153
- border-radius: ${Fa.borderRadiusS};
1153
+ border-radius: ${Fs.borderRadiusS};
1154
1154
  }
1155
1155
 
1156
1156
  .ft-text-area--helper-text {
1157
- padding: 0 12px 0 ${Fa.horizontalSpacing};
1158
- color: ${Fa.helperColor};
1157
+ padding: 0 12px 0 ${Fs.horizontalSpacing};
1158
+ color: ${Fs.helperColor};
1159
1159
  }
1160
1160
 
1161
1161
  .ft-text-area--in-error .ft-text-area--input,
1162
1162
  .ft-text-area--in-error .ft-text-area--helper-text {
1163
- color: ${Fa.colorError};
1163
+ color: ${Fs.colorError};
1164
1164
  }
1165
1165
 
1166
1166
  ft-resizer {
1167
1167
  position: absolute;
1168
1168
  bottom: 0;
1169
1169
  }
1170
- `;var Ma=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class za extends(Go(Be,"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 ce`
1170
+ `;var Ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class zs extends(Vo(Be,"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 ce`
1171
1171
  <style>
1172
1172
  .ft-text-area--main-panel {
1173
- height: calc(4 * ${Fa.verticalSpacing} + ${Fa.labelSize} + ${Fa.fontSize} + ${this.height}px);
1173
+ height: calc(4 * ${Fs.verticalSpacing} + ${Fs.labelSize} + ${Fs.fontSize} + ${this.height}px);
1174
1174
  }
1175
1175
 
1176
1176
  ft-resizer {
1177
1177
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1178
1178
  }
1179
1179
  </style>
1180
- <div class="${ga(t)}">
1180
+ <div class="${gs(t)}">
1181
1181
  <div class="ft-text-area--main-panel">
1182
1182
  <ft-input-label text="${this.label}"
1183
1183
  ?disabled=${this.disabled}
@@ -1209,34 +1209,34 @@ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t
1209
1209
  ${this.helper}
1210
1210
  </ft-typography>`:void 0}
1211
1211
  </div>
1212
- `}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})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)}}za.elementDefinitions={"ft-input-label":Da,"ft-resizer":Aa,"ft-ripple":va,"ft-typography":qn},za.styles=[tn,Pa],Ma([E({type:String})],za.prototype,"label",void 0),Ma([E({reflect:!0})],za.prototype,"value",void 0),Ma([E({type:String})],za.prototype,"helper",void 0),Ma([E({type:Boolean})],za.prototype,"outlined",void 0),Ma([E({type:Boolean})],za.prototype,"disabled",void 0),Ma([E({type:Boolean})],za.prototype,"error",void 0),Ma([E({type:Number,reflect:!0})],za.prototype,"height",void 0),Ma([I("textarea")],za.prototype,"textarea",void 0),Ma([k()],za.prototype,"focused",void 0),T("ft-text-area")(za);
1212
+ `}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})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)}}zs.elementDefinitions={"ft-input-label":Ds,"ft-resizer":As,"ft-ripple":vs,"ft-typography":Yn},zs.styles=[en,Ps],Ms([E({type:String})],zs.prototype,"label",void 0),Ms([E({reflect:!0})],zs.prototype,"value",void 0),Ms([E({type:String})],zs.prototype,"helper",void 0),Ms([E({type:Boolean})],zs.prototype,"outlined",void 0),Ms([E({type:Boolean})],zs.prototype,"disabled",void 0),Ms([E({type:Boolean})],zs.prototype,"error",void 0),Ms([E({type:Number,reflect:!0})],zs.prototype,"height",void 0),Ms([I("textarea")],zs.prototype,"textarea",void 0),Ms([k()],zs.prototype,"focused",void 0),T("ft-text-area")(zs);
1213
1213
  /**
1214
1214
  * @license
1215
1215
  * Copyright 2020 Google LLC
1216
1216
  * SPDX-License-Identifier: BSD-3-Clause
1217
1217
  */
1218
- const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ba(),r),n=o.insertBefore(Ba(),r);i=new ja(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Za=(t,e,i=t)=>(t._$AI(e,i),t),Ha={},Ga=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Va=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},qa=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Xn)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,f=0,d=r.length-1,u=0,p=n.length-1;for(;f<=d&&u<=p;)if(null===r[f])f++;else if(null===r[d])d--;else if(s[f]===a[u])l[u]=Za(r[f],n[u]),f++,u++;else if(s[d]===a[p])l[p]=Za(r[d],n[p]),d--,p--;else if(s[f]===a[p])l[p]=Za(r[f],n[p]),Ka(t,l[p+1],r[f]),f++,p--;else if(s[d]===a[u])l[u]=Za(r[d],n[u]),Ka(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Va(a,u,p),h=Va(s,f,d)),c.has(s[f]))if(c.has(s[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ka(t,r[f]);Za(e,n[u]),l[u]=e}else l[u]=Za(i,n[u]),Ka(t,r[f],i),r[e]=null;u++}else Ga(r[d]),d--;else Ga(r[f]),f++;for(;u<=p;){const e=Ka(t,l[p+1]);Za(e,n[u]),l[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ga(t)}return this.dt=a,((t,e=Ha)=>{t._$AH=e})(t,l),rt}});
1218
+ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Bs(),r),n=o.insertBefore(Bs(),r);i=new js(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Zs=(t,e,i=t)=>(t._$AI(e,i),t),Hs={},Gs=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Vs=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},qs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Jn)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Zs(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Zs(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Zs(r[h],n[p]),Ks(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Zs(r[d],n[u]),Ks(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Vs(a,u,p),f=Vs(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ks(t,r[h]);Zs(e,n[u]),l[u]=e}else l[u]=Zs(i,n[u]),Ks(t,r[h],i),r[e]=null;u++}else Gs(r[d]),d--;else Gs(r[h]),h++;for(;u<=p;){const e=Ks(t,l[p+1]);Zs(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Gs(t)}return this.dt=a,((t,e=Hs)=>{t._$AH=e})(t,l),rt}});
1219
1219
  /**
1220
1220
  * @license
1221
1221
  * Copyright 2017 Google LLC
1222
1222
  * SPDX-License-Identifier: BSD-3-Clause
1223
- */class Ya extends Be{render(){return ce`
1223
+ */class Ys extends Be{render(){return ce`
1224
1224
  <div class="ft-loader">
1225
1225
  <div></div>
1226
1226
  <div></div>
1227
1227
  <div></div>
1228
1228
  <div></div>
1229
1229
  </div>
1230
- `}}Ya.styles=hn,T("ft-loader")(Ya);var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends(Go(Be,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ce`
1230
+ `}}Ys.styles=hn,T("ft-loader")(Ys);var Xs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Js extends(Vo(Be,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ce`
1231
1231
  <button part="button"
1232
- class="${ga(this.buttonClasses)}"
1232
+ class="${gs(this.buttonClasses)}"
1233
1233
  aria-label="${this.getLabel()}"
1234
1234
  ?disabled=${this.isDisabled()}>
1235
1235
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1236
1236
  <ft-typography part="label"
1237
1237
  variant=${this.typographyVariant}
1238
1238
  element="span"
1239
- class="ft-button--label ${Xo?"ft-safari-ellipsis-fix":""}"
1239
+ class="ft-button--label ${Jo?"ft-safari-ellipsis-fix":""}"
1240
1240
  ?hidden=${!this.hasTextContent()}>
1241
1241
  <slot @slotchange=${this.onSlotchange}></slot>
1242
1242
  </ft-typography>
@@ -1250,7 +1250,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1250
1250
  </ft-tooltip>
1251
1251
  `:t}resolveIcon(){return this.loading?ce`
1252
1252
  <ft-loader part="loader icon"></ft-loader> `:this.icon?ce`
1253
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:fe}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}}Ja.elementDefinitions={"ft-ripple":va,"ft-tooltip":ya,"ft-typography":qn,"ft-icon":aa,"ft-loader":Ya},Xa([E({type:String,reflect:!0})],Ja.prototype,"role",void 0),Xa([E()],Ja.prototype,"type",void 0),Xa([E({type:Boolean})],Ja.prototype,"disabled",void 0),Xa([E()],Ja.prototype,"label",void 0),Xa([E()],Ja.prototype,"icon",void 0),Xa([E()],Ja.prototype,"iconVariant",void 0),Xa([E({type:Boolean})],Ja.prototype,"trailingIcon",void 0),Xa([E({type:Boolean})],Ja.prototype,"loading",void 0),Xa([E()],Ja.prototype,"tooltipPosition",void 0),Xa([E({type:Boolean})],Ja.prototype,"hideTooltip",void 0),Xa([E({type:Boolean})],Ja.prototype,"forceTooltip",void 0),Xa([I(".ft-button")],Ja.prototype,"button",void 0),Xa([I(".ft-button--label slot")],Ja.prototype,"slottedContent",void 0);var Qa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ts extends Ja{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"}}ts.styles=[He,wn],Qa([E({type:Boolean})],ts.prototype,"primary",void 0),Qa([E({type:Boolean})],ts.prototype,"outlined",void 0),Qa([E({type:Boolean})],ts.prototype,"dense",void 0),Qa([E({type:Boolean})],ts.prototype,"round",void 0);const es=[Et`
1253
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:he}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}}Js.elementDefinitions={"ft-ripple":vs,"ft-tooltip":ys,"ft-typography":Yn,"ft-icon":sa,"ft-loader":Ys},Xs([E({type:String,reflect:!0})],Js.prototype,"role",void 0),Xs([E()],Js.prototype,"type",void 0),Xs([E({type:Boolean})],Js.prototype,"disabled",void 0),Xs([E()],Js.prototype,"label",void 0),Xs([E()],Js.prototype,"icon",void 0),Xs([E()],Js.prototype,"iconVariant",void 0),Xs([E({type:Boolean})],Js.prototype,"trailingIcon",void 0),Xs([E({type:Boolean})],Js.prototype,"loading",void 0),Xs([E()],Js.prototype,"tooltipPosition",void 0),Xs([E({type:Boolean})],Js.prototype,"hideTooltip",void 0),Xs([E({type:Boolean})],Js.prototype,"forceTooltip",void 0),Xs([I(".ft-button")],Js.prototype,"button",void 0),Xs([I(".ft-button--label slot")],Js.prototype,"slottedContent",void 0);var Qs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class tl extends Js{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"}}tl.styles=[He,On],Qs([E({type:Boolean})],tl.prototype,"primary",void 0),Qs([E({type:Boolean})],tl.prototype,"outlined",void 0),Qs([E({type:Boolean})],tl.prototype,"dense",void 0),Qs([E({type:Boolean})],tl.prototype,"round",void 0);const el=[Et`
1254
1254
  :host {
1255
1255
  display: inline-block;
1256
1256
  max-width: 100%;
@@ -1329,13 +1329,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1329
1329
  /** Primary styles **/
1330
1330
 
1331
1331
  .ft-button--primary {
1332
- ${ke(cn.color,Le.primaryIconColor)};
1332
+ ${ke(fn.color,Le.primaryIconColor)};
1333
1333
 
1334
- ${ke(rr.color,Le.primaryStateLayerColor)};
1335
- ${ke(rr.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1336
- ${ke(rr.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1337
- ${ke(rr.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1338
- ${ke(rr.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1334
+ ${ke(nr.color,Le.primaryStateLayerColor)};
1335
+ ${ke(nr.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1336
+ ${ke(nr.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1337
+ ${ke(nr.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1338
+ ${ke(nr.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1339
1339
 
1340
1340
  background-color: ${Le.primaryBackgroundColor};
1341
1341
  color: ${Le.primaryColor};
@@ -1353,13 +1353,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1353
1353
  /** Secondary styles **/
1354
1354
 
1355
1355
  .ft-button--secondary {
1356
- ${ke(cn.color,Le.secondaryIconColor)};
1356
+ ${ke(fn.color,Le.secondaryIconColor)};
1357
1357
 
1358
- ${ke(rr.color,Le.secondaryStateLayerColor)};
1359
- ${ke(rr.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1360
- ${ke(rr.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1361
- ${ke(rr.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1362
- ${ke(rr.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1358
+ ${ke(nr.color,Le.secondaryStateLayerColor)};
1359
+ ${ke(nr.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1360
+ ${ke(nr.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1361
+ ${ke(nr.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1362
+ ${ke(nr.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1363
1363
 
1364
1364
  background-color: ${Le.secondaryBackgroundColor};
1365
1365
  color: ${Le.secondaryColor};
@@ -1378,13 +1378,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1378
1378
  /** Tertiary styles **/
1379
1379
 
1380
1380
  .ft-button--tertiary {
1381
- ${ke(cn.color,Le.tertiaryIconColor)};
1381
+ ${ke(fn.color,Le.tertiaryIconColor)};
1382
1382
 
1383
- ${ke(rr.color,Le.tertiaryStateLayerColor)};
1384
- ${ke(rr.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1385
- ${ke(rr.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1386
- ${ke(rr.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1387
- ${ke(rr.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1383
+ ${ke(nr.color,Le.tertiaryStateLayerColor)};
1384
+ ${ke(nr.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1385
+ ${ke(nr.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1386
+ ${ke(nr.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1387
+ ${ke(nr.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1388
1388
 
1389
1389
  background-color: ${Le.tertiaryBackgroundColor};
1390
1390
  color: ${Le.tertiaryColor};
@@ -1402,13 +1402,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1402
1402
  /** Neutral styles **/
1403
1403
 
1404
1404
  .ft-button--neutral {
1405
- ${ke(cn.color,Le.neutralIconColor)};
1405
+ ${ke(fn.color,Le.neutralIconColor)};
1406
1406
 
1407
- ${ke(rr.backgroundColor,Le.neutralStateLayerColor)};
1408
- ${ke(rr.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1409
- ${ke(rr.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1410
- ${ke(rr.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1411
- ${ke(rr.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1407
+ ${ke(nr.backgroundColor,Le.neutralStateLayerColor)};
1408
+ ${ke(nr.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1409
+ ${ke(nr.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1410
+ ${ke(nr.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1411
+ ${ke(nr.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1412
1412
 
1413
1413
  background-color: ${Le.neutralBackgroundColor};
1414
1414
  color: ${Le.neutralColor};
@@ -1426,8 +1426,8 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1426
1426
  /** Large styles **/
1427
1427
 
1428
1428
  .ft-button--large {
1429
+ ${ke(dn.size,Le.largeIconSize)};
1429
1430
  ${ke(fn.size,Le.largeIconSize)};
1430
- ${ke(cn.size,Le.largeIconSize)};
1431
1431
 
1432
1432
  height: ${Le.largeHeight};
1433
1433
  padding: 0 ${Le.largeHorizontalPadding};
@@ -1449,8 +1449,8 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1449
1449
  /** Small styles **/
1450
1450
 
1451
1451
  .ft-button--small {
1452
+ ${ke(dn.size,Le.smallIconSize)};
1452
1453
  ${ke(fn.size,Le.smallIconSize)};
1453
- ${ke(cn.size,Le.smallIconSize)};
1454
1454
 
1455
1455
  height: ${Le.smallHeight};
1456
1456
  padding: 0 ${Le.smallHorizontalPadding};
@@ -1468,15 +1468,15 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1468
1468
  width: ${Le.smallIconOnlyWidth};
1469
1469
  padding: unset;
1470
1470
  }
1471
- `,Ze];var is=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class os extends Ja{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?Gn.caption1medium:Gn.body2medium}}os.styles=[He,es],is([E({type:Boolean})],os.prototype,"primary",void 0),is([E({type:Boolean})],os.prototype,"secondary",void 0),is([E({type:Boolean})],os.prototype,"tertiary",void 0),is([E({type:Boolean})],os.prototype,"neutral",void 0),is([E({type:Boolean})],os.prototype,"small",void 0),T("ft-button")(ts),T("ftds-button")(os);const rs=Et`
1472
- `,ns=Et`
1473
- `,as=Ko.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ss{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=as.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?ss.build(t):null!==(e=ss.API)&&void 0!==e?e:ss.API=ss.build()}static await(t){return new Promise((e=>{let i=ss.get(t);if(i)e(i);else{const o=as.subscribe((()=>{i=ss.get(t),i&&(o(),e(i))}))}}))}}var ls;const cs=Symbol("clearAfterUnitTest");class hs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ls]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=as.getState().uiLocale,as.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=as.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};_(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>A(0).then((()=>t())).catch((()=>null)))))}}ls=cs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new hs((async(t,e)=>(await ss.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new hs((async(t,e)=>(await ss.await()).getCustomMessageContext(t,e))));const fs=window.FluidTopicsI18nService,ds=window.FluidTopicsCustomI18nService;var us=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ps extends Be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ss.get(),this.cache=new o,this.cleanSessionDebouncer=new L}render(){return ce`
1471
+ `,Ze];var il=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ol extends Js{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?Vn.caption1medium:Vn.body2medium}}ol.styles=[He,el],il([E({type:Boolean})],ol.prototype,"primary",void 0),il([E({type:Boolean})],ol.prototype,"secondary",void 0),il([E({type:Boolean})],ol.prototype,"tertiary",void 0),il([E({type:Boolean})],ol.prototype,"neutral",void 0),il([E({type:Boolean})],ol.prototype,"small",void 0),T("ft-button")(tl),T("ftds-button")(ol);const rl=Et`
1472
+ `,nl=Et`
1473
+ `,al=Ho.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class sl{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=al.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?sl.build(t):null!==(e=sl.API)&&void 0!==e?e:sl.API=sl.build()}static await(t){return new Promise((e=>{let i=sl.get(t);if(i)e(i);else{const o=al.subscribe((()=>{i=sl.get(t),i&&(o(),e(i))}))}}))}}var ll;const cl=Symbol("clearAfterUnitTest");class fl{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ll]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=al.getState().uiLocale,al.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=al.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};_(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>A(0).then((()=>t())).catch((()=>null)))))}}ll=cl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new fl((async(t,e)=>(await sl.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new fl((async(t,e)=>(await sl.await()).getCustomMessageContext(t,e))));const hl=window.FluidTopicsI18nService,dl=window.FluidTopicsCustomI18nService;var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends Be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>sl.get(),this.cache=new o,this.cleanSessionDebouncer=new L}render(){return ce`
1474
1474
  <slot></slot>
1475
- `}update(t){super.update(t),t.has("baseUrl")&&as.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&as.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&as.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&as.actions.setNoCustom(this.noCustom),t.has("editorMode")&&as.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&as.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&as.actions.setSession(this.session),t.has("availableUiLocales")&&as.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ps.elementDefinitions={},ps.styles=ns,us([E()],ps.prototype,"baseUrl",void 0),us([E()],ps.prototype,"apiIntegrationIdentifier",void 0),us([E()],ps.prototype,"uiLocale",void 0),us([W([])],ps.prototype,"availableUiLocales",void 0),us([E({type:Boolean})],ps.prototype,"editorMode",void 0),us([E({type:Boolean})],ps.prototype,"noCustom",void 0),us([E({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ps.prototype,"noCustomComponent",void 0),us([E({type:Boolean})],ps.prototype,"withManualResources",void 0),us([W([])],ps.prototype,"messageContexts",void 0),us([W(void 0)],ps.prototype,"session",void 0),us([E({type:Object})],ps.prototype,"apiProvider",void 0);class ys{async listMySearches(){var t;return(null===(t=as.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ss.await()).listMySearches(as.getState().session.profile.userId):[]}}const gs=new o;class bs{async listMyBookmarks(){return gs.get("bookmarks",(async()=>(await ss.await()).listMyBookmarks(as.getState().session.profile.userId)))}clearCache(){gs.clear("bookmarks")}}const vs=Ko.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ms=new class{constructor(){this.currentSession=as.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bs,as.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=as.getState();_(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(){vs.actions.savedSearches(void 0)}clearMyBookmarks(){vs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ys,e=await t.listMySearches();vs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;vs.actions.bookmarks(e)}}};T("ft-app-context")(ps);var xs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ws=Symbol("i18nProperties"),Os=Symbol("i18nUnsubs");function Ss(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ds:fs}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ws])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ws])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ws]&&new Set([...this[ws].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Os].has(t)||this[Os].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Os].forEach((t=>t())),this[Os].clear()}}return e=Os,xs([E({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $s extends(Ss(Be)){}class Ns extends(Ss(ei)){}var Cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Es extends Ns{constructor(){super(),this.editorMode=!1,this.addStore(as)}render(){return this.key&&this.context?ce`
1475
+ `}update(t){super.update(t),t.has("baseUrl")&&al.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&al.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&al.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&al.actions.setNoCustom(this.noCustom),t.has("editorMode")&&al.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&al.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&al.actions.setSession(this.session),t.has("availableUiLocales")&&al.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hl.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}pl.elementDefinitions={},pl.styles=nl,ul([E()],pl.prototype,"baseUrl",void 0),ul([E()],pl.prototype,"apiIntegrationIdentifier",void 0),ul([E()],pl.prototype,"uiLocale",void 0),ul([W([])],pl.prototype,"availableUiLocales",void 0),ul([E({type:Boolean})],pl.prototype,"editorMode",void 0),ul([E({type:Boolean})],pl.prototype,"noCustom",void 0),ul([E({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],pl.prototype,"noCustomComponent",void 0),ul([E({type:Boolean})],pl.prototype,"withManualResources",void 0),ul([W([])],pl.prototype,"messageContexts",void 0),ul([W(void 0)],pl.prototype,"session",void 0),ul([E({type:Object})],pl.prototype,"apiProvider",void 0);class yl{async listMySearches(){var t;return(null===(t=al.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await sl.await()).listMySearches(al.getState().session.profile.userId):[]}}const gl=new o;class bl{async listMyBookmarks(){return gl.get("bookmarks",(async()=>(await sl.await()).listMyBookmarks(al.getState().session.profile.userId)))}clearCache(){gl.clear("bookmarks")}}const vl=Ho.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ml=new class{constructor(){this.currentSession=al.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bl,al.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=al.getState();_(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(){vl.actions.savedSearches(void 0)}clearMyBookmarks(){vl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new yl,e=await t.listMySearches();vl.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;vl.actions.bookmarks(e)}}};T("ft-app-context")(pl);var xl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const wl=Symbol("i18nProperties"),Ol=Symbol("i18nUnsubs");function Sl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?dl:hl}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[wl])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[wl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[wl]&&new Set([...this[wl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ol].has(t)||this[Ol].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ol].forEach((t=>t())),this[Ol].clear()}}return e=Ol,xl([E({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $l extends(Sl(Be)){}class Nl extends(Sl(oi)){}var Cl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class El extends Nl{constructor(){super(),this.editorMode=!1,this.addStore(al)}render(){return this.key&&this.context?ce`
1476
1476
  <span class="ft-i18n">
1477
1477
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1478
1478
  </span>
1479
- `:this.editorMode?"Select a context and a label key.":fe}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Es.elementDefinitions={},Es.styles=rs,Cs([Zo()],Es.prototype,"editorMode",void 0),Cs([E()],Es.prototype,"context",void 0),Cs([E()],Es.prototype,"key",void 0),Cs([W([])],Es.prototype,"args",void 0),Cs([E()],Es.prototype,"defaultMessage",void 0);class ks{static build(t){return new ks(t)}static fromGwt(t){return new ks(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>fs.resolveMessage(this.name,e,...t)})}}const Rs=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ws]=null!==(n=i[ws])&&void 0!==n?n:new Map,i[ws].set(o,a)};T("ft-i18n")(Es);const Is=ks.build("integratedFeedbackComponent"),Us={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",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"},Ls=ks.build("inDesignerFeedbackComponent"),As={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},_s={fontSize:Ee.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-field-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system"),prefixColor:Ee.extend("--ft-text-field-prefix-color","",Ae.colorOnSurfaceMedium),iconColor:Ee.extend("--ft-text-field-icon-color","",Ae.colorOnSurfaceMedium),floatingZIndex:Ee.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ee.external(Ae.colorSurface,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),elevation02:Ee.external(Ae.elevation02,"Design system"),suggestSize:Ee.create("--ft-text-field-suggest-size","","SIZE","300px")},Ts=Et`
1479
+ `:this.editorMode?"Select a context and a label key.":he}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}El.elementDefinitions={},El.styles=rl,Cl([Ve()],El.prototype,"editorMode",void 0),Cl([E()],El.prototype,"context",void 0),Cl([E()],El.prototype,"key",void 0),Cl([W([])],El.prototype,"args",void 0),Cl([E()],El.prototype,"defaultMessage",void 0);class kl{static build(t){return new kl(t)}static fromGwt(t){return new kl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>hl.resolveMessage(this.name,e,...t)})}}const Rl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[wl]=null!==(n=i[wl])&&void 0!==n?n:new Map,i[wl].set(o,a)};T("ft-i18n")(El);const Il=kl.build("integratedFeedbackComponent"),Ul={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",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"},Ll=kl.build("inDesignerFeedbackComponent"),Al={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},_l={fontSize:Ee.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-field-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system"),prefixColor:Ee.extend("--ft-text-field-prefix-color","",Ae.colorOnSurfaceMedium),iconColor:Ee.extend("--ft-text-field-icon-color","",Ae.colorOnSurfaceMedium),floatingZIndex:Ee.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ee.external(Ae.colorSurface,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),elevation02:Ee.external(Ae.elevation02,"Design system"),suggestSize:Ee.create("--ft-text-field-suggest-size","","SIZE","300px")},Tl=Et`
1480
1480
  *:focus {
1481
1481
  outline: none;
1482
1482
  }
@@ -1489,16 +1489,16 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1489
1489
  }
1490
1490
 
1491
1491
  ft-input-label {
1492
- ${ke(_a.fontSize,_s.fontSize)};
1493
- ${ke(_a.raisedFontSize,_s.labelSize)};
1494
- ${ke(_a.verticalSpacing,_s.verticalSpacing)};
1495
- ${ke(_a.horizontalSpacing,_s.horizontalSpacing)};
1492
+ ${ke(_s.fontSize,_l.fontSize)};
1493
+ ${ke(_s.raisedFontSize,_l.labelSize)};
1494
+ ${ke(_s.verticalSpacing,_l.verticalSpacing)};
1495
+ ${ke(_s.horizontalSpacing,_l.horizontalSpacing)};
1496
1496
  }
1497
1497
 
1498
1498
  .ft-text-field--main-panel {
1499
1499
  position: relative;
1500
1500
  display: flex;
1501
- height: calc(4 * ${_s.verticalSpacing} + ${_s.labelSize} + ${_s.fontSize});
1501
+ height: calc(4 * ${_l.verticalSpacing} + ${_l.labelSize} + ${_l.fontSize});
1502
1502
  }
1503
1503
 
1504
1504
  .ft-text-field--input-panel {
@@ -1507,24 +1507,24 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1507
1507
  display: flex;
1508
1508
  align-items: center;
1509
1509
  overflow: hidden;
1510
- padding: 0 ${_s.horizontalSpacing};
1510
+ padding: 0 ${_l.horizontalSpacing};
1511
1511
 
1512
- ${ke(Rr.fontSize,_s.fontSize)};
1513
- ${ke(Rr.lineHeight,_s.fontSize)};
1512
+ ${ke(Ir.fontSize,_l.fontSize)};
1513
+ ${ke(Ir.lineHeight,_l.fontSize)};
1514
1514
  }
1515
1515
 
1516
1516
  .ft-text-field--input-panel ft-ripple {
1517
- ${ke(rr.opacityContentOnSurfaceHover,"0.08")};
1518
- ${ke(rr.opacityContentOnSurfacePressed,"0.04")};
1517
+ ${ke(nr.opacityContentOnSurfaceHover,"0.08")};
1518
+ ${ke(nr.opacityContentOnSurfacePressed,"0.04")};
1519
1519
  }
1520
1520
 
1521
1521
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1522
1522
  align-items: flex-end;
1523
- padding: 0 ${_s.horizontalSpacing} ${_s.verticalSpacing} ${_s.horizontalSpacing};
1523
+ padding: 0 ${_l.horizontalSpacing} ${_l.verticalSpacing} ${_l.horizontalSpacing};
1524
1524
  }
1525
1525
 
1526
1526
  .ft-text-field--prefix {
1527
- color: ${_s.prefixColor};
1527
+ color: ${_l.prefixColor};
1528
1528
  margin-right: 2px;
1529
1529
  flex-shrink: 1;
1530
1530
  overflow: hidden;
@@ -1543,15 +1543,15 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1543
1543
  flex-shrink: 1;
1544
1544
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1545
1545
 
1546
- color: ${_s.colorOnSurface};
1547
- padding: calc(2 * ${_s.verticalSpacing}) 0;
1546
+ color: ${_l.colorOnSurface};
1547
+ padding: calc(2 * ${_l.verticalSpacing}) 0;
1548
1548
  border: none;
1549
1549
  background: none;
1550
1550
  }
1551
1551
 
1552
1552
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1553
1553
  padding-bottom: 0;
1554
- padding-top: calc(${_s.labelSize} + 2 * ${_s.verticalSpacing});
1554
+ padding-top: calc(${_l.labelSize} + 2 * ${_l.verticalSpacing});
1555
1555
  }
1556
1556
 
1557
1557
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1560,37 +1560,37 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1560
1560
  }
1561
1561
 
1562
1562
  .ft-text-field--disabled .ft-text-field--input {
1563
- color: ${_s.colorOnSurfaceDisabled};
1563
+ color: ${_l.colorOnSurfaceDisabled};
1564
1564
  }
1565
1565
 
1566
1566
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1567
- ${ke(_a.borderColor,_s.colorPrimary)};
1568
- ${ke(_a.textColor,_s.colorPrimary)};
1567
+ ${ke(_s.borderColor,_l.colorPrimary)};
1568
+ ${ke(_s.textColor,_l.colorPrimary)};
1569
1569
  }
1570
1570
 
1571
1571
  .ft-text-field--filled .ft-text-field--input-panel {
1572
- border-radius: ${_s.borderRadiusS} ${_s.borderRadiusS} 0 0;
1572
+ border-radius: ${_l.borderRadiusS} ${_l.borderRadiusS} 0 0;
1573
1573
  }
1574
1574
 
1575
1575
  .ft-text-field--outlined .ft-text-field--input-panel {
1576
- border-radius: ${_s.borderRadiusS};
1576
+ border-radius: ${_l.borderRadiusS};
1577
1577
  }
1578
1578
 
1579
1579
  .ft-text-field--helper-text {
1580
- padding: 0 12px 0 ${_s.horizontalSpacing};
1581
- color: ${_s.helperColor};
1580
+ padding: 0 12px 0 ${_l.horizontalSpacing};
1581
+ color: ${_l.helperColor};
1582
1582
  }
1583
1583
 
1584
1584
  .ft-text-field--in-error .ft-text-field--input,
1585
1585
  .ft-text-field--in-error .ft-text-field--helper-text,
1586
1586
  .ft-text-field--in-error .ft-text-field--prefix {
1587
- color: ${_s.colorError};
1587
+ color: ${_l.colorError};
1588
1588
  }
1589
1589
 
1590
1590
  .ft-text-field--icon {
1591
1591
  align-self: center;
1592
1592
  margin-left: 8px;
1593
- color: ${_s.iconColor};
1593
+ color: ${_l.iconColor};
1594
1594
  }
1595
1595
 
1596
1596
  .ft-text-field--container {
@@ -1603,13 +1603,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1603
1603
  position: absolute;
1604
1604
  left: 0;
1605
1605
  right: 0;
1606
- z-index: ${_s.floatingZIndex};
1607
- background: ${_s.colorSurface};
1608
- border: 1px solid ${_s.colorOutline};
1609
- border-radius: 0 0 ${_s.borderRadiusS} ${_s.borderRadiusS};
1610
- box-shadow: ${_s.elevation02};
1606
+ z-index: ${_l.floatingZIndex};
1607
+ background: ${_l.colorSurface};
1608
+ border: 1px solid ${_l.colorOutline};
1609
+ border-radius: 0 0 ${_l.borderRadiusS} ${_l.borderRadiusS};
1610
+ box-shadow: ${_l.elevation02};
1611
1611
  outline: none;
1612
- max-height: ${_s.suggestSize};
1612
+ max-height: ${_l.suggestSize};
1613
1613
  overflow-y: auto;
1614
1614
  }
1615
1615
 
@@ -1626,14 +1626,14 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1626
1626
  }
1627
1627
 
1628
1628
  .ft-text-field--with-icon {
1629
- ${ke(_a.labelMaxWidth,`calc(100% - ${fn.size} - ${_a.horizontalSpacing})`)};
1629
+ ${ke(_s.labelMaxWidth,`calc(100% - ${dn.size} - ${_s.horizontalSpacing})`)};
1630
1630
  }
1631
1631
 
1632
1632
  .ft-text-field--with-password ft-icon:hover {
1633
1633
  cursor: pointer;
1634
1634
  }
1635
- `;var Ws=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ds extends(Go(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ia.EYE_SLASH,this.passwordRevealedIcon=ia.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,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--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 ce`
1636
- <div class="${ga(t)}">
1635
+ `;var Wl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Dl extends(Vo(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=oa.EYE_SLASH,this.passwordRevealedIcon=oa.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,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--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 ce`
1636
+ <div class="${gs(t)}">
1637
1637
  <div class="ft-text-field--main-panel"
1638
1638
  @keydown=${this.handleKeyboardNavigation}
1639
1639
  @focusout=${this.onMainPanelBlur}>
@@ -1643,14 +1643,14 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1643
1643
  ?raised=${this.focused||""!=this.value}
1644
1644
  ?error=${this.error}></ft-input-label>
1645
1645
  <div class="ft-text-field--input-panel">
1646
- ${this.outlined?fe:ce`
1646
+ ${this.outlined?he:ce`
1647
1647
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1648
1648
  `}
1649
1649
  ${this.prefix?ce`
1650
1650
  <ft-typography class="ft-text-field--prefix" vaiant="body1">
1651
1651
  ${this.prefix}
1652
1652
  </ft-typography>
1653
- `:fe}
1653
+ `:he}
1654
1654
  <input type=${this.password&&this.hidePassword?"password":"text"}
1655
1655
  maxlength=${(t=>t??nt)(this.maxLength||void 0)}
1656
1656
  aria-label="${this.label}"
@@ -1671,7 +1671,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1671
1671
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1672
1672
  ${this.helper}
1673
1673
  </ft-typography>
1674
- `:fe}
1674
+ `:he}
1675
1675
  </div>
1676
1676
  `}renderPasswordIcon(){return ce`
1677
1677
  <ft-icon class="ft-text-field--icon"
@@ -1683,7 +1683,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1683
1683
  .variant=${this.iconVariant}
1684
1684
  .value=${this.icon}
1685
1685
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1686
- `:fe}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){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}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 i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"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 i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||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}}Ds.elementDefinitions={"ft-input-label":Da,"ft-ripple":va,"ft-typography":qn,"ft-icon":aa},Ds.styles=[tn,Ts],Ws([E()],Ds.prototype,"label",void 0),Ws([E({noAccessor:!0})],Ds.prototype,"value",null),Ws([k()],Ds.prototype,"dispatchedValue",void 0),Ws([E()],Ds.prototype,"helper",void 0),Ws([E({type:Boolean})],Ds.prototype,"outlined",void 0),Ws([E({type:Boolean})],Ds.prototype,"disabled",void 0),Ws([E({type:Boolean})],Ds.prototype,"error",void 0),Ws([E()],Ds.prototype,"prefix",void 0),Ws([E()],Ds.prototype,"icon",void 0),Ws([E()],Ds.prototype,"passwordHiddenIcon",void 0),Ws([E()],Ds.prototype,"passwordRevealedIcon",void 0),Ws([E()],Ds.prototype,"iconVariant",void 0),Ws([E({type:Boolean})],Ds.prototype,"filterSuggestions",void 0),Ws([E({type:Number})],Ds.prototype,"maxLength",void 0),Ws([E({type:Boolean})],Ds.prototype,"password",void 0),Ws([k()],Ds.prototype,"focused",void 0),Ws([k()],Ds.prototype,"hidePassword",void 0),Ws([k()],Ds.prototype,"suggestionsOnTop",void 0),Ws([k()],Ds.prototype,"hideSuggestions",void 0),Ws([k()],Ds.prototype,"visibleSuggestions",void 0),Ws([I(".ft-text-field--main-panel")],Ds.prototype,"mainPanel",void 0),Ws([I(".ft-text-field--input")],Ds.prototype,"input",void 0),Ws([I(".ft-text-field--suggestions")],Ds.prototype,"suggestionsContainer",void 0),Ws([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ds.prototype,"suggestions",void 0);const Fs=Et`
1686
+ `:he}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){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}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 i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"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 i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||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}}Dl.elementDefinitions={"ft-input-label":Ds,"ft-ripple":vs,"ft-typography":Yn,"ft-icon":sa},Dl.styles=[en,Tl],Wl([E()],Dl.prototype,"label",void 0),Wl([E({noAccessor:!0})],Dl.prototype,"value",null),Wl([k()],Dl.prototype,"dispatchedValue",void 0),Wl([E()],Dl.prototype,"helper",void 0),Wl([E({type:Boolean})],Dl.prototype,"outlined",void 0),Wl([E({type:Boolean})],Dl.prototype,"disabled",void 0),Wl([E({type:Boolean})],Dl.prototype,"error",void 0),Wl([E()],Dl.prototype,"prefix",void 0),Wl([E()],Dl.prototype,"icon",void 0),Wl([E()],Dl.prototype,"passwordHiddenIcon",void 0),Wl([E()],Dl.prototype,"passwordRevealedIcon",void 0),Wl([E()],Dl.prototype,"iconVariant",void 0),Wl([E({type:Boolean})],Dl.prototype,"filterSuggestions",void 0),Wl([E({type:Number})],Dl.prototype,"maxLength",void 0),Wl([E({type:Boolean})],Dl.prototype,"password",void 0),Wl([k()],Dl.prototype,"focused",void 0),Wl([k()],Dl.prototype,"hidePassword",void 0),Wl([k()],Dl.prototype,"suggestionsOnTop",void 0),Wl([k()],Dl.prototype,"hideSuggestions",void 0),Wl([k()],Dl.prototype,"visibleSuggestions",void 0),Wl([I(".ft-text-field--main-panel")],Dl.prototype,"mainPanel",void 0),Wl([I(".ft-text-field--input")],Dl.prototype,"input",void 0),Wl([I(".ft-text-field--suggestions")],Dl.prototype,"suggestionsContainer",void 0),Wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Dl.prototype,"suggestions",void 0);const Fl=Et`
1687
1687
  .ft-text-field-suggestion {
1688
1688
  position: relative;
1689
1689
  padding: 8px 16px;
@@ -1708,7 +1708,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1708
1708
  slot {
1709
1709
  pointer-events: none;
1710
1710
  }
1711
- `;var Ps=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ms extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class zs extends Be{render(){return ce`
1711
+ `;var Pl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ml extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class zl extends Be{render(){return ce`
1712
1712
  <div class="ft-text-field-suggestion"
1713
1713
  tabindex="-1"
1714
1714
  @keydown=${this.onKeyDown}
@@ -1720,17 +1720,17 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1720
1720
  <slot></slot>
1721
1721
  </ft-typography>
1722
1722
  </div>
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 Ms(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())}}zs.elementDefinitions={"ft-ripple":va,"ft-typography":qn,"ft-icon":aa},zs.styles=Fs,Ps([E()],zs.prototype,"value",void 0),Ps([I(".ft-text-field-suggestion")],zs.prototype,"container",void 0),Ps([U()],zs.prototype,"assignedNodes",void 0),T("ft-text-field")(Ds),T("ft-text-field-suggestion")(zs);class js{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,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],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:i,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,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"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),h=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,h[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 Bs{convertPaginatedToc(t){return new js(t).build()}}class Ks{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,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 zn(null!==(e=null===(t=as.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")}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)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,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!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",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:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.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,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=as.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}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),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Jo.FEEDBACK:return zn(null!=e?e:[],Fn.FEEDBACK_USER);case Jo.RATING:return zn(null!=e?e:[],Fn.RATING_USER)&&null!=i&&i!==kn.NO_RATING;case Jo.PRINT:return zn(null!=e?e:[],Fn.PRINT_USER);case Jo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Jo.COLLECTIONS:return zn(null!=e?e:[],Fn.COLLECTION_USER);case Jo.PERSONAL_BOOKS:return zn(null!=e?e:[],Fn.PERSONAL_BOOK_USER);default:return!1}}}class Zs extends Ks{static async build(t){return new Zs(new Bs,await ss.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}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)}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,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Hs{static build(t,e){return new Hs((t=>Ko.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}}))(t.trim()||"context"),null!=e?e:Zs.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new L(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(){for(;null==this.service;)await A(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.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 i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.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===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Gs=Et`
1724
- `;class Vs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class qs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ys extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Xs extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Js extends Event{constructor(){super("ft-reader-map-not-found")}}class Qs extends Event{constructor(){super("ft-reader-map-unauthorized")}}var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends ei{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new L(5),this.navigationDebouncer=new L(10),this.addStore(as)}render(){return ce`
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 Ml(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())}}zl.elementDefinitions={"ft-ripple":vs,"ft-typography":Yn,"ft-icon":sa},zl.styles=Fl,Pl([E()],zl.prototype,"value",void 0),Pl([I(".ft-text-field-suggestion")],zl.prototype,"container",void 0),Pl([U()],zl.prototype,"assignedNodes",void 0),T("ft-text-field")(Dl),T("ft-text-field-suggestion")(zl);class jl{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,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],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:i,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,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"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),f=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,f[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 Bl{convertPaginatedToc(t){return new jl(t).build()}}class Kl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,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 jn(null!==(e=null===(t=al.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")}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)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,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!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",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:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.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,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=al.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}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),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Qo.FEEDBACK:return jn(null!=e?e:[],Pn.FEEDBACK_USER);case Qo.RATING:return jn(null!=e?e:[],Pn.RATING_USER)&&null!=i&&i!==Rn.NO_RATING;case Qo.PRINT:return jn(null!=e?e:[],Pn.PRINT_USER);case Qo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Qo.COLLECTIONS:return jn(null!=e?e:[],Pn.COLLECTION_USER);case Qo.PERSONAL_BOOKS:return jn(null!=e?e:[],Pn.PERSONAL_BOOK_USER);default:return!1}}}class Zl extends Kl{static async build(t){return new Zl(new Bl,await sl.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}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)}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,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Hl{static build(t,e){return new Hl((t=>Ho.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}}))(t.trim()||"context"),null!=e?e:Zl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new L(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(){for(;null==this.service;)await A(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.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 i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.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===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Gl=Et`
1724
+ `;class Vl extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ql extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Yl extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Xl extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Jl extends Event{constructor(){super("ft-reader-map-not-found")}}class Ql extends Event{constructor(){super("ft-reader-map-unauthorized")}}var tc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ec extends oi{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new L(5),this.navigationDebouncer=new L(10),this.addStore(al)}render(){return ce`
1725
1725
  ${this.importStyleIfNeeded()}
1726
1726
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1727
- `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?fe:ce`
1727
+ `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?he:ce`
1728
1728
  <style>
1729
1729
  @import "${i}"
1730
1730
  </style>
1731
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Hs.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Vs(this.map,this.toc)),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 Ys(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 qs(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&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;404===e.status?this.dispatchEvent(new Js):401===e.status?this.dispatchEvent(new Qs):this.dispatchEvent(new Xs(t))}reloadBookmarks(){ms.reloadBookmarks()}}var il;el.styles=Gs,tl([Zo({store:as.name})],el.prototype,"baseUrl",void 0),tl([E()],el.prototype,"mapId",void 0),tl([E()],el.prototype,"tocId",void 0),tl([E()],el.prototype,"section",void 0),tl([E()],el.prototype,"searchInDocumentQuery",void 0),tl([E({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:il}})],el.prototype,"page",void 0),tl([Zo({store:"reader"})],el.prototype,"map",void 0),tl([Zo({store:"reader"})],el.prototype,"toc",void 0),tl([Zo({store:"reader"})],el.prototype,"visibleTopics",void 0),tl([Zo({store:"reader"})],el.prototype,"currentPage",void 0),tl([Zo({store:"reader"})],el.prototype,"scrollTarget",void 0),tl([E({attribute:!1})],el.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(el);var ol=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class rl extends(Ss(ir)){constructor(){super(),this.editorMode=!1,this.hideTitle=!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(Is,Us),this.addI18nContext(Ls,As)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&zn(this.session,"RATING_USER")}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,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?ce`
1731
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Hl.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Vl(this.map,this.toc)),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 Yl(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 ql(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&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;404===e.status?this.dispatchEvent(new Jl):401===e.status?this.dispatchEvent(new Ql):this.dispatchEvent(new Xl(t))}reloadBookmarks(){ml.reloadBookmarks()}}var ic;ec.styles=Gl,tc([Ve({store:al.name})],ec.prototype,"baseUrl",void 0),tc([E()],ec.prototype,"mapId",void 0),tc([E()],ec.prototype,"tocId",void 0),tc([E()],ec.prototype,"section",void 0),tc([E()],ec.prototype,"searchInDocumentQuery",void 0),tc([E({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:ic}})],ec.prototype,"page",void 0),tc([Ve({store:"reader"})],ec.prototype,"map",void 0),tc([Ve({store:"reader"})],ec.prototype,"toc",void 0),tc([Ve({store:"reader"})],ec.prototype,"visibleTopics",void 0),tc([Ve({store:"reader"})],ec.prototype,"currentPage",void 0),tc([Ve({store:"reader"})],ec.prototype,"scrollTarget",void 0),tc([E({attribute:!1})],ec.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(ec);var oc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class rc extends(Sl(or)){constructor(){super(),this.editorMode=!1,this.hideTitle=!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(Il,Ul),this.addI18nContext(Ll,Al)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&jn(this.session,"RATING_USER")}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,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?ce`
1732
1732
  <div class="ft-reader-feedback">
1733
- ${this.hideTitle?fe:ce`
1733
+ ${this.hideTitle?he:ce`
1734
1734
  <ft-typography variant="title" part="main-title">
1735
1735
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1736
1736
  </ft-typography>
@@ -1738,7 +1738,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1738
1738
  ${this.renderRatingSection()}
1739
1739
  ${this.renderFeedbackSection()}
1740
1740
  </div>
1741
- `:fe}renderRatingSection(){return this.canAccessRating?ce`
1741
+ `:he}renderRatingSection(){return this.canAccessRating?ce`
1742
1742
  <div class="ft-reader-feedback--rating" part="rating-container">
1743
1743
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1744
1744
  ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1748,11 +1748,11 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1748
1748
  ${this.renderRatingDate()}
1749
1749
  </ft-typography>
1750
1750
  </div>
1751
- `:this.placeholderInEditor(this.userHasRatingRole?Ls.messages.ratingNotConfigured():Ls.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Is.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Is.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Is.messages.ratedToday():Is.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1751
+ `:this.placeholderInEditor(this.userHasRatingRole?Ll.messages.ratingNotConfigured():Ll.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Il.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Il.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Il.messages.ratedToday():Il.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1752
1752
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1753
- ${qa(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1753
+ ${qs(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1754
1754
  <ft-button round part="rating-stars-${o}"
1755
- label="${Is.messages.starsRating(o)}"
1755
+ label="${Il.messages.starsRating(o)}"
1756
1756
  tooltipPosition="top"
1757
1757
  .iconVariant=${this.iconVariant}
1758
1758
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1769,13 +1769,13 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1769
1769
  ?selected=${e}
1770
1770
  .iconVariant=${this.iconVariant}
1771
1771
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1772
- ${Is.messages.like()}
1772
+ ${Il.messages.like()}
1773
1773
  </ft-switch-option>
1774
1774
  <ft-switch-option .value=${0}
1775
1775
  ?selected=${t}
1776
1776
  .iconVariant=${this.iconVariant}
1777
1777
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1778
- ${Is.messages.dislike()}
1778
+ ${Il.messages.dislike()}
1779
1779
  </ft-switch-option>
1780
1780
  </ft-switch>
1781
1781
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ce`
@@ -1784,20 +1784,20 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1784
1784
  part="rating rating-dichotomous">
1785
1785
  <ft-switch-option .value=${1}
1786
1786
  ?selected=${o}>
1787
- ${Is.messages.dichotomousYes()}
1787
+ ${Il.messages.dichotomousYes()}
1788
1788
  </ft-switch-option>
1789
1789
  <ft-switch-option .value=${0}
1790
1790
  ?selected=${i}>
1791
- ${Is.messages.dichotomousNo()}
1791
+ ${Il.messages.dichotomousNo()}
1792
1792
  </ft-switch-option>
1793
1793
  </ft-switch>
1794
- `}return fe}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ce`
1794
+ `}return he}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ce`
1795
1795
  <ft-button primary
1796
1796
  type="submit" name="submit"
1797
1797
  class="ft-reader-feedback--send-feedback"
1798
1798
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1799
1799
  part="send-feedback">
1800
- ${Is.messages.okButton()}
1800
+ ${Il.messages.okButton()}
1801
1801
  </ft-button>
1802
1802
  `;return o&&(r=ce`
1803
1803
  <a class="ft-reader-feedback--feedback-link" href="${o}">
@@ -1812,28 +1812,28 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1812
1812
  ${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?ce`
1813
1813
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1814
1814
  class="ft-reader-feedback--from-input"
1815
- label=${Is.messages.feedbackfromEmail()}
1815
+ label=${Il.messages.feedbackfromEmail()}
1816
1816
  @change=${t=>this.from=t.detail.trim()}
1817
1817
  ?error=${this.from&&!this.validFromEmail()}
1818
- helper=${this.from&&!this.validFromEmail()?Is.messages.feedbackfromEmailInvalid():""}
1818
+ helper=${this.from&&!this.validFromEmail()?Il.messages.feedbackfromEmailInvalid():""}
1819
1819
  />
1820
- `:fe}
1820
+ `:he}
1821
1821
  <ft-text-area outlined
1822
1822
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1823
- label="${Is.messages.feedbackInputLabel()}"
1823
+ label="${Il.messages.feedbackInputLabel()}"
1824
1824
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1825
1825
  ></ft-text-area>
1826
1826
  ${r}
1827
1827
  </form>
1828
- `}return this.placeholderInEditor(Ls.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.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 CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ce`
1828
+ `}return this.placeholderInEditor(Ll.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.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 CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ce`
1829
1829
  <div class="ft-reader-feedback--placeholder">
1830
1830
  <ft-typography variant="caption">${t}</ft-typography>
1831
1831
  <ft-tooltip position="left"
1832
- text="${Ls.messages.inDesignerOnlyNotice()}">
1832
+ text="${Ll.messages.inDesignerOnlyNotice()}">
1833
1833
  <ft-icon>INFO</ft-icon>
1834
1834
  </ft-tooltip>
1835
1835
  </div>
1836
- `:fe}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}rl.elementDefinitions={"ft-button":ts,"ft-typography":qn,"ft-icon":aa,"ft-tooltip":ya,"ft-switch":Ea,"ft-switch-option":$a,"ft-text-area":za,"ft-text-field":Ds},rl.styles=$n,ol([E({type:Boolean})],rl.prototype,"editorMode",void 0),ol([E({type:Boolean})],rl.prototype,"hideTitle",void 0),ol([E({type:Boolean})],rl.prototype,"ratingAllowed",void 0),ol([E({attribute:!1})],rl.prototype,"i18nProperties",void 0),ol([E({attribute:!1})],rl.prototype,"ratingSummary",void 0),ol([E({attribute:!1})],rl.prototype,"session",void 0),ol([I(".ft-reader-feedback--feedback-input")],rl.prototype,"feedbackInput",void 0),ol([k()],rl.prototype,"from",void 0),ol([k()],rl.prototype,"feedbackMessage",void 0),ol([E()],rl.prototype,"iconVariant",void 0),ol([E()],rl.prototype,"emptyStarIcon",void 0),ol([E()],rl.prototype,"filledStarIcon",void 0),ol([E()],rl.prototype,"emptyLikeIcon",void 0),ol([E()],rl.prototype,"filledLikeIcon",void 0),ol([E()],rl.prototype,"emptyDislikeIcon",void 0),ol([E()],rl.prototype,"filledDislikeIcon",void 0),ol([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rl.prototype,"configuration",void 0),ol([E()],rl.prototype,"feedbackMailLinkBuilder",void 0);const nl=ks.fromGwt("server");class al{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.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))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${nl.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ll extends(Ss(ir)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ra.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 al,this.i18nProperties={feedbackMainTitle:Is.properties.mapFeedbackMainTitle(),ratingSectionTitle:Is.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Is.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Is.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(as)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1836
+ `:he}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}rc.elementDefinitions={"ft-button":tl,"ft-typography":Yn,"ft-icon":sa,"ft-tooltip":ys,"ft-switch":Es,"ft-switch-option":$s,"ft-text-area":zs,"ft-text-field":Dl},rc.styles=Nn,oc([E({type:Boolean})],rc.prototype,"editorMode",void 0),oc([E({type:Boolean})],rc.prototype,"hideTitle",void 0),oc([E({type:Boolean})],rc.prototype,"ratingAllowed",void 0),oc([E({attribute:!1})],rc.prototype,"i18nProperties",void 0),oc([E({attribute:!1})],rc.prototype,"ratingSummary",void 0),oc([E({attribute:!1})],rc.prototype,"session",void 0),oc([I(".ft-reader-feedback--feedback-input")],rc.prototype,"feedbackInput",void 0),oc([k()],rc.prototype,"from",void 0),oc([k()],rc.prototype,"feedbackMessage",void 0),oc([E()],rc.prototype,"iconVariant",void 0),oc([E()],rc.prototype,"emptyStarIcon",void 0),oc([E()],rc.prototype,"filledStarIcon",void 0),oc([E()],rc.prototype,"emptyLikeIcon",void 0),oc([E()],rc.prototype,"filledLikeIcon",void 0),oc([E()],rc.prototype,"emptyDislikeIcon",void 0),oc([E()],rc.prototype,"filledDislikeIcon",void 0),oc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rc.prototype,"configuration",void 0),oc([E()],rc.prototype,"feedbackMailLinkBuilder",void 0);const nc=kl.fromGwt("server");class ac{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.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))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${nc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var sc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class lc extends(Sl(or)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=na.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 ac,this.i18nProperties={feedbackMainTitle:Il.properties.mapFeedbackMainTitle(),ratingSectionTitle:Il.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Il.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Il.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(al)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1837
1837
  <ft-reader-feedback
1838
1838
  ratingAllowed
1839
1839
  .i18nProperties=${this.i18nProperties}
@@ -1859,7 +1859,7 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1859
1859
  display: none !important;
1860
1860
  }
1861
1861
  </style>
1862
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.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,i;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)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Is.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ll.elementDefinitions={"ft-reader-feedback":rl},sl([Zo({store:as.name})],ll.prototype,"session",void 0),sl([Zo({store:"reader"})],ll.prototype,"map",void 0),sl([Zo({store:as.name})],ll.prototype,"editorMode",void 0),sl([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ll.prototype,"configuration",void 0),sl([k()],ll.prototype,"ratingSummary",void 0),sl([E({type:Boolean})],ll.prototype,"hideTitle",void 0),sl([E()],ll.prototype,"iconVariant",void 0),sl([E()],ll.prototype,"emptyStarIcon",void 0),sl([E()],ll.prototype,"filledStarIcon",void 0),sl([E()],ll.prototype,"emptyLikeIcon",void 0),sl([E()],ll.prototype,"filledLikeIcon",void 0),sl([E()],ll.prototype,"emptyDislikeIcon",void 0),sl([E()],ll.prototype,"filledDislikeIcon",void 0),sl([I("ft-reader-feedback")],ll.prototype,"readerFeedback",void 0),sl([Rs(nl.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],ll.prototype,"mailSubject",void 0);var cl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class hl extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const fl=Symbol("registerInterval");class dl extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[fl]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[fl]):this.dispatchEvent(new hl)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=fl,cl([k()],i.prototype,"tocNode",void 0),cl([k()],i.prototype,"disableContextInteractions",void 0),i}(ir)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends(Ss(dl)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ra.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 al,this.i18nProperties={feedbackMainTitle:Is.properties.topicFeedbackMainTitle(),ratingSectionTitle:Is.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Is.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Is.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(as)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1862
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Qo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.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,i;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)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Ll.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Il.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}lc.elementDefinitions={"ft-reader-feedback":rc},sc([Ve({store:al.name})],lc.prototype,"session",void 0),sc([Ve({store:"reader"})],lc.prototype,"map",void 0),sc([Ve({store:al.name})],lc.prototype,"editorMode",void 0),sc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],lc.prototype,"configuration",void 0),sc([k()],lc.prototype,"ratingSummary",void 0),sc([E({type:Boolean})],lc.prototype,"hideTitle",void 0),sc([E()],lc.prototype,"iconVariant",void 0),sc([E()],lc.prototype,"emptyStarIcon",void 0),sc([E()],lc.prototype,"filledStarIcon",void 0),sc([E()],lc.prototype,"emptyLikeIcon",void 0),sc([E()],lc.prototype,"filledLikeIcon",void 0),sc([E()],lc.prototype,"emptyDislikeIcon",void 0),sc([E()],lc.prototype,"filledDislikeIcon",void 0),sc([I("ft-reader-feedback")],lc.prototype,"readerFeedback",void 0),sc([Rl(nc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],lc.prototype,"mailSubject",void 0);var cc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const hc=Symbol("registerInterval");class dc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[hc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[hc]):this.dispatchEvent(new fc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=hc,cc([k()],i.prototype,"tocNode",void 0),cc([k()],i.prototype,"disableContextInteractions",void 0),i}(or)){}var uc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pc extends(Sl(dc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=na.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 ac,this.i18nProperties={feedbackMainTitle:Il.properties.topicFeedbackMainTitle(),ratingSectionTitle:Il.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Il.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Il.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(al)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1863
1863
  <ft-reader-feedback
1864
1864
  .i18nProperties=${this.i18nProperties}
1865
1865
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1885,4 +1885,4 @@ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.par
1885
1885
  display: none !important;
1886
1886
  }
1887
1887
  </style>
1888
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;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)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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,i,o;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===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.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 _e({type:"info",message:Is.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}pl.elementDefinitions={"ft-reader-feedback":rl},ul([Zo({store:as.name})],pl.prototype,"session",void 0),ul([Zo({store:"reader"})],pl.prototype,"map",void 0),ul([Zo({store:as.name})],pl.prototype,"editorMode",void 0),ul([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pl.prototype,"configuration",void 0),ul([k()],pl.prototype,"ratingSummary",void 0),ul([E({type:Boolean})],pl.prototype,"hideTitle",void 0),ul([E()],pl.prototype,"iconVariant",void 0),ul([E()],pl.prototype,"emptyStarIcon",void 0),ul([E()],pl.prototype,"filledStarIcon",void 0),ul([E()],pl.prototype,"emptyLikeIcon",void 0),ul([E()],pl.prototype,"filledLikeIcon",void 0),ul([E()],pl.prototype,"emptyDislikeIcon",void 0),ul([E()],pl.prototype,"filledDislikeIcon",void 0),ul([I("ft-reader-feedback")],pl.prototype,"readerFeedback",void 0),ul([Rs(nl.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],pl.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(ll),T("ft-reader-topic-feedback")(pl),t.FtReaderFeedbackCssVariables=Sn,t.FtReaderMapFeedback=ll,t.FtReaderTopicFeedback=pl,t.styles=$n}({});
1888
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Qo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;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)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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,i,o;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===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.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 _e({type:"info",message:Il.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}pc.elementDefinitions={"ft-reader-feedback":rc},uc([Ve({store:al.name})],pc.prototype,"session",void 0),uc([Ve({store:"reader"})],pc.prototype,"map",void 0),uc([Ve({store:al.name})],pc.prototype,"editorMode",void 0),uc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pc.prototype,"configuration",void 0),uc([k()],pc.prototype,"ratingSummary",void 0),uc([E({type:Boolean})],pc.prototype,"hideTitle",void 0),uc([E()],pc.prototype,"iconVariant",void 0),uc([E()],pc.prototype,"emptyStarIcon",void 0),uc([E()],pc.prototype,"filledStarIcon",void 0),uc([E()],pc.prototype,"emptyLikeIcon",void 0),uc([E()],pc.prototype,"filledLikeIcon",void 0),uc([E()],pc.prototype,"emptyDislikeIcon",void 0),uc([E()],pc.prototype,"filledDislikeIcon",void 0),uc([I("ft-reader-feedback")],pc.prototype,"readerFeedback",void 0),uc([Rl(nc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],pc.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(lc),T("ft-reader-topic-feedback")(pc),t.FtReaderFeedbackCssVariables=$n,t.FtReaderMapFeedback=lc,t.FtReaderTopicFeedback=pc,t.styles=Nn}({});