@fluid-topics/ft-reader-feedback 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);f(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=h(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?p(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(go){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t]),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);f(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=h(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?p(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(mo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t]),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -93,7 +93,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
93
93
  display: inline-block;
94
94
  width: 0;
95
95
  }
96
- `;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[Se]}function Ft(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)===ke}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Ht(t)||Kt(t))}function Pt(t,e,i){void 0===i&&(i=!1),0===Dt(t)?(i?Object.keys:Oe)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Dt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ht(t)?2:Kt(t)?3:0}function Bt(t,e){return 2===Dt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lt(t,e,i){var n=Dt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ht(t){return ge&&t instanceof Map}function Kt(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function Vt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_e(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Jt(t)||zt(t)||!Ft(t)||(Dt(t)>1&&(t.set=t.add=t.clear=t.delete=Gt),Object.freeze(t),e&&Pt(t,(function(t,e){return qt(e,!0)}),!0)),t}function Gt(){Ut(2)}function Jt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=Ce[t];return e||Ut(18,t),e}function Yt(){return be}function Qt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Xt("ES5").S(e,t,n),n?(i[Se].P&&(te(e),Ut(4)),Ft(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Jt(e))return e;var n=e[Se];if(!n)return Pt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Vt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Pt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(zt(o)){var a=re(t,o,r&&e&&3!==e.i&&!Bt(e.R,n)?r.concat(n):void 0);if(Lt(i,n,a),!zt(a))return;t.m=!1}else s&&i.add(o);if(Ft(o)&&!Jt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function le(t,e){var i=t[Se];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ue(t){t.P||(t.P=!0,t.l&&ue(t.l))}function he(t){t.o||(t.o=Vt(t.t))}function fe(t,e,i){var n=Ht(e)?Xt("MapSet").F(e,i):Kt(e)?Xt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Yt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ee;i&&(o=[n],r=je);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Xt("ES5").J(e,i);return(i?i.A:Yt()).p.push(n),n}function de(t){return zt(t)||Ut(22,t),function t(e){if(!Ft(e))return e;var i,n=e[Se],o=Dt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=pe(e,o),n.I=!1}else i=pe(e,o);return Pt(i,(function(e,o){n&&function(t,e){return 2===Dt(t)?t.get(e):t[e]}(n.t,e)===o||Lt(i,e,t(o))})),3===o?new Set(i):i}(t)}function pe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Se=ye?Symbol.for("immer-state"):"__$immer_state",ke=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_e=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ce={},Ee={get:function(t,e){if(e===Se)return t;var i=Zt(t);if(!Bt(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Ft(n)?n:n===le(t.t,e)?(he(t),t.o[e]=fe(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Se];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||Bt(t.t,e)))return!0;he(t),ue(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,he(t),ue(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ut(12)}},je={};Pt(Ee,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ee.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ut(6),void 0!==n&&"function"!=typeof n&&Ut(7),Ft(t)){var a=ie(e),l=fe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Qt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Qt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&qt(s,!0),n){var u=[],h=[];Xt("Patches").M(t,s,u,h),n(u,h)}return s}Ut(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Ft(t)||Ut(8),zt(t)&&(t=de(t));var e=ie(this),i=fe(this,t,void 0);return i[Se].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Qt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&Ut(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Xt("Patches").$;return zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Ne=new Re,Ie=Ne.produce;function Me(t){return Me="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},Me(t)}function Te(t){var e=function(t,e){if("object"!==Me(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Me(e)?e:String(e)}function Ae(t,e,i){return(e=Te(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){Ae(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Fe(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. "}Ne.produceWithPatches.bind(Ne),Ne.setAutoFreeze.bind(Ne),Ne.setUseProxies.bind(Ne),Ne.applyPatches.bind(Ne),Ne.createDraft.bind(Ne),Ne.finishDraft.bind(Ne);var Pe="function"==typeof Symbol&&Symbol.observable||"@@observable",De=function(){return Math.random().toString(36).substring(7).split("").join(".")},Be={INIT:"@@redux/INIT"+De(),REPLACE:"@@redux/REPLACE"+De(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+De()}};function Le(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Fe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Fe(1));return i(Le)(t,e)}if("function"!=typeof t)throw new Error(Fe(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Fe(3));return r}function h(t){if("function"!=typeof t)throw new Error(Fe(4));if(l)throw new Error(Fe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Fe(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Fe(7));if(void 0===t.type)throw new Error(Fe(8));if(l)throw new Error(Fe(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Be.INIT}),(n={dispatch:f,subscribe:h,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Fe(10));o=t,f({type:Be.REPLACE})}})[Pe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Fe(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Pe]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Be.INIT}))throw new Error(Fe(12));if(void 0===i(void 0,{type:Be.PROBE_UNKNOWN_ACTION()}))throw new Error(Fe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],h=c(u,e);if(void 0===h)throw e&&e.type,new Error(Fe(14));o[l]=h,n=n||h!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function He(){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 Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Fe(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=He.apply(void 0,r)(i.dispatch),ze(ze({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Ve=Ze();Ve.withExtraArgument=Ze;var qe,Ge=Ve,Je=(qe=function(t,e){return qe=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])},qe(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}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Xe=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Ye=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Qe=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?He:He.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array),ui=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array);function hi(t){return Ft(t)?Ie(t,(function(){})):t}function fi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ge.withExtraArgument(i.extraArgument)):n.push(Ge));return n}(t)}}function di(t){var e,i=fi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,h=void 0===u?void 0:u,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=We(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=He;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new ui(v),g=y;return Array.isArray(d)?g=Ye([v],d):"function"==typeof d&&(g=d(y)),Le(e,h,b.apply(void 0,g))}function pi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:hi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return hi(t())};else{var c=hi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Ye([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(zt(t))return void 0===(n=i(t,e))?t:n;if(Ft(t))return Ie(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?pi(c,n):pi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=pi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=pi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=pi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,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}(),f=new s;function d(t){u=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Xe(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(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([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,h,t,e.meta):n(e,h,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,h,t,g.payload,g.meta):r(g,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Si,ki="listenerMiddleware";pi(ki+"/add"),pi(ki+"/removeAll"),pi(ki+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Se];return Ee.get(e,t)},set:function(e){var i=this[Se];Ee.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Se];if(!o.P)switch(o.i){case 5:n(o)&&ue(o);break;case 4:i(o)&&ue(o)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Se){var s=e[r];if(void 0===s&&!Bt(e,r))return!0;var a=i[r],l=a&&a[Se];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Se];return n.length!==Oe(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ce[t]||(Ce[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=_e(i);delete r[Se];for(var s=Oe(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Yt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Se,{value:r,writable:!0}),o},S:function(t,i,o){o?zt(i)&&i[Se].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Se];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Pt(r,(function(e){e!==Se&&(void 0!==o[e]||Bt(o,e)?s[e]||t(r[e]):(s[e]=!0,ue(i)))})),Pt(o,(function(t){void 0!==r[t]||Bt(r,t)||(s[t]=!1,ue(i))}));else if(5===a){if(n(i)&&(ue(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),h=0;h<u;h++)r.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(r[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Oi=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},_i=Symbol("internalStoresUnsubscribers"),Ci=Symbol("internalStores");class Ei extends It{constructor(){super(...arguments),this[$i]=new Map,this[Si]=new Map}getUnnamedStore(){if(this[Ci].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ci].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ci].get(t)}addStore(t,e){e=null!=e?e:t.name,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ci].delete(e)}setupStore(t,e){this[Ci].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ci].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[_i].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[_i]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[_i].has(t)&&this[_i].get(t)(),this[_i].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}$i=_i,Si=Ci;class ji{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(n))return n;if(null==i)return;const o=bi(i),r=di({reducer:o.reducer});return window.ftReduxStores[i.name]=new ji(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ri,Ni,Ii;const Mi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ii=null===(Ni=null===(Ri=window.safari)||void 0===Ri?void 0:Ri.pushNotification)||void 0===Ni?void 0:Ni.toString())&&void 0!==Ii?Ii:"");var Ti=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ai extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ui=Symbol("registerInterval");class zi 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[Ui]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ui]):this.dispatchEvent(new Ai)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ui,Ti([a()],i.prototype,"stateManager",void 0),i}(Ei)){}const Fi=$t.extend("--ft-ripple-color",kt.colorContent),Pi={color:Fi,backgroundColor:$t.extend("--ft-ripple-background-color",Fi),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Di=$t.extend("--ft-ripple-color",kt.colorPrimary),Bi=Di,Li=$t.extend("--ft-ripple-background-color",Di),Wi=$t.extend("--ft-ripple-color",kt.colorSecondary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Zi=w`
96
+ `;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[Se]}function Ft(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)===ke}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Ht(t)||Kt(t))}function Pt(t,e,i){void 0===i&&(i=!1),0===Dt(t)?(i?Object.keys:Oe)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Dt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ht(t)?2:Kt(t)?3:0}function Bt(t,e){return 2===Dt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lt(t,e,i){var n=Dt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ht(t){return ge&&t instanceof Map}function Kt(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function Vt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_e(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Jt(t)||zt(t)||!Ft(t)||(Dt(t)>1&&(t.set=t.add=t.clear=t.delete=Gt),Object.freeze(t),e&&Pt(t,(function(t,e){return qt(e,!0)}),!0)),t}function Gt(){Ut(2)}function Jt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=Ce[t];return e||Ut(18,t),e}function Yt(){return be}function Qt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Xt("ES5").S(e,t,n),n?(i[Se].P&&(te(e),Ut(4)),Ft(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Jt(e))return e;var n=e[Se];if(!n)return Pt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Vt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Pt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(zt(o)){var a=re(t,o,r&&e&&3!==e.i&&!Bt(e.R,n)?r.concat(n):void 0);if(Lt(i,n,a),!zt(a))return;t.m=!1}else s&&i.add(o);if(Ft(o)&&!Jt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function le(t,e){var i=t[Se];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ue(t){t.P||(t.P=!0,t.l&&ue(t.l))}function he(t){t.o||(t.o=Vt(t.t))}function fe(t,e,i){var n=Ht(e)?Xt("MapSet").F(e,i):Kt(e)?Xt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Yt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ee;i&&(o=[n],r=je);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Xt("ES5").J(e,i);return(i?i.A:Yt()).p.push(n),n}function de(t){return zt(t)||Ut(22,t),function t(e){if(!Ft(e))return e;var i,n=e[Se],o=Dt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=pe(e,o),n.I=!1}else i=pe(e,o);return Pt(i,(function(e,o){n&&function(t,e){return 2===Dt(t)?t.get(e):t[e]}(n.t,e)===o||Lt(i,e,t(o))})),3===o?new Set(i):i}(t)}function pe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Se=ye?Symbol.for("immer-state"):"__$immer_state",ke=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_e=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ce={},Ee={get:function(t,e){if(e===Se)return t;var i=Zt(t);if(!Bt(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Ft(n)?n:n===le(t.t,e)?(he(t),t.o[e]=fe(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Se];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||Bt(t.t,e)))return!0;he(t),ue(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,he(t),ue(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ut(12)}},je={};Pt(Ee,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ee.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ut(6),void 0!==n&&"function"!=typeof n&&Ut(7),Ft(t)){var a=ie(e),l=fe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Qt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Qt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&qt(s,!0),n){var u=[],h=[];Xt("Patches").M(t,s,u,h),n(u,h)}return s}Ut(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Ft(t)||Ut(8),zt(t)&&(t=de(t));var e=ie(this),i=fe(this,t,void 0);return i[Se].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Qt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&Ut(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Xt("Patches").$;return zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Ne=new Re,Ie=Ne.produce;function Me(t){return Me="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},Me(t)}function Te(t){var e=function(t,e){if("object"!==Me(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Me(e)?e:String(e)}function Ae(t,e,i){return(e=Te(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){Ae(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Fe(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. "}Ne.produceWithPatches.bind(Ne),Ne.setAutoFreeze.bind(Ne),Ne.setUseProxies.bind(Ne),Ne.applyPatches.bind(Ne),Ne.createDraft.bind(Ne),Ne.finishDraft.bind(Ne);var Pe="function"==typeof Symbol&&Symbol.observable||"@@observable",De=function(){return Math.random().toString(36).substring(7).split("").join(".")},Be={INIT:"@@redux/INIT"+De(),REPLACE:"@@redux/REPLACE"+De(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+De()}};function Le(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Fe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Fe(1));return i(Le)(t,e)}if("function"!=typeof t)throw new Error(Fe(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Fe(3));return r}function h(t){if("function"!=typeof t)throw new Error(Fe(4));if(l)throw new Error(Fe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Fe(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Fe(7));if(void 0===t.type)throw new Error(Fe(8));if(l)throw new Error(Fe(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Be.INIT}),(n={dispatch:f,subscribe:h,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Fe(10));o=t,f({type:Be.REPLACE})}})[Pe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Fe(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Pe]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Be.INIT}))throw new Error(Fe(12));if(void 0===i(void 0,{type:Be.PROBE_UNKNOWN_ACTION()}))throw new Error(Fe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],h=c(u,e);if(void 0===h)throw e&&e.type,new Error(Fe(14));o[l]=h,n=n||h!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function He(){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 Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Fe(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=He.apply(void 0,r)(i.dispatch),ze(ze({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Ve=Ze();Ve.withExtraArgument=Ze;var qe,Ge=Ve,Je=(qe=function(t,e){return qe=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])},qe(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}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Xe=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Ye=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Qe=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?He:He.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array),ui=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(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,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array);function hi(t){return Ft(t)?Ie(t,(function(){})):t}function fi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ge.withExtraArgument(i.extraArgument)):n.push(Ge));return n}(t)}}function di(t){var e,i=fi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,h=void 0===u?void 0:u,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=We(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=He;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new ui(v),g=y;return Array.isArray(d)?g=Ye([v],d):"function"==typeof d&&(g=d(y)),Le(e,h,b.apply(void 0,g))}function pi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:hi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return hi(t())};else{var c=hi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Ye([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(zt(t))return void 0===(n=i(t,e))?t:n;if(Ft(t))return Ie(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?pi(c,n):pi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=pi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=pi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=pi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,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}(),f=new s;function d(t){u=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Xe(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(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([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,h,t,e.meta):n(e,h,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,h,t,g.payload,g.meta):r(g,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Si,ki="listenerMiddleware";pi(ki+"/add"),pi(ki+"/removeAll"),pi(ki+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Se];return Ee.get(e,t)},set:function(e){var i=this[Se];Ee.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Se];if(!o.P)switch(o.i){case 5:n(o)&&ue(o);break;case 4:i(o)&&ue(o)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Se){var s=e[r];if(void 0===s&&!Bt(e,r))return!0;var a=i[r],l=a&&a[Se];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Se];return n.length!==Oe(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ce[t]||(Ce[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=_e(i);delete r[Se];for(var s=Oe(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Yt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Se,{value:r,writable:!0}),o},S:function(t,i,o){o?zt(i)&&i[Se].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Se];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Pt(r,(function(e){e!==Se&&(void 0!==o[e]||Bt(o,e)?s[e]||t(r[e]):(s[e]=!0,ue(i)))})),Pt(o,(function(t){void 0!==r[t]||Bt(r,t)||(s[t]=!1,ue(i))}));else if(5===a){if(n(i)&&(ue(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),h=0;h<u;h++)r.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(r[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Oi=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},_i=Symbol("internalStoresUnsubscribers"),Ci=Symbol("internalStores");class Ei extends It{constructor(){super(...arguments),this[$i]=new Map,this[Si]=new Map}getUnnamedStore(){if(this[Ci].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ci].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ci].get(t)}addStore(t,e){e=null!=e?e:ji(t)?t.name:void 0,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ci].delete(e)}setupStore(t,e){this[Ci].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ci].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[_i].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[_i]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[_i].has(t)&&this[_i].get(t)(),this[_i].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}$i=_i,Si=Ci;class Ri{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(ji(n))return n;if(null==i)return;const o=bi(i),r=di({reducer:o.reducer});return window.ftReduxStores[i.name]=new Ri(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ni,Ii,Mi;const Ti=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mi=null===(Ii=null===(Ni=window.safari)||void 0===Ni?void 0:Ni.pushNotification)||void 0===Ii?void 0:Ii.toString())&&void 0!==Mi?Mi:"");var Ai=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ui extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const zi=Symbol("registerInterval");class Fi 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[zi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[zi]):this.dispatchEvent(new Ui)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=zi,Ai([a()],i.prototype,"stateManager",void 0),i}(Ei)){}const Pi=$t.extend("--ft-ripple-color",kt.colorContent),Di={color:Pi,backgroundColor:$t.extend("--ft-ripple-background-color",Pi),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Bi=$t.extend("--ft-ripple-color",kt.colorPrimary),Li=Bi,Wi=$t.extend("--ft-ripple-background-color",Bi),Hi=$t.extend("--ft-ripple-color",kt.colorSecondary),Ki=Hi,Zi=$t.extend("--ft-ripple-background-color",Hi),Vi=w`
97
97
  :host {
98
98
  display: contents;
99
99
  }
@@ -106,7 +106,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
106
106
 
107
107
  .ft-ripple:not(.ft-ripple--unbounded) {
108
108
  overflow: hidden;
109
- border-radius: ${Pi.borderRadius};
109
+ border-radius: ${Di.borderRadius};
110
110
  }
111
111
 
112
112
  .ft-ripple .ft-ripple--background,
@@ -116,27 +116,27 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
116
116
  }
117
117
 
118
118
  .ft-ripple .ft-ripple--background {
119
- background-color: ${Pi.backgroundColor};
119
+ background-color: ${Di.backgroundColor};
120
120
  }
121
121
 
122
122
  .ft-ripple .ft-ripple--effect {
123
- background-color: ${Pi.color};
123
+ background-color: ${Di.color};
124
124
  }
125
125
 
126
126
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
127
- background-color: ${Ki};
127
+ background-color: ${Zi};
128
128
  }
129
129
 
130
130
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
131
- background-color: ${Hi};
131
+ background-color: ${Ki};
132
132
  }
133
133
 
134
134
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
135
- background-color: ${Li};
135
+ background-color: ${Wi};
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
139
- background-color: ${Bi};
139
+ background-color: ${Li};
140
140
  }
141
141
 
142
142
  .ft-ripple .ft-ripple--background {
@@ -168,32 +168,23 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
168
168
  }
169
169
 
170
170
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
171
- opacity: ${Pi.opacityContentOnSurfaceHover};
171
+ opacity: ${Di.opacityContentOnSurfaceHover};
172
172
  }
173
173
 
174
174
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
175
- opacity: ${Pi.opacityContentOnSurfaceSelected};
175
+ opacity: ${Di.opacityContentOnSurfaceSelected};
176
176
  }
177
177
 
178
178
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
179
- opacity: ${Pi.opacityContentOnSurfaceFocused};
179
+ opacity: ${Di.opacityContentOnSurfaceFocused};
180
180
  }
181
181
 
182
182
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
183
- opacity: ${Pi.opacityContentOnSurfacePressed};
183
+ opacity: ${Di.opacityContentOnSurfacePressed};
184
184
  transform: translate(-50%, -50%) scale(1);
185
185
  }
186
- `,Vi=$t.extend("--ft-typography-font-family",kt.titleFont),qi=$t.extend("--ft-typography-font-family",kt.contentFont),Gi={fontFamily:qi,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ji={fontFamily:$t.extend("--ft-typography-title-font-family",Vi),fontSize:$t.extend("--ft-typography-title-font-size",Gi.fontSize,"20px"),fontWeight:$t.extend("--ft-typography-title-font-weight",Gi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-letter-spacing",Gi.letterSpacing,"0.15px"),lineHeight:$t.extend("--ft-typography-title-line-height",Gi.lineHeight,"1.2"),textTransform:$t.extend("--ft-typography-title-text-transform",Gi.textTransform,"inherit")},Xi={fontFamily:$t.extend("--ft-typography-title-dense-font-family",Vi),fontSize:$t.extend("--ft-typography-title-dense-font-size",Gi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-title-dense-font-weight",Gi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-dense-letter-spacing",Gi.letterSpacing,"0.105px"),lineHeight:$t.extend("--ft-typography-title-dense-line-height",Gi.lineHeight,"1.7"),textTransform:$t.extend("--ft-typography-title-dense-text-transform",Gi.textTransform,"inherit")},Yi=$t.extend("--ft-typography-subtitle1-font-family",qi),Qi=$t.extend("--ft-typography-subtitle1-font-size",Gi.fontSize,"16px"),tn=$t.extend("--ft-typography-subtitle1-font-weight",Gi.fontWeight,"600"),en=$t.extend("--ft-typography-subtitle1-letter-spacing",Gi.letterSpacing,"0.144px"),nn=$t.extend("--ft-typography-subtitle1-line-height",Gi.lineHeight,"1.5"),on=$t.extend("--ft-typography-subtitle1-text-transform",Gi.textTransform,"inherit"),rn=$t.extend("--ft-typography-subtitle2-font-family",qi),sn=$t.extend("--ft-typography-subtitle2-font-size",Gi.fontSize,"14px"),an=$t.extend("--ft-typography-subtitle2-font-weight",Gi.fontWeight,"normal"),ln=$t.extend("--ft-typography-subtitle2-letter-spacing",Gi.letterSpacing,"0.098px"),cn=$t.extend("--ft-typography-subtitle2-line-height",Gi.lineHeight,"1.7"),un=$t.extend("--ft-typography-subtitle2-text-transform",Gi.textTransform,"inherit"),hn={fontFamily:$t.extend("--ft-typography-body1-font-family",qi),fontSize:$t.extend("--ft-typography-body1-font-size",Gi.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",Gi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",Gi.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",Gi.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",Gi.textTransform,"inherit")},fn=$t.extend("--ft-typography-body2-font-family",qi),dn=$t.extend("--ft-typography-body2-font-size",Gi.fontSize,"14px"),pn=$t.extend("--ft-typography-body2-font-weight",Gi.fontWeight,"normal"),vn=$t.extend("--ft-typography-body2-letter-spacing",Gi.letterSpacing,"0.252px"),bn=$t.extend("--ft-typography-body2-line-height",Gi.lineHeight,"1.4"),yn=$t.extend("--ft-typography-body2-text-transform",Gi.textTransform,"inherit"),gn={fontFamily:$t.extend("--ft-typography-caption-font-family",qi),fontSize:$t.extend("--ft-typography-caption-font-size",Gi.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",Gi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",Gi.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",Gi.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",Gi.textTransform,"inherit")},mn=$t.extend("--ft-typography-breadcrumb-font-family",qi),xn=$t.extend("--ft-typography-breadcrumb-font-size",Gi.fontSize,"10px"),wn=$t.extend("--ft-typography-breadcrumb-font-weight",Gi.fontWeight,"normal"),$n=$t.extend("--ft-typography-breadcrumb-letter-spacing",Gi.letterSpacing,"0.33px"),Sn=$t.extend("--ft-typography-breadcrumb-line-height",Gi.lineHeight,"1.6"),kn=$t.extend("--ft-typography-breadcrumb-text-transform",Gi.textTransform,"inherit"),On=$t.extend("--ft-typography-overline-font-family",qi),_n=$t.extend("--ft-typography-overline-font-size",Gi.fontSize,"10px"),Cn=$t.extend("--ft-typography-overline-font-weight",Gi.fontWeight,"normal"),En=$t.extend("--ft-typography-overline-letter-spacing",Gi.letterSpacing,"1.5px"),jn=$t.extend("--ft-typography-overline-line-height",Gi.lineHeight,"1.6"),Rn=$t.extend("--ft-typography-overline-text-transform",Gi.textTransform,"uppercase"),Nn={fontFamily:$t.extend("--ft-typography-button-font-family",qi),fontSize:$t.extend("--ft-typography-button-font-size",Gi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",Gi.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",Gi.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",Gi.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",Gi.textTransform,"uppercase")},In=w`
186
+ `,qi=$t.extend("--ft-typography-font-family",kt.titleFont),Gi=$t.extend("--ft-typography-font-family",kt.contentFont),Ji={fontFamily:Gi,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xi={fontFamily:$t.extend("--ft-typography-title-font-family",qi),fontSize:$t.extend("--ft-typography-title-font-size",Ji.fontSize,"20px"),fontWeight:$t.extend("--ft-typography-title-font-weight",Ji.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-letter-spacing",Ji.letterSpacing,"0.15px"),lineHeight:$t.extend("--ft-typography-title-line-height",Ji.lineHeight,"1.2"),textTransform:$t.extend("--ft-typography-title-text-transform",Ji.textTransform,"inherit")},Yi={fontFamily:$t.extend("--ft-typography-title-dense-font-family",qi),fontSize:$t.extend("--ft-typography-title-dense-font-size",Ji.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-title-dense-font-weight",Ji.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-dense-letter-spacing",Ji.letterSpacing,"0.105px"),lineHeight:$t.extend("--ft-typography-title-dense-line-height",Ji.lineHeight,"1.7"),textTransform:$t.extend("--ft-typography-title-dense-text-transform",Ji.textTransform,"inherit")},Qi=$t.extend("--ft-typography-subtitle1-font-family",Gi),tn=$t.extend("--ft-typography-subtitle1-font-size",Ji.fontSize,"16px"),en=$t.extend("--ft-typography-subtitle1-font-weight",Ji.fontWeight,"600"),nn=$t.extend("--ft-typography-subtitle1-letter-spacing",Ji.letterSpacing,"0.144px"),on=$t.extend("--ft-typography-subtitle1-line-height",Ji.lineHeight,"1.5"),rn=$t.extend("--ft-typography-subtitle1-text-transform",Ji.textTransform,"inherit"),sn=$t.extend("--ft-typography-subtitle2-font-family",Gi),an=$t.extend("--ft-typography-subtitle2-font-size",Ji.fontSize,"14px"),ln=$t.extend("--ft-typography-subtitle2-font-weight",Ji.fontWeight,"normal"),cn=$t.extend("--ft-typography-subtitle2-letter-spacing",Ji.letterSpacing,"0.098px"),un=$t.extend("--ft-typography-subtitle2-line-height",Ji.lineHeight,"1.7"),hn=$t.extend("--ft-typography-subtitle2-text-transform",Ji.textTransform,"inherit"),fn={fontFamily:$t.extend("--ft-typography-body1-font-family",Gi),fontSize:$t.extend("--ft-typography-body1-font-size",Ji.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",Ji.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",Ji.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",Ji.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",Ji.textTransform,"inherit")},dn=$t.extend("--ft-typography-body2-font-family",Gi),pn=$t.extend("--ft-typography-body2-font-size",Ji.fontSize,"14px"),vn=$t.extend("--ft-typography-body2-font-weight",Ji.fontWeight,"normal"),bn=$t.extend("--ft-typography-body2-letter-spacing",Ji.letterSpacing,"0.252px"),yn=$t.extend("--ft-typography-body2-line-height",Ji.lineHeight,"1.4"),gn=$t.extend("--ft-typography-body2-text-transform",Ji.textTransform,"inherit"),mn={fontFamily:$t.extend("--ft-typography-caption-font-family",Gi),fontSize:$t.extend("--ft-typography-caption-font-size",Ji.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",Ji.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",Ji.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",Ji.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",Ji.textTransform,"inherit")},xn=$t.extend("--ft-typography-breadcrumb-font-family",Gi),wn=$t.extend("--ft-typography-breadcrumb-font-size",Ji.fontSize,"10px"),$n=$t.extend("--ft-typography-breadcrumb-font-weight",Ji.fontWeight,"normal"),Sn=$t.extend("--ft-typography-breadcrumb-letter-spacing",Ji.letterSpacing,"0.33px"),kn=$t.extend("--ft-typography-breadcrumb-line-height",Ji.lineHeight,"1.6"),On=$t.extend("--ft-typography-breadcrumb-text-transform",Ji.textTransform,"inherit"),_n=$t.extend("--ft-typography-overline-font-family",Gi),Cn=$t.extend("--ft-typography-overline-font-size",Ji.fontSize,"10px"),En=$t.extend("--ft-typography-overline-font-weight",Ji.fontWeight,"normal"),jn=$t.extend("--ft-typography-overline-letter-spacing",Ji.letterSpacing,"1.5px"),Rn=$t.extend("--ft-typography-overline-line-height",Ji.lineHeight,"1.6"),Nn=$t.extend("--ft-typography-overline-text-transform",Ji.textTransform,"uppercase"),In={fontFamily:$t.extend("--ft-typography-button-font-family",Gi),fontSize:$t.extend("--ft-typography-button-font-size",Ji.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",Ji.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",Ji.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",Ji.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",Ji.textTransform,"uppercase")},Mn=w`
187
187
  .ft-typography--title {
188
- font-family: ${Ji.fontFamily};
189
- font-size: ${Ji.fontSize};
190
- font-weight: ${Ji.fontWeight};
191
- letter-spacing: ${Ji.letterSpacing};
192
- line-height: ${Ji.lineHeight};
193
- text-transform: ${Ji.textTransform};
194
- }
195
- `,Mn=w`
196
- .ft-typography--title-dense {
197
188
  font-family: ${Xi.fontFamily};
198
189
  font-size: ${Xi.fontSize};
199
190
  font-weight: ${Xi.fontWeight};
@@ -202,83 +193,92 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
202
193
  text-transform: ${Xi.textTransform};
203
194
  }
204
195
  `,Tn=w`
205
- .ft-typography--subtitle1 {
206
- font-family: ${Yi};
207
- font-size: ${Qi};
208
- font-weight: ${tn};
209
- letter-spacing: ${en};
210
- line-height: ${nn};
211
- text-transform: ${on};
196
+ .ft-typography--title-dense {
197
+ font-family: ${Yi.fontFamily};
198
+ font-size: ${Yi.fontSize};
199
+ font-weight: ${Yi.fontWeight};
200
+ letter-spacing: ${Yi.letterSpacing};
201
+ line-height: ${Yi.lineHeight};
202
+ text-transform: ${Yi.textTransform};
212
203
  }
213
204
  `,An=w`
214
- .ft-typography--subtitle2 {
215
- font-family: ${rn};
216
- font-size: ${sn};
217
- font-weight: ${an};
218
- letter-spacing: ${ln};
219
- line-height: ${cn};
220
- text-transform: ${un};
205
+ .ft-typography--subtitle1 {
206
+ font-family: ${Qi};
207
+ font-size: ${tn};
208
+ font-weight: ${en};
209
+ letter-spacing: ${nn};
210
+ line-height: ${on};
211
+ text-transform: ${rn};
221
212
  }
222
-
223
213
  `,Un=w`
224
- .ft-typography--body1 {
225
- font-family: ${hn.fontFamily};
226
- font-size: ${hn.fontSize};
227
- font-weight: ${hn.fontWeight};
228
- letter-spacing: ${hn.letterSpacing};
229
- line-height: ${hn.lineHeight};
230
- text-transform: ${hn.textTransform};
214
+ .ft-typography--subtitle2 {
215
+ font-family: ${sn};
216
+ font-size: ${an};
217
+ font-weight: ${ln};
218
+ letter-spacing: ${cn};
219
+ line-height: ${un};
220
+ text-transform: ${hn};
231
221
  }
222
+
232
223
  `,zn=w`
233
- .ft-typography--body2 {
234
- font-family: ${fn};
235
- font-size: ${dn};
236
- font-weight: ${pn};
237
- letter-spacing: ${vn};
238
- line-height: ${bn};
239
- text-transform: ${yn};
224
+ .ft-typography--body1 {
225
+ font-family: ${fn.fontFamily};
226
+ font-size: ${fn.fontSize};
227
+ font-weight: ${fn.fontWeight};
228
+ letter-spacing: ${fn.letterSpacing};
229
+ line-height: ${fn.lineHeight};
230
+ text-transform: ${fn.textTransform};
240
231
  }
241
232
  `,Fn=w`
242
- .ft-typography--caption {
243
- font-family: ${gn.fontFamily};
244
- font-size: ${gn.fontSize};
245
- font-weight: ${gn.fontWeight};
246
- letter-spacing: ${gn.letterSpacing};
247
- line-height: ${gn.lineHeight};
248
- text-transform: ${gn.textTransform};
233
+ .ft-typography--body2 {
234
+ font-family: ${dn};
235
+ font-size: ${pn};
236
+ font-weight: ${vn};
237
+ letter-spacing: ${bn};
238
+ line-height: ${yn};
239
+ text-transform: ${gn};
249
240
  }
250
241
  `,Pn=w`
251
- .ft-typography--breadcrumb {
252
- font-family: ${mn};
253
- font-size: ${xn};
254
- font-weight: ${wn};
255
- letter-spacing: ${$n};
256
- line-height: ${Sn};
257
- text-transform: ${kn};
242
+ .ft-typography--caption {
243
+ font-family: ${mn.fontFamily};
244
+ font-size: ${mn.fontSize};
245
+ font-weight: ${mn.fontWeight};
246
+ letter-spacing: ${mn.letterSpacing};
247
+ line-height: ${mn.lineHeight};
248
+ text-transform: ${mn.textTransform};
258
249
  }
259
250
  `,Dn=w`
260
- .ft-typography--overline {
261
- font-family: ${On};
262
- font-size: ${_n};
263
- font-weight: ${Cn};
264
- letter-spacing: ${En};
265
- line-height: ${jn};
266
- text-transform: ${Rn};
251
+ .ft-typography--breadcrumb {
252
+ font-family: ${xn};
253
+ font-size: ${wn};
254
+ font-weight: ${$n};
255
+ letter-spacing: ${Sn};
256
+ line-height: ${kn};
257
+ text-transform: ${On};
267
258
  }
268
259
  `,Bn=w`
269
- .ft-typography--button {
270
- font-family: ${Nn.fontFamily};
271
- font-size: ${Nn.fontSize};
272
- font-weight: ${Nn.fontWeight};
273
- letter-spacing: ${Nn.letterSpacing};
274
- line-height: ${Nn.lineHeight};
275
- text-transform: ${Nn.textTransform};
260
+ .ft-typography--overline {
261
+ font-family: ${_n};
262
+ font-size: ${Cn};
263
+ font-weight: ${En};
264
+ letter-spacing: ${jn};
265
+ line-height: ${Rn};
266
+ text-transform: ${Nn};
276
267
  }
277
268
  `,Ln=w`
269
+ .ft-typography--button {
270
+ font-family: ${In.fontFamily};
271
+ font-size: ${In.fontSize};
272
+ font-weight: ${In.fontWeight};
273
+ letter-spacing: ${In.letterSpacing};
274
+ line-height: ${In.lineHeight};
275
+ text-transform: ${In.textTransform};
276
+ }
277
+ `,Wn=w`
278
278
  .ft-typography {
279
279
  vertical-align: inherit;
280
280
  }
281
- `,Wn={color:$t.extend("--ft-loader-color",kt.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Hn=w`
281
+ `,Hn={color:$t.extend("--ft-loader-color",kt.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Kn=w`
282
282
  :host {
283
283
  line-height: 0;
284
284
  }
@@ -287,8 +287,8 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
287
287
  display: inline-block;
288
288
  position: relative;
289
289
 
290
- width: ${Wn.size};
291
- height: ${Wn.size};
290
+ width: ${Hn.size};
291
+ height: ${Hn.size};
292
292
  }
293
293
 
294
294
  .ft-loader div {
@@ -297,7 +297,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
297
297
  width: 25%;
298
298
  height: 25%;
299
299
  border-radius: 50%;
300
- background: ${Wn.color};
300
+ background: ${Hn.color};
301
301
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
302
302
  }
303
303
 
@@ -344,10 +344,10 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
344
344
  transform: translate(0, 0);
345
345
  }
346
346
  100% {
347
- transform: translate(calc(0.35 * ${Wn.size}), 0);
347
+ transform: translate(calc(0.35 * ${Hn.size}), 0);
348
348
  }
349
349
  }
350
- `,Kn={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Zn=w`
350
+ `,Zn={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Vn=w`
351
351
  :host, i.ft-icon {
352
352
  display: inline-flex;
353
353
  align-items: center;
@@ -356,14 +356,14 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
356
356
  }
357
357
 
358
358
  :host {
359
- width: ${Kn.size};
360
- height: ${Kn.size};
359
+ width: ${Zn.size};
360
+ height: ${Zn.size};
361
361
  }
362
362
 
363
363
  i.ft-icon {
364
364
  width: 100%;
365
365
  height: 100%;
366
- font-size: ${Kn.size};
366
+ font-size: ${Zn.size};
367
367
  line-height: 1;
368
368
  font-weight: normal;
369
369
  text-transform: none;
@@ -374,28 +374,28 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
374
374
  text-rendering: auto;
375
375
  -webkit-font-smoothing: antialiased;
376
376
  -moz-osx-font-smoothing: grayscale;
377
- vertical-align: ${Kn.verticalAlign};
377
+ vertical-align: ${Zn.verticalAlign};
378
378
  }
379
379
 
380
380
  i.ft-icon.ft-icon--fluid-topics {
381
- font-family: ${Kn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
381
+ font-family: ${Zn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
382
382
 
383
383
  /* Ugly fix because font is broken */
384
- font-size: calc(0.75 * ${Kn.size});
385
- line-height: ${Kn.size};
384
+ font-size: calc(0.75 * ${Zn.size});
385
+ line-height: ${Zn.size};
386
386
  position: relative;
387
387
  top: -4%;
388
388
  justify-content: center;
389
389
  }
390
390
 
391
391
  .ft-icon--file-format {
392
- font-family: ${Kn.fileFormatFontFamily}, ft-mime, sans-serif;
392
+ font-family: ${Zn.fileFormatFontFamily}, ft-mime, sans-serif;
393
393
  }
394
394
 
395
395
  .ft-icon--material {
396
- font-family: ${Kn.materialFontFamily}, "Material Icons", sans-serif;
396
+ font-family: ${Zn.materialFontFamily}, "Material Icons", sans-serif;
397
397
  }
398
- `,Vn=$t.extend("--ft-button-color",kt.colorPrimary),qn={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Vn,fontSize:$t.extend("--ft-button-font-size",Nn.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Vn),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Gn=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),Jn={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Gn,rippleColor:$t.extend("--ft-button-primary-ripple-color",Gn)},Xn=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),Yn=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Qn=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),to=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),eo=[w`
398
+ `,qn=$t.extend("--ft-button-color",kt.colorPrimary),Gn={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:qn,fontSize:$t.extend("--ft-button-font-size",In.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",qn),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Jn=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),Xn={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Jn,rippleColor:$t.extend("--ft-button-primary-ripple-color",Jn)},Yn=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),Qn=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),to=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),eo=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),io=[w`
399
399
  :host {
400
400
  display: inline-block;
401
401
  max-width: 100%;
@@ -406,7 +406,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
406
406
  box-shadow: 0px 0px 0px transparent;
407
407
  border: 0px solid transparent;
408
408
  text-shadow: 0px 0px 0px transparent;
409
- font-size: ${qn.fontSize};
409
+ font-size: ${Gn.fontSize};
410
410
  }
411
411
 
412
412
  button:hover {
@@ -435,31 +435,31 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
435
435
  border: none;
436
436
  pointer-events: auto;
437
437
 
438
- --ft-button-internal-line-height: max(calc(${qn.fontSize} + 2px), ${qn.iconSize});
439
- --ft-button-internal-color: ${qn.color};
440
- ${St(Kn.size,qn.iconSize)};
441
- ${St(Pi.color,qn.rippleColor)};
438
+ --ft-button-internal-line-height: max(calc(${Gn.fontSize} + 2px), ${Gn.iconSize});
439
+ --ft-button-internal-color: ${Gn.color};
440
+ ${St(Zn.size,Gn.iconSize)};
441
+ ${St(Di.color,Gn.rippleColor)};
442
442
 
443
- border-radius: ${qn.borderRadius};
444
- padding: ${qn.verticalPadding} ${qn.horizontalPadding};
445
- background-color: ${qn.backgroundColor};
443
+ border-radius: ${Gn.borderRadius};
444
+ padding: ${Gn.verticalPadding} ${Gn.horizontalPadding};
445
+ background-color: ${Gn.backgroundColor};
446
446
  color: var(--ft-button-internal-color);
447
447
  -webkit-mask-image: radial-gradient(white, black);
448
448
  }
449
449
 
450
450
  .ft-button.ft-button--outlined {
451
451
  border: 1px solid var(--ft-button-internal-color);
452
- padding: calc(${qn.verticalPadding} - 1px) calc(${qn.horizontalPadding} - 1px);
452
+ padding: calc(${Gn.verticalPadding} - 1px) calc(${Gn.horizontalPadding} - 1px);
453
453
  }
454
454
 
455
455
  .ft-button.ft-button--dense {
456
- padding: ${Yn} ${Qn};
457
- border-radius: ${Xn};
458
- gap: ${to};
456
+ padding: ${Qn} ${to};
457
+ border-radius: ${Yn};
458
+ gap: ${eo};
459
459
  }
460
460
 
461
461
  .ft-button.ft-button--dense.ft-button--outlined {
462
- padding: calc(${Yn} - 1px) calc(${Qn} - 1px);
462
+ padding: calc(${Qn} - 1px) calc(${to} - 1px);
463
463
  }
464
464
 
465
465
  .ft-button:not([disabled]):hover {
@@ -467,22 +467,22 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
467
467
  }
468
468
 
469
469
  .ft-button--round {
470
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qn.verticalPadding});
470
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Gn.verticalPadding});
471
471
  }
472
472
 
473
473
  .ft-button--round.ft-button--dense {
474
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yn});
474
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qn});
475
475
  }
476
476
 
477
477
  .ft-button[disabled] {
478
478
  filter: grayscale(1);
479
- opacity: ${qn.opacityDisabled};
479
+ opacity: ${Gn.opacityDisabled};
480
480
  }
481
481
 
482
482
  .ft-button.ft-button--primary {
483
- background-color: ${Jn.backgroundColor};
484
- --ft-button-internal-color: ${Jn.color};
485
- ${St(Pi.color,Jn.rippleColor)};
483
+ background-color: ${Xn.backgroundColor};
484
+ --ft-button-internal-color: ${Xn.color};
485
+ ${St(Di.color,Xn.rippleColor)};
486
486
  }
487
487
 
488
488
  .ft-button:focus {
@@ -495,13 +495,13 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
495
495
  white-space: nowrap;
496
496
  text-overflow: ellipsis;
497
497
  display: block;
498
- margin: 0 ${qn.iconPadding};
499
- ${St(Nn.fontSize,"1em")};
500
- ${St(Nn.lineHeight,"var(--ft-button-internal-line-height)")};
498
+ margin: 0 ${Gn.iconPadding};
499
+ ${St(In.fontSize,"1em")};
500
+ ${St(In.lineHeight,"var(--ft-button-internal-line-height)")};
501
501
  }
502
502
 
503
503
  .ft-button--dense .ft-button--label {
504
- margin: 0 ${to};
504
+ margin: 0 ${eo};
505
505
  }
506
506
 
507
507
  .ft-button--label[hidden] {
@@ -514,13 +514,13 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
514
514
  }
515
515
 
516
516
  .ft-button--label[hidden] + ft-icon {
517
- margin: 0 calc(${qn.horizontalPadding} * -1);
518
- padding: 0 ${qn.verticalPadding};
517
+ margin: 0 calc(${Gn.horizontalPadding} * -1);
518
+ padding: 0 ${Gn.verticalPadding};
519
519
  }
520
520
 
521
521
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
522
- margin: 0 calc(${Qn} * -1);
523
- padding: 0 ${Yn};
522
+ margin: 0 calc(${to} * -1);
523
+ padding: 0 ${Qn};
524
524
  }
525
525
 
526
526
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -529,10 +529,10 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
529
529
  }
530
530
 
531
531
  ft-loader {
532
- ${St(Wn.size,qn.iconSize)};
533
- ${St(Wn.color,"var(--ft-button-internal-color)")};
532
+ ${St(Hn.size,Gn.iconSize)};
533
+ ${St(Hn.color,"var(--ft-button-internal-color)")};
534
534
  }
535
- `,Mt],io={textColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceHigh),backgroundColor:$t.extend("--ft-switch-background-color",kt.colorSurface),selectedTextColor:$t.extend("--ft-switch-selected-text-color",kt.colorPrimary),selectedBackgroundColor:$t.extend("--ft-switch-selected-background-color",kt.colorPrimary),borderColor:$t.extend("--ft-switch-border-color",kt.colorOutline),borderRadius:$t.extend("--ft-switch-border-radius",kt.borderRadiusL),fontSize:$t.extend("--ft-switch-font-size",Nn.fontSize),iconSize:$t.create("--ft-switch-icon-size","SIZE","24px"),iconColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceMedium),rippleColor:$t.extend("--ft-switch-ripple-color",kt.colorPrimary),outlineColor:$t.extend("--ft-switch-outline-color",kt.colorPrimary)},no={feedbackInputMinWidth:$t.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:$t.external(kt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:$t.extend("--ft-reader-feedback-send-feedback-color",kt.colorOnPrimary),sendFeedbackBackgroundColor:$t.extend("--ft-reader-feedback-send-feedback-background-color",kt.colorPrimary),filledRatingColor:$t.extend("--ft-reader-feedback-filled-rating-color",kt.colorPrimary),emptyRatingColor:$t.extend("--ft-reader-feedback-empty-rating-color",kt.colorOnSurfaceMedium),mainTitleFontSize:$t.external(Ji.fontSize,"Typography"),sectionTitleFontSize:$t.external(Xi.fontSize,"Typography")},oo=w`
535
+ `,Mt],no={textColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceHigh),backgroundColor:$t.extend("--ft-switch-background-color",kt.colorSurface),selectedTextColor:$t.extend("--ft-switch-selected-text-color",kt.colorPrimary),selectedBackgroundColor:$t.extend("--ft-switch-selected-background-color",kt.colorPrimary),borderColor:$t.extend("--ft-switch-border-color",kt.colorOutline),borderRadius:$t.extend("--ft-switch-border-radius",kt.borderRadiusL),fontSize:$t.extend("--ft-switch-font-size",In.fontSize),iconSize:$t.create("--ft-switch-icon-size","SIZE","24px"),iconColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceMedium),rippleColor:$t.extend("--ft-switch-ripple-color",kt.colorPrimary),outlineColor:$t.extend("--ft-switch-outline-color",kt.colorPrimary)},oo={feedbackInputMinWidth:$t.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:$t.external(kt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:$t.extend("--ft-reader-feedback-send-feedback-color",kt.colorOnPrimary),sendFeedbackBackgroundColor:$t.extend("--ft-reader-feedback-send-feedback-background-color",kt.colorPrimary),filledRatingColor:$t.extend("--ft-reader-feedback-filled-rating-color",kt.colorPrimary),emptyRatingColor:$t.extend("--ft-reader-feedback-empty-rating-color",kt.colorOnSurfaceMedium),mainTitleFontSize:$t.external(Xi.fontSize,"Typography"),sectionTitleFontSize:$t.external(Yi.fontSize,"Typography")},ro=w`
536
536
  .ft-reader-feedback {
537
537
  box-sizing: border-box;
538
538
  display: flex;
@@ -578,14 +578,14 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
578
578
  }
579
579
 
580
580
  .ft-reader-feedback--rating {
581
- ${St(qn.color,no.emptyRatingColor)};
582
- ${St(qn.rippleColor,no.filledRatingColor)};
583
- ${St(io.textColor,no.emptyRatingColor)};
584
- ${St(io.selectedTextColor,no.filledRatingColor)};
581
+ ${St(Gn.color,oo.emptyRatingColor)};
582
+ ${St(Gn.rippleColor,oo.filledRatingColor)};
583
+ ${St(no.textColor,oo.emptyRatingColor)};
584
+ ${St(no.selectedTextColor,oo.filledRatingColor)};
585
585
  }
586
586
 
587
587
  .ft-reader-feedback--rating .ft-reader-feedback--active {
588
- ${St(qn.color,no.filledRatingColor)};
588
+ ${St(Gn.color,oo.filledRatingColor)};
589
589
  }
590
590
 
591
591
  .ft-reader-feedback--feedback {
@@ -593,47 +593,47 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
593
593
  }
594
594
 
595
595
  .ft-reader-feedback--rating-date {
596
- color: ${no.ratedDateColor};
596
+ color: ${oo.ratedDateColor};
597
597
  }
598
598
 
599
599
  .ft-reader-feedback--feedback ft-text-area {
600
- min-width: ${no.feedbackInputMinWidth};
600
+ min-width: ${oo.feedbackInputMinWidth};
601
601
  }
602
602
 
603
603
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
604
604
  align-self: flex-end;
605
- ${St(qn.color,no.sendFeedbackColor)};
606
- ${St(qn.backgroundColor,no.sendFeedbackBackgroundColor)};
605
+ ${St(Gn.color,oo.sendFeedbackColor)};
606
+ ${St(Gn.backgroundColor,oo.sendFeedbackBackgroundColor)};
607
607
  }
608
608
  `
609
609
  /**
610
610
  * @license
611
611
  * Copyright 2020 Google LLC
612
612
  * SPDX-License-Identifier: BSD-3-Clause
613
- */,ro=Symbol.for(""),so=t=>{if((null==t?void 0:t.r)===ro)return null==t?void 0:t._$litStatic$},ao=t=>({_$litStatic$:t,r:ro}),lo=new Map,co=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=so(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=lo.get(t))&&(s.raw=s,lo.set(t,e=s)),i=a}return t(e,...i)})(tt);var uo;!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"}(uo||(uo={}));var ho=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fo extends It{constructor(){super(...arguments),this.variant=uo.body1}render(){return this.element?co`
614
- <${ao(this.element)}
613
+ */,so=Symbol.for(""),ao=t=>{if((null==t?void 0:t.r)===so)return null==t?void 0:t._$litStatic$},lo=t=>({_$litStatic$:t,r:so}),co=new Map,uo=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=ao(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=co.get(t))&&(s.raw=s,co.set(t,e=s)),i=a}return t(e,...i)})(tt);var ho;!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"}(ho||(ho={}));var fo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class po extends It{constructor(){super(...arguments),this.variant=ho.body1}render(){return this.element?uo`
614
+ <${lo(this.element)}
615
615
  class="ft-typography ft-typography--${this.variant}">
616
616
  <slot></slot>
617
- </${ao(this.element)}>
618
- `:co`
617
+ </${lo(this.element)}>
618
+ `:uo`
619
619
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
620
- `}}fo.styles=[In,Mn,Tn,An,Un,zn,Fn,Pn,Dn,Bn,Ln],ho([s()],fo.prototype,"element",void 0),ho([s()],fo.prototype,"variant",void 0),d("ft-typography")(fo);
620
+ `}}po.styles=[Mn,Tn,An,Un,zn,Fn,Pn,Dn,Bn,Ln,Wn],fo([s()],po.prototype,"element",void 0),fo([s()],po.prototype,"variant",void 0),d("ft-typography")(po);
621
621
  /**
622
622
  * @license
623
623
  * Copyright 2017 Google LLC
624
624
  * SPDX-License-Identifier: BSD-3-Clause
625
625
  */
626
- const po=1,vo=2,bo=t=>(...e)=>({_$litDirective$:t,values:e});class yo{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)}}
626
+ const vo=1,bo=2,yo=t=>(...e)=>({_$litDirective$:t,values:e});class go{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)}}
627
627
  /**
628
628
  * @license
629
629
  * Copyright 2017 Google LLC
630
630
  * SPDX-License-Identifier: BSD-3-Clause
631
- */class go extends yo{constructor(t){if(super(t),this.et=it,t.type!==vo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}go.directiveName="unsafeHTML",go.resultType=1;const mo=bo(go);var xo,wo,$o;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(xo||(xo={})),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;"}(wo||(wo={})),new Map([...["abw"].map((t=>[t,wo.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,wo.AUDIO])),...["avi"].map((t=>[t,wo.AVI])),...["chm","xhs"].map((t=>[t,wo.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,wo.CODE])),...["csv"].map((t=>[t,wo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wo.DITA])),...["epub"].map((t=>[t,wo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wo.EXCEL])),...["flac"].map((t=>[t,wo.FLAC])),...["gif"].map((t=>[t,wo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wo.GZIP])),...["html","htm","xhtml"].map((t=>[t,wo.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,wo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wo.JPEG])),...["json"].map((t=>[t,wo.JSON])),...["m4a","m4p"].map((t=>[t,wo.M4A])),...["mov","qt"].map((t=>[t,wo.MOV])),...["mp3"].map((t=>[t,wo.MP3])),...["mp4","m4v"].map((t=>[t,wo.MP4])),...["ogg","oga"].map((t=>[t,wo.OGG])),...["pdf","ps"].map((t=>[t,wo.PDF])),...["png"].map((t=>[t,wo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wo.POWERPOINT])),...["rar"].map((t=>[t,wo.RAR])),...["stp"].map((t=>[t,wo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wo.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,wo.VIDEO])),...["wav"].map((t=>[t,wo.WAV])),...["wma"].map((t=>[t,wo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wo.WORD])),...["xml","xsl","rdf"].map((t=>[t,wo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wo.YAML])),...["zip"].map((t=>[t,wo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($o||($o={}));var So=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ko extends It{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values($o).includes(this.variant)?this.variant:$o.fluid_topics,e=t!==$o.material||!!this.value;return tt`
631
+ */class mo extends go{constructor(t){if(super(t),this.et=it,t.type!==bo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mo.directiveName="unsafeHTML",mo.resultType=1;const xo=yo(mo);var wo,$o,So;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(wo||(wo={})),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;"}($o||($o={})),new Map([...["abw"].map((t=>[t,$o.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,$o.AUDIO])),...["avi"].map((t=>[t,$o.AVI])),...["chm","xhs"].map((t=>[t,$o.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,$o.CODE])),...["csv"].map((t=>[t,$o.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$o.DITA])),...["epub"].map((t=>[t,$o.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$o.EXCEL])),...["flac"].map((t=>[t,$o.FLAC])),...["gif"].map((t=>[t,$o.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$o.GZIP])),...["html","htm","xhtml"].map((t=>[t,$o.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,$o.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$o.JPEG])),...["json"].map((t=>[t,$o.JSON])),...["m4a","m4p"].map((t=>[t,$o.M4A])),...["mov","qt"].map((t=>[t,$o.MOV])),...["mp3"].map((t=>[t,$o.MP3])),...["mp4","m4v"].map((t=>[t,$o.MP4])),...["ogg","oga"].map((t=>[t,$o.OGG])),...["pdf","ps"].map((t=>[t,$o.PDF])),...["png"].map((t=>[t,$o.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$o.POWERPOINT])),...["rar"].map((t=>[t,$o.RAR])),...["stp"].map((t=>[t,$o.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$o.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,$o.VIDEO])),...["wav"].map((t=>[t,$o.WAV])),...["wma"].map((t=>[t,$o.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$o.WORD])),...["xml","xsl","rdf"].map((t=>[t,$o.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$o.YAML])),...["zip"].map((t=>[t,$o.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(So||(So={}));var ko=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Oo extends It{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(So).includes(this.variant)?this.variant:So.fluid_topics,e=t!==So.material||!!this.value;return tt`
632
632
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
633
- ${mo(this.resolvedIcon)}
633
+ ${xo(this.resolvedIcon)}
634
634
  <slot ?hidden=${e}></slot>
635
635
  </i>
636
- `}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 $o.file_format:this.resolvedIcon=null!==(t=wo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case $o.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=xo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ko.elementDefinitions={},ko.styles=Zn,So([s()],ko.prototype,"variant",void 0),So([s()],ko.prototype,"value",void 0),So([a()],ko.prototype,"resolvedIcon",void 0),So([c("slot")],ko.prototype,"slottedContent",void 0),d("ft-icon")(ko);const Oo=$t.create("--ft-tooltip-distance","SIZE","4px"),_o=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),Co=$t.create("--ft-tooltip-background-color","COLOR","#666666"),Eo=$t.create("--ft-tooltip-z-index","NUMBER","1"),jo=$t.external(kt.borderRadiusS,"Design system"),Ro=$t.create("--ft-tooltip-max-width","SIZE","150px"),No=w`
636
+ `}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 So.file_format:this.resolvedIcon=null!==(t=$o[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case So.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=wo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Oo.elementDefinitions={},Oo.styles=Vn,ko([s()],Oo.prototype,"variant",void 0),ko([s()],Oo.prototype,"value",void 0),ko([a()],Oo.prototype,"resolvedIcon",void 0),ko([c("slot")],Oo.prototype,"slottedContent",void 0),d("ft-icon")(Oo);const _o=$t.create("--ft-tooltip-distance","SIZE","4px"),Co=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),Eo=$t.create("--ft-tooltip-background-color","COLOR","#666666"),jo=$t.create("--ft-tooltip-z-index","NUMBER","1"),Ro=$t.external(kt.borderRadiusS,"Design system"),No=$t.create("--ft-tooltip-max-width","SIZE","150px"),Io=w`
637
637
  .ft-tooltip--container {
638
638
  display: block;
639
639
  position: relative;
@@ -649,23 +649,23 @@ const po=1,vo=2,bo=t=>(...e)=>({_$litDirective$:t,values:e});class yo{constructo
649
649
  box-sizing: border-box;
650
650
  overflow: hidden;
651
651
  width: max-content;
652
- max-width: ${Ro};
652
+ max-width: ${No};
653
653
  text-align: center;
654
- padding: ${Oo};
655
- z-index: ${Eo};
654
+ padding: ${_o};
655
+ z-index: ${jo};
656
656
  }
657
657
 
658
658
  .ft-tooltip--content {
659
659
  padding: 4px 8px;
660
- border-radius: ${jo};
661
- background-color: ${Co};
662
- color: ${_o};
660
+ border-radius: ${Ro};
661
+ background-color: ${Eo};
662
+ color: ${Co};
663
663
  top: -500px;
664
664
  left: -500px;
665
665
  position: relative;
666
666
  word-break: break-word;
667
667
  }
668
- `;var Io=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Mo extends It{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
668
+ `;var Mo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class To extends It{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
669
669
  <div part="container"
670
670
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
671
671
  @mouseenter=${this.onHover}
@@ -683,19 +683,19 @@ const po=1,vo=2,bo=t=>(...e)=>({_$litDirective$:t,values:e});class yo{constructo
683
683
  </div>
684
684
  </div>
685
685
  </div>
686
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${Ro})`}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())}}Mo.elementDefinitions={"ft-typography":fo},Mo.styles=No,Io([s()],Mo.prototype,"text",void 0),Io([s({type:Boolean})],Mo.prototype,"manual",void 0),Io([s({type:Boolean})],Mo.prototype,"inline",void 0),Io([s({type:Number})],Mo.prototype,"delay",void 0),Io([s()],Mo.prototype,"position",void 0),Io([
686
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${No})`}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())}}To.elementDefinitions={"ft-typography":po},To.styles=Io,Mo([s()],To.prototype,"text",void 0),Mo([s({type:Boolean})],To.prototype,"manual",void 0),Mo([s({type:Boolean})],To.prototype,"inline",void 0),Mo([s({type:Number})],To.prototype,"delay",void 0),Mo([s()],To.prototype,"position",void 0),Mo([
687
687
  /**
688
688
  * @license
689
689
  * Copyright 2017 Google LLC
690
690
  * SPDX-License-Identifier: BSD-3-Clause
691
691
  */
692
- function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?h(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Mo.prototype,"slotNodes",void 0),Io([c(".ft-tooltip--container")],Mo.prototype,"container",void 0),Io([c("slot")],Mo.prototype,"target",void 0),Io([c(".ft-tooltip")],Mo.prototype,"tooltip",void 0),Io([c(".ft-tooltip--content")],Mo.prototype,"tooltipContent",void 0),Io([a()],Mo.prototype,"visible",void 0),d("ft-tooltip")(Mo);
692
+ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?h(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],To.prototype,"slotNodes",void 0),Mo([c(".ft-tooltip--container")],To.prototype,"container",void 0),Mo([c("slot")],To.prototype,"target",void 0),Mo([c(".ft-tooltip")],To.prototype,"tooltip",void 0),Mo([c(".ft-tooltip--content")],To.prototype,"tooltipContent",void 0),Mo([a()],To.prototype,"visible",void 0),d("ft-tooltip")(To);
693
693
  /**
694
694
  * @license
695
695
  * Copyright 2018 Google LLC
696
696
  * SPDX-License-Identifier: BSD-3-Clause
697
697
  */
698
- const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}});var Ao=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Uo extends It{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
698
+ const Ao=yo(class extends go{constructor(t){var e;if(super(t),t.type!==vo||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}});var Uo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zo extends It{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
699
699
  <style>
700
700
  .ft-ripple .ft-ripple--effect,
701
701
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -708,11 +708,11 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
708
708
  top: ${this.originY}px;
709
709
  }
710
710
  </style>
711
- <div class="${To(t)}">
711
+ <div class="${Ao(t)}">
712
712
  <div class="ft-ripple--background"></div>
713
713
  <div class="ft-ripple--effect"></div>
714
714
  </div>
715
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Uo.elementDefinitions={},Uo.styles=Zi,Ao([s({type:Boolean})],Uo.prototype,"primary",void 0),Ao([s({type:Boolean})],Uo.prototype,"secondary",void 0),Ao([s({type:Boolean})],Uo.prototype,"unbounded",void 0),Ao([s({type:Boolean})],Uo.prototype,"activated",void 0),Ao([s({type:Boolean})],Uo.prototype,"selected",void 0),Ao([s({type:Boolean})],Uo.prototype,"disabled",void 0),Ao([a()],Uo.prototype,"hovered",void 0),Ao([a()],Uo.prototype,"focused",void 0),Ao([a()],Uo.prototype,"pressed",void 0),Ao([a()],Uo.prototype,"rippling",void 0),Ao([a()],Uo.prototype,"rippleSize",void 0),Ao([a()],Uo.prototype,"originX",void 0),Ao([a()],Uo.prototype,"originY",void 0),Ao([c(".ft-ripple")],Uo.prototype,"ripple",void 0),Ao([c(".ft-ripple--effect")],Uo.prototype,"rippleEffect",void 0),d("ft-ripple")(Uo);const zo={borderRadiusLeft:$t.extend("--ft-switch-option-border-radius-left",kt.borderRadiusL),borderRadiusRight:$t.extend("--ft-switch-option-border-radius-right",kt.borderRadiusL),borderWidthLeft:$t.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:$t.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:$t.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Fo=w`
715
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}zo.elementDefinitions={},zo.styles=Vi,Uo([s({type:Boolean})],zo.prototype,"primary",void 0),Uo([s({type:Boolean})],zo.prototype,"secondary",void 0),Uo([s({type:Boolean})],zo.prototype,"unbounded",void 0),Uo([s({type:Boolean})],zo.prototype,"activated",void 0),Uo([s({type:Boolean})],zo.prototype,"selected",void 0),Uo([s({type:Boolean})],zo.prototype,"disabled",void 0),Uo([a()],zo.prototype,"hovered",void 0),Uo([a()],zo.prototype,"focused",void 0),Uo([a()],zo.prototype,"pressed",void 0),Uo([a()],zo.prototype,"rippling",void 0),Uo([a()],zo.prototype,"rippleSize",void 0),Uo([a()],zo.prototype,"originX",void 0),Uo([a()],zo.prototype,"originY",void 0),Uo([c(".ft-ripple")],zo.prototype,"ripple",void 0),Uo([c(".ft-ripple--effect")],zo.prototype,"rippleEffect",void 0),d("ft-ripple")(zo);const Fo={borderRadiusLeft:$t.extend("--ft-switch-option-border-radius-left",kt.borderRadiusL),borderRadiusRight:$t.extend("--ft-switch-option-border-radius-right",kt.borderRadiusL),borderWidthLeft:$t.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:$t.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:$t.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Po=w`
716
716
  .ft-switch-option {
717
717
  position: relative;
718
718
  display: inline-block;
@@ -726,20 +726,20 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
726
726
  }
727
727
 
728
728
  .ft-switch-option--content {
729
- --ft-switch-option-internal-line-height: calc(${io.fontSize} + 2px);
730
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${io.iconSize});
729
+ --ft-switch-option-internal-line-height: calc(${no.fontSize} + 2px);
730
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${no.iconSize});
731
731
 
732
732
  border-style: solid;
733
- border-color: ${io.borderColor};
734
- border-width: ${zo.borderWidthVertical} ${zo.borderWidthRight} ${zo.borderWidthVertical} ${zo.borderWidthLeft};
735
- border-radius: ${zo.borderRadiusLeft} ${zo.borderRadiusRight} ${zo.borderRadiusRight} ${zo.borderRadiusLeft};
733
+ border-color: ${no.borderColor};
734
+ border-width: ${Fo.borderWidthVertical} ${Fo.borderWidthRight} ${Fo.borderWidthVertical} ${Fo.borderWidthLeft};
735
+ border-radius: ${Fo.borderRadiusLeft} ${Fo.borderRadiusRight} ${Fo.borderRadiusRight} ${Fo.borderRadiusLeft};
736
736
  display: flex;
737
737
  align-items: center;
738
738
  justify-content: center;
739
739
  overflow: hidden;
740
- ${St(Kn.size,io.iconSize)};
740
+ ${St(Zn.size,no.iconSize)};
741
741
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
742
- background-color: ${io.backgroundColor};
742
+ background-color: ${no.backgroundColor};
743
743
  -webkit-mask-image: radial-gradient(white, black);
744
744
  }
745
745
 
@@ -748,8 +748,8 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
748
748
  }
749
749
 
750
750
  .ft-switch-option--input:checked + .ft-switch-option--content:before {
751
- background-color: ${io.selectedBackgroundColor};
752
- border-radius: ${zo.borderRadiusLeft} ${zo.borderRadiusRight} ${zo.borderRadiusRight} ${zo.borderRadiusLeft};
751
+ background-color: ${no.selectedBackgroundColor};
752
+ border-radius: ${Fo.borderRadiusLeft} ${Fo.borderRadiusRight} ${Fo.borderRadiusRight} ${Fo.borderRadiusLeft};
753
753
  position: absolute;
754
754
  inset: 0;
755
755
  content: "";
@@ -758,18 +758,18 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
758
758
  }
759
759
 
760
760
  .ft-switch-option--label {
761
- color: ${io.textColor};
761
+ color: ${no.textColor};
762
762
  overflow: hidden;
763
763
  white-space: nowrap;
764
764
  text-overflow: ellipsis;
765
765
  display: block;
766
766
  margin: 0 8px;
767
- ${St(Nn.fontSize,io.fontSize)};
768
- ${St(Nn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
767
+ ${St(In.fontSize,no.fontSize)};
768
+ ${St(In.lineHeight,"var(--ft-switch-option-internal-content-height)")}
769
769
  }
770
770
 
771
771
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
772
- color: ${io.selectedTextColor};
772
+ color: ${no.selectedTextColor};
773
773
  }
774
774
 
775
775
  .ft-switch-option--label[hidden] {
@@ -777,7 +777,7 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
777
777
  }
778
778
 
779
779
  .ft-switch-option--ripple {
780
- ${St(Pi.color,io.rippleColor)};
780
+ ${St(Di.color,no.rippleColor)};
781
781
  }
782
782
 
783
783
  ft-icon, ft-ripple, ft-typography {
@@ -790,14 +790,14 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
790
790
 
791
791
  ft-icon {
792
792
  flex-shrink: 0;
793
- color: ${io.iconColor};
793
+ color: ${no.iconColor};
794
794
  }
795
795
 
796
796
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
797
- color: ${io.selectedTextColor};
797
+ color: ${no.selectedTextColor};
798
798
  }
799
- `;var Po=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Do extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Bo extends It{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Do)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(tt`
800
- <label part="label" for="input" class=${To(t)}
799
+ `;var Do=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bo extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Lo extends It{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Bo)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(tt`
800
+ <label part="label" for="input" class=${Ao(t)}
801
801
  @click=${this.onChange}>
802
802
  <input id="input" type="radio" class="ft-switch-option--input"
803
803
  .checked=${this.selected}>
@@ -805,7 +805,7 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
805
805
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
806
806
  <ft-typography part="text"
807
807
  variant="button"
808
- class="ft-switch-option--label ${Mi?"ft-safari-ellipsis-fix":""}"
808
+ class="ft-switch-option--label ${Ti?"ft-safari-ellipsis-fix":""}"
809
809
  ?hidden=${!this.hasTextContent()}>
810
810
  <slot @slotchange=${this.onSlotchange}></slot>
811
811
  </ft-typography>
@@ -820,19 +820,19 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
820
820
  </ft-tooltip>
821
821
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?tt`
822
822
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
823
- `:it}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()}}Bo.elementDefinitions={"ft-ripple":Uo,"ft-typography":fo,"ft-tooltip":Mo,"ft-icon":ko},Bo.styles=[Tt,Fo],Po([s()],Bo.prototype,"value",void 0),Po([s()],Bo.prototype,"icon",void 0),Po([s()],Bo.prototype,"iconVariant",void 0),Po([s()],Bo.prototype,"label",void 0),Po([s()],Bo.prototype,"tooltipPosition",void 0),Po([s({type:Boolean,reflect:!0})],Bo.prototype,"selected",void 0),Po([s({type:Boolean})],Bo.prototype,"trailingIcon",void 0),Po([s({type:Boolean})],Bo.prototype,"unselectable",void 0),Po([c(".ft-switch-option--content slot")],Bo.prototype,"slottedContent",void 0),Po([c(".ft-switch-option--input")],Bo.prototype,"input",void 0);var Lo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wo extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ho extends It{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}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Wo(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return tt`
824
- <div @keydown=${this.onKeyDown} tabindex="0" class="${To(t)}">
823
+ `:it}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()}}Lo.elementDefinitions={"ft-ripple":zo,"ft-typography":po,"ft-tooltip":To,"ft-icon":Oo},Lo.styles=[Tt,Po],Do([s()],Lo.prototype,"value",void 0),Do([s()],Lo.prototype,"icon",void 0),Do([s()],Lo.prototype,"iconVariant",void 0),Do([s()],Lo.prototype,"label",void 0),Do([s()],Lo.prototype,"tooltipPosition",void 0),Do([s({type:Boolean,reflect:!0})],Lo.prototype,"selected",void 0),Do([s({type:Boolean})],Lo.prototype,"trailingIcon",void 0),Do([s({type:Boolean})],Lo.prototype,"unselectable",void 0),Do([c(".ft-switch-option--content slot")],Lo.prototype,"slottedContent",void 0),Do([c(".ft-switch-option--input")],Lo.prototype,"input",void 0);var Wo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ho extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ko extends It{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}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ho(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return tt`
824
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Ao(t)}">
825
825
  <slot @slotchange=${this.onSlotchange}
826
826
  @option-change=${this.onOptionChange}></slot>
827
827
  </div>
828
- `}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 Bo&&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)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ho.elementDefinitions={},Ho.styles=w`
828
+ `}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 Lo&&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)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ko.elementDefinitions={},Ko.styles=w`
829
829
  :host {
830
830
  display: inline-block;
831
831
  }
832
832
 
833
833
  .ft-switch {
834
- border-radius: ${io.borderRadius};
835
- outline-color: ${io.outlineColor};
834
+ border-radius: ${no.borderRadius};
835
+ outline-color: ${no.outlineColor};
836
836
  }
837
837
 
838
838
  .ft-switch slot {
@@ -841,25 +841,25 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
841
841
  }
842
842
 
843
843
  .ft-switch slot::slotted(ft-switch-option) {
844
- ${St(zo.borderRadiusLeft,"0")};
845
- ${St(zo.borderRadiusRight,"0")};
846
- ${St(zo.borderWidthLeft,"0")};
844
+ ${St(Fo.borderRadiusLeft,"0")};
845
+ ${St(Fo.borderRadiusRight,"0")};
846
+ ${St(Fo.borderWidthLeft,"0")};
847
847
  }
848
848
 
849
849
  .ft-switch slot::slotted(ft-switch-option:first-child) {
850
- ${St(zo.borderRadiusLeft,io.borderRadius)};
851
- ${St(zo.borderWidthLeft,"1px")};
850
+ ${St(Fo.borderRadiusLeft,no.borderRadius)};
851
+ ${St(Fo.borderWidthLeft,"1px")};
852
852
  }
853
853
 
854
854
  .ft-switch slot::slotted(ft-switch-option:last-child) {
855
- ${St(zo.borderRadiusRight,io.borderRadius)};
855
+ ${St(Fo.borderRadiusRight,no.borderRadius)};
856
856
  }
857
857
 
858
858
  .ft-switch--dense slot::slotted(ft-switch-option) {
859
859
  --ft-switch-internal-vertical-padding: 2px;
860
860
  --ft-switch-internal-horizontal-padding: 4px;
861
861
  }
862
- `,Lo([s({type:Boolean})],Ho.prototype,"dense",void 0),Lo([s({type:Boolean})],Ho.prototype,"unselectable",void 0),Lo([c(".ft-switch slot")],Ho.prototype,"slottedContent",void 0),Lo([a()],Ho.prototype,"selectedOption",void 0),Lo([c(".ft-switch")],Ho.prototype,"ftSwitchDiv",void 0),d("ft-switch")(Ho),d("ft-switch-option")(Bo);const Ko=$t.external(kt.colorOutline,"Design system"),Zo=$t.external(kt.colorOnSurfaceMedium,"Design system"),Vo=w`
862
+ `,Wo([s({type:Boolean})],Ko.prototype,"dense",void 0),Wo([s({type:Boolean})],Ko.prototype,"unselectable",void 0),Wo([c(".ft-switch slot")],Ko.prototype,"slottedContent",void 0),Wo([a()],Ko.prototype,"selectedOption",void 0),Wo([c(".ft-switch")],Ko.prototype,"ftSwitchDiv",void 0),d("ft-switch")(Ko),d("ft-switch-option")(Lo);const Zo=$t.external(kt.colorOutline,"Design system"),Vo=$t.external(kt.colorOnSurfaceMedium,"Design system"),qo=w`
863
863
  :host {
864
864
  display: block;
865
865
  }
@@ -870,14 +870,14 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
870
870
 
871
871
  ft-icon {
872
872
  transform: rotate(-45deg);
873
- color: ${Ko};
873
+ color: ${Zo};
874
874
  }
875
875
 
876
876
  .ft-resizer--dragging ft-icon,
877
877
  .ft-resizer:hover ft-icon {
878
- color: ${Zo};
878
+ color: ${Vo};
879
879
  }
880
- `;var qo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Go extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Jo extends It{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$o.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 tt`
880
+ `;var Go=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Jo extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Xo extends It{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=So.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 tt`
881
881
  <style>
882
882
  .ft-resizer {
883
883
  cursor: ${x(this.cursor)}
@@ -888,25 +888,25 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
888
888
  @touchstart=${this.initDragFromTouch}>
889
889
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
890
890
  </div>
891
- `}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,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Go(i,n))}}Jo.elementDefinitions={"ft-icon":ko},Jo.styles=[Mt,Vo],qo([s({type:Number})],Jo.prototype,"initialWidth",void 0),qo([s({type:Number})],Jo.prototype,"initialHeight",void 0),qo([s()],Jo.prototype,"icon",void 0),qo([s()],Jo.prototype,"iconVariant",void 0),qo([s()],Jo.prototype,"cursor",void 0),qo([a()],Jo.prototype,"dragging",void 0),d("ft-resizer")(Jo);const Xo={fontSize:$t.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:$t.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:$t.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:$t.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:$t.create("--ft-input-label-max-width","SIZE","100%"),borderColor:$t.extend("--ft-input-label-border-color",kt.colorOutline),textColor:$t.extend("--ft-input-label-text-color",kt.colorOnSurfaceMedium),disabledTextColor:$t.extend("--ft-input-label-disabled-text-color",kt.colorOnSurfaceDisabled),colorSurface:$t.external(kt.colorSurface,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},Yo=w`
891
+ `}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,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Jo(i,n))}}Xo.elementDefinitions={"ft-icon":Oo},Xo.styles=[Mt,qo],Go([s({type:Number})],Xo.prototype,"initialWidth",void 0),Go([s({type:Number})],Xo.prototype,"initialHeight",void 0),Go([s()],Xo.prototype,"icon",void 0),Go([s()],Xo.prototype,"iconVariant",void 0),Go([s()],Xo.prototype,"cursor",void 0),Go([a()],Xo.prototype,"dragging",void 0),d("ft-resizer")(Xo);const Yo={fontSize:$t.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:$t.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:$t.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:$t.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:$t.create("--ft-input-label-max-width","SIZE","100%"),borderColor:$t.extend("--ft-input-label-border-color",kt.colorOutline),textColor:$t.extend("--ft-input-label-text-color",kt.colorOnSurfaceMedium),disabledTextColor:$t.extend("--ft-input-label-disabled-text-color",kt.colorOnSurfaceDisabled),colorSurface:$t.external(kt.colorSurface,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},Qo=w`
892
892
  .ft-input-label {
893
893
  position: absolute;
894
894
  inset: 0;
895
895
  display: flex;
896
- background-color: ${Xo.colorSurface};
897
- border-radius: ${Xo.borderRadiusS} ${Xo.borderRadiusS} 0 0;
896
+ background-color: ${Yo.colorSurface};
897
+ border-radius: ${Yo.borderRadiusS} ${Yo.borderRadiusS} 0 0;
898
898
  }
899
899
 
900
900
  .ft-input-label--outlined {
901
- border-radius: ${Xo.borderRadiusS};
901
+ border-radius: ${Yo.borderRadiusS};
902
902
  }
903
903
 
904
904
  .ft-input-label {
905
- border-color: ${Xo.borderColor};
905
+ border-color: ${Yo.borderColor};
906
906
  }
907
907
 
908
908
  .ft-input-label.ft-input-label--in-error {
909
- border-color: ${Xo.colorError}
909
+ border-color: ${Yo.colorError}
910
910
  }
911
911
 
912
912
  .ft-input-label:before,
@@ -919,7 +919,7 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
919
919
  }
920
920
 
921
921
  .ft-input-label:before {
922
- width: calc(${Xo.horizontalSpacing} - 4px);
922
+ width: calc(${Yo.horizontalSpacing} - 4px);
923
923
  flex-shrink: 0;
924
924
  }
925
925
 
@@ -935,20 +935,20 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
935
935
  border-bottom-width: 1px;
936
936
  border-bottom-style: solid;
937
937
  border-color: inherit;
938
- color: ${Xo.textColor};
938
+ color: ${Yo.textColor};
939
939
  transition: font-size 250ms, line-height 250ms, color 250ms;
940
- max-width: calc(${Xo.labelMaxWidth} - 2 * (${Xo.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
940
+ max-width: calc(${Yo.labelMaxWidth} - 2 * (${Yo.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
941
941
  text-overflow: ellipsis;
942
- ${St(gn.fontSize,Xo.fontSize)};
943
- ${St(gn.lineHeight,Xo.fontSize)};
942
+ ${St(mn.fontSize,Yo.fontSize)};
943
+ ${St(mn.lineHeight,Yo.fontSize)};
944
944
  }
945
945
 
946
946
  .ft-input-label--in-error .ft-input-label--text {
947
- color: ${Xo.colorError}
947
+ color: ${Yo.colorError}
948
948
  }
949
949
 
950
950
  .ft-input-label--disabled .ft-input-label--text {
951
- color: ${Xo.disabledTextColor};
951
+ color: ${Yo.disabledTextColor};
952
952
  }
953
953
 
954
954
  .ft-input-label--hidden-text {
@@ -965,19 +965,19 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
965
965
  overflow: hidden;
966
966
  white-space: nowrap;
967
967
  text-overflow: ellipsis;
968
- padding: ${Xo.verticalSpacing} 4px;
969
- margin: calc(${Xo.verticalSpacing} * -1) 0;
968
+ padding: ${Yo.verticalSpacing} 4px;
969
+ margin: calc(${Yo.verticalSpacing} * -1) 0;
970
970
  max-width: 100%;
971
971
  box-sizing: border-box;
972
972
  }
973
973
 
974
974
  .ft-input-label--raised .ft-input-label--text {
975
- ${St(gn.fontSize,Xo.raisedFontSize)};
976
- ${St(gn.lineHeight,Xo.raisedFontSize)};
975
+ ${St(mn.fontSize,Yo.raisedFontSize)};
976
+ ${St(mn.lineHeight,Yo.raisedFontSize)};
977
977
  }
978
978
 
979
979
  .ft-input-label--raised .ft-input-label--floating-text {
980
- top: ${Xo.verticalSpacing};
980
+ top: ${Yo.verticalSpacing};
981
981
  }
982
982
 
983
983
  .ft-input-label--outlined .ft-input-label--text,
@@ -990,28 +990,28 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
990
990
  .ft-input-label--outlined:before {
991
991
  border-left-width: 1px;
992
992
  border-left-style: solid;
993
- border-radius: ${Xo.borderRadiusS} 0 0 ${Xo.borderRadiusS};
993
+ border-radius: ${Yo.borderRadiusS} 0 0 ${Yo.borderRadiusS};
994
994
  }
995
995
 
996
996
  .ft-input-label--outlined:after {
997
997
  border-right-width: 1px;
998
998
  border-right-style: solid;
999
- border-radius: 0 ${Xo.borderRadiusS} ${Xo.borderRadiusS} 0;
999
+ border-radius: 0 ${Yo.borderRadiusS} ${Yo.borderRadiusS} 0;
1000
1000
  }
1001
1001
 
1002
1002
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1003
1003
  padding: 2px 4px;
1004
- z-index: ${Xo.raisedZIndex};
1005
- background-color: ${Xo.colorSurface};
1006
- border-radius: ${Xo.borderRadiusS};
1004
+ z-index: ${Yo.raisedZIndex};
1005
+ background-color: ${Yo.colorSurface};
1006
+ border-radius: ${Yo.borderRadiusS};
1007
1007
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1008
1008
  }
1009
1009
 
1010
1010
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1011
1011
  border-top: none;
1012
1012
  }
1013
- `;var Qo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class tr extends It{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 tt`
1014
- <div class="${To(t)}">
1013
+ `;var tr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class er extends It{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 tt`
1014
+ <div class="${Ao(t)}">
1015
1015
  ${this.text?tt`
1016
1016
  <div class="ft-input-label--text ft-typography--caption">
1017
1017
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1019,7 +1019,7 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1019
1019
  </div>
1020
1020
  `:null}
1021
1021
  </div>
1022
- `}}tr.elementDefinitions={},tr.styles=[Fn,Yo],Qo([s({type:String})],tr.prototype,"text",void 0),Qo([s({type:Boolean})],tr.prototype,"raised",void 0),Qo([s({type:Boolean})],tr.prototype,"outlined",void 0),Qo([s({type:Boolean})],tr.prototype,"disabled",void 0),Qo([s({type:Boolean})],tr.prototype,"error",void 0),d("ft-input-label")(tr);const er={fontSize:$t.create("--ft-text-area-font-size","SIZE","14px"),labelSize:$t.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:$t.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:$t.extend("--ft-text-area-helper-color",kt.colorOnSurfaceMedium),colorPrimary:$t.external(kt.colorPrimary,"Design system"),colorOnSurface:$t.external(kt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:$t.external(kt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},ir=w`
1022
+ `}}er.elementDefinitions={},er.styles=[Pn,Qo],tr([s({type:String})],er.prototype,"text",void 0),tr([s({type:Boolean})],er.prototype,"raised",void 0),tr([s({type:Boolean})],er.prototype,"outlined",void 0),tr([s({type:Boolean})],er.prototype,"disabled",void 0),tr([s({type:Boolean})],er.prototype,"error",void 0),d("ft-input-label")(er);const ir={fontSize:$t.create("--ft-text-area-font-size","SIZE","14px"),labelSize:$t.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:$t.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:$t.extend("--ft-text-area-helper-color",kt.colorOnSurfaceMedium),colorPrimary:$t.external(kt.colorPrimary,"Design system"),colorOnSurface:$t.external(kt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:$t.external(kt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},nr=w`
1023
1023
  *:focus {
1024
1024
  outline: none;
1025
1025
  }
@@ -1031,10 +1031,10 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1031
1031
  }
1032
1032
 
1033
1033
  ft-input-label {
1034
- ${St(Xo.fontSize,er.fontSize)};
1035
- ${St(Xo.raisedFontSize,er.labelSize)};
1036
- ${St(Xo.verticalSpacing,er.verticalSpacing)};
1037
- ${St(Xo.horizontalSpacing,er.horizontalSpacing)};
1034
+ ${St(Yo.fontSize,ir.fontSize)};
1035
+ ${St(Yo.raisedFontSize,ir.labelSize)};
1036
+ ${St(Yo.verticalSpacing,ir.verticalSpacing)};
1037
+ ${St(Yo.horizontalSpacing,ir.horizontalSpacing)};
1038
1038
  }
1039
1039
 
1040
1040
  .ft-text-area--main-panel {
@@ -1052,8 +1052,8 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1052
1052
  }
1053
1053
 
1054
1054
  .ft-text-area--input-panel ft-ripple {
1055
- ${St(Pi.opacityContentOnSurfaceHover,"0.08")};
1056
- ${St(Pi.opacityContentOnSurfacePressed,"0.04")};
1055
+ ${St(Di.opacityContentOnSurfaceHover,"0.08")};
1056
+ ${St(Di.opacityContentOnSurfacePressed,"0.04")};
1057
1057
  }
1058
1058
 
1059
1059
  .ft-text-area--input {
@@ -1065,12 +1065,12 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1065
1065
  align-self: stretch;
1066
1066
  resize: none;
1067
1067
 
1068
- ${St(hn.fontSize,er.fontSize)};
1069
- ${St(hn.lineHeight,er.fontSize)};
1070
- color: ${er.colorOnSurface};
1068
+ ${St(fn.fontSize,ir.fontSize)};
1069
+ ${St(fn.lineHeight,ir.fontSize)};
1070
+ color: ${ir.colorOnSurface};
1071
1071
 
1072
- padding: 0 ${er.horizontalSpacing};
1073
- margin: calc(${er.verticalSpacing} + ${er.labelSize} / 2) 0 ${er.verticalSpacing} 0;
1072
+ padding: 0 ${ir.horizontalSpacing};
1073
+ margin: calc(${ir.verticalSpacing} + ${ir.labelSize} / 2) 0 ${ir.verticalSpacing} 0;
1074
1074
 
1075
1075
  border: none;
1076
1076
  background: none;
@@ -1079,7 +1079,7 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1079
1079
  }
1080
1080
 
1081
1081
  .ft-text-area--disabled .ft-text-area--input {
1082
- color: ${er.colorOnSurfaceDisabled};
1082
+ color: ${ir.colorOnSurfaceDisabled};
1083
1083
  }
1084
1084
 
1085
1085
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1087,32 +1087,32 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1087
1087
  }
1088
1088
 
1089
1089
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1090
- ${St(Xo.borderColor,er.colorPrimary)};
1091
- ${St(Xo.textColor,er.colorPrimary)};
1090
+ ${St(Yo.borderColor,ir.colorPrimary)};
1091
+ ${St(Yo.textColor,ir.colorPrimary)};
1092
1092
  }
1093
1093
 
1094
1094
  .ft-text-area--filled .ft-text-area--input-panel {
1095
- border-radius: ${er.borderRadiusS} ${er.borderRadiusS} 0 0;
1095
+ border-radius: ${ir.borderRadiusS} ${ir.borderRadiusS} 0 0;
1096
1096
  }
1097
1097
 
1098
1098
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1099
1099
  align-self: stretch;
1100
- margin-bottom: ${er.verticalSpacing};
1101
- margin-top: calc(${er.labelSize} + 2 * ${er.verticalSpacing});
1100
+ margin-bottom: ${ir.verticalSpacing};
1101
+ margin-top: calc(${ir.labelSize} + 2 * ${ir.verticalSpacing});
1102
1102
  }
1103
1103
 
1104
1104
  .ft-text-area--outlined .ft-text-area--input-panel {
1105
- border-radius: ${er.borderRadiusS};
1105
+ border-radius: ${ir.borderRadiusS};
1106
1106
  }
1107
1107
 
1108
1108
  .ft-text-area--helper-text {
1109
- padding: 0 12px 0 ${er.horizontalSpacing};
1110
- color: ${er.helperColor};
1109
+ padding: 0 12px 0 ${ir.horizontalSpacing};
1110
+ color: ${ir.helperColor};
1111
1111
  }
1112
1112
 
1113
1113
  .ft-text-area--in-error .ft-text-area--input,
1114
1114
  .ft-text-area--in-error .ft-text-area--helper-text {
1115
- color: ${er.colorError};
1115
+ color: ${ir.colorError};
1116
1116
  }
1117
1117
 
1118
1118
  ft-resizer {
@@ -1120,13 +1120,13 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1120
1120
  right: 0;
1121
1121
  bottom: 0;
1122
1122
  }
1123
- `;var nr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class or extends It{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 tt`
1123
+ `;var or=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class rr extends It{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 tt`
1124
1124
  <style>
1125
1125
  .ft-text-area--main-panel {
1126
- height: calc(4 * ${er.verticalSpacing} + ${er.labelSize} + ${er.fontSize} + ${this.height}px);
1126
+ height: calc(4 * ${ir.verticalSpacing} + ${ir.labelSize} + ${ir.fontSize} + ${this.height}px);
1127
1127
  }
1128
1128
  </style>
1129
- <div class="${To(t)}">
1129
+ <div class="${Ao(t)}">
1130
1130
  <div class="ft-text-area--main-panel">
1131
1131
  <ft-input-label text="${this.label}"
1132
1132
  ?disabled=${this.disabled}
@@ -1158,34 +1158,34 @@ const To=bo(class extends yo{constructor(t){var e;if(super(t),t.type!==po||"clas
1158
1158
  ${this.helper}
1159
1159
  </ft-typography>`:void 0}
1160
1160
  </div>
1161
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}or.elementDefinitions={"ft-input-label":tr,"ft-resizer":Jo,"ft-ripple":Uo,"ft-typography":fo},or.styles=[Un,ir],nr([s({type:String})],or.prototype,"label",void 0),nr([s({reflect:!0})],or.prototype,"value",void 0),nr([s({type:String})],or.prototype,"helper",void 0),nr([s({type:Boolean})],or.prototype,"outlined",void 0),nr([s({type:Boolean})],or.prototype,"disabled",void 0),nr([s({type:Boolean})],or.prototype,"error",void 0),nr([s({type:Number,reflect:!0})],or.prototype,"height",void 0),nr([c("textarea")],or.prototype,"textarea",void 0),nr([a()],or.prototype,"focused",void 0),d("ft-text-area")(or);
1161
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}rr.elementDefinitions={"ft-input-label":er,"ft-resizer":Xo,"ft-ripple":zo,"ft-typography":po},rr.styles=[zn,nr],or([s({type:String})],rr.prototype,"label",void 0),or([s({reflect:!0})],rr.prototype,"value",void 0),or([s({type:String})],rr.prototype,"helper",void 0),or([s({type:Boolean})],rr.prototype,"outlined",void 0),or([s({type:Boolean})],rr.prototype,"disabled",void 0),or([s({type:Boolean})],rr.prototype,"error",void 0),or([s({type:Number,reflect:!0})],rr.prototype,"height",void 0),or([c("textarea")],rr.prototype,"textarea",void 0),or([a()],rr.prototype,"focused",void 0),d("ft-text-area")(rr);
1162
1162
  /**
1163
1163
  * @license
1164
1164
  * Copyright 2020 Google LLC
1165
1165
  * SPDX-License-Identifier: BSD-3-Clause
1166
1166
  */
1167
- const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(sr(),r),n=o.insertBefore(sr(),r);i=new rr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},lr=(t,e,i=t)=>(t._$AI(e,i),t),cr={},ur=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},hr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},fr=bo(class extends yo{constructor(t){if(super(t),t.type!==vo)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,h,f=0,d=r.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[p])c[p]=lr(r[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=lr(r[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=lr(r[f],s[v]),ar(t,c[v+1],r[f]),f++,v--;else if(l[d]===a[p])c[p]=lr(r[d],s[p]),ar(t,r[f],r[d]),d--,p++;else if(void 0===u&&(u=hr(a,p,v),h=hr(l,f,d)),u.has(l[f]))if(u.has(l[d])){const e=h.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=ar(t,r[f]);lr(e,s[p]),c[p]=e}else c[p]=lr(i,s[p]),ar(t,r[f],i),r[e]=null;p++}else ur(r[d]),d--;else ur(r[f]),f++;for(;p<=v;){const e=ar(t,c[v+1]);lr(e,s[p]),c[p++]=e}for(;f<=d;){const t=r[f++];null!==t&&ur(t)}return this.ht=a,((t,e=cr)=>{t._$AH=e})(t,c),et}});
1167
+ const{I:sr}=bt,ar=()=>document.createComment(""),lr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(ar(),r),n=o.insertBefore(ar(),r);i=new sr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},cr=(t,e,i=t)=>(t._$AI(e,i),t),ur={},hr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},fr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},dr=yo(class extends go{constructor(t){if(super(t),t.type!==bo)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,h,f=0,d=r.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[p])c[p]=cr(r[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=cr(r[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=cr(r[f],s[v]),lr(t,c[v+1],r[f]),f++,v--;else if(l[d]===a[p])c[p]=cr(r[d],s[p]),lr(t,r[f],r[d]),d--,p++;else if(void 0===u&&(u=fr(a,p,v),h=fr(l,f,d)),u.has(l[f]))if(u.has(l[d])){const e=h.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=lr(t,r[f]);cr(e,s[p]),c[p]=e}else c[p]=cr(i,s[p]),lr(t,r[f],i),r[e]=null;p++}else hr(r[d]),d--;else hr(r[f]),f++;for(;p<=v;){const e=lr(t,c[v+1]);cr(e,s[p]),c[p++]=e}for(;f<=d;){const t=r[f++];null!==t&&hr(t)}return this.ht=a,((t,e=ur)=>{t._$AH=e})(t,c),et}});
1168
1168
  /**
1169
1169
  * @license
1170
1170
  * Copyright 2017 Google LLC
1171
1171
  * SPDX-License-Identifier: BSD-3-Clause
1172
- */class dr extends It{render(){return tt`
1172
+ */class pr extends It{render(){return tt`
1173
1173
  <div class="ft-loader">
1174
1174
  <div></div>
1175
1175
  <div></div>
1176
1176
  <div></div>
1177
1177
  <div></div>
1178
1178
  </div>
1179
- `}}dr.styles=Hn,d("ft-loader")(dr);var pr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vr extends It{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
1179
+ `}}pr.styles=Kn,d("ft-loader")(pr);var vr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class br extends It{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
1180
1180
  <button part="button"
1181
- class="${To(t)}"
1181
+ class="${Ao(t)}"
1182
1182
  aria-label="${this.getLabel()}"
1183
1183
  ?disabled=${this.isDisabled()}>
1184
1184
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1185
1185
  <ft-typography part="label"
1186
1186
  variant="button"
1187
1187
  element="span"
1188
- class="ft-button--label ${Mi?"ft-safari-ellipsis-fix":""}"
1188
+ class="ft-button--label ${Ti?"ft-safari-ellipsis-fix":""}"
1189
1189
  ?hidden=${!this.hasTextContent()}>
1190
1190
  <slot @slotchange=${this.onSlotchange}></slot>
1191
1191
  </ft-typography>
@@ -1199,13 +1199,13 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1199
1199
  </ft-tooltip>
1200
1200
  `:t}resolveIcon(){return this.loading?tt`
1201
1201
  <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
1202
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}vr.elementDefinitions={"ft-ripple":Uo,"ft-tooltip":Mo,"ft-typography":fo,"ft-icon":ko,"ft-loader":dr},vr.styles=[Tt,eo],pr([s({type:String,reflect:!0})],vr.prototype,"role",void 0),pr([s({type:Boolean})],vr.prototype,"primary",void 0),pr([s({type:Boolean})],vr.prototype,"outlined",void 0),pr([s({type:Boolean})],vr.prototype,"disabled",void 0),pr([s({type:Boolean})],vr.prototype,"dense",void 0),pr([s({type:Boolean})],vr.prototype,"round",void 0),pr([s()],vr.prototype,"label",void 0),pr([s()],vr.prototype,"icon",void 0),pr([s()],vr.prototype,"iconVariant",void 0),pr([s({type:Boolean})],vr.prototype,"trailingIcon",void 0),pr([s({type:Boolean})],vr.prototype,"loading",void 0),pr([s()],vr.prototype,"tooltipPosition",void 0),pr([s({type:Boolean})],vr.prototype,"hideTooltip",void 0),pr([s({type:Boolean})],vr.prototype,"forceTooltip",void 0),pr([c(".ft-button")],vr.prototype,"button",void 0),pr([c(".ft-button--label slot")],vr.prototype,"slottedContent",void 0),d("ft-button")(vr);const br=w`
1203
- `,yr=w`
1204
- `,gr=ji.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 mr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=gr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?mr.build(t):null!==(e=mr.API)&&void 0!==e?e:mr.API=mr.build()}static await(t){return new Promise((e=>{let i=mr.get(t);if(i)e(i);else{const n=gr.subscribe((()=>{i=mr.get(t),i&&(n(),e(i))}))}}))}}var xr;const wr=Symbol("clearAfterUnitTest");class $r{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[xr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=gr.getState().uiLocale,gr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=gr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new At(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}xr=wr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new $r((async(t,e)=>(await mr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new $r((async(t,e)=>(await mr.await()).getCustomMessageContext(t,e))));const Sr=window.FluidTopicsI18nService,kr=window.FluidTopicsCustomI18nService;var Or=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _r extends It{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=()=>mr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
1202
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}br.elementDefinitions={"ft-ripple":zo,"ft-tooltip":To,"ft-typography":po,"ft-icon":Oo,"ft-loader":pr},br.styles=[Tt,io],vr([s({type:String,reflect:!0})],br.prototype,"role",void 0),vr([s({type:Boolean})],br.prototype,"primary",void 0),vr([s({type:Boolean})],br.prototype,"outlined",void 0),vr([s({type:Boolean})],br.prototype,"disabled",void 0),vr([s({type:Boolean})],br.prototype,"dense",void 0),vr([s({type:Boolean})],br.prototype,"round",void 0),vr([s()],br.prototype,"label",void 0),vr([s()],br.prototype,"icon",void 0),vr([s()],br.prototype,"iconVariant",void 0),vr([s({type:Boolean})],br.prototype,"trailingIcon",void 0),vr([s({type:Boolean})],br.prototype,"loading",void 0),vr([s()],br.prototype,"tooltipPosition",void 0),vr([s({type:Boolean})],br.prototype,"hideTooltip",void 0),vr([s({type:Boolean})],br.prototype,"forceTooltip",void 0),vr([c(".ft-button")],br.prototype,"button",void 0),vr([c(".ft-button--label slot")],br.prototype,"slottedContent",void 0),d("ft-button")(br);const yr=w`
1203
+ `,gr=w`
1204
+ `,mr=Ri.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class xr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=mr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?xr.build(t):null!==(e=xr.API)&&void 0!==e?e:xr.API=xr.build()}static await(t){return new Promise((e=>{let i=xr.get(t);if(i)e(i);else{const n=mr.subscribe((()=>{i=xr.get(t),i&&(n(),e(i))}))}}))}}var wr;const $r=Symbol("clearAfterUnitTest");class Sr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[wr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=mr.getState().uiLocale,mr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=mr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new At(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}wr=$r,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Sr((async(t,e)=>(await xr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Sr((async(t,e)=>(await xr.await()).getCustomMessageContext(t,e))));const kr=window.FluidTopicsI18nService,Or=window.FluidTopicsCustomI18nService;var _r=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Cr extends It{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>xr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
1205
1205
  <slot></slot>
1206
- `}updated(t){super.updated(t),t.has("baseUrl")&&gr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&gr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&gr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&gr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&gr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&gr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&gr.actions.setSession(this.session),t.has("availableUiLocales")&&gr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Sr.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()))))}}_r.elementDefinitions={},_r.styles=yr,Or([s()],_r.prototype,"baseUrl",void 0),Or([s()],_r.prototype,"apiIntegrationIdentifier",void 0),Or([s()],_r.prototype,"uiLocale",void 0),Or([p([])],_r.prototype,"availableUiLocales",void 0),Or([s({type:Boolean})],_r.prototype,"editorMode",void 0),Or([s({type:Boolean})],_r.prototype,"noCustom",void 0),Or([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],_r.prototype,"noCustomComponent",void 0),Or([s({type:Boolean})],_r.prototype,"withManualResources",void 0),Or([p([])],_r.prototype,"messageContexts",void 0),Or([p(void 0)],_r.prototype,"session",void 0),Or([s({type:Object})],_r.prototype,"apiProvider",void 0),d("ft-app-context")(_r);var Cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Er=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function Rr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?kr:Sr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[Er])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[Er])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Er]&&new Set([...this[Er].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[jr].has(t)||this[jr].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[jr].forEach((t=>t())),this[jr].clear()}}return e=jr,Cr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Nr extends(Rr(It)){}class Ir extends(Rr(Ei)){}var Mr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Tr extends Ir{constructor(){super(),this.editorMode=!1,this.addStore(gr)}render(){return this.key&&this.context?tt`
1206
+ `}updated(t){super.updated(t),t.has("baseUrl")&&mr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&mr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&mr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&mr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&mr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&mr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&mr.actions.setSession(this.session),t.has("availableUiLocales")&&mr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>kr.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()))))}}Cr.elementDefinitions={},Cr.styles=gr,_r([s()],Cr.prototype,"baseUrl",void 0),_r([s()],Cr.prototype,"apiIntegrationIdentifier",void 0),_r([s()],Cr.prototype,"uiLocale",void 0),_r([p([])],Cr.prototype,"availableUiLocales",void 0),_r([s({type:Boolean})],Cr.prototype,"editorMode",void 0),_r([s({type:Boolean})],Cr.prototype,"noCustom",void 0),_r([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Cr.prototype,"noCustomComponent",void 0),_r([s({type:Boolean})],Cr.prototype,"withManualResources",void 0),_r([p([])],Cr.prototype,"messageContexts",void 0),_r([p(void 0)],Cr.prototype,"session",void 0),_r([s({type:Object})],Cr.prototype,"apiProvider",void 0),d("ft-app-context")(Cr);var Er=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const jr=Symbol("i18nProperties"),Rr=Symbol("i18nUnsubs");function Nr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Or:kr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[jr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[jr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[jr]&&new Set([...this[jr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Rr].has(t)||this[Rr].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[Rr].forEach((t=>t())),this[Rr].clear()}}return e=Rr,Er([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ir extends(Nr(It)){}class Mr extends(Nr(Ei)){}var Tr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ar extends Mr{constructor(){super(),this.editorMode=!1,this.addStore(mr)}render(){return this.key&&this.context?tt`
1207
1207
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
1208
- `:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Tr.elementDefinitions={},Tr.styles=br,Mr([Oi()],Tr.prototype,"editorMode",void 0),Mr([s()],Tr.prototype,"context",void 0),Mr([s()],Tr.prototype,"key",void 0),Mr([p([])],Tr.prototype,"args",void 0),Mr([s()],Tr.prototype,"defaultMessage",void 0);class Ar{static build(t){return new Ar(t)}static fromGwt(t){return new Ar(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)=>Sr.resolveMessage(this.name,e,...t)})}}const Ur=t=>(e,i)=>{var n,o;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(n=t.key)&&void 0!==n?n:i};e[Er]=null!==(o=e[Er])&&void 0!==o?o:new Map,e[Er].set(i,r)};d("ft-i18n")(Tr);const zr=Ar.build("integratedFeedbackComponent"),Fr={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?",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"},Pr=Ar.build("inDesignerFeedbackComponent"),Dr={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."};var Br=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lr extends Nr{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,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(zr,Fr),this.addI18nContext(Pr,Dr)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("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?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?tt`
1208
+ `:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ar.elementDefinitions={},Ar.styles=yr,Tr([Oi()],Ar.prototype,"editorMode",void 0),Tr([s()],Ar.prototype,"context",void 0),Tr([s()],Ar.prototype,"key",void 0),Tr([p([])],Ar.prototype,"args",void 0),Tr([s()],Ar.prototype,"defaultMessage",void 0);class Ur{static build(t){return new Ur(t)}static fromGwt(t){return new Ur(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)=>kr.resolveMessage(this.name,e,...t)})}}const zr=t=>(e,i)=>{var n,o;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(n=t.key)&&void 0!==n?n:i};e[jr]=null!==(o=e[jr])&&void 0!==o?o:new Map,e[jr].set(i,r)};d("ft-i18n")(Ar);const Fr=Ur.build("integratedFeedbackComponent"),Pr={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?",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"},Dr=Ur.build("inDesignerFeedbackComponent"),Br={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."};var Lr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wr extends Ir{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,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(Fr,Pr),this.addI18nContext(Dr,Br)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("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?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?tt`
1209
1209
  <div class="ft-reader-feedback">
1210
1210
  ${this.hideTitle?it:tt`
1211
1211
  <ft-typography variant="title" part="main-title">
@@ -1225,11 +1225,11 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1225
1225
  ${this.renderRatingDate()}
1226
1226
  </ft-typography>
1227
1227
  </div>
1228
- `:this.placeholderInEditor(this.userHasRatingRole?Pr.messages.ratingNotConfigured():Pr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return zr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return zr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?zr.messages.ratedToday():zr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return tt`
1228
+ `:this.placeholderInEditor(this.userHasRatingRole?Dr.messages.ratingNotConfigured():Dr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Fr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Fr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Fr.messages.ratedToday():Fr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return tt`
1229
1229
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1230
- ${fr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return tt`
1230
+ ${dr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return tt`
1231
1231
  <ft-button round part="rating-stars-${n}"
1232
- label="${zr.messages.starsRating(n)}"
1232
+ label="${Fr.messages.starsRating(n)}"
1233
1233
  tooltipPosition="top"
1234
1234
  .iconVariant=${this.iconVariant}
1235
1235
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1244,13 +1244,13 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1244
1244
  ?selected=${e}
1245
1245
  .iconVariant=${this.iconVariant}
1246
1246
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1247
- ${zr.messages.like()}
1247
+ ${Fr.messages.like()}
1248
1248
  </ft-switch-option>
1249
1249
  <ft-switch-option .value=${0}
1250
1250
  ?selected=${t}
1251
1251
  .iconVariant=${this.iconVariant}
1252
1252
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1253
- ${zr.messages.dislike()}
1253
+ ${Fr.messages.dislike()}
1254
1254
  </ft-switch-option>
1255
1255
  </ft-switch>
1256
1256
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return tt`
@@ -1258,11 +1258,11 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1258
1258
  part="rating rating-dichotomous">
1259
1259
  <ft-switch-option .value=${1}
1260
1260
  ?selected=${n}>
1261
- ${zr.messages.dichotomousYes()}
1261
+ ${Fr.messages.dichotomousYes()}
1262
1262
  </ft-switch-option>
1263
1263
  <ft-switch-option .value=${0}
1264
1264
  ?selected=${i}>
1265
- ${zr.messages.dichotomousNo()}
1265
+ ${Fr.messages.dichotomousNo()}
1266
1266
  </ft-switch-option>
1267
1267
  </ft-switch>
1268
1268
  `}return it}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=tt`
@@ -1271,7 +1271,7 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1271
1271
  ?disabled=${!this.feedbackMessage}
1272
1272
  @click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
1273
1273
  part="send-feedback">
1274
- ${zr.messages.okButton()}
1274
+ ${Fr.messages.okButton()}
1275
1275
  </ft-button>
1276
1276
  `;return t&&(e=tt`
1277
1277
  <a class="ft-reader-feedback--feedback-link" href="${t}">
@@ -1284,20 +1284,20 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1284
1284
  </ft-typography>
1285
1285
  <ft-text-area outlined
1286
1286
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1287
- label="${zr.messages.feedbackInputLabel()}"
1287
+ label="${Fr.messages.feedbackInputLabel()}"
1288
1288
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1289
1289
  ></ft-text-area>
1290
1290
  ${e}
1291
1291
  </div>
1292
- `}return this.placeholderInEditor(Pr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?tt`
1292
+ `}return this.placeholderInEditor(Dr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?tt`
1293
1293
  <div class="ft-reader-feedback--placeholder">
1294
1294
  <ft-typography variant="caption">${t}</ft-typography>
1295
1295
  <ft-tooltip position="left"
1296
- text="${Pr.messages.inDesignerOnlyNotice()}">
1296
+ text="${Dr.messages.inDesignerOnlyNotice()}">
1297
1297
  <ft-icon>INFO</ft-icon>
1298
1298
  </ft-tooltip>
1299
1299
  </div>
1300
- `:it}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Lr.elementDefinitions={"ft-button":vr,"ft-typography":fo,"ft-icon":ko,"ft-tooltip":Mo,"ft-switch":Ho,"ft-switch-option":Bo,"ft-text-area":or},Lr.styles=oo,Br([s({type:Boolean})],Lr.prototype,"editorMode",void 0),Br([s({type:Boolean})],Lr.prototype,"hideTitle",void 0),Br([s({type:Boolean})],Lr.prototype,"ratingAllowed",void 0),Br([s({attribute:!1})],Lr.prototype,"i18nProperties",void 0),Br([s({attribute:!1})],Lr.prototype,"ratingSummary",void 0),Br([s({attribute:!1})],Lr.prototype,"user",void 0),Br([c(".ft-reader-feedback--feedback-input")],Lr.prototype,"feedbackInput",void 0),Br([a()],Lr.prototype,"feedbackMessage",void 0),Br([s()],Lr.prototype,"iconVariant",void 0),Br([s()],Lr.prototype,"emptyStarIcon",void 0),Br([s()],Lr.prototype,"filledStarIcon",void 0),Br([s()],Lr.prototype,"emptyLikeIcon",void 0),Br([s()],Lr.prototype,"filledLikeIcon",void 0),Br([s()],Lr.prototype,"emptyDislikeIcon",void 0),Br([s()],Lr.prototype,"filledDislikeIcon",void 0),Br([s()],Lr.prototype,"feedbackMailLinkBuilder",void 0);const Wr=Ar.fromGwt("server");class Hr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=n.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),o=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Wr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${n}&body=${o}`}}var Kr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zr extends(Rr(zi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=$o.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 Hr,this.i18nProperties={feedbackMainTitle:zr.properties.mapFeedbackMainTitle(),ratingSectionTitle:zr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:zr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:zr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(gr)}render(){return null==this.map?it:tt`
1300
+ `:it}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Wr.elementDefinitions={"ft-button":br,"ft-typography":po,"ft-icon":Oo,"ft-tooltip":To,"ft-switch":Ko,"ft-switch-option":Lo,"ft-text-area":rr},Wr.styles=ro,Lr([s({type:Boolean})],Wr.prototype,"editorMode",void 0),Lr([s({type:Boolean})],Wr.prototype,"hideTitle",void 0),Lr([s({type:Boolean})],Wr.prototype,"ratingAllowed",void 0),Lr([s({attribute:!1})],Wr.prototype,"i18nProperties",void 0),Lr([s({attribute:!1})],Wr.prototype,"ratingSummary",void 0),Lr([s({attribute:!1})],Wr.prototype,"user",void 0),Lr([c(".ft-reader-feedback--feedback-input")],Wr.prototype,"feedbackInput",void 0),Lr([a()],Wr.prototype,"feedbackMessage",void 0),Lr([s()],Wr.prototype,"iconVariant",void 0),Lr([s()],Wr.prototype,"emptyStarIcon",void 0),Lr([s()],Wr.prototype,"filledStarIcon",void 0),Lr([s()],Wr.prototype,"emptyLikeIcon",void 0),Lr([s()],Wr.prototype,"filledLikeIcon",void 0),Lr([s()],Wr.prototype,"emptyDislikeIcon",void 0),Lr([s()],Wr.prototype,"filledDislikeIcon",void 0),Lr([s()],Wr.prototype,"feedbackMailLinkBuilder",void 0);const Hr=Ur.fromGwt("server");class Kr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=n.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),o=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Hr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${n}&body=${o}`}}var Zr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vr extends(Nr(Fi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=So.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 Kr,this.i18nProperties={feedbackMainTitle:Fr.properties.mapFeedbackMainTitle(),ratingSectionTitle:Fr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Fr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Fr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(mr)}render(){return null==this.map?it:tt`
1301
1301
  <ft-reader-feedback
1302
1302
  ratingAllowed
1303
1303
  .i18nProperties=${this.i18nProperties}
@@ -1316,7 +1316,7 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1316
1316
  @rate=${this.rate}
1317
1317
  @send-feedback=${this.sendFeedback}
1318
1318
  ></ft-reader-feedback>
1319
- `}updated(t){var e,i,n;super.updated(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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:zr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Pr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ot({type:"info",message:Pr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new Ot({type:"info",message:zr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ot({type:"error",message:zr.messages.feedbackFailure()}))}}}Zr.elementDefinitions={"ft-reader-feedback":Lr},Kr([Oi({store:gr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Zr.prototype,"user",void 0),Kr([Oi({store:"reader"})],Zr.prototype,"map",void 0),Kr([Oi({store:gr.name})],Zr.prototype,"editorMode",void 0),Kr([Oi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Zr.prototype,"configuration",void 0),Kr([a()],Zr.prototype,"ratingSummary",void 0),Kr([s({type:Boolean})],Zr.prototype,"hideTitle",void 0),Kr([s()],Zr.prototype,"iconVariant",void 0),Kr([s()],Zr.prototype,"emptyStarIcon",void 0),Kr([s()],Zr.prototype,"filledStarIcon",void 0),Kr([s()],Zr.prototype,"emptyLikeIcon",void 0),Kr([s()],Zr.prototype,"filledLikeIcon",void 0),Kr([s()],Zr.prototype,"emptyDislikeIcon",void 0),Kr([s()],Zr.prototype,"filledDislikeIcon",void 0),Kr([c("ft-reader-feedback")],Zr.prototype,"readerFeedback",void 0),Kr([Ur(Wr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Zr.prototype,"mailSubject",void 0);var Vr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Gr=Symbol("registerInterval");class Jr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Gr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Gr]):this.dispatchEvent(new qr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Gr,Vr([a()],i.prototype,"tocNode",void 0),Vr([a()],i.prototype,"disableContextInteractions",void 0),i}(zi)){}var Xr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yr extends(Rr(Jr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=$o.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 Hr,this.i18nProperties={feedbackMainTitle:zr.properties.topicFeedbackMainTitle(),ratingSectionTitle:zr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:zr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:zr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(gr)}render(){return null==this.map||null==this.tocNode?it:tt`
1319
+ `}updated(t){var e,i,n;super.updated(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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:Fr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Dr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ot({type:"info",message:Dr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new Ot({type:"info",message:Fr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ot({type:"error",message:Fr.messages.feedbackFailure()}))}}}Vr.elementDefinitions={"ft-reader-feedback":Wr},Zr([Oi({store:mr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Vr.prototype,"user",void 0),Zr([Oi({store:"reader"})],Vr.prototype,"map",void 0),Zr([Oi({store:mr.name})],Vr.prototype,"editorMode",void 0),Zr([Oi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Vr.prototype,"configuration",void 0),Zr([a()],Vr.prototype,"ratingSummary",void 0),Zr([s({type:Boolean})],Vr.prototype,"hideTitle",void 0),Zr([s()],Vr.prototype,"iconVariant",void 0),Zr([s()],Vr.prototype,"emptyStarIcon",void 0),Zr([s()],Vr.prototype,"filledStarIcon",void 0),Zr([s()],Vr.prototype,"emptyLikeIcon",void 0),Zr([s()],Vr.prototype,"filledLikeIcon",void 0),Zr([s()],Vr.prototype,"emptyDislikeIcon",void 0),Zr([s()],Vr.prototype,"filledDislikeIcon",void 0),Zr([c("ft-reader-feedback")],Vr.prototype,"readerFeedback",void 0),Zr([zr(Hr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Vr.prototype,"mailSubject",void 0);var qr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Gr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Jr=Symbol("registerInterval");class Xr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Jr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Jr]):this.dispatchEvent(new Gr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Jr,qr([a()],i.prototype,"tocNode",void 0),qr([a()],i.prototype,"disableContextInteractions",void 0),i}(Fi)){}var Yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qr extends(Nr(Xr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=So.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 Kr,this.i18nProperties={feedbackMainTitle:Fr.properties.topicFeedbackMainTitle(),ratingSectionTitle:Fr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Fr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Fr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(mr)}render(){return null==this.map||null==this.tocNode?it:tt`
1320
1320
  <ft-reader-feedback
1321
1321
  .i18nProperties=${this.i18nProperties}
1322
1322
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1335,4 +1335,4 @@ const{I:rr}=bt,sr=()=>document.createComment(""),ar=(t,e,i)=>{var n;const o=t._$
1335
1335
  @rate=${this.rate}
1336
1336
  @send-feedback=${this.sendFeedback}
1337
1337
  ></ft-reader-feedback>
1338
- `}updated(t){var e,i,n;super.updated(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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:zr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Pr.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)),this.dispatchEvent(new Ot({type:"info",message:zr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Pr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ot({type:"error",message:zr.messages.feedbackFailure()}))}}}Yr.elementDefinitions={"ft-reader-feedback":Lr},Xr([Oi({store:gr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Yr.prototype,"user",void 0),Xr([Oi({store:"reader"})],Yr.prototype,"map",void 0),Xr([Oi({store:gr.name})],Yr.prototype,"editorMode",void 0),Xr([Oi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Yr.prototype,"configuration",void 0),Xr([a()],Yr.prototype,"ratingSummary",void 0),Xr([s({type:Boolean})],Yr.prototype,"hideTitle",void 0),Xr([s()],Yr.prototype,"iconVariant",void 0),Xr([s()],Yr.prototype,"emptyStarIcon",void 0),Xr([s()],Yr.prototype,"filledStarIcon",void 0),Xr([s()],Yr.prototype,"emptyLikeIcon",void 0),Xr([s()],Yr.prototype,"filledLikeIcon",void 0),Xr([s()],Yr.prototype,"emptyDislikeIcon",void 0),Xr([s()],Yr.prototype,"filledDislikeIcon",void 0),Xr([c("ft-reader-feedback")],Yr.prototype,"readerFeedback",void 0),Xr([Ur(Wr.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]})))],Yr.prototype,"mailSubject",void 0),d("ft-reader-map-feedback")(Zr),d("ft-reader-topic-feedback")(Yr),t.FtReaderFeedbackCssVariables=no,t.FtReaderMapFeedback=Zr,t.FtReaderTopicFeedback=Yr,t.styles=oo}({});
1338
+ `}updated(t){var e,i,n;super.updated(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===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:Fr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Dr.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)),this.dispatchEvent(new Ot({type:"info",message:Fr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Dr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ot({type:"error",message:Fr.messages.feedbackFailure()}))}}}Qr.elementDefinitions={"ft-reader-feedback":Wr},Yr([Oi({store:mr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Qr.prototype,"user",void 0),Yr([Oi({store:"reader"})],Qr.prototype,"map",void 0),Yr([Oi({store:mr.name})],Qr.prototype,"editorMode",void 0),Yr([Oi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Qr.prototype,"configuration",void 0),Yr([a()],Qr.prototype,"ratingSummary",void 0),Yr([s({type:Boolean})],Qr.prototype,"hideTitle",void 0),Yr([s()],Qr.prototype,"iconVariant",void 0),Yr([s()],Qr.prototype,"emptyStarIcon",void 0),Yr([s()],Qr.prototype,"filledStarIcon",void 0),Yr([s()],Qr.prototype,"emptyLikeIcon",void 0),Yr([s()],Qr.prototype,"filledLikeIcon",void 0),Yr([s()],Qr.prototype,"emptyDislikeIcon",void 0),Yr([s()],Qr.prototype,"filledDislikeIcon",void 0),Yr([c("ft-reader-feedback")],Qr.prototype,"readerFeedback",void 0),Yr([zr(Hr.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]})))],Qr.prototype,"mailSubject",void 0),d("ft-reader-map-feedback")(Vr),d("ft-reader-topic-feedback")(Qr),t.FtReaderFeedbackCssVariables=oo,t.FtReaderMapFeedback=Vr,t.FtReaderTopicFeedback=Qr,t.styles=ro}({});