@fluid-topics/ft-reader-feedback 1.0.49 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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||[]);d(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 h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(o,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)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,h=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},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(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)}},d=(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)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){f(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(wo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=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,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let d=i.call(o,t);d||(d=h(t),e.call(o,t,d)),this===window.customElements&&(s.set(n,c),c.standInClass=d);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,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 o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=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 o=d(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(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 g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const y=(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(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o 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 o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const 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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Sn){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!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
@@ -29,39 +29,44 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */const l=({finisher:t,descriptor:e})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(r.finisher=function(e){t(e,n)}),r}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(o,n)}}
32
+ */const l=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
33
33
  /**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */;function c(t,e){return l({descriptor:i=>{const n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[e]&&(this[e]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})}
37
+ */;function c(t,e){return l({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var h;const u=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function d(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,o;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!d(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!d(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=i;0!=n--;){var r=o[n];if(!d(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const f=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!d(t,e),...null!=e?e:{}})}
42
+ */var d;const h=null!=(null===(d=window.HTMLSlotElement)||void 0===d?void 0:d.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?h(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */function u(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?f({slot:n,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}function p(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const v=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function b(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!p(t,e),...null!=e?e:{}})}
43
48
  /**
44
49
  * @license
45
50
  * Copyright 2019 Google LLC
46
51
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const v=window,b=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,y=Symbol(),g=new WeakMap;let m=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(b&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=g.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&g.set(e,t))}return t}toString(){return this.cssText}};const x=t=>new m("string"==typeof t?t:t+"",void 0,y),w=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new m(i,t,y)},$=(t,e)=>{b?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=v.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},S=b?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return x(e)})(t):t
52
+ */const g=window,y=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),m=new WeakMap;let w=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==x)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&m.set(e,t))}return t}toString(){return this.cssText}};const $=t=>new w("string"==typeof t?t:t+"",void 0,x),S=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new w(i,t,x)},k=(t,e)=>{y?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=g.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},O=y?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return $(e)})(t):t
48
53
  /**
49
54
  * @license
50
55
  * Copyright 2017 Google LLC
51
56
  * SPDX-License-Identifier: BSD-3-Clause
52
- */;var k;const O=window,_=O.trustedTypes,E=_?_.emptyScript:"",C=O.reactiveElementPolyfillSupport,R={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},j=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:j};let I=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(S(t))}else void 0!==t&&e.push(S(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return $(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=N){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:R).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:R;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||j)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
57
+ */;var E;const _=window,C=_.trustedTypes,R=C?C.emptyScript:"",j=_.reactiveElementPolyfillSupport,N={toAttribute(t,e){switch(e){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},I=(t,e)=>e!==t&&(e==e||t==t),T={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:I};let A=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=T){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||T}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(O(t))}else void 0!==t&&e.push(O(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return k(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=T){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:N).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:N;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||I)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
53
58
  /**
54
59
  * @license
55
60
  * Copyright 2017 Google LLC
56
61
  * SPDX-License-Identifier: BSD-3-Clause
57
62
  */
58
- var T;I.finalized=!0,I.elementProperties=new Map,I.elementStyles=[],I.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:I}),(null!==(k=O.reactiveElementVersions)&&void 0!==k?k:O.reactiveElementVersions=[]).push("1.6.1");const M=window,A=M.trustedTypes,U=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,P="?"+z,D=`<${P}>`,L=document,B=()=>L.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,K=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),V="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,G=/>/g,J=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),et=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),nt=new WeakMap,ot=L.createTreeWalker(L,129,null,!1),rt=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=Z;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===Z?"!--"===l[1]?s=q:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=J):void 0!==l[3]&&(s=J):s===J?">"===l[0]?(s=null!=o?o:Z,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?J:'"'===l[3]?Y:X):s===Y||s===X?s=J:s===q||s===G?s=Z:(s=J,o=void 0);const u=s===J&&t[e+1].startsWith("/>")?" ":"";r+=s===Z?i+D:c>=0?(n.push(a),i.slice(0,c)+F+i.slice(c)+z+u):i+z+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=rt(t,e);if(this.el=st.createElement(l,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=ot.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(F)||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+F).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?ft:"@"===e[1]?pt:ht})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=A?A.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],B()),ot.nextNode(),a.push({type:2,index:++o});n.append(t[e],B())}}}else if(8===n.nodeType)if(n.data===P)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var o,r,s,a;if(e===et)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=W(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=at(t,l._$AS(t,e.values),l,n)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);ot.currentNode=o;let r=ot.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new vt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=ot.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ct=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),W(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):K(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==it&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=st.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new lt(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){H(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(B()),this.k(B()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ht=class{constructor(t,e,i,n,o){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=at(this,t,e,0),r=!W(t)||t!==this._$AH&&t!==et,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),r||(r=!W(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const dt=A?A.emptyScript:"";let ft=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,dt):this.element.removeAttribute(this.name)}},pt=class extends ht{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:it)===et)return;const n=this._$AH,o=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==it&&(n===it||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}};const bt={O:F,P:z,A:P,C:1,M:rt,L:lt,D:K,R:at,I:ct,V:ht,H:ft,N:pt,U:ut,F:vt},yt=M.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(T=M.litHtmlVersions)&&void 0!==T?T:M.litHtmlVersions=[]).push("2.7.3");
63
+ var M;A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:A}),(null!==(E=_.reactiveElementVersions)&&void 0!==E?E:_.reactiveElementVersions=[]).push("1.6.1");const U=window,z=U.trustedTypes,F=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,B="?"+P,L=`<${B}>`,W=document,H=()=>W.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,K=t=>V(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),q="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,X=/>/g,Y=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,et=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ot=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),rt=new WeakMap,st=W.createTreeWalker(W,129,null,!1),at=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=G;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,d=0;for(;d<i.length&&(s.lastIndex=d,l=s.exec(i),null!==l);)d=s.lastIndex,s===G?"!--"===l[1]?s=J:void 0!==l[1]?s=X:void 0!==l[2]?(et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Y):void 0!==l[3]&&(s=Y):s===Y?">"===l[0]?(s=null!=n?n:G,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Y:'"'===l[3]?tt:Q):s===tt||s===Q?s=Y:s===J||s===X?s=G:(s=Y,n=void 0);const h=s===Y&&t[e+1].startsWith("/>")?" ":"";r+=s===G?i+L:c>=0?(o.push(a),i.slice(0,c)+D+i.slice(c)+P+h):i+P+(-2===c?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class lt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=at(t,e);if(this.el=lt.createElement(l,i),st.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=st.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(D)||e.startsWith(P)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+D).split(P),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?vt:"@"===e[1]?bt:ft})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(et.test(o.tagName)){const t=o.textContent.split(P),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],H()),st.nextNode(),a.push({type:2,index:++n});o.append(t[e],H())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(P,t+1));)a.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ct(t,e,i=t,o){var n,r,s,a;if(e===ot)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=Z(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ct(t,l._$AS(t,e.values),l,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);st.currentNode=n;let r=st.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ht(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new gt(r,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=st.nextNode(),s++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ht=class t{constructor(t,e,i,o){var n;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),Z(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):K(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=lt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new dt(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,n=0;for(const r of e)n===i.length?i.push(o=new t(this.k(H()),this.k(H()),this,this.options)):o=i[n],o._$AI(r),n++;n<i.length&&(this._$AR(o&&o._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,o,n){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=ct(this,t,e,0),r=!Z(t)||t!==this._$AH&&t!==ot,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=ct(this,o[i+s],e,s),a===ot&&(a=this._$AH[s]),r||(r=!Z(a)||a!==this._$AH[s]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const pt=z?z.emptyScript:"";let vt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},bt=class extends ft{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ct(this,t,e,0))&&void 0!==i?i:nt)===ot)return;const o=this._$AH,n=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==nt&&(o===nt||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}};const yt={O:D,P,A:B,C:1,M:at,L:dt,D:K,R:ct,I:ht,V:ft,H:vt,N:bt,U:ut,F:gt},xt=U.litHtmlPolyfillSupport;null==xt||xt(lt,ht),(null!==(M=U.litHtmlVersions)&&void 0!==M?M:U.litHtmlVersions=[]).push("2.7.3");
59
64
  /**
60
65
  * @license
61
66
  * Copyright 2017 Google LLC
62
67
  * SPDX-License-Identifier: BSD-3-Clause
63
68
  */
64
- var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ct(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let n=t=>x(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return x(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:$t.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:$t.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:$t.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:$t.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:$t.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:$t.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:$t.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:$t.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:$t.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Ot extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class _t extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Et,Ct=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 Rt=Symbol("constructorPrototype"),jt=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class It extends _t{constructor(){super(),this[Et]=new o(5),this[jt]=this.constructor.name,this[Rt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jt]&&Object.setPrototypeOf(this,this[Rt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Et=Nt,Ct([s()],It.prototype,"exportpartsPrefix",void 0),Ct([p([])],It.prototype,"exportpartsPrefixes",void 0),Ct([s()],It.prototype,"customStylesheet",void 0);const Tt=w`
69
+ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ht(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return ot}};$t.finalized=!0,$t._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:$t});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:$t}),(null!==(wt=globalThis.litElementVersions)&&void 0!==wt?wt:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>$(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$(null!=e?e:t.defaultValue),o=S`var(${$(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>S`var(${$(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Ot(t,e){return $(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:kt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:kt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:kt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:kt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:kt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:kt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:kt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:kt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:kt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ct extends $t{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return k(i,t.elementStyles),i}}var Rt,jt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),It=Symbol("constructorName"),Tt=Symbol("exportpartsDebouncer");class At extends Ct{constructor(){super(),this[Rt]=new n(5),this[It]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[It]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Tt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Rt=Tt,jt([s()],At.prototype,"exportpartsPrefix",void 0),jt([b([])],At.prototype,"exportpartsPrefixes",void 0),jt([s()],At.prototype,"customStylesheet",void 0);const Mt=S`
65
70
  .ft-no-text-select {
66
71
  -webkit-touch-callout: none;
67
72
  -webkit-user-select: none;
@@ -70,7 +75,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
70
75
  -ms-user-select: none;
71
76
  user-select: none;
72
77
  }
73
- `;w`
78
+ `;S`
74
79
  .ft-word-wrap {
75
80
  white-space: normal;
76
81
  word-wrap: break-word;
@@ -82,7 +87,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
82
87
  -webkit-hyphens: auto;
83
88
  hyphens: auto
84
89
  }
85
- `;const Mt=w`
90
+ `;const Ut=S`
86
91
  .ft-safari-ellipsis-fix {
87
92
  margin-right: 0;
88
93
 
@@ -93,7 +98,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
93
98
  display: inline-block;
94
99
  width: 0;
95
100
  }
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){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ft,zt,Pt;const Dt=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores");class Wt extends It{constructor(){super(...arguments),this[Ft]=new Map,this[zt]=new Map,this[Pt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ut(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Bt].delete(e)}setupStore(t,e){this[Bt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Lt].has(t.store):this[Lt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Lt].set(t,e.subscribe((()=>this.updateFromStores()))),Ut(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Dt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Lt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Dt].forEach((t=>t())),this[Dt]=[]}unsubscribeFromStore(t){this[Lt].has(t)&&this[Lt].get(t)(),this[Lt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ht(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 Kt(t){return!!t&&!!t[Ne]}function Vt(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)===Ie}(t)||Array.isArray(t)||!!t[je]||!!(null===(e=t.constructor)||void 0===e?void 0:e[je])||Yt(t)||Qt(t))}function Zt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Te)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Gt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Jt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Xt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return _e&&t instanceof Map}function Qt(t){return Ee&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[Ne];for(var i=Te(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 ie(t,e){return void 0===e&&(e=!1),oe(t)||Kt(t)||!Vt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Zt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Ht(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Ae[t];return e||Ht(18,t),e}function se(){return ke}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(ue),t.p=null}function ce(t){t===ke&&(ke=t.l)}function he(t){return ke={p:[],l:ke,h:t,m:!0,_:0}}function ue(t){var e=t[Ne];0===e.i||1===e.i?e.j():e.g=!0}function de(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Ne].P&&(le(e),Ht(4)),Vt(t)&&(t=fe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Ne].t,t,e.u,e.s)):t=fe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Re?t:void 0}function fe(t,e,i){if(oe(e))return e;var n=e[Ne];if(!n)return Zt(e,(function(o,r){return pe(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Zt(r,(function(e,r){return pe(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function pe(t,e,i,n,o,r,s){if(Kt(o)){var a=fe(t,o,r&&e&&3!==e.i&&!Gt(e.R,n)?r.concat(n):void 0);if(Jt(i,n,a),!Kt(a))return;t.m=!1}else s&&i.add(o);if(Vt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;fe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Ne];return(i?te(i):t)[e]}function ye(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 ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ue;i&&(o=[n],r=Fe);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Kt(t)||Ht(22,t),function t(e){if(!Vt(e))return e;var i,n=e[Ne],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Zt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Jt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Ft=Lt,zt=Bt,Pt=Dt;var Se,ke,Oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),_e="undefined"!=typeof Map,Ee="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Re=Oe?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),je=Oe?Symbol.for("immer-draftable"):"__$immer_draftable",Ne=Oe?Symbol.for("immer-state"):"__$immer_state",Ie=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ae={},Ue={get:function(t,e){if(e===Ne)return t;var i=te(t);if(!Gt(i,e))return function(t,e,i){var n,o=ye(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||!Vt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Ne];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Xt(i,o)&&(void 0!==i||Gt(t.t,e)))return!0;me(t),ge(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!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(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(){Ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ht(12)}},Fe={};Zt(Ue,(function(t,e){Fe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fe.deleteProperty=function(t,e){return Fe.set.call(this,t,e,void 0)},Fe.set=function(t,e,i){return Ue.set.call(this,t[0],e,i,t[0])};var ze=function(){function t(t){var e=this;this.O=Ce,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&&Ht(6),void 0!==n&&"function"!=typeof n&&Ht(7),Vt(t)){var a=he(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),de(t,a)}),(function(t){throw le(a),t})):(ae(a,n),de(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Re&&(s=void 0),e.D&&ie(s,!0),n){var h=[],u=[];re("Patches").M(t,s,h,u),n(h,u)}return s}Ht(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){Vt(t)||Ht(8),Kt(t)&&(t=we(t));var e=he(this),i=xe(this,t,void 0);return i[Ne].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ne]).A;return ae(i,e),de(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Ht(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=re("Patches").$;return Kt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Pe=new ze,De=Pe.produce;function Le(t){return Le="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},Le(t)}function Be(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Le(e)?e:String(e)}function We(t,e,i){return(e=Be(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function He(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 Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?He(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ve(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. "}Pe.produceWithPatches.bind(Pe),Pe.setAutoFreeze.bind(Pe),Pe.setUseProxies.bind(Pe),Pe.applyPatches.bind(Pe),Pe.createDraft.bind(Pe),Pe.finishDraft.bind(Pe);var Ze="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ge={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Je(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ve(1));return i(Je)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ve(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ve(4));if(l)throw new Error(Ve(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ve(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(l)throw new Error(Ve(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 d({type:Ge.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ve(10));o=t,d({type:Ge.REPLACE})}})[Ze]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Ze]=function(){return this},t},n}function Xe(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:Ge.INIT}))throw new Error(Ve(12));if(void 0===i(void 0,{type:Ge.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(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],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ve(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){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 Qe(){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(Ve(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:n})}}}function ti(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 ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=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])},ii(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}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=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])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,fi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},pi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&fi(t,i,e[i]);if(hi)for(var n=0,o=hi(e);n<o.length;n++){i=o[n];di.call(e,i)&&fi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=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 oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=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 oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Vt(t)?De(t,(function(){})):t}function xi(){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 yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),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,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;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=Xe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Qe.apply(void 0,p),b=Ye;c&&(b=bi(pi({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(f)?g=si([v],f):"function"==typeof f&&(g=f(y)),Je(e,u,b.apply(void 0,g))}function $i(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 pi(pi({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 Si(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 ki(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:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Si(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,h=pi(pi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Si(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=si([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(Kt(t))return void 0===(n=i(t,e))?t:n;if(Vt(t))return De(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 h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[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?$i(c,n):$i(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 Oi=["name","message","stack","code"],_i=function(t,e){this.payload=t,this.meta=e},Ei=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Oi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ri(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=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(pi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(pi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(pi({},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 h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ri(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||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new _i(t,e)},fulfillWithValue:function(t,e){return new Ei(t,e)}})).then((function(e){if(e instanceof _i)throw e;return e instanceof Ei?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof _i?r(null,u,t,g.payload,g.meta):r(g,u,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:f,requestId:u,arg:t,unwrap:function(){return p.then(Ri)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var ji="listenerMiddleware";$i(ji+"/add"),$i(ji+"/removeAll"),$i(ji+"/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[Ne];return Ue.get(e,t)},set:function(e){var i=this[Ne];Ue.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Ne];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Te(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Ne){var s=e[r];if(void 0===s&&!Gt(e,r))return!0;var a=i[r],l=a&&a[Ne];if(l?l.t!==s:!Xt(a,s))return!0}}var c=!!e[Ne];return n.length!==Te(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){Ae[t]||(Ae[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=Me(i);delete r[Ne];for(var s=Te(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:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Ne,{value:r,writable:!0}),o},S:function(t,i,o){o?Kt(i)&&i[Ne].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ne];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Zt(r,(function(e){e!==Ne&&(void 0!==o[e]||Gt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Zt(o,(function(t){void 0!==r[t]||Gt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(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 h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ni{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(Ut(o))return o;if(null==n)return;const r=ki({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Ni(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ii=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!d(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})}};var Ti,Mi,Ai;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Mi=null===(Ti=window.safari)||void 0===Ti?void 0:Ti.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ai?Ai:"");var Fi=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 zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Di 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[Pi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,Fi([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const Li=$t.extend("--ft-ripple-color",kt.colorContent),Bi={color:Li,backgroundColor:$t.extend("--ft-ripple-background-color",Li),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")},Wi=$t.extend("--ft-ripple-color",kt.colorPrimary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Vi=$t.extend("--ft-ripple-color",kt.colorSecondary),Zi=Vi,qi=$t.extend("--ft-ripple-background-color",Vi),Gi=w`
101
+ `;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}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 Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Dt,Pt,Bt;const Lt=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Zt extends At{constructor(){super(...arguments),this[Dt]=new Map,this[Pt]=new Map,this[Bt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Lt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Lt].forEach((t=>t())),this[Lt]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Te]}function qt(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)===Ae}(t)||Array.isArray(t)||!!t[Ie]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ie])||te(t)||ee(t))}function Gt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Me)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Jt(t){var e=t[Te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Xt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,i){var o=Jt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Qt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Ce&&t instanceof Map}function ee(t){return Re&&t instanceof Set}function ie(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ue(t);delete e[Te];for(var i=Me(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ne(t,e){return void 0===e&&(e=!1),se(t)||Kt(t)||!qt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),e&&Gt(t,(function(t,e){return ne(e,!0)}),!0)),t}function re(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=ze[t];return e||Vt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){he(t),t.p.forEach(ue),t.p=null}function he(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function ue(t){var e=t[Te];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,o),o?(i[Te].P&&(de(e),Vt(4)),qt(t)&&(t=ve(e,t),e.l||ge(e,t)),e.u&&ae("Patches").M(i[Te].t,t,e.u,e.s)):t=ve(e,i,[]),de(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function ve(t,e,i){if(se(e))return e;var o=e[Te];if(!o)return Gt(e,(function(n,r){return be(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ge(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=oe(o.k):o.o,r=n,s=!1;3===o.i&&(r=new Set(n),n.clear(),s=!0),Gt(r,(function(e,r){return be(t,o,n,e,r,i,s)})),ge(t,n,!1),i&&t.u&&ae("Patches").N(o,i,t.u,t.s)}return o.o}function be(t,e,i,o,n,r,s){if(Kt(n)){var a=ve(t,n,r&&e&&3!==e.i&&!Xt(e.R,o)?r.concat(o):void 0);if(Yt(i,o,a),!Kt(a))return;t.m=!1}else s&&i.add(n);if(qt(n)&&!se(n)){if(!t.h.D&&t._<1)return;ve(t,n),e&&e.A.l||ge(t,n)}}function ge(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ne(e,i)}function ye(t,e){var i=t[Te];return(i?ie(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=oe(t.t))}function $e(t,e,i){var o=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=Fe;i&&(n=[o],r=De);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(o),o}function Se(t){return Kt(t)||Vt(22,t),function t(e){if(!qt(e))return e;var i,o=e[Te],n=Jt(e);if(o){if(!o.P&&(o.i<4||!ae("ES5").K(o)))return o.t;o.I=!0,i=ke(e,n),o.I=!1}else i=ke(e,n);return Gt(i,(function(e,n){o&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(o.t,e)===n||Yt(i,e,t(n))})),3===n?new Set(i):i}(t)}function ke(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Dt=Wt,Pt=Ht,Bt=Lt;var Oe,Ee,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Re="undefined"!=typeof Set,je="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=_e?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Ie=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Te=_e?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Me="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ue=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ze={},Fe={get:function(t,e){if(e===Te)return t;var i=ie(t);if(!Xt(i,e))return function(t,e,i){var o,n=xe(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!qt(o)?o:o===ye(t.t,e)?(we(t),t.o[e]=$e(t.A.h,o,t)):o},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var o=xe(ie(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=ye(ie(t),e),r=null==n?void 0:n[Te];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Qt(i,n)&&(void 0!==i||Xt(t.t,e)))return!0;we(t),me(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!==ye(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},De={};Gt(Fe,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Pe=function(){function t(t){var e=this;this.O=je,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Vt(6),void 0!==o&&"function"!=typeof o&&Vt(7),qt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?de(a):he(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,o),pe(t,a)}),(function(t){throw de(a),t})):(ce(a,o),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ne(s,!0),o){var d=[],h=[];ae("Patches").M(t,s,d,h),o(d,h)}return s}Vt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){qt(t)||Vt(8),Kt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Te].C=!0,he(e),i},e.finishDraft=function(t,e){var i=(t&&t[Te]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!je&&Vt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=ae("Patches").$;return Kt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Be=new Pe,Le=Be.produce;function We(t){return We="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},We(t)}function He(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ze(t,e,i){return(e=He(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){Ze(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qe(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. "}Be.produceWithPatches.bind(Be),Be.setAutoFreeze.bind(Be),Be.setUseProxies.bind(Be),Be.applyPatches.bind(Be),Be.createDraft.bind(Be),Be.finishDraft.bind(Be);var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Ye(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(qe(1));return i(Ye)(t,e)}if("function"!=typeof t)throw new Error(qe(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function d(){if(l)throw new Error(qe(3));return r}function h(t){if("function"!=typeof t)throw new Error(qe(4));if(l)throw new Error(qe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(qe(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(qe(7));if(void 0===t.type)throw new Error(qe(8));if(l)throw new Error(qe(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Xe.INIT}),(o={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(qe(10));n=t,f({type:Xe.REPLACE})}})[Ge]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function i(){t.next&&t.next(d())}return i(),{unsubscribe:e(i)}}})[Ge]=function(){return this},t},o}function Qe(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}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:Xe.INIT}))throw new Error(qe(12));if(void 0===i(void 0,{type:Xe.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(qe(14));n[l]=h,o=o||h!==d}return(o=o||s.length!==Object.keys(t).length)?n:t}}function ti(){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 ei(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(qe(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=ti.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:o})}}}function ii(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var oi=ii();oi.withExtraArgument=ii;var ni,ri=oi,si=(ni=function(t,e){return ni=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])},ni(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}ni(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,o,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[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,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},li=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},ci=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&vi(t,i,e[i]);if(fi)for(var o=0,n=fi(e);o<n.length;o++){i=n[o];pi.call(e,i)&&vi(t,i,e[i])}return t},gi=function(t,e){return di(t,hi(e))},yi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(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,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return qt(t)?Le(t,(function(){})):t}function $i(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(ri.withExtraArgument(i.extraArgument)):o.push(ri));return o}(t)}}function Si(t){var e,i=$i(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,d=o.preloadedState,h=void 0===d?void 0:d,f=o.enhancers,u=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=Qe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=yi(bi({trace:!1},"object"==typeof c&&c)));var g=new mi(v),y=g;return Array.isArray(u)?y=li([v],u):"function"==typeof u&&(y=u(g)),Ye(e,h,b.apply(void 0,y))}function ki(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.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 Oi(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function Ei(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:wi(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,d=bi(bi({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?Oi(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return wi(t())};else{var c=wi(t);n=function(){return c}}function d(t,e){void 0===t&&(t=n());var i=li([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 o;if(Kt(t))return void 0===(o=i(t,e))?t:o;if(qt(t))return Le(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return d.getInitialState=n,d}(o,(function(t){for(var e in d)t.addCase(e,d[e]);for(var i=0,o=s;i<o.length;i++){var n=o[i];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ki(c,o):ki(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 _i=["name","message","stack","code"],Ci=function(t,e){this.payload=t,this.meta=e},Ri=function(t,e){this.payload=t,this.meta=e},ji=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var n=o[i];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=ki(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:gi(bi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),n=ki(t+"/pending",(function(t,e,i){return{payload:void 0,meta:gi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=ki(t+"/rejected",(function(t,e,o,n,r){return{payload:n,error:(i&&i.serializeError||ji)(t||"Rejected"),meta:gi(bi({},r||{}),{arg:o,requestId:e,rejectedWithValue:!!n,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 d,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 u(t){d=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,g,y;return ai(this,(function(x){switch(x.label){case 0:return x.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===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),a(n(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([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Ci(t,e)},fulfillWithValue:function(t,e){return new Ri(t,e)}})).then((function(e){if(e instanceof Ci)throw e;return e instanceof Ri?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return y=x.sent(),v=y instanceof Ci?r(null,h,t,y.payload,y.meta):r(y,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{n(v.next(t))}catch(t){e(t)}},o=function(t){try{n(v.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};n((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ni)}})}}),{pending:n,rejected:r,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ii="listenerMiddleware";ki(Ii+"/add"),ki(Ii+"/removeAll"),ki(Ii+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Te];return Fe.get(e,t)},set:function(e){var i=this[Te];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Te];if(!n.P)switch(n.i){case 5:o(n)&&me(n);break;case 4:i(n)&&me(n)}}}function i(t){for(var e=t.t,i=t.k,o=Me(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==Te){var s=e[r];if(void 0===s&&!Xt(e,r))return!0;var a=i[r],l=a&&a[Te];if(l?l.t!==s:!Qt(a,s))return!0}}var c=!!e[Te];return o.length!==Me(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){ze[t]||(ze[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=Ue(i);delete r[Te];for(var s=Me(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)}(o,e),r={i:o?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Te,{value:r,writable:!0}),n},S:function(t,i,n){n?Kt(i)&&i[Te].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Te];if(i){var n=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Gt(r,(function(e){e!==Te&&(void 0!==n[e]||Xt(n,e)?s[e]||t(r[e]):(s[e]=!0,me(i)))})),Gt(n,(function(t){void 0!==r[t]||Xt(r,t)||(s[t]=!1,me(i))}));else if(5===a){if(o(i)&&(me(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var d=Math.min(r.length,n.length),h=0;h<d;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):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ti{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,n=window.ftReduxStores[i];if(Ft(n))return n;if(null==o)return;const r=Ei({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),s=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ti(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,n=t[o];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[o]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const n={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(n)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};var Mi,Ui,zi;const Fi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zi=null===(Ui=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Ui?void 0:Ui.toString())&&void 0!==zi?zi:"");var Di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Pi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bi=Symbol("registerInterval");class Li 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[Bi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bi]):this.dispatchEvent(new Pi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bi,Di([a()],i.prototype,"stateManager",void 0),i}(Zt)){}const Wi=kt.extend("--ft-ripple-color",Et.colorContent),Hi={color:Wi,backgroundColor:kt.extend("--ft-ripple-background-color",Wi),opacityContentOnSurfacePressed:kt.external(Et.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Et.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Et.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Et.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},Zi=kt.extend("--ft-ripple-color",Et.colorPrimary),Vi=Zi,Ki=kt.extend("--ft-ripple-background-color",Zi),qi=kt.extend("--ft-ripple-color",Et.colorSecondary),Gi=qi,Ji=kt.extend("--ft-ripple-background-color",qi),Xi=S`
97
102
  :host {
98
103
  display: contents;
99
104
  }
@@ -106,7 +111,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
106
111
 
107
112
  .ft-ripple:not(.ft-ripple--unbounded) {
108
113
  overflow: hidden;
109
- border-radius: ${Bi.borderRadius};
114
+ border-radius: ${Hi.borderRadius};
110
115
  }
111
116
 
112
117
  .ft-ripple .ft-ripple--background,
@@ -116,19 +121,19 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
116
121
  }
117
122
 
118
123
  .ft-ripple .ft-ripple--background {
119
- background-color: ${Bi.backgroundColor};
124
+ background-color: ${Hi.backgroundColor};
120
125
  }
121
126
 
122
127
  .ft-ripple .ft-ripple--effect {
123
- background-color: ${Bi.color};
128
+ background-color: ${Hi.color};
124
129
  }
125
130
 
126
131
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
127
- background-color: ${qi};
132
+ background-color: ${Ji};
128
133
  }
129
134
 
130
135
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
131
- background-color: ${Zi};
136
+ background-color: ${Gi};
132
137
  }
133
138
 
134
139
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
@@ -136,7 +141,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
136
141
  }
137
142
 
138
143
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
139
- background-color: ${Hi};
144
+ background-color: ${Vi};
140
145
  }
141
146
 
142
147
  .ft-ripple .ft-ripple--background {
@@ -168,117 +173,117 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
168
173
  }
169
174
 
170
175
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
171
- opacity: ${Bi.opacityContentOnSurfaceHover};
176
+ opacity: ${Hi.opacityContentOnSurfaceHover};
172
177
  }
173
178
 
174
179
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
175
- opacity: ${Bi.opacityContentOnSurfaceSelected};
180
+ opacity: ${Hi.opacityContentOnSurfaceSelected};
176
181
  }
177
182
 
178
183
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
179
- opacity: ${Bi.opacityContentOnSurfaceFocused};
184
+ opacity: ${Hi.opacityContentOnSurfaceFocused};
180
185
  }
181
186
 
182
187
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
183
- opacity: ${Bi.opacityContentOnSurfacePressed};
188
+ opacity: ${Hi.opacityContentOnSurfacePressed};
184
189
  transform: translate(-50%, -50%) scale(1);
185
190
  }
186
- `,Ji=$t.extend("--ft-typography-font-family",kt.titleFont),Xi=$t.extend("--ft-typography-font-family",kt.contentFont),Yi={fontFamily:Xi,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")},Qi={fontFamily:$t.extend("--ft-typography-title-font-family",Ji),fontSize:$t.extend("--ft-typography-title-font-size",Yi.fontSize,"20px"),fontWeight:$t.extend("--ft-typography-title-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-letter-spacing",Yi.letterSpacing,"0.15px"),lineHeight:$t.extend("--ft-typography-title-line-height",Yi.lineHeight,"1.2"),textTransform:$t.extend("--ft-typography-title-text-transform",Yi.textTransform,"inherit")},tn={fontFamily:$t.extend("--ft-typography-title-dense-font-family",Ji),fontSize:$t.extend("--ft-typography-title-dense-font-size",Yi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-title-dense-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-dense-letter-spacing",Yi.letterSpacing,"0.105px"),lineHeight:$t.extend("--ft-typography-title-dense-line-height",Yi.lineHeight,"1.7"),textTransform:$t.extend("--ft-typography-title-dense-text-transform",Yi.textTransform,"inherit")},en=$t.extend("--ft-typography-subtitle1-font-family",Xi),nn=$t.extend("--ft-typography-subtitle1-font-size",Yi.fontSize,"16px"),on=$t.extend("--ft-typography-subtitle1-font-weight",Yi.fontWeight,"600"),rn=$t.extend("--ft-typography-subtitle1-letter-spacing",Yi.letterSpacing,"0.144px"),sn=$t.extend("--ft-typography-subtitle1-line-height",Yi.lineHeight,"1.5"),an=$t.extend("--ft-typography-subtitle1-text-transform",Yi.textTransform,"inherit"),ln=$t.extend("--ft-typography-subtitle2-font-family",Xi),cn=$t.extend("--ft-typography-subtitle2-font-size",Yi.fontSize,"14px"),hn=$t.extend("--ft-typography-subtitle2-font-weight",Yi.fontWeight,"normal"),un=$t.extend("--ft-typography-subtitle2-letter-spacing",Yi.letterSpacing,"0.098px"),dn=$t.extend("--ft-typography-subtitle2-line-height",Yi.lineHeight,"1.7"),fn=$t.extend("--ft-typography-subtitle2-text-transform",Yi.textTransform,"inherit"),pn={fontFamily:$t.extend("--ft-typography-body1-font-family",Xi),fontSize:$t.extend("--ft-typography-body1-font-size",Yi.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",Yi.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",Yi.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",Yi.textTransform,"inherit")},vn=$t.extend("--ft-typography-body2-font-family",Xi),bn=$t.extend("--ft-typography-body2-font-size",Yi.fontSize,"14px"),yn=$t.extend("--ft-typography-body2-font-weight",Yi.fontWeight,"normal"),gn=$t.extend("--ft-typography-body2-letter-spacing",Yi.letterSpacing,"0.252px"),mn=$t.extend("--ft-typography-body2-line-height",Yi.lineHeight,"1.4"),xn=$t.extend("--ft-typography-body2-text-transform",Yi.textTransform,"inherit"),wn={fontFamily:$t.extend("--ft-typography-caption-font-family",Xi),fontSize:$t.extend("--ft-typography-caption-font-size",Yi.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",Yi.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",Yi.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",Yi.textTransform,"inherit")},$n=$t.extend("--ft-typography-breadcrumb-font-family",Xi),Sn=$t.extend("--ft-typography-breadcrumb-font-size",Yi.fontSize,"10px"),kn=$t.extend("--ft-typography-breadcrumb-font-weight",Yi.fontWeight,"normal"),On=$t.extend("--ft-typography-breadcrumb-letter-spacing",Yi.letterSpacing,"0.33px"),_n=$t.extend("--ft-typography-breadcrumb-line-height",Yi.lineHeight,"1.6"),En=$t.extend("--ft-typography-breadcrumb-text-transform",Yi.textTransform,"inherit"),Cn=$t.extend("--ft-typography-overline-font-family",Xi),Rn=$t.extend("--ft-typography-overline-font-size",Yi.fontSize,"10px"),jn=$t.extend("--ft-typography-overline-font-weight",Yi.fontWeight,"normal"),Nn=$t.extend("--ft-typography-overline-letter-spacing",Yi.letterSpacing,"1.5px"),In=$t.extend("--ft-typography-overline-line-height",Yi.lineHeight,"1.6"),Tn=$t.extend("--ft-typography-overline-text-transform",Yi.textTransform,"uppercase"),Mn={fontFamily:$t.extend("--ft-typography-button-font-family",Xi),fontSize:$t.extend("--ft-typography-button-font-size",Yi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",Yi.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",Yi.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",Yi.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",Yi.textTransform,"uppercase")},An=w`
191
+ `,Yi=kt.extend("--ft-typography-font-family",Et.titleFont),Qi=kt.extend("--ft-typography-font-family",Et.contentFont),to={fontFamily:Qi,fontSize:kt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:kt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:kt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:kt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:kt.create("--ft-typography-text-transform","UNKNOWN","inherit")},eo={fontFamily:kt.extend("--ft-typography-title-font-family",Yi),fontSize:kt.extend("--ft-typography-title-font-size",to.fontSize,"20px"),fontWeight:kt.extend("--ft-typography-title-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-letter-spacing",to.letterSpacing,"0.15px"),lineHeight:kt.extend("--ft-typography-title-line-height",to.lineHeight,"1.2"),textTransform:kt.extend("--ft-typography-title-text-transform",to.textTransform,"inherit")},io={fontFamily:kt.extend("--ft-typography-title-dense-font-family",Yi),fontSize:kt.extend("--ft-typography-title-dense-font-size",to.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-title-dense-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-dense-letter-spacing",to.letterSpacing,"0.105px"),lineHeight:kt.extend("--ft-typography-title-dense-line-height",to.lineHeight,"1.7"),textTransform:kt.extend("--ft-typography-title-dense-text-transform",to.textTransform,"inherit")},oo=kt.extend("--ft-typography-subtitle1-font-family",Qi),no=kt.extend("--ft-typography-subtitle1-font-size",to.fontSize,"16px"),ro=kt.extend("--ft-typography-subtitle1-font-weight",to.fontWeight,"600"),so=kt.extend("--ft-typography-subtitle1-letter-spacing",to.letterSpacing,"0.144px"),ao=kt.extend("--ft-typography-subtitle1-line-height",to.lineHeight,"1.5"),lo=kt.extend("--ft-typography-subtitle1-text-transform",to.textTransform,"inherit"),co=kt.extend("--ft-typography-subtitle2-font-family",Qi),ho=kt.extend("--ft-typography-subtitle2-font-size",to.fontSize,"14px"),fo=kt.extend("--ft-typography-subtitle2-font-weight",to.fontWeight,"normal"),uo=kt.extend("--ft-typography-subtitle2-letter-spacing",to.letterSpacing,"0.098px"),po=kt.extend("--ft-typography-subtitle2-line-height",to.lineHeight,"1.7"),vo=kt.extend("--ft-typography-subtitle2-text-transform",to.textTransform,"inherit"),bo={fontFamily:kt.extend("--ft-typography-body1-font-family",Qi),fontSize:kt.extend("--ft-typography-body1-font-size",to.fontSize,"16px"),fontWeight:kt.extend("--ft-typography-body1-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-body1-letter-spacing",to.letterSpacing,"0.496px"),lineHeight:kt.extend("--ft-typography-body1-line-height",to.lineHeight,"1.5"),textTransform:kt.extend("--ft-typography-body1-text-transform",to.textTransform,"inherit")},go=kt.extend("--ft-typography-body2-font-family",Qi),yo=kt.extend("--ft-typography-body2-font-size",to.fontSize,"14px"),xo=kt.extend("--ft-typography-body2-font-weight",to.fontWeight,"normal"),mo=kt.extend("--ft-typography-body2-letter-spacing",to.letterSpacing,"0.252px"),wo=kt.extend("--ft-typography-body2-line-height",to.lineHeight,"1.4"),$o=kt.extend("--ft-typography-body2-text-transform",to.textTransform,"inherit"),So={fontFamily:kt.extend("--ft-typography-caption-font-family",Qi),fontSize:kt.extend("--ft-typography-caption-font-size",to.fontSize,"12px"),fontWeight:kt.extend("--ft-typography-caption-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-caption-letter-spacing",to.letterSpacing,"0.396px"),lineHeight:kt.extend("--ft-typography-caption-line-height",to.lineHeight,"1.33"),textTransform:kt.extend("--ft-typography-caption-text-transform",to.textTransform,"inherit")},ko=kt.extend("--ft-typography-breadcrumb-font-family",Qi),Oo=kt.extend("--ft-typography-breadcrumb-font-size",to.fontSize,"10px"),Eo=kt.extend("--ft-typography-breadcrumb-font-weight",to.fontWeight,"normal"),_o=kt.extend("--ft-typography-breadcrumb-letter-spacing",to.letterSpacing,"0.33px"),Co=kt.extend("--ft-typography-breadcrumb-line-height",to.lineHeight,"1.6"),Ro=kt.extend("--ft-typography-breadcrumb-text-transform",to.textTransform,"inherit"),jo=kt.extend("--ft-typography-overline-font-family",Qi),No=kt.extend("--ft-typography-overline-font-size",to.fontSize,"10px"),Io=kt.extend("--ft-typography-overline-font-weight",to.fontWeight,"normal"),To=kt.extend("--ft-typography-overline-letter-spacing",to.letterSpacing,"1.5px"),Ao=kt.extend("--ft-typography-overline-line-height",to.lineHeight,"1.6"),Mo=kt.extend("--ft-typography-overline-text-transform",to.textTransform,"uppercase"),Uo={fontFamily:kt.extend("--ft-typography-button-font-family",Qi),fontSize:kt.extend("--ft-typography-button-font-size",to.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-button-font-weight",to.fontWeight,"600"),letterSpacing:kt.extend("--ft-typography-button-letter-spacing",to.letterSpacing,"1.246px"),lineHeight:kt.extend("--ft-typography-button-line-height",to.lineHeight,"1.15"),textTransform:kt.extend("--ft-typography-button-text-transform",to.textTransform,"uppercase")},zo=S`
187
192
  .ft-typography--title {
188
- font-family: ${Qi.fontFamily};
189
- font-size: ${Qi.fontSize};
190
- font-weight: ${Qi.fontWeight};
191
- letter-spacing: ${Qi.letterSpacing};
192
- line-height: ${Qi.lineHeight};
193
- text-transform: ${Qi.textTransform};
194
- }
195
- `,Un=w`
193
+ font-family: ${eo.fontFamily};
194
+ font-size: ${eo.fontSize};
195
+ font-weight: ${eo.fontWeight};
196
+ letter-spacing: ${eo.letterSpacing};
197
+ line-height: ${eo.lineHeight};
198
+ text-transform: ${eo.textTransform};
199
+ }
200
+ `,Fo=S`
196
201
  .ft-typography--title-dense {
197
- font-family: ${tn.fontFamily};
198
- font-size: ${tn.fontSize};
199
- font-weight: ${tn.fontWeight};
200
- letter-spacing: ${tn.letterSpacing};
201
- line-height: ${tn.lineHeight};
202
- text-transform: ${tn.textTransform};
203
- }
204
- `,Fn=w`
202
+ font-family: ${io.fontFamily};
203
+ font-size: ${io.fontSize};
204
+ font-weight: ${io.fontWeight};
205
+ letter-spacing: ${io.letterSpacing};
206
+ line-height: ${io.lineHeight};
207
+ text-transform: ${io.textTransform};
208
+ }
209
+ `,Do=S`
205
210
  .ft-typography--subtitle1 {
206
- font-family: ${en};
207
- font-size: ${nn};
208
- font-weight: ${on};
209
- letter-spacing: ${rn};
210
- line-height: ${sn};
211
- text-transform: ${an};
212
- }
213
- `,zn=w`
211
+ font-family: ${oo};
212
+ font-size: ${no};
213
+ font-weight: ${ro};
214
+ letter-spacing: ${so};
215
+ line-height: ${ao};
216
+ text-transform: ${lo};
217
+ }
218
+ `,Po=S`
214
219
  .ft-typography--subtitle2 {
215
- font-family: ${ln};
216
- font-size: ${cn};
217
- font-weight: ${hn};
218
- letter-spacing: ${un};
219
- line-height: ${dn};
220
- text-transform: ${fn};
220
+ font-family: ${co};
221
+ font-size: ${ho};
222
+ font-weight: ${fo};
223
+ letter-spacing: ${uo};
224
+ line-height: ${po};
225
+ text-transform: ${vo};
221
226
  }
222
227
 
223
- `,Pn=w`
228
+ `,Bo=S`
224
229
  .ft-typography--body1 {
225
- font-family: ${pn.fontFamily};
226
- font-size: ${pn.fontSize};
227
- font-weight: ${pn.fontWeight};
228
- letter-spacing: ${pn.letterSpacing};
229
- line-height: ${pn.lineHeight};
230
- text-transform: ${pn.textTransform};
231
- }
232
- `,Dn=w`
230
+ font-family: ${bo.fontFamily};
231
+ font-size: ${bo.fontSize};
232
+ font-weight: ${bo.fontWeight};
233
+ letter-spacing: ${bo.letterSpacing};
234
+ line-height: ${bo.lineHeight};
235
+ text-transform: ${bo.textTransform};
236
+ }
237
+ `,Lo=S`
233
238
  .ft-typography--body2 {
234
- font-family: ${vn};
235
- font-size: ${bn};
236
- font-weight: ${yn};
237
- letter-spacing: ${gn};
238
- line-height: ${mn};
239
- text-transform: ${xn};
240
- }
241
- `,Ln=w`
239
+ font-family: ${go};
240
+ font-size: ${yo};
241
+ font-weight: ${xo};
242
+ letter-spacing: ${mo};
243
+ line-height: ${wo};
244
+ text-transform: ${$o};
245
+ }
246
+ `,Wo=S`
242
247
  .ft-typography--caption {
243
- font-family: ${wn.fontFamily};
244
- font-size: ${wn.fontSize};
245
- font-weight: ${wn.fontWeight};
246
- letter-spacing: ${wn.letterSpacing};
247
- line-height: ${wn.lineHeight};
248
- text-transform: ${wn.textTransform};
249
- }
250
- `,Bn=w`
248
+ font-family: ${So.fontFamily};
249
+ font-size: ${So.fontSize};
250
+ font-weight: ${So.fontWeight};
251
+ letter-spacing: ${So.letterSpacing};
252
+ line-height: ${So.lineHeight};
253
+ text-transform: ${So.textTransform};
254
+ }
255
+ `,Ho=S`
251
256
  .ft-typography--breadcrumb {
252
- font-family: ${$n};
253
- font-size: ${Sn};
254
- font-weight: ${kn};
255
- letter-spacing: ${On};
256
- line-height: ${_n};
257
- text-transform: ${En};
258
- }
259
- `,Wn=w`
257
+ font-family: ${ko};
258
+ font-size: ${Oo};
259
+ font-weight: ${Eo};
260
+ letter-spacing: ${_o};
261
+ line-height: ${Co};
262
+ text-transform: ${Ro};
263
+ }
264
+ `,Zo=S`
260
265
  .ft-typography--overline {
261
- font-family: ${Cn};
262
- font-size: ${Rn};
263
- font-weight: ${jn};
264
- letter-spacing: ${Nn};
265
- line-height: ${In};
266
- text-transform: ${Tn};
267
- }
268
- `,Hn=w`
266
+ font-family: ${jo};
267
+ font-size: ${No};
268
+ font-weight: ${Io};
269
+ letter-spacing: ${To};
270
+ line-height: ${Ao};
271
+ text-transform: ${Mo};
272
+ }
273
+ `,Vo=S`
269
274
  .ft-typography--button {
270
- font-family: ${Mn.fontFamily};
271
- font-size: ${Mn.fontSize};
272
- font-weight: ${Mn.fontWeight};
273
- letter-spacing: ${Mn.letterSpacing};
274
- line-height: ${Mn.lineHeight};
275
- text-transform: ${Mn.textTransform};
276
- }
277
- `,Kn=w`
275
+ font-family: ${Uo.fontFamily};
276
+ font-size: ${Uo.fontSize};
277
+ font-weight: ${Uo.fontWeight};
278
+ letter-spacing: ${Uo.letterSpacing};
279
+ line-height: ${Uo.lineHeight};
280
+ text-transform: ${Uo.textTransform};
281
+ }
282
+ `,Ko=S`
278
283
  .ft-typography {
279
284
  vertical-align: inherit;
280
285
  }
281
- `,Vn={color:$t.extend("--ft-loader-color",kt.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Zn=w`
286
+ `,qo={color:kt.extend("--ft-loader-color",Et.colorPrimary),size:kt.create("--ft-loader-size","SIZE","80px")},Go=S`
282
287
  :host {
283
288
  line-height: 0;
284
289
  }
@@ -287,8 +292,8 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
287
292
  display: inline-block;
288
293
  position: relative;
289
294
 
290
- width: ${Vn.size};
291
- height: ${Vn.size};
295
+ width: ${qo.size};
296
+ height: ${qo.size};
292
297
  }
293
298
 
294
299
  .ft-loader div {
@@ -297,7 +302,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
297
302
  width: 25%;
298
303
  height: 25%;
299
304
  border-radius: 50%;
300
- background: ${Vn.color};
305
+ background: ${qo.color};
301
306
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
302
307
  }
303
308
 
@@ -344,10 +349,10 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
344
349
  transform: translate(0, 0);
345
350
  }
346
351
  100% {
347
- transform: translate(calc(0.35 * ${Vn.size}), 0);
352
+ transform: translate(calc(0.35 * ${qo.size}), 0);
348
353
  }
349
354
  }
350
- `,qn={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")},Gn=w`
355
+ `,Jo={size:kt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:kt.extend("--ft-icon-fluid-topics-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:kt.extend("--ft-icon-file-format-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:kt.extend("--ft-icon-material-font-family",kt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:kt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Xo=S`
351
356
  :host, i.ft-icon {
352
357
  display: inline-flex;
353
358
  align-items: center;
@@ -356,14 +361,14 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
356
361
  }
357
362
 
358
363
  :host {
359
- width: ${qn.size};
360
- height: ${qn.size};
364
+ width: ${Jo.size};
365
+ height: ${Jo.size};
361
366
  }
362
367
 
363
368
  i.ft-icon {
364
369
  width: 100%;
365
370
  height: 100%;
366
- font-size: ${qn.size};
371
+ font-size: ${Jo.size};
367
372
  line-height: 1;
368
373
  font-weight: normal;
369
374
  text-transform: none;
@@ -374,28 +379,28 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
374
379
  text-rendering: auto;
375
380
  -webkit-font-smoothing: antialiased;
376
381
  -moz-osx-font-smoothing: grayscale;
377
- vertical-align: ${qn.verticalAlign};
382
+ vertical-align: ${Jo.verticalAlign};
378
383
  }
379
384
 
380
385
  i.ft-icon.ft-icon--fluid-topics {
381
- font-family: ${qn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
386
+ font-family: ${Jo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
382
387
 
383
388
  /* Ugly fix because font is broken */
384
- font-size: calc(0.75 * ${qn.size});
385
- line-height: ${qn.size};
389
+ font-size: calc(0.75 * ${Jo.size});
390
+ line-height: ${Jo.size};
386
391
  position: relative;
387
392
  top: -4%;
388
393
  justify-content: center;
389
394
  }
390
395
 
391
396
  .ft-icon--file-format {
392
- font-family: ${qn.fileFormatFontFamily}, ft-mime, sans-serif;
397
+ font-family: ${Jo.fileFormatFontFamily}, ft-mime, sans-serif;
393
398
  }
394
399
 
395
400
  .ft-icon--material {
396
- font-family: ${qn.materialFontFamily}, "Material Icons", sans-serif;
401
+ font-family: ${Jo.materialFontFamily}, "Material Icons", sans-serif;
397
402
  }
398
- `,Jn=$t.extend("--ft-button-color",kt.colorPrimary),Xn={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Jn,fontSize:$t.extend("--ft-button-font-size",Mn.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Jn),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")},Yn=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),Qn={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Yn,rippleColor:$t.extend("--ft-button-primary-ripple-color",Yn)},to=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),eo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),io=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),no=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),oo=[w`
403
+ `,Yo=kt.extend("--ft-button-color",Et.colorPrimary),Qo={backgroundColor:kt.extend("--ft-button-background-color",Et.colorSurface),borderRadius:kt.extend("--ft-button-border-radius",Et.borderRadiusL),color:Yo,fontSize:kt.extend("--ft-button-font-size",Uo.fontSize),iconSize:kt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:kt.extend("--ft-button-ripple-color",Yo),verticalPadding:kt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:kt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:kt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:kt.external(Et.colorOpacityDisabled,"Design system")},tn=kt.extend("--ft-button-primary-color",kt.extend("--ft-button-color",Et.colorOnPrimary)),en={backgroundColor:kt.extend("--ft-button-primary-background-color",kt.extend("--ft-button-background-color",Et.colorPrimary)),color:tn,rippleColor:kt.extend("--ft-button-primary-ripple-color",tn)},on=kt.extend("--ft-button-dense-border-radius",kt.extend("--ft-button-border-radius",Et.borderRadiusM)),nn=kt.create("--ft-button-dense-vertical-padding","SIZE","2px"),rn=kt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),sn=kt.create("--ft-button-dense-icon-padding","SIZE","4px"),an=[S`
399
404
  :host {
400
405
  display: inline-block;
401
406
  max-width: 100%;
@@ -406,7 +411,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
406
411
  box-shadow: 0px 0px 0px transparent;
407
412
  border: 0px solid transparent;
408
413
  text-shadow: 0px 0px 0px transparent;
409
- font-size: ${Xn.fontSize};
414
+ font-size: ${Qo.fontSize};
410
415
  }
411
416
 
412
417
  button:hover {
@@ -435,31 +440,31 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
435
440
  border: none;
436
441
  pointer-events: auto;
437
442
 
438
- --ft-button-internal-line-height: max(calc(${Xn.fontSize} + 2px), ${Xn.iconSize});
439
- --ft-button-internal-color: ${Xn.color};
440
- ${St(qn.size,Xn.iconSize)};
441
- ${St(Bi.color,Xn.rippleColor)};
443
+ --ft-button-internal-line-height: max(calc(${Qo.fontSize} + 2px), ${Qo.iconSize});
444
+ --ft-button-internal-color: ${Qo.color};
445
+ ${Ot(Jo.size,Qo.iconSize)};
446
+ ${Ot(Hi.color,Qo.rippleColor)};
442
447
 
443
- border-radius: ${Xn.borderRadius};
444
- padding: ${Xn.verticalPadding} ${Xn.horizontalPadding};
445
- background-color: ${Xn.backgroundColor};
448
+ border-radius: ${Qo.borderRadius};
449
+ padding: ${Qo.verticalPadding} ${Qo.horizontalPadding};
450
+ background-color: ${Qo.backgroundColor};
446
451
  color: var(--ft-button-internal-color);
447
452
  -webkit-mask-image: radial-gradient(white, black);
448
453
  }
449
454
 
450
455
  .ft-button.ft-button--outlined {
451
456
  border: 1px solid var(--ft-button-internal-color);
452
- padding: calc(${Xn.verticalPadding} - 1px) calc(${Xn.horizontalPadding} - 1px);
457
+ padding: calc(${Qo.verticalPadding} - 1px) calc(${Qo.horizontalPadding} - 1px);
453
458
  }
454
459
 
455
460
  .ft-button.ft-button--dense {
456
- padding: ${eo} ${io};
457
- border-radius: ${to};
458
- gap: ${no};
461
+ padding: ${nn} ${rn};
462
+ border-radius: ${on};
463
+ gap: ${sn};
459
464
  }
460
465
 
461
466
  .ft-button.ft-button--dense.ft-button--outlined {
462
- padding: calc(${eo} - 1px) calc(${io} - 1px);
467
+ padding: calc(${nn} - 1px) calc(${rn} - 1px);
463
468
  }
464
469
 
465
470
  .ft-button:not([disabled]):hover {
@@ -467,22 +472,22 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
467
472
  }
468
473
 
469
474
  .ft-button--round {
470
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Xn.verticalPadding});
475
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qo.verticalPadding});
471
476
  }
472
477
 
473
478
  .ft-button--round.ft-button--dense {
474
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${eo});
479
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${nn});
475
480
  }
476
481
 
477
482
  .ft-button[disabled] {
478
483
  filter: grayscale(1);
479
- opacity: ${Xn.opacityDisabled};
484
+ opacity: ${Qo.opacityDisabled};
480
485
  }
481
486
 
482
487
  .ft-button.ft-button--primary {
483
- background-color: ${Qn.backgroundColor};
484
- --ft-button-internal-color: ${Qn.color};
485
- ${St(Bi.color,Qn.rippleColor)};
488
+ background-color: ${en.backgroundColor};
489
+ --ft-button-internal-color: ${en.color};
490
+ ${Ot(Hi.color,en.rippleColor)};
486
491
  }
487
492
 
488
493
  .ft-button:focus {
@@ -495,13 +500,13 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
495
500
  white-space: nowrap;
496
501
  text-overflow: ellipsis;
497
502
  display: block;
498
- margin: 0 ${Xn.iconPadding};
499
- ${St(Mn.fontSize,"1em")};
500
- ${St(Mn.lineHeight,"var(--ft-button-internal-line-height)")};
503
+ margin: 0 ${Qo.iconPadding};
504
+ ${Ot(Uo.fontSize,"1em")};
505
+ ${Ot(Uo.lineHeight,"var(--ft-button-internal-line-height)")};
501
506
  }
502
507
 
503
508
  .ft-button--dense .ft-button--label {
504
- margin: 0 ${no};
509
+ margin: 0 ${sn};
505
510
  }
506
511
 
507
512
  .ft-button--label[hidden] {
@@ -514,13 +519,13 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
514
519
  }
515
520
 
516
521
  .ft-button--label[hidden] + ft-icon {
517
- margin: 0 calc(${Xn.horizontalPadding} * -1);
518
- padding: 0 ${Xn.verticalPadding};
522
+ margin: 0 calc(${Qo.horizontalPadding} * -1);
523
+ padding: 0 ${Qo.verticalPadding};
519
524
  }
520
525
 
521
526
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
522
- margin: 0 calc(${io} * -1);
523
- padding: 0 ${eo};
527
+ margin: 0 calc(${rn} * -1);
528
+ padding: 0 ${nn};
524
529
  }
525
530
 
526
531
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -529,10 +534,10 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
529
534
  }
530
535
 
531
536
  ft-loader {
532
- ${St(Vn.size,Xn.iconSize)};
533
- ${St(Vn.color,"var(--ft-button-internal-color)")};
537
+ ${Ot(qo.size,Qo.iconSize)};
538
+ ${Ot(qo.color,"var(--ft-button-internal-color)")};
534
539
  }
535
- `,Tt],ro={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",Mn.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)},so={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(Qi.fontSize,"Typography"),sectionTitleFontSize:$t.external(tn.fontSize,"Typography")},ao=w`
540
+ `,Mt],ln={textColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceHigh),backgroundColor:kt.extend("--ft-switch-background-color",Et.colorSurface),selectedTextColor:kt.extend("--ft-switch-selected-text-color",Et.colorPrimary),selectedBackgroundColor:kt.extend("--ft-switch-selected-background-color",Et.colorPrimary),borderColor:kt.extend("--ft-switch-border-color",Et.colorOutline),borderRadius:kt.extend("--ft-switch-border-radius",Et.borderRadiusL),fontSize:kt.extend("--ft-switch-font-size",Uo.fontSize),iconSize:kt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceMedium),rippleColor:kt.extend("--ft-switch-ripple-color",Et.colorPrimary),outlineColor:kt.extend("--ft-switch-outline-color",Et.colorPrimary)},cn={feedbackInputMinWidth:kt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:kt.external(Et.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:kt.extend("--ft-reader-feedback-send-feedback-color",Et.colorOnPrimary),sendFeedbackBackgroundColor:kt.extend("--ft-reader-feedback-send-feedback-background-color",Et.colorPrimary),filledRatingColor:kt.extend("--ft-reader-feedback-filled-rating-color",Et.colorPrimary),emptyRatingColor:kt.extend("--ft-reader-feedback-empty-rating-color",Et.colorOnSurfaceMedium),mainTitleFontSize:kt.external(eo.fontSize,"Typography"),sectionTitleFontSize:kt.external(io.fontSize,"Typography")},dn=S`
536
541
  .ft-reader-feedback {
537
542
  box-sizing: border-box;
538
543
  display: flex;
@@ -578,14 +583,14 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
578
583
  }
579
584
 
580
585
  .ft-reader-feedback--rating {
581
- ${St(Xn.color,so.emptyRatingColor)};
582
- ${St(Xn.rippleColor,so.filledRatingColor)};
583
- ${St(ro.textColor,so.emptyRatingColor)};
584
- ${St(ro.selectedTextColor,so.filledRatingColor)};
586
+ ${Ot(Qo.color,cn.emptyRatingColor)};
587
+ ${Ot(Qo.rippleColor,cn.filledRatingColor)};
588
+ ${Ot(ln.textColor,cn.emptyRatingColor)};
589
+ ${Ot(ln.selectedTextColor,cn.filledRatingColor)};
585
590
  }
586
591
 
587
592
  .ft-reader-feedback--rating .ft-reader-feedback--active {
588
- ${St(Xn.color,so.filledRatingColor)};
593
+ ${Ot(Qo.color,cn.filledRatingColor)};
589
594
  }
590
595
 
591
596
  .ft-reader-feedback--feedback {
@@ -593,47 +598,47 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
593
598
  }
594
599
 
595
600
  .ft-reader-feedback--rating-date {
596
- color: ${so.ratedDateColor};
601
+ color: ${cn.ratedDateColor};
597
602
  }
598
603
 
599
604
  .ft-reader-feedback--feedback ft-text-area {
600
- min-width: ${so.feedbackInputMinWidth};
605
+ min-width: ${cn.feedbackInputMinWidth};
601
606
  }
602
607
 
603
608
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
604
609
  align-self: flex-end;
605
- ${St(Xn.color,so.sendFeedbackColor)};
606
- ${St(Xn.backgroundColor,so.sendFeedbackBackgroundColor)};
610
+ ${Ot(Qo.color,cn.sendFeedbackColor)};
611
+ ${Ot(Qo.backgroundColor,cn.sendFeedbackBackgroundColor)};
607
612
  }
608
613
  `
609
614
  /**
610
615
  * @license
611
616
  * Copyright 2020 Google LLC
612
617
  * SPDX-License-Identifier: BSD-3-Clause
613
- */,lo=Symbol.for(""),co=t=>{if((null==t?void 0:t.r)===lo)return null==t?void 0:t._$litStatic$},ho=t=>({_$litStatic$:t,r:lo}),uo=new Map,fo=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=co(r));)l+=o+e[++c],h=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=uo.get(t))&&(s.raw=s,uo.set(t,e=s)),i=a}return t(e,...i)})(tt);var po;!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"}(po||(po={}));var vo=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 It{constructor(){super(...arguments),this.variant=po.body1}render(){return this.element?fo`
614
- <${ho(this.element)}
618
+ */,hn=Symbol.for(""),fn=t=>{if((null==t?void 0:t.r)===hn)return null==t?void 0:t._$litStatic$},un=t=>({_$litStatic$:t,r:hn}),pn=new Map,vn=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,d=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=fn(r));)l+=n+e[++c],d=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=pn.get(t))&&(s.raw=s,pn.set(t,e=s)),i=a}return t(e,...i)})(it);var bn;!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"}(bn||(bn={}));var gn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class yn extends At{constructor(){super(...arguments),this.variant=bn.body1}render(){return this.element?vn`
619
+ <${un(this.element)}
615
620
  class="ft-typography ft-typography--${this.variant}">
616
621
  <slot></slot>
617
- </${ho(this.element)}>
618
- `:fo`
622
+ </${un(this.element)}>
623
+ `:vn`
619
624
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
620
- `}}bo.styles=[An,Un,Fn,zn,Pn,Dn,Ln,Bn,Wn,Hn,Kn],vo([s()],bo.prototype,"element",void 0),vo([s()],bo.prototype,"variant",void 0),f("ft-typography")(bo);
625
+ `}}yn.styles=[zo,Fo,Do,Po,Bo,Lo,Wo,Ho,Zo,Vo,Ko],gn([s()],yn.prototype,"element",void 0),gn([s()],yn.prototype,"variant",void 0),v("ft-typography")(yn);
621
626
  /**
622
627
  * @license
623
628
  * Copyright 2017 Google LLC
624
629
  * SPDX-License-Identifier: BSD-3-Clause
625
630
  */
626
- const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{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)}}
631
+ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{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
632
  /**
628
633
  * @license
629
634
  * Copyright 2017 Google LLC
630
635
  * SPDX-License-Identifier: BSD-3-Clause
631
- */class wo extends xo{constructor(t){if(super(t),this.et=it,t.type!==go)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:[]}}}wo.directiveName="unsafeHTML",wo.resultType=1;const $o=mo(wo);var So,ko,Oo;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(So||(So={})),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;"}(ko||(ko={})),new Map([...["abw"].map((t=>[t,ko.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,ko.AUDIO])),...["avi"].map((t=>[t,ko.AVI])),...["chm","xhs"].map((t=>[t,ko.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,ko.CODE])),...["csv"].map((t=>[t,ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ko.DITA])),...["epub"].map((t=>[t,ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ko.EXCEL])),...["flac"].map((t=>[t,ko.FLAC])),...["gif"].map((t=>[t,ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,ko.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,ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ko.JPEG])),...["json"].map((t=>[t,ko.JSON])),...["m4a","m4p"].map((t=>[t,ko.M4A])),...["mov","qt"].map((t=>[t,ko.MOV])),...["mp3"].map((t=>[t,ko.MP3])),...["mp4","m4v"].map((t=>[t,ko.MP4])),...["ogg","oga"].map((t=>[t,ko.OGG])),...["pdf","ps"].map((t=>[t,ko.PDF])),...["png"].map((t=>[t,ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ko.POWERPOINT])),...["rar"].map((t=>[t,ko.RAR])),...["stp"].map((t=>[t,ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ko.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,ko.VIDEO])),...["wav"].map((t=>[t,ko.WAV])),...["wma"].map((t=>[t,ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ko.YAML])),...["zip"].map((t=>[t,ko.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oo||(Oo={}));var _o=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Eo extends It{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(Oo).includes(this.variant)?this.variant:Oo.fluid_topics,e=t!==Oo.material||!!this.value;return tt`
636
+ */class Sn extends $n{constructor(t){if(super(t),this.et=nt,t.type!==mn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===ot)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:[]}}}Sn.directiveName="unsafeHTML",Sn.resultType=1;const kn=wn(Sn);var On,En,_n;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(On||(On={})),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;"}(En||(En={})),new Map([...["abw"].map((t=>[t,En.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,En.AUDIO])),...["avi"].map((t=>[t,En.AVI])),...["chm","xhs"].map((t=>[t,En.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,En.CODE])),...["csv"].map((t=>[t,En.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,En.DITA])),...["epub"].map((t=>[t,En.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,En.EXCEL])),...["flac"].map((t=>[t,En.FLAC])),...["gif"].map((t=>[t,En.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,En.GZIP])),...["html","htm","xhtml"].map((t=>[t,En.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,En.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,En.JPEG])),...["json"].map((t=>[t,En.JSON])),...["m4a","m4p"].map((t=>[t,En.M4A])),...["mov","qt"].map((t=>[t,En.MOV])),...["mp3"].map((t=>[t,En.MP3])),...["mp4","m4v"].map((t=>[t,En.MP4])),...["ogg","oga"].map((t=>[t,En.OGG])),...["pdf","ps"].map((t=>[t,En.PDF])),...["png"].map((t=>[t,En.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,En.POWERPOINT])),...["rar"].map((t=>[t,En.RAR])),...["stp"].map((t=>[t,En.STP])),...["txt","rtf","md","mdown"].map((t=>[t,En.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,En.VIDEO])),...["wav"].map((t=>[t,En.WAV])),...["wma"].map((t=>[t,En.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,En.WORD])),...["xml","xsl","rdf"].map((t=>[t,En.XML])),...["yaml","yml","x-yaml"].map((t=>[t,En.YAML])),...["zip"].map((t=>[t,En.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(_n||(_n={}));var Cn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Rn extends At{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(_n).includes(this.variant)?this.variant:_n.fluid_topics,e=t!==_n.material||!!this.value;return it`
632
637
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
633
- ${$o(this.resolvedIcon)}
638
+ ${kn(this.resolvedIcon)}
634
639
  <slot ?hidden=${e}></slot>
635
640
  </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 Oo.file_format:this.resolvedIcon=null!==(t=ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=So[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Eo.elementDefinitions={},Eo.styles=Gn,_o([s()],Eo.prototype,"variant",void 0),_o([s()],Eo.prototype,"value",void 0),_o([a()],Eo.prototype,"resolvedIcon",void 0),_o([c("slot")],Eo.prototype,"slottedContent",void 0),f("ft-icon")(Eo);const Co=$t.create("--ft-tooltip-distance","SIZE","4px"),Ro=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),jo=$t.create("--ft-tooltip-background-color","COLOR","#666666"),No=$t.create("--ft-tooltip-z-index","NUMBER","1"),Io=$t.external(kt.borderRadiusS,"Design system"),To=$t.create("--ft-tooltip-max-width","SIZE","150px"),Mo=w`
641
+ `}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 _n.file_format:this.resolvedIcon=null!==(t=En[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case _n.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=On[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Rn.elementDefinitions={},Rn.styles=Xo,Cn([s()],Rn.prototype,"variant",void 0),Cn([s()],Rn.prototype,"value",void 0),Cn([a()],Rn.prototype,"resolvedIcon",void 0),Cn([c("slot")],Rn.prototype,"slottedContent",void 0),v("ft-icon")(Rn);const jn=kt.create("--ft-tooltip-distance","SIZE","4px"),Nn=kt.create("--ft-tooltip-color","COLOR","#FFFFFF"),In=kt.create("--ft-tooltip-background-color","COLOR","#666666"),Tn=kt.create("--ft-tooltip-z-index","NUMBER","1"),An=kt.external(Et.borderRadiusS,"Design system"),Mn=kt.create("--ft-tooltip-max-width","SIZE","150px"),Un=S`
637
642
  .ft-tooltip--container {
638
643
  display: block;
639
644
  position: relative;
@@ -649,23 +654,23 @@ const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{constructo
649
654
  box-sizing: border-box;
650
655
  overflow: hidden;
651
656
  width: max-content;
652
- max-width: ${To};
657
+ max-width: ${Mn};
653
658
  text-align: center;
654
- padding: ${Co};
655
- z-index: ${No};
659
+ padding: ${jn};
660
+ z-index: ${Tn};
656
661
  }
657
662
 
658
663
  .ft-tooltip--content {
659
664
  padding: 4px 8px;
660
- border-radius: ${Io};
661
- background-color: ${jo};
662
- color: ${Ro};
665
+ border-radius: ${An};
666
+ background-color: ${In};
667
+ color: ${Nn};
663
668
  top: -500px;
664
669
  left: -500px;
665
670
  position: relative;
666
671
  word-break: break-word;
667
672
  }
668
- `;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.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`
673
+ `;var zn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Fn extends At{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return it`
669
674
  <div part="container"
670
675
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
671
676
  @mouseenter=${this.onHover}
@@ -683,19 +688,13 @@ const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{constructo
683
688
  </div>
684
689
  </div>
685
690
  </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, ${To})`}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())}}Uo.elementDefinitions={"ft-typography":bo},Uo.styles=Mo,Ao([s()],Uo.prototype,"text",void 0),Ao([s({type:Boolean})],Uo.prototype,"manual",void 0),Ao([s({type:Boolean})],Uo.prototype,"inline",void 0),Ao([s({type:Number})],Uo.prototype,"delay",void 0),Ao([s()],Uo.prototype,"position",void 0),Ao([
687
- /**
688
- * @license
689
- * Copyright 2017 Google LLC
690
- * SPDX-License-Identifier: BSD-3-Clause
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?u(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)],Uo.prototype,"slotNodes",void 0),Ao([c(".ft-tooltip--container")],Uo.prototype,"container",void 0),Ao([c("slot")],Uo.prototype,"target",void 0),Ao([c(".ft-tooltip")],Uo.prototype,"tooltip",void 0),Ao([c(".ft-tooltip--content")],Uo.prototype,"tooltipContent",void 0),Ao([a()],Uo.prototype,"visible",void 0),f("ft-tooltip")(Uo);
691
+ `}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,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=4-e.left);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${Mn})`}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())}}Fn.elementDefinitions={"ft-typography":yn},Fn.styles=Un,zn([s()],Fn.prototype,"text",void 0),zn([s({type:Boolean})],Fn.prototype,"manual",void 0),zn([s({type:Boolean})],Fn.prototype,"inline",void 0),zn([s({type:Number})],Fn.prototype,"delay",void 0),zn([s()],Fn.prototype,"position",void 0),zn([u("",!0)],Fn.prototype,"slotNodes",void 0),zn([c(".ft-tooltip--container")],Fn.prototype,"container",void 0),zn([c("slot")],Fn.prototype,"target",void 0),zn([c(".ft-tooltip")],Fn.prototype,"tooltip",void 0),zn([c(".ft-tooltip--content")],Fn.prototype,"tooltipContent",void 0),zn([a()],Fn.prototype,"visible",void 0),v("ft-tooltip")(Fn);
693
692
  /**
694
693
  * @license
695
694
  * Copyright 2018 Google LLC
696
695
  * SPDX-License-Identifier: BSD-3-Clause
697
696
  */
698
- const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"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 zo=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.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
697
+ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"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,o;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 n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return ot}});var Pn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bn extends At{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 n(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 n(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=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!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return it`
699
698
  <style>
700
699
  .ft-ripple .ft-ripple--effect,
701
700
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -708,11 +707,11 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
708
707
  top: ${this.originY}px;
709
708
  }
710
709
  </style>
711
- <div class="${Fo(t)}">
710
+ <div class="${Dn(t)}">
712
711
  <div class="ft-ripple--background"></div>
713
712
  <div class="ft-ripple--effect"></div>
714
713
  </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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Po.elementDefinitions={},Po.styles=Gi,zo([s({type:Boolean})],Po.prototype,"primary",void 0),zo([s({type:Boolean})],Po.prototype,"secondary",void 0),zo([s({type:Boolean})],Po.prototype,"unbounded",void 0),zo([s({type:Boolean})],Po.prototype,"activated",void 0),zo([s({type:Boolean})],Po.prototype,"selected",void 0),zo([s({type:Boolean})],Po.prototype,"disabled",void 0),zo([a()],Po.prototype,"hovered",void 0),zo([a()],Po.prototype,"focused",void 0),zo([a()],Po.prototype,"pressed",void 0),zo([a()],Po.prototype,"rippling",void 0),zo([a()],Po.prototype,"rippleSize",void 0),zo([a()],Po.prototype,"originX",void 0),zo([a()],Po.prototype,"originY",void 0),zo([c(".ft-ripple")],Po.prototype,"ripple",void 0),zo([c(".ft-ripple--effect")],Po.prototype,"rippleEffect",void 0),f("ft-ripple")(Po);const Do={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")},Lo=w`
714
+ `}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"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Bn.elementDefinitions={},Bn.styles=Xi,Pn([s({type:Boolean})],Bn.prototype,"primary",void 0),Pn([s({type:Boolean})],Bn.prototype,"secondary",void 0),Pn([s({type:Boolean})],Bn.prototype,"unbounded",void 0),Pn([s({type:Boolean})],Bn.prototype,"activated",void 0),Pn([s({type:Boolean})],Bn.prototype,"selected",void 0),Pn([s({type:Boolean})],Bn.prototype,"disabled",void 0),Pn([a()],Bn.prototype,"hovered",void 0),Pn([a()],Bn.prototype,"focused",void 0),Pn([a()],Bn.prototype,"pressed",void 0),Pn([a()],Bn.prototype,"rippling",void 0),Pn([a()],Bn.prototype,"rippleSize",void 0),Pn([a()],Bn.prototype,"originX",void 0),Pn([a()],Bn.prototype,"originY",void 0),Pn([c(".ft-ripple")],Bn.prototype,"ripple",void 0),Pn([c(".ft-ripple--effect")],Bn.prototype,"rippleEffect",void 0),v("ft-ripple")(Bn);const Ln={borderRadiusLeft:kt.extend("--ft-switch-option-border-radius-left",Et.borderRadiusL),borderRadiusRight:kt.extend("--ft-switch-option-border-radius-right",Et.borderRadiusL),borderWidthLeft:kt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:kt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:kt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Wn=S`
716
715
  .ft-switch-option {
717
716
  position: relative;
718
717
  display: inline-block;
@@ -726,20 +725,20 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
726
725
  }
727
726
 
728
727
  .ft-switch-option--content {
729
- --ft-switch-option-internal-line-height: calc(${ro.fontSize} + 2px);
730
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ro.iconSize});
728
+ --ft-switch-option-internal-line-height: calc(${ln.fontSize} + 2px);
729
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ln.iconSize});
731
730
 
732
731
  border-style: solid;
733
- border-color: ${ro.borderColor};
734
- border-width: ${Do.borderWidthVertical} ${Do.borderWidthRight} ${Do.borderWidthVertical} ${Do.borderWidthLeft};
735
- border-radius: ${Do.borderRadiusLeft} ${Do.borderRadiusRight} ${Do.borderRadiusRight} ${Do.borderRadiusLeft};
732
+ border-color: ${ln.borderColor};
733
+ border-width: ${Ln.borderWidthVertical} ${Ln.borderWidthRight} ${Ln.borderWidthVertical} ${Ln.borderWidthLeft};
734
+ border-radius: ${Ln.borderRadiusLeft} ${Ln.borderRadiusRight} ${Ln.borderRadiusRight} ${Ln.borderRadiusLeft};
736
735
  display: flex;
737
736
  align-items: center;
738
737
  justify-content: center;
739
738
  overflow: hidden;
740
- ${St(qn.size,ro.iconSize)};
739
+ ${Ot(Jo.size,ln.iconSize)};
741
740
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
742
- background-color: ${ro.backgroundColor};
741
+ background-color: ${ln.backgroundColor};
743
742
  -webkit-mask-image: radial-gradient(white, black);
744
743
  }
745
744
 
@@ -748,28 +747,28 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
748
747
  }
749
748
 
750
749
  .ft-switch-option--selected .ft-switch-option--content:before {
751
- background-color: ${ro.selectedBackgroundColor};
752
- border-radius: ${Do.borderRadiusLeft} ${Do.borderRadiusRight} ${Do.borderRadiusRight} ${Do.borderRadiusLeft};
750
+ background-color: ${ln.selectedBackgroundColor};
751
+ border-radius: ${Ln.borderRadiusLeft} ${Ln.borderRadiusRight} ${Ln.borderRadiusRight} ${Ln.borderRadiusLeft};
753
752
  position: absolute;
754
753
  inset: 0;
755
754
  content: "";
756
755
  z-index: 1;
757
- opacity: ${kt.opacityPrimaryOnSurfaceSelected};
756
+ opacity: ${Et.opacityPrimaryOnSurfaceSelected};
758
757
  }
759
758
 
760
759
  .ft-switch-option--label {
761
- color: ${ro.textColor};
760
+ color: ${ln.textColor};
762
761
  overflow: hidden;
763
762
  white-space: nowrap;
764
763
  text-overflow: ellipsis;
765
764
  display: block;
766
765
  margin: 0 8px;
767
- ${St(Mn.fontSize,ro.fontSize)};
768
- ${St(Mn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
766
+ ${Ot(Uo.fontSize,ln.fontSize)};
767
+ ${Ot(Uo.lineHeight,"var(--ft-switch-option-internal-content-height)")}
769
768
  }
770
769
 
771
770
  .ft-switch-option--selected .ft-switch-option--label {
772
- color: ${ro.selectedTextColor};
771
+ color: ${ln.selectedTextColor};
773
772
  }
774
773
 
775
774
  .ft-switch-option--label[hidden] {
@@ -777,7 +776,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
777
776
  }
778
777
 
779
778
  .ft-switch-option--ripple {
780
- ${St(Bi.color,ro.rippleColor)};
779
+ ${Ot(Hi.color,ln.rippleColor)};
781
780
  }
782
781
 
783
782
  ft-icon, ft-ripple, ft-typography {
@@ -790,20 +789,20 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
790
789
 
791
790
  ft-icon {
792
791
  flex-shrink: 0;
793
- color: ${ro.iconColor};
792
+ color: ${ln.iconColor};
794
793
  }
795
794
 
796
795
  .ft-switch-option--selected ft-icon {
797
- color: ${ro.selectedTextColor};
796
+ color: ${ln.selectedTextColor};
798
797
  }
799
- `;var Bo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Ho extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Ko 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 Ho(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(tt`
800
- <label part="label" for="input" class=${Fo(t)}
798
+ `;var Hn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zn extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Vn extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Kn extends At{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 Vn(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(it`
799
+ <label part="label" for="input" class=${Dn(t)}
801
800
  @click=${this.onChange}>
802
801
  <div class="ft-switch-option--content">
803
802
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
804
803
  <ft-typography part="text"
805
804
  variant="button"
806
- class="ft-switch-option--label ${Ui?"ft-safari-ellipsis-fix":""}"
805
+ class="ft-switch-option--label ${Fi?"ft-safari-ellipsis-fix":""}"
807
806
  ?hidden=${!this.hasTextContent()}>
808
807
  <slot @slotchange=${this.onSlotchange}></slot>
809
808
  </ft-typography>
@@ -812,29 +811,29 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
812
811
  </label>
813
812
  <input id="input" type="radio" class="ft-switch-option--input"
814
813
  .checked=${this.selected}>
815
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:tt`
814
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:it`
816
815
  <ft-tooltip part="tooltip"
817
816
  text="${this.getLabel()}"
818
817
  position="${this.tooltipPosition}">
819
818
  ${t}
820
819
  </ft-tooltip>
821
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Wo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?tt`
820
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Zn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?it`
822
821
  <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()}}Ko.elementDefinitions={"ft-ripple":Po,"ft-typography":bo,"ft-tooltip":Uo,"ft-icon":Eo},Ko.styles=[Mt,Lo],Bo([s()],Ko.prototype,"value",void 0),Bo([s()],Ko.prototype,"icon",void 0),Bo([s()],Ko.prototype,"iconVariant",void 0),Bo([s()],Ko.prototype,"label",void 0),Bo([s()],Ko.prototype,"tooltipPosition",void 0),Bo([s({type:Boolean,reflect:!0})],Ko.prototype,"selected",void 0),Bo([s({type:Boolean})],Ko.prototype,"trailingIcon",void 0),Bo([s({type:Boolean})],Ko.prototype,"unselectable",void 0),Bo([c(".ft-switch-option--content slot")],Ko.prototype,"slottedContent",void 0),Bo([c(".ft-switch-option--input")],Ko.prototype,"input",void 0);var Vo=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 CustomEvent{constructor(t){super("change",{detail:t})}}class qo 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){super.updated(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return tt`
824
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Fo(t)}">
822
+ `:nt}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()}}Kn.elementDefinitions={"ft-ripple":Bn,"ft-typography":yn,"ft-tooltip":Fn,"ft-icon":Rn},Kn.styles=[Ut,Wn],Hn([s()],Kn.prototype,"value",void 0),Hn([s()],Kn.prototype,"icon",void 0),Hn([s()],Kn.prototype,"iconVariant",void 0),Hn([s()],Kn.prototype,"label",void 0),Hn([s()],Kn.prototype,"tooltipPosition",void 0),Hn([s({type:Boolean,reflect:!0})],Kn.prototype,"selected",void 0),Hn([s({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Hn([s({type:Boolean})],Kn.prototype,"unselectable",void 0),Hn([c(".ft-switch-option--content slot")],Kn.prototype,"slottedContent",void 0),Hn([c(".ft-switch-option--input")],Kn.prototype,"input",void 0);var qn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Gn extends CustomEvent{constructor(t){super("change",{detail:t})}}class Jn extends At{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){super.updated(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return it`
823
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Dn(t)}">
825
824
  <slot @slotchange=${this.onSlotchange}
826
825
  @option-change=${this.onOptionChangeByScript}
827
826
  @option-change-by-user=${this.onOptionChangeByUser}
828
827
  ></slot>
829
828
  </div>
830
- `}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 Ko&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Zo(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}qo.elementDefinitions={},qo.styles=w`
829
+ `}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 Kn&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Gn(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Jn.elementDefinitions={},Jn.styles=S`
831
830
  :host {
832
831
  display: inline-block;
833
832
  }
834
833
 
835
834
  .ft-switch {
836
- border-radius: ${ro.borderRadius};
837
- outline-color: ${ro.outlineColor};
835
+ border-radius: ${ln.borderRadius};
836
+ outline-color: ${ln.outlineColor};
838
837
  }
839
838
 
840
839
  .ft-switch slot {
@@ -843,25 +842,25 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
843
842
  }
844
843
 
845
844
  .ft-switch slot::slotted(ft-switch-option) {
846
- ${St(Do.borderRadiusLeft,"0")};
847
- ${St(Do.borderRadiusRight,"0")};
848
- ${St(Do.borderWidthLeft,"0")};
845
+ ${Ot(Ln.borderRadiusLeft,"0")};
846
+ ${Ot(Ln.borderRadiusRight,"0")};
847
+ ${Ot(Ln.borderWidthLeft,"0")};
849
848
  }
850
849
 
851
850
  .ft-switch slot::slotted(ft-switch-option:first-child) {
852
- ${St(Do.borderRadiusLeft,ro.borderRadius)};
853
- ${St(Do.borderWidthLeft,"1px")};
851
+ ${Ot(Ln.borderRadiusLeft,ln.borderRadius)};
852
+ ${Ot(Ln.borderWidthLeft,"1px")};
854
853
  }
855
854
 
856
855
  .ft-switch slot::slotted(ft-switch-option:last-child) {
857
- ${St(Do.borderRadiusRight,ro.borderRadius)};
856
+ ${Ot(Ln.borderRadiusRight,ln.borderRadius)};
858
857
  }
859
858
 
860
859
  .ft-switch--dense slot::slotted(ft-switch-option) {
861
860
  --ft-switch-internal-vertical-padding: 2px;
862
861
  --ft-switch-internal-horizontal-padding: 4px;
863
862
  }
864
- `,Vo([s({type:Boolean})],qo.prototype,"dense",void 0),Vo([s({type:Boolean})],qo.prototype,"unselectable",void 0),Vo([c(".ft-switch slot")],qo.prototype,"slottedContent",void 0),Vo([a()],qo.prototype,"selectedOption",void 0),Vo([c(".ft-switch")],qo.prototype,"ftSwitchDiv",void 0),f("ft-switch")(qo),f("ft-switch-option")(Ko);const Go=$t.external(kt.colorOutline,"Design system"),Jo=$t.external(kt.colorOnSurfaceMedium,"Design system"),Xo=w`
863
+ `,qn([s({type:Boolean})],Jn.prototype,"dense",void 0),qn([s({type:Boolean})],Jn.prototype,"unselectable",void 0),qn([c(".ft-switch slot")],Jn.prototype,"slottedContent",void 0),qn([a()],Jn.prototype,"selectedOption",void 0),qn([c(".ft-switch")],Jn.prototype,"ftSwitchDiv",void 0),v("ft-switch")(Jn),v("ft-switch-option")(Kn);const Xn=kt.external(Et.colorOutline,"Design system"),Yn=kt.external(Et.colorOnSurfaceMedium,"Design system"),Qn=S`
865
864
  :host {
866
865
  display: block;
867
866
  }
@@ -872,17 +871,17 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
872
871
 
873
872
  ft-icon {
874
873
  transform: rotate(-45deg);
875
- color: ${Go};
874
+ color: ${Xn};
876
875
  }
877
876
 
878
877
  .ft-resizer--dragging ft-icon,
879
878
  .ft-resizer:hover ft-icon {
880
- color: ${Jo};
879
+ color: ${Yn};
881
880
  }
882
- `;var Yo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qo extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class tr extends It{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Oo.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
+ `;var tr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class er extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ir extends At{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=_n.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 it`
883
882
  <style>
884
883
  .ft-resizer {
885
- cursor: ${x(this.cursor)}
884
+ cursor: ${$(this.cursor)}
886
885
  }
887
886
  </style>
888
887
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -890,25 +889,25 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
890
889
  @touchstart=${this.initDragFromTouch}>
891
890
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
892
891
  </div>
893
- `}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 Qo(i,n))}}tr.elementDefinitions={"ft-icon":Eo},tr.styles=[Tt,Xo],Yo([s({type:Number})],tr.prototype,"initialWidth",void 0),Yo([s({type:Number})],tr.prototype,"initialHeight",void 0),Yo([s()],tr.prototype,"icon",void 0),Yo([s()],tr.prototype,"iconVariant",void 0),Yo([s()],tr.prototype,"cursor",void 0),Yo([a()],tr.prototype,"dragging",void 0),f("ft-resizer")(tr);const er={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")},ir=w`
892
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new er(i,o))}}ir.elementDefinitions={"ft-icon":Rn},ir.styles=[Mt,Qn],tr([s({type:Number})],ir.prototype,"initialWidth",void 0),tr([s({type:Number})],ir.prototype,"initialHeight",void 0),tr([s()],ir.prototype,"icon",void 0),tr([s()],ir.prototype,"iconVariant",void 0),tr([s()],ir.prototype,"cursor",void 0),tr([a()],ir.prototype,"dragging",void 0),v("ft-resizer")(ir);const or={fontSize:kt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:kt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:kt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:kt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:kt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:kt.extend("--ft-input-label-border-color",Et.colorOutline),textColor:kt.extend("--ft-input-label-text-color",Et.colorOnSurfaceMedium),disabledTextColor:kt.extend("--ft-input-label-disabled-text-color",Et.colorOnSurfaceDisabled),colorSurface:kt.external(Et.colorSurface,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system")},nr=S`
894
893
  .ft-input-label {
895
894
  position: absolute;
896
895
  inset: 0;
897
896
  display: flex;
898
- background-color: ${er.colorSurface};
899
- border-radius: ${er.borderRadiusS} ${er.borderRadiusS} 0 0;
897
+ background-color: ${or.colorSurface};
898
+ border-radius: ${or.borderRadiusS} ${or.borderRadiusS} 0 0;
900
899
  }
901
900
 
902
901
  .ft-input-label--outlined {
903
- border-radius: ${er.borderRadiusS};
902
+ border-radius: ${or.borderRadiusS};
904
903
  }
905
904
 
906
905
  .ft-input-label {
907
- border-color: ${er.borderColor};
906
+ border-color: ${or.borderColor};
908
907
  }
909
908
 
910
909
  .ft-input-label.ft-input-label--in-error {
911
- border-color: ${er.colorError}
910
+ border-color: ${or.colorError}
912
911
  }
913
912
 
914
913
  .ft-input-label:before,
@@ -921,7 +920,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
921
920
  }
922
921
 
923
922
  .ft-input-label:before {
924
- width: calc(${er.horizontalSpacing} - 4px);
923
+ width: calc(${or.horizontalSpacing} - 4px);
925
924
  flex-shrink: 0;
926
925
  }
927
926
 
@@ -937,20 +936,20 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
937
936
  border-bottom-width: 1px;
938
937
  border-bottom-style: solid;
939
938
  border-color: inherit;
940
- color: ${er.textColor};
939
+ color: ${or.textColor};
941
940
  transition: font-size 250ms, line-height 250ms, color 250ms;
942
- max-width: calc(${er.labelMaxWidth} - 2 * (${er.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
941
+ max-width: calc(${or.labelMaxWidth} - 2 * (${or.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
943
942
  text-overflow: ellipsis;
944
- ${St(wn.fontSize,er.fontSize)};
945
- ${St(wn.lineHeight,er.fontSize)};
943
+ ${Ot(So.fontSize,or.fontSize)};
944
+ ${Ot(So.lineHeight,or.fontSize)};
946
945
  }
947
946
 
948
947
  .ft-input-label--in-error .ft-input-label--text {
949
- color: ${er.colorError}
948
+ color: ${or.colorError}
950
949
  }
951
950
 
952
951
  .ft-input-label--disabled .ft-input-label--text {
953
- color: ${er.disabledTextColor};
952
+ color: ${or.disabledTextColor};
954
953
  }
955
954
 
956
955
  .ft-input-label--hidden-text {
@@ -967,19 +966,19 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
967
966
  overflow: hidden;
968
967
  white-space: nowrap;
969
968
  text-overflow: ellipsis;
970
- padding: ${er.verticalSpacing} 4px;
971
- margin: calc(${er.verticalSpacing} * -1) 0;
969
+ padding: ${or.verticalSpacing} 4px;
970
+ margin: calc(${or.verticalSpacing} * -1) 0;
972
971
  max-width: 100%;
973
972
  box-sizing: border-box;
974
973
  }
975
974
 
976
975
  .ft-input-label--raised .ft-input-label--text {
977
- ${St(wn.fontSize,er.raisedFontSize)};
978
- ${St(wn.lineHeight,er.raisedFontSize)};
976
+ ${Ot(So.fontSize,or.raisedFontSize)};
977
+ ${Ot(So.lineHeight,or.raisedFontSize)};
979
978
  }
980
979
 
981
980
  .ft-input-label--raised .ft-input-label--floating-text {
982
- top: ${er.verticalSpacing};
981
+ top: ${or.verticalSpacing};
983
982
  }
984
983
 
985
984
  .ft-input-label--outlined .ft-input-label--text,
@@ -992,36 +991,36 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
992
991
  .ft-input-label--outlined:before {
993
992
  border-left-width: 1px;
994
993
  border-left-style: solid;
995
- border-radius: ${er.borderRadiusS} 0 0 ${er.borderRadiusS};
994
+ border-radius: ${or.borderRadiusS} 0 0 ${or.borderRadiusS};
996
995
  }
997
996
 
998
997
  .ft-input-label--outlined:after {
999
998
  border-right-width: 1px;
1000
999
  border-right-style: solid;
1001
- border-radius: 0 ${er.borderRadiusS} ${er.borderRadiusS} 0;
1000
+ border-radius: 0 ${or.borderRadiusS} ${or.borderRadiusS} 0;
1002
1001
  }
1003
1002
 
1004
1003
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1005
1004
  padding: 2px 4px;
1006
- z-index: ${er.raisedZIndex};
1007
- background-color: ${er.colorSurface};
1008
- border-radius: ${er.borderRadiusS};
1005
+ z-index: ${or.raisedZIndex};
1006
+ background-color: ${or.colorSurface};
1007
+ border-radius: ${or.borderRadiusS};
1009
1008
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1010
1009
  }
1011
1010
 
1012
1011
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1013
1012
  border-top: none;
1014
1013
  }
1015
- `;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.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`
1016
- <div class="${Fo(t)}">
1017
- ${this.text?tt`
1014
+ `;var rr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class sr extends At{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 it`
1015
+ <div class="${Dn(t)}">
1016
+ ${this.text?it`
1018
1017
  <div class="ft-input-label--text ft-typography--caption">
1019
1018
  <span class="ft-input-label--floating-text">${this.text}</span>
1020
1019
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1021
1020
  </div>
1022
1021
  `:null}
1023
1022
  </div>
1024
- `}}or.elementDefinitions={},or.styles=[Ln,ir],nr([s({type:String})],or.prototype,"text",void 0),nr([s({type:Boolean})],or.prototype,"raised",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),f("ft-input-label")(or);const rr={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")},sr=w`
1023
+ `}}sr.elementDefinitions={},sr.styles=[Wo,nr],rr([s({type:String})],sr.prototype,"text",void 0),rr([s({type:Boolean})],sr.prototype,"raised",void 0),rr([s({type:Boolean})],sr.prototype,"outlined",void 0),rr([s({type:Boolean})],sr.prototype,"disabled",void 0),rr([s({type:Boolean})],sr.prototype,"error",void 0),v("ft-input-label")(sr);const ar={fontSize:kt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:kt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:kt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:kt.extend("--ft-text-area-helper-color",Et.colorOnSurfaceMedium),colorPrimary:kt.external(Et.colorPrimary,"Design system"),colorOnSurface:kt.external(Et.colorOnSurface,"Design system"),colorOnSurfaceDisabled:kt.external(Et.colorOnSurfaceDisabled,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system")},lr=S`
1025
1024
  *:focus {
1026
1025
  outline: none;
1027
1026
  }
@@ -1033,10 +1032,10 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1033
1032
  }
1034
1033
 
1035
1034
  ft-input-label {
1036
- ${St(er.fontSize,rr.fontSize)};
1037
- ${St(er.raisedFontSize,rr.labelSize)};
1038
- ${St(er.verticalSpacing,rr.verticalSpacing)};
1039
- ${St(er.horizontalSpacing,rr.horizontalSpacing)};
1035
+ ${Ot(or.fontSize,ar.fontSize)};
1036
+ ${Ot(or.raisedFontSize,ar.labelSize)};
1037
+ ${Ot(or.verticalSpacing,ar.verticalSpacing)};
1038
+ ${Ot(or.horizontalSpacing,ar.horizontalSpacing)};
1040
1039
  }
1041
1040
 
1042
1041
  .ft-text-area--main-panel {
@@ -1054,8 +1053,8 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1054
1053
  }
1055
1054
 
1056
1055
  .ft-text-area--input-panel ft-ripple {
1057
- ${St(Bi.opacityContentOnSurfaceHover,"0.08")};
1058
- ${St(Bi.opacityContentOnSurfacePressed,"0.04")};
1056
+ ${Ot(Hi.opacityContentOnSurfaceHover,"0.08")};
1057
+ ${Ot(Hi.opacityContentOnSurfacePressed,"0.04")};
1059
1058
  }
1060
1059
 
1061
1060
  .ft-text-area--input {
@@ -1067,12 +1066,12 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1067
1066
  align-self: stretch;
1068
1067
  resize: none;
1069
1068
 
1070
- ${St(pn.fontSize,rr.fontSize)};
1071
- ${St(pn.lineHeight,rr.fontSize)};
1072
- color: ${rr.colorOnSurface};
1069
+ ${Ot(bo.fontSize,ar.fontSize)};
1070
+ ${Ot(bo.lineHeight,ar.fontSize)};
1071
+ color: ${ar.colorOnSurface};
1073
1072
 
1074
- padding: 0 ${rr.horizontalSpacing};
1075
- margin: calc(${rr.verticalSpacing} + ${rr.labelSize} / 2) 0 ${rr.verticalSpacing} 0;
1073
+ padding: 0 ${ar.horizontalSpacing};
1074
+ margin: calc(${ar.verticalSpacing} + ${ar.labelSize} / 2) 0 ${ar.verticalSpacing} 0;
1076
1075
 
1077
1076
  border: none;
1078
1077
  background: none;
@@ -1081,7 +1080,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1081
1080
  }
1082
1081
 
1083
1082
  .ft-text-area--disabled .ft-text-area--input {
1084
- color: ${rr.colorOnSurfaceDisabled};
1083
+ color: ${ar.colorOnSurfaceDisabled};
1085
1084
  }
1086
1085
 
1087
1086
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1089,49 +1088,49 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1089
1088
  }
1090
1089
 
1091
1090
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1092
- ${St(er.borderColor,rr.colorPrimary)};
1093
- ${St(er.textColor,rr.colorPrimary)};
1091
+ ${Ot(or.borderColor,ar.colorPrimary)};
1092
+ ${Ot(or.textColor,ar.colorPrimary)};
1094
1093
  }
1095
1094
 
1096
1095
  .ft-text-area--filled .ft-text-area--input-panel {
1097
- border-radius: ${rr.borderRadiusS} ${rr.borderRadiusS} 0 0;
1096
+ border-radius: ${ar.borderRadiusS} ${ar.borderRadiusS} 0 0;
1098
1097
  }
1099
1098
 
1100
1099
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1101
1100
  align-self: stretch;
1102
- margin-bottom: ${rr.verticalSpacing};
1103
- margin-top: calc(${rr.labelSize} + 2 * ${rr.verticalSpacing});
1101
+ margin-bottom: ${ar.verticalSpacing};
1102
+ margin-top: calc(${ar.labelSize} + 2 * ${ar.verticalSpacing});
1104
1103
  }
1105
1104
 
1106
1105
  .ft-text-area--outlined .ft-text-area--input-panel {
1107
- border-radius: ${rr.borderRadiusS};
1106
+ border-radius: ${ar.borderRadiusS};
1108
1107
  }
1109
1108
 
1110
1109
  .ft-text-area--helper-text {
1111
- padding: 0 12px 0 ${rr.horizontalSpacing};
1112
- color: ${rr.helperColor};
1110
+ padding: 0 12px 0 ${ar.horizontalSpacing};
1111
+ color: ${ar.helperColor};
1113
1112
  }
1114
1113
 
1115
1114
  .ft-text-area--in-error .ft-text-area--input,
1116
1115
  .ft-text-area--in-error .ft-text-area--helper-text {
1117
- color: ${rr.colorError};
1116
+ color: ${ar.colorError};
1118
1117
  }
1119
1118
 
1120
1119
  ft-resizer {
1121
1120
  position: absolute;
1122
1121
  bottom: 0;
1123
1122
  }
1124
- `;var ar=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lr extends 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 cr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class dr extends At{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 it`
1125
1124
  <style>
1126
1125
  .ft-text-area--main-panel {
1127
- height: calc(4 * ${rr.verticalSpacing} + ${rr.labelSize} + ${rr.fontSize} + ${this.height}px);
1126
+ height: calc(4 * ${ar.verticalSpacing} + ${ar.labelSize} + ${ar.fontSize} + ${this.height}px);
1128
1127
  }
1129
1128
 
1130
1129
  ft-resizer {
1131
1130
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1132
1131
  }
1133
1132
  </style>
1134
- <div class="${Fo(t)}">
1133
+ <div class="${Dn(t)}">
1135
1134
  <div class="ft-text-area--main-panel">
1136
1135
  <ft-input-label text="${this.label}"
1137
1136
  ?disabled=${this.disabled}
@@ -1141,7 +1140,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1141
1140
  ></ft-input-label>
1142
1141
  <div class="ft-text-area--input-panel"
1143
1142
  aria-label="${this.label}">
1144
- ${this.outlined?null:tt`
1143
+ ${this.outlined?null:it`
1145
1144
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1146
1145
  `}
1147
1146
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1158,63 +1157,307 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
1158
1157
  initialHeight="${this.height}"
1159
1158
  cursor="ns-resize"></ft-resizer>
1160
1159
  </div>
1161
- ${this.helper?tt`
1160
+ ${this.helper?it`
1162
1161
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1163
1162
  ${this.helper}
1164
1163
  </ft-typography>`:void 0}
1165
1164
  </div>
1166
- `}setValue(t,e=!1){this.value=t,e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}lr.elementDefinitions={"ft-input-label":or,"ft-resizer":tr,"ft-ripple":Po,"ft-typography":bo},lr.styles=[Pn,sr],ar([s({type:String})],lr.prototype,"label",void 0),ar([s({reflect:!0})],lr.prototype,"value",void 0),ar([s({type:String})],lr.prototype,"helper",void 0),ar([s({type:Boolean})],lr.prototype,"outlined",void 0),ar([s({type:Boolean})],lr.prototype,"disabled",void 0),ar([s({type:Boolean})],lr.prototype,"error",void 0),ar([s({type:Number,reflect:!0})],lr.prototype,"height",void 0),ar([c("textarea")],lr.prototype,"textarea",void 0),ar([a()],lr.prototype,"focused",void 0),f("ft-text-area")(lr);
1165
+ `}setValue(t,e=!1){this.value=t,e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}dr.elementDefinitions={"ft-input-label":sr,"ft-resizer":ir,"ft-ripple":Bn,"ft-typography":yn},dr.styles=[Bo,lr],cr([s({type:String})],dr.prototype,"label",void 0),cr([s({reflect:!0})],dr.prototype,"value",void 0),cr([s({type:String})],dr.prototype,"helper",void 0),cr([s({type:Boolean})],dr.prototype,"outlined",void 0),cr([s({type:Boolean})],dr.prototype,"disabled",void 0),cr([s({type:Boolean})],dr.prototype,"error",void 0),cr([s({type:Number,reflect:!0})],dr.prototype,"height",void 0),cr([c("textarea")],dr.prototype,"textarea",void 0),cr([a()],dr.prototype,"focused",void 0),v("ft-text-area")(dr);
1167
1166
  /**
1168
1167
  * @license
1169
1168
  * Copyright 2020 Google LLC
1170
1169
  * SPDX-License-Identifier: BSD-3-Clause
1171
1170
  */
1172
- const{I:cr}=bt,hr=()=>document.createComment(""),ur=(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(hr(),r),n=o.insertBefore(hr(),r);i=new cr(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},dr=(t,e,i=t)=>(t._$AI(e,i),t),fr={},pr=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}},vr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},br=mo(class extends xo{constructor(t){if(super(t),t.type!==go)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 h,u,d=0,f=r.length-1,p=0,v=s.length-1;for(;d<=f&&p<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[p])c[p]=dr(r[d],s[p]),d++,p++;else if(l[f]===a[v])c[v]=dr(r[f],s[v]),f--,v--;else if(l[d]===a[v])c[v]=dr(r[d],s[v]),ur(t,c[v+1],r[d]),d++,v--;else if(l[f]===a[p])c[p]=dr(r[f],s[p]),ur(t,r[d],r[f]),f--,p++;else if(void 0===h&&(h=vr(a,p,v),u=vr(l,d,f)),h.has(l[d]))if(h.has(l[f])){const e=u.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=ur(t,r[d]);dr(e,s[p]),c[p]=e}else c[p]=dr(i,s[p]),ur(t,r[d],i),r[e]=null;p++}else pr(r[f]),f--;else pr(r[d]),d++;for(;p<=v;){const e=ur(t,c[v+1]);dr(e,s[p]),c[p++]=e}for(;d<=f;){const t=r[d++];null!==t&&pr(t)}return this.ht=a,((t,e=fr)=>{t._$AH=e})(t,c),et}});
1171
+ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(fr(),r),o=n.insertBefore(fr(),r);i=new hr(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.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;n.insertBefore(t,r),t=e}}}return i},pr=(t,e,i=t)=>(t._$AI(e,i),t),vr={},br=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},gr=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},yr=wn(class extends $n{constructor(t){if(super(t),t.type!==mn)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(n=this.ht)&&void 0!==n?n:this.ht=[],c=[];let d,h,f=0,u=r.length-1,p=0,v=s.length-1;for(;f<=u&&p<=v;)if(null===r[f])f++;else if(null===r[u])u--;else if(l[f]===a[p])c[p]=pr(r[f],s[p]),f++,p++;else if(l[u]===a[v])c[v]=pr(r[u],s[v]),u--,v--;else if(l[f]===a[v])c[v]=pr(r[f],s[v]),ur(t,c[v+1],r[f]),f++,v--;else if(l[u]===a[p])c[p]=pr(r[u],s[p]),ur(t,r[f],r[u]),u--,p++;else if(void 0===d&&(d=gr(a,p,v),h=gr(l,f,u)),d.has(l[f]))if(d.has(l[u])){const e=h.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=ur(t,r[f]);pr(e,s[p]),c[p]=e}else c[p]=pr(i,s[p]),ur(t,r[f],i),r[e]=null;p++}else br(r[u]),u--;else br(r[f]),f++;for(;p<=v;){const e=ur(t,c[v+1]);pr(e,s[p]),c[p++]=e}for(;f<=u;){const t=r[f++];null!==t&&br(t)}return this.ht=a,((t,e=vr)=>{t._$AH=e})(t,c),ot}});
1173
1172
  /**
1174
1173
  * @license
1175
1174
  * Copyright 2017 Google LLC
1176
1175
  * SPDX-License-Identifier: BSD-3-Clause
1177
- */class yr extends It{render(){return tt`
1176
+ */class xr extends At{render(){return it`
1178
1177
  <div class="ft-loader">
1179
1178
  <div></div>
1180
1179
  <div></div>
1181
1180
  <div></div>
1182
1181
  <div></div>
1183
1182
  </div>
1184
- `}}yr.styles=Zn,f("ft-loader")(yr);var gr=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 mr 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`
1183
+ `}}xr.styles=Go,v("ft-loader")(xr);var mr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wr extends At{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(it`
1185
1184
  <button part="button"
1186
- class="${Fo(t)}"
1185
+ class="${Dn(t)}"
1187
1186
  aria-label="${this.getLabel()}"
1188
1187
  ?disabled=${this.isDisabled()}>
1189
1188
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1190
1189
  <ft-typography part="label"
1191
1190
  variant="button"
1192
1191
  element="span"
1193
- class="ft-button--label ${Ui?"ft-safari-ellipsis-fix":""}"
1192
+ class="ft-button--label ${Fi?"ft-safari-ellipsis-fix":""}"
1194
1193
  ?hidden=${!this.hasTextContent()}>
1195
1194
  <slot @slotchange=${this.onSlotchange}></slot>
1196
1195
  </ft-typography>
1197
1196
  ${this.resolveIcon()}
1198
1197
  </button>
1199
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?tt`
1198
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?it`
1200
1199
  <ft-tooltip part="tooltip"
1201
1200
  text="${this.getLabel()}"
1202
1201
  position="${this.tooltipPosition}">
1203
1202
  ${t}
1204
1203
  </ft-tooltip>
1205
- `:t}resolveIcon(){return this.loading?tt`
1206
- <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
1207
- <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}}mr.elementDefinitions={"ft-ripple":Po,"ft-tooltip":Uo,"ft-typography":bo,"ft-icon":Eo,"ft-loader":yr},mr.styles=[Mt,oo],gr([s({type:String,reflect:!0})],mr.prototype,"role",void 0),gr([s({type:Boolean})],mr.prototype,"primary",void 0),gr([s({type:Boolean})],mr.prototype,"outlined",void 0),gr([s({type:Boolean})],mr.prototype,"disabled",void 0),gr([s({type:Boolean})],mr.prototype,"dense",void 0),gr([s({type:Boolean})],mr.prototype,"round",void 0),gr([s()],mr.prototype,"label",void 0),gr([s()],mr.prototype,"icon",void 0),gr([s()],mr.prototype,"iconVariant",void 0),gr([s({type:Boolean})],mr.prototype,"trailingIcon",void 0),gr([s({type:Boolean})],mr.prototype,"loading",void 0),gr([s()],mr.prototype,"tooltipPosition",void 0),gr([s({type:Boolean})],mr.prototype,"hideTooltip",void 0),gr([s({type:Boolean})],mr.prototype,"forceTooltip",void 0),gr([c(".ft-button")],mr.prototype,"button",void 0),gr([c(".ft-button--label slot")],mr.prototype,"slottedContent",void 0),f("ft-button")(mr);const xr=w`
1208
- `,wr=w`
1209
- `,$r=Ni.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 Sr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=$r.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?Sr.build(t):null!==(e=Sr.API)&&void 0!==e?e:Sr.API=Sr.build()}static await(t){return new Promise((e=>{let i=Sr.get(t);if(i)e(i);else{const n=$r.subscribe((()=>{i=Sr.get(t),i&&(n(),e(i))}))}}))}}var kr;const Or=Symbol("clearAfterUnitTest");class _r{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[kr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=$r.getState().uiLocale,$r.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=$r.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};d(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})))}}kr=Or,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new _r((async(t,e)=>(await Sr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new _r((async(t,e)=>(await Sr.await()).getCustomMessageContext(t,e))));const Er=window.FluidTopicsI18nService,Cr=window.FluidTopicsCustomI18nService;var Rr=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 jr 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=()=>Sr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
1204
+ `:t}resolveIcon(){return this.loading?it`
1205
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?it`
1206
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}wr.elementDefinitions={"ft-ripple":Bn,"ft-tooltip":Fn,"ft-typography":yn,"ft-icon":Rn,"ft-loader":xr},wr.styles=[Ut,an],mr([s({type:String,reflect:!0})],wr.prototype,"role",void 0),mr([s({type:Boolean})],wr.prototype,"primary",void 0),mr([s({type:Boolean})],wr.prototype,"outlined",void 0),mr([s({type:Boolean})],wr.prototype,"disabled",void 0),mr([s({type:Boolean})],wr.prototype,"dense",void 0),mr([s({type:Boolean})],wr.prototype,"round",void 0),mr([s()],wr.prototype,"label",void 0),mr([s()],wr.prototype,"icon",void 0),mr([s()],wr.prototype,"iconVariant",void 0),mr([s({type:Boolean})],wr.prototype,"trailingIcon",void 0),mr([s({type:Boolean})],wr.prototype,"loading",void 0),mr([s()],wr.prototype,"tooltipPosition",void 0),mr([s({type:Boolean})],wr.prototype,"hideTooltip",void 0),mr([s({type:Boolean})],wr.prototype,"forceTooltip",void 0),mr([c(".ft-button")],wr.prototype,"button",void 0),mr([c(".ft-button--label slot")],wr.prototype,"slottedContent",void 0),v("ft-button")(wr);const $r=S`
1207
+ `,Sr=S`
1208
+ `,kr=Ti.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 Or{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=kr.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Or.build(t):null!==(e=Or.API)&&void 0!==e?e:Or.API=Or.build()}static await(t){return new Promise((e=>{let i=Or.get(t);if(i)e(i);else{const o=kr.subscribe((()=>{i=Or.get(t),i&&(o(),e(i))}))}}))}}var Er;const _r=Symbol("clearAfterUnitTest");class Cr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Er]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=kr.getState().uiLocale,kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};p(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new zt(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})))}}Er=_r,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Cr((async(t,e)=>(await Or.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Cr((async(t,e)=>(await Or.await()).getCustomMessageContext(t,e))));const Rr=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Nr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ir extends At{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=()=>Or.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return it`
1210
1209
  <slot></slot>
1211
- `}updated(t){super.updated(t),t.has("baseUrl")&&$r.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&$r.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&$r.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&$r.actions.setNoCustom(this.noCustom),t.has("editorMode")&&$r.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&$r.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&$r.actions.setSession(this.session),t.has("availableUiLocales")&&$r.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Er.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()))))}}jr.elementDefinitions={},jr.styles=wr,Rr([s()],jr.prototype,"baseUrl",void 0),Rr([s()],jr.prototype,"apiIntegrationIdentifier",void 0),Rr([s()],jr.prototype,"uiLocale",void 0),Rr([p([])],jr.prototype,"availableUiLocales",void 0),Rr([s({type:Boolean})],jr.prototype,"editorMode",void 0),Rr([s({type:Boolean})],jr.prototype,"noCustom",void 0),Rr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Rr([s({type:Boolean})],jr.prototype,"withManualResources",void 0),Rr([p([])],jr.prototype,"messageContexts",void 0),Rr([p(void 0)],jr.prototype,"session",void 0),Rr([s({type:Object})],jr.prototype,"apiProvider",void 0),f("ft-app-context")(jr);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};const Ir=Symbol("i18nProperties"),Tr=Symbol("i18nUnsubs");function Mr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Cr:Er}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[Ir])||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[Ir])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ir]&&new Set([...this[Ir].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Tr].has(t)||this[Tr].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[Tr].forEach((t=>t())),this[Tr].clear()}}return e=Tr,Nr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ar extends(Mr(It)){}class Ur extends(Mr(Wt)){}var Fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zr extends Ur{constructor(){super(),this.editorMode=!1,this.addStore($r)}render(){return this.key&&this.context?tt`
1210
+ `}updated(t){super.updated(t),t.has("baseUrl")&&kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&kr.actions.setSession(this.session),t.has("availableUiLocales")&&kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Rr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Ir.elementDefinitions={},Ir.styles=Sr,Nr([s()],Ir.prototype,"baseUrl",void 0),Nr([s()],Ir.prototype,"apiIntegrationIdentifier",void 0),Nr([s()],Ir.prototype,"uiLocale",void 0),Nr([b([])],Ir.prototype,"availableUiLocales",void 0),Nr([s({type:Boolean})],Ir.prototype,"editorMode",void 0),Nr([s({type:Boolean})],Ir.prototype,"noCustom",void 0),Nr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ir.prototype,"noCustomComponent",void 0),Nr([s({type:Boolean})],Ir.prototype,"withManualResources",void 0),Nr([b([])],Ir.prototype,"messageContexts",void 0),Nr([b(void 0)],Ir.prototype,"session",void 0),Nr([s({type:Object})],Ir.prototype,"apiProvider",void 0),v("ft-app-context")(Ir);var Tr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ar=Symbol("i18nProperties"),Mr=Symbol("i18nUnsubs");function Ur(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?jr:Rr}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Ar])||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[Ar])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ar]&&new Set([...this[Ar].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Mr].has(t)||this[Mr].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[Mr].forEach((t=>t())),this[Mr].clear()}}return e=Mr,Tr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class zr extends(Ur(At)){}class Fr extends(Ur(Zt)){}var Dr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Pr extends Fr{constructor(){super(),this.editorMode=!1,this.addStore(kr)}render(){return this.key&&this.context?it`
1212
1211
  <span class="ft-i18n">
1213
1212
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1214
1213
  </span>
1215
- `: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})}}zr.elementDefinitions={},zr.styles=xr,Fr([Ii()],zr.prototype,"editorMode",void 0),Fr([s()],zr.prototype,"context",void 0),Fr([s()],zr.prototype,"key",void 0),Fr([p([])],zr.prototype,"args",void 0),Fr([s()],zr.prototype,"defaultMessage",void 0);class Pr{static build(t){return new Pr(t)}static fromGwt(t){return new Pr(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)=>Er.resolveMessage(this.name,e,...t)})}}const Dr=(t,e)=>(i,n)=>{var o,r;i.constructor.createProperty(n,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(o=t.key)&&void 0!==o?o:n};i[Ir]=null!==(r=i[Ir])&&void 0!==r?r:new Map,i[Ir].set(n,s)};f("ft-i18n")(zr);const Lr=Pr.build("integratedFeedbackComponent"),Br={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"},Wr=Pr.build("inDesignerFeedbackComponent"),Hr={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 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 Vr extends Ar{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(Lr,Br),this.addI18nContext(Wr,Hr)}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`
1214
+ `:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Pr.elementDefinitions={},Pr.styles=$r,Dr([Ai()],Pr.prototype,"editorMode",void 0),Dr([s()],Pr.prototype,"context",void 0),Dr([s()],Pr.prototype,"key",void 0),Dr([b([])],Pr.prototype,"args",void 0),Dr([s()],Pr.prototype,"defaultMessage",void 0);class Br{static build(t){return new Br(t)}static fromGwt(t){return new Br(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Rr.resolveMessage(this.name,e,...t)})}}const Lr=(t,e)=>(i,o)=>{var n,r;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(n=t.key)&&void 0!==n?n:o};i[Ar]=null!==(r=i[Ar])&&void 0!==r?r:new Map,i[Ar].set(o,s)};v("ft-i18n")(Pr);const Wr=Br.build("integratedFeedbackComponent"),Hr={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Zr=Br.build("inDesignerFeedbackComponent"),Vr={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."},Kr={fontSize:kt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:kt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:kt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:kt.extend("--ft-text-field-helper-color",Et.colorOnSurfaceMedium),colorPrimary:kt.external(Et.colorPrimary,"Design system"),colorOnSurface:kt.external(Et.colorOnSurface,"Design system"),colorOnSurfaceDisabled:kt.external(Et.colorOnSurfaceDisabled,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system"),prefixColor:kt.extend("--ft-text-field-prefix-color",Et.colorOnSurfaceMedium),iconColor:kt.extend("--ft-text-field-icon-color",Et.colorOnSurfaceMedium),floatingZIndex:kt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:kt.external(Et.colorSurface,"Design system"),colorOutline:kt.external(Et.colorOutline,"Design system"),elevation02:kt.external(Et.elevation02,"Design system"),suggestSize:kt.create("--ft-text-field-suggest-size","SIZE","300px")},qr=S`
1215
+ *:focus {
1216
+ outline: none;
1217
+ }
1218
+
1219
+ .ft-text-field {
1220
+ display: flex;
1221
+ flex-direction: column;
1222
+ align-items: stretch;
1223
+ position: relative;
1224
+ }
1225
+
1226
+ ft-input-label {
1227
+ ${Ot(or.fontSize,Kr.fontSize)};
1228
+ ${Ot(or.raisedFontSize,Kr.labelSize)};
1229
+ ${Ot(or.verticalSpacing,Kr.verticalSpacing)};
1230
+ ${Ot(or.horizontalSpacing,Kr.horizontalSpacing)};
1231
+ }
1232
+
1233
+ .ft-text-field--main-panel {
1234
+ position: relative;
1235
+ display: flex;
1236
+ height: calc(4 * ${Kr.verticalSpacing} + ${Kr.labelSize} + ${Kr.fontSize});
1237
+ }
1238
+
1239
+ .ft-text-field--input-panel {
1240
+ flex-grow: 1;
1241
+ position: relative;
1242
+ display: flex;
1243
+ align-items: center;
1244
+ overflow: hidden;
1245
+ padding: 0 ${Kr.horizontalSpacing};
1246
+
1247
+ ${Ot(bo.fontSize,Kr.fontSize)};
1248
+ ${Ot(bo.lineHeight,Kr.fontSize)};
1249
+ }
1250
+
1251
+ .ft-text-field--input-panel ft-ripple {
1252
+ ${Ot(Hi.opacityContentOnSurfaceHover,"0.08")};
1253
+ ${Ot(Hi.opacityContentOnSurfacePressed,"0.04")};
1254
+ }
1255
+
1256
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1257
+ align-items: flex-end;
1258
+ padding: 0 ${Kr.horizontalSpacing} ${Kr.verticalSpacing} ${Kr.horizontalSpacing};
1259
+ }
1260
+
1261
+ .ft-text-field--prefix {
1262
+ color: ${Kr.prefixColor};
1263
+ margin-right: 2px;
1264
+ flex-shrink: 1;
1265
+ overflow: hidden;
1266
+ white-space: nowrap;
1267
+ text-overflow: ellipsis;
1268
+ }
1269
+
1270
+ .ft-text-field--with-label:not(.ft-text-field--raised-label) .ft-text-field--prefix {
1271
+ display: none;
1272
+ }
1273
+
1274
+ .ft-text-field--input {
1275
+ display: block;
1276
+ position: relative;
1277
+ flex-grow: 1;
1278
+ flex-shrink: 1;
1279
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1280
+
1281
+ color: ${Kr.colorOnSurface};
1282
+ padding: calc(2 * ${Kr.verticalSpacing}) 0;
1283
+ border: none;
1284
+ background: none;
1285
+ }
1286
+
1287
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1288
+ padding-bottom: 0;
1289
+ padding-top: calc(${Kr.labelSize} + 2 * ${Kr.verticalSpacing});
1290
+ }
1291
+
1292
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
1293
+ .ft-text-field--input::-webkit-list-button {
1294
+ display: none !important;
1295
+ }
1296
+
1297
+ .ft-text-field--disabled .ft-text-field--input {
1298
+ color: ${Kr.colorOnSurfaceDisabled};
1299
+ }
1300
+
1301
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1302
+ ${Ot(or.borderColor,Kr.colorPrimary)};
1303
+ ${Ot(or.textColor,Kr.colorPrimary)};
1304
+ }
1305
+
1306
+ .ft-text-field--filled .ft-text-field--input-panel {
1307
+ border-radius: ${Kr.borderRadiusS} ${Kr.borderRadiusS} 0 0;
1308
+ }
1309
+
1310
+ .ft-text-field--outlined .ft-text-field--input-panel {
1311
+ border-radius: ${Kr.borderRadiusS};
1312
+ }
1313
+
1314
+ .ft-text-field--helper-text {
1315
+ padding: 0 12px 0 ${Kr.horizontalSpacing};
1316
+ color: ${Kr.helperColor};
1317
+ }
1318
+
1319
+ .ft-text-field--in-error .ft-text-field--input,
1320
+ .ft-text-field--in-error .ft-text-field--helper-text,
1321
+ .ft-text-field--in-error .ft-text-field--prefix {
1322
+ color: ${Kr.colorError};
1323
+ }
1324
+
1325
+ .ft-text-field--icon {
1326
+ align-self: center;
1327
+ margin-left: 8px;
1328
+ color: ${Kr.iconColor};
1329
+ }
1330
+
1331
+ .ft-text-field--container {
1332
+ position: relative;
1333
+ }
1334
+
1335
+ .ft-text-field--suggestions {
1336
+ display: none;
1337
+ flex-direction: column;
1338
+ position: absolute;
1339
+ left: 0;
1340
+ right: 0;
1341
+ z-index: ${Kr.floatingZIndex};
1342
+ background: ${Kr.colorSurface};
1343
+ border: 1px solid ${Kr.colorOutline};
1344
+ border-radius: 0 0 ${Kr.borderRadiusS} ${Kr.borderRadiusS};
1345
+ box-shadow: ${Kr.elevation02};
1346
+ outline: none;
1347
+ max-height: ${Kr.suggestSize};
1348
+ overflow-y: auto;
1349
+ }
1350
+
1351
+ .ft-text-field--suggestions:not(.ft-text-field--suggestions-on-top) {
1352
+ top: 100%;
1353
+ }
1354
+
1355
+ .ft-text-field--suggestions.ft-text-field--suggestions-on-top {
1356
+ bottom: 100%;
1357
+ }
1358
+
1359
+ .ft-text-field:not(.ft-text-field--hide-suggestions):focus-within .ft-text-field--suggestions {
1360
+ display: flex;
1361
+ }
1362
+
1363
+ .ft-text-field--with-icon {
1364
+ ${Ot(or.labelMaxWidth,`calc(100% - ${Jo.size} - ${or.horizontalSpacing})`)};
1365
+ }
1366
+
1367
+ .ft-text-field--with-password ft-icon:hover {
1368
+ cursor: pointer;
1369
+ }
1370
+ `;var Gr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Jr extends At{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=On.EYE_SLASH,this.passwordRevealedIcon=On.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return it`
1371
+ <div class="${Dn(t)}">
1372
+ <div class="ft-text-field--main-panel"
1373
+ @keydown=${this.handleKeyboardNavigation}
1374
+ @focusout=${this.onMainPanelBlur}>
1375
+ <ft-input-label text="${this.label}"
1376
+ ?disabled=${this.disabled}
1377
+ ?outlined=${this.outlined}
1378
+ ?raised=${this.focused||""!=this.value}
1379
+ ?error=${this.error}></ft-input-label>
1380
+ <div class="ft-text-field--input-panel">
1381
+ ${this.outlined?nt:it`
1382
+ <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1383
+ `}
1384
+ ${this.prefix?it`
1385
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
1386
+ ${this.prefix}
1387
+ </ft-typography>
1388
+ `:nt}
1389
+ <input type=${this.password&&this.hidePassword?"password":"text"}
1390
+ maxlength=${(t=>null!=t?t:nt)(this.maxLength||void 0)}
1391
+ aria-label="${this.label}"
1392
+ class="ft-typography--body1 ft-text-field--input"
1393
+ ?disabled=${this.disabled}
1394
+ .value=${this.value}
1395
+ @click=${this.handleClick}
1396
+ @keyup=${this.handleInput}
1397
+ @focus=${this.onFocus}/>
1398
+ ${this.renderIcon()}
1399
+ </div>
1400
+ <div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
1401
+ @suggestion-selected=${this.onSuggestionSelected}>
1402
+ <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1403
+ </div>
1404
+ </div>
1405
+ ${this.helper?it`
1406
+ <ft-typography class="ft-text-field--helper-text" variant="caption">
1407
+ ${this.helper}
1408
+ </ft-typography>
1409
+ `:nt}
1410
+ </div>
1411
+ `}renderPasswordIcon(){return it`
1412
+ <ft-icon class="ft-text-field--icon"
1413
+ .variant=${this.iconVariant}
1414
+ .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1415
+ @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1416
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?it`
1417
+ <ft-icon class="ft-text-field--icon"
1418
+ .variant=${this.iconVariant}
1419
+ .value=${this.icon}
1420
+ @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1421
+ `:nt}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Jr.elementDefinitions={"ft-input-label":sr,"ft-ripple":Bn,"ft-typography":yn,"ft-icon":Rn},Jr.styles=[Bo,qr],Gr([s()],Jr.prototype,"label",void 0),Gr([s({noAccessor:!0})],Jr.prototype,"value",null),Gr([a()],Jr.prototype,"dispatchedValue",void 0),Gr([s()],Jr.prototype,"helper",void 0),Gr([s({type:Boolean})],Jr.prototype,"outlined",void 0),Gr([s({type:Boolean})],Jr.prototype,"disabled",void 0),Gr([s({type:Boolean})],Jr.prototype,"error",void 0),Gr([s()],Jr.prototype,"prefix",void 0),Gr([s()],Jr.prototype,"icon",void 0),Gr([s()],Jr.prototype,"passwordHiddenIcon",void 0),Gr([s()],Jr.prototype,"passwordRevealedIcon",void 0),Gr([s()],Jr.prototype,"iconVariant",void 0),Gr([s({type:Boolean})],Jr.prototype,"filterSuggestions",void 0),Gr([s({type:Number})],Jr.prototype,"maxLength",void 0),Gr([s({type:Boolean})],Jr.prototype,"password",void 0),Gr([a()],Jr.prototype,"focused",void 0),Gr([a()],Jr.prototype,"hidePassword",void 0),Gr([a()],Jr.prototype,"suggestionsOnTop",void 0),Gr([a()],Jr.prototype,"hideSuggestions",void 0),Gr([a()],Jr.prototype,"visibleSuggestions",void 0),Gr([c(".ft-text-field--main-panel")],Jr.prototype,"mainPanel",void 0),Gr([c(".ft-text-field--input")],Jr.prototype,"input",void 0),Gr([c(".ft-text-field--suggestions")],Jr.prototype,"suggestionsContainer",void 0),Gr([f({selector:"ft-text-field-suggestion"})],Jr.prototype,"suggestions",void 0);const Xr=S`
1422
+ .ft-text-field-suggestion {
1423
+ position: relative;
1424
+ padding: 8px 16px;
1425
+ cursor: pointer;
1426
+ min-height: 44px;
1427
+ box-sizing: border-box;
1428
+ outline: none;
1429
+ }
1430
+
1431
+ .ft-text-field-suggestion,
1432
+ .ft-text-field-suggestion--label {
1433
+ display: flex;
1434
+ align-items: center;
1435
+ gap: 8px;
1436
+ }
1437
+
1438
+ .ft-text-field-suggestion--label {
1439
+ flex-grow: 1;
1440
+ flex-shrink: 1;
1441
+ }
1442
+
1443
+ slot {
1444
+ pointer-events: none;
1445
+ }
1446
+ `;var Yr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ts extends At{render(){return it`
1447
+ <div class="ft-text-field-suggestion"
1448
+ tabindex="-1"
1449
+ @keydown=${this.onKeyDown}
1450
+ @click=${this.confirmSuggestion}>
1451
+ <ft-ripple></ft-ripple>
1452
+ <ft-typography part="label"
1453
+ variant="body1"
1454
+ class="ft-text-field-suggestion--label">
1455
+ <slot></slot>
1456
+ </ft-typography>
1457
+ </div>
1458
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Qr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ts.elementDefinitions={"ft-ripple":Bn,"ft-typography":yn,"ft-icon":Rn},ts.styles=Xr,Yr([s()],ts.prototype,"value",void 0),Yr([c(".ft-text-field-suggestion")],ts.prototype,"container",void 0),Yr([u()],ts.prototype,"assignedNodes",void 0),v("ft-text-field")(Jr),v("ft-text-field-suggestion")(ts);var es=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class is extends(Ur(Li)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Wr,Hr),this.addI18nContext(Zr,Vr)}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?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?it`
1216
1459
  <div class="ft-reader-feedback">
1217
- ${this.hideTitle?it:tt`
1460
+ ${this.hideTitle?nt:it`
1218
1461
  <ft-typography variant="title" part="main-title">
1219
1462
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1220
1463
  </ft-typography>
@@ -1222,7 +1465,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
1222
1465
  ${this.renderRatingSection()}
1223
1466
  ${this.renderFeedbackSection()}
1224
1467
  </div>
1225
- `:it}renderRatingSection(){return this.canAccessRating?tt`
1468
+ `:nt}renderRatingSection(){return this.canAccessRating?it`
1226
1469
  <div class="ft-reader-feedback--rating" part="rating-container">
1227
1470
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1228
1471
  ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1232,20 +1475,20 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
1232
1475
  ${this.renderRatingDate()}
1233
1476
  </ft-typography>
1234
1477
  </div>
1235
- `:this.placeholderInEditor(this.userHasRatingRole?Wr.messages.ratingNotConfigured():Wr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Lr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Lr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Lr.messages.ratedToday():Lr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return tt`
1478
+ `:this.placeholderInEditor(this.userHasRatingRole?Zr.messages.ratingNotConfigured():Zr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Wr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Wr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Wr.messages.ratedToday():Wr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return it`
1236
1479
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1237
- ${br(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return tt`
1238
- <ft-button round part="rating-stars-${n}"
1239
- label="${Lr.messages.starsRating(n)}"
1480
+ ${yr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return it`
1481
+ <ft-button round part="rating-stars-${o}"
1482
+ label="${Wr.messages.starsRating(o)}"
1240
1483
  tooltipPosition="top"
1241
1484
  .iconVariant=${this.iconVariant}
1242
1485
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1243
1486
  class="ft-reader-feedback--${i?"active":"inactive"}"
1244
- @click=${()=>this.rate(this.ratingValue===n?void 0:n)}
1487
+ @click=${()=>this.rate(this.ratingValue===o?void 0:o)}
1245
1488
  ></ft-button>
1246
1489
  `}))}
1247
1490
  </div>
1248
- `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return tt`
1491
+ `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return it`
1249
1492
  <ft-switch unselectable
1250
1493
  @change=${t=>this.rate(t.detail)}
1251
1494
  part="rating rating-like">
@@ -1253,61 +1496,70 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
1253
1496
  ?selected=${e}
1254
1497
  .iconVariant=${this.iconVariant}
1255
1498
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1256
- ${Lr.messages.like()}
1499
+ ${Wr.messages.like()}
1257
1500
  </ft-switch-option>
1258
1501
  <ft-switch-option .value=${0}
1259
1502
  ?selected=${t}
1260
1503
  .iconVariant=${this.iconVariant}
1261
1504
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1262
- ${Lr.messages.dislike()}
1505
+ ${Wr.messages.dislike()}
1263
1506
  </ft-switch-option>
1264
1507
  </ft-switch>
1265
- `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return tt`
1508
+ `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return it`
1266
1509
  <ft-switch unselectable
1267
1510
  @change=${t=>this.rate(t.detail)}
1268
1511
  part="rating rating-dichotomous">
1269
1512
  <ft-switch-option .value=${1}
1270
- ?selected=${n}>
1271
- ${Lr.messages.dichotomousYes()}
1513
+ ?selected=${o}>
1514
+ ${Wr.messages.dichotomousYes()}
1272
1515
  </ft-switch-option>
1273
1516
  <ft-switch-option .value=${0}
1274
1517
  ?selected=${i}>
1275
- ${Lr.messages.dichotomousNo()}
1518
+ ${Wr.messages.dichotomousNo()}
1276
1519
  </ft-switch-option>
1277
1520
  </ft-switch>
1278
- `}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`
1521
+ `}return nt}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e;if(this.canAccessFeedback){const i=this.feedbackMailLinkBuilder(this.feedbackMessage);let o=it`
1279
1522
  <ft-button primary
1280
1523
  class="ft-reader-feedback--send-feedback"
1281
- ?disabled=${!this.feedbackMessage}
1282
- @click=${()=>t?this.onMailerFeedbackSent():this.sendFeedback()}
1524
+ ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1525
+ @click=${()=>i?this.onMailerFeedbackSent():this.sendFeedback()}
1283
1526
  part="send-feedback">
1284
- ${Lr.messages.okButton()}
1527
+ ${Wr.messages.okButton()}
1285
1528
  </ft-button>
1286
- `;return t&&(e=tt`
1287
- <a class="ft-reader-feedback--feedback-link" href="${t}">
1288
- ${e}
1529
+ `;return i&&(o=it`
1530
+ <a class="ft-reader-feedback--feedback-link" href="${i}">
1531
+ ${o}
1289
1532
  </a>
1290
- `),tt`
1533
+ `),it`
1291
1534
  <div class="ft-reader-feedback--feedback" part="feedback-container">
1292
1535
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1293
1536
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1294
1537
  </ft-typography>
1538
+ ${null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)?it`
1539
+ <ft-text-field
1540
+ class="ft-reader-feedback--from-input"
1541
+ label=${Wr.messages.feedbackfromEmail()}
1542
+ @live-change=${t=>this.from=t.detail.trim()}
1543
+ ?error=${this.from&&!this.validFromEmail()}
1544
+ helper=${this.from&&!this.validFromEmail()?Wr.messages.feedbackfromEmailInvalid():""}
1545
+ />
1546
+ `:nt}
1295
1547
  <ft-text-area outlined
1296
1548
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1297
- label="${Lr.messages.feedbackInputLabel()}"
1549
+ label="${Wr.messages.feedbackInputLabel()}"
1298
1550
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1299
1551
  ></ft-text-area>
1300
- ${e}
1552
+ ${o}
1301
1553
  </div>
1302
- `}return this.placeholderInEditor(Wr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?tt`
1554
+ `}return this.placeholderInEditor(Zr.messages.missingFeedbackRole())}validFromEmail(){var t,e;return!(null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?it`
1303
1555
  <div class="ft-reader-feedback--placeholder">
1304
1556
  <ft-typography variant="caption">${t}</ft-typography>
1305
1557
  <ft-tooltip position="left"
1306
- text="${Wr.messages.inDesignerOnlyNotice()}">
1558
+ text="${Zr.messages.inDesignerOnlyNotice()}">
1307
1559
  <ft-icon>INFO</ft-icon>
1308
1560
  </ft-tooltip>
1309
1561
  </div>
1310
- `:it}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Vr.elementDefinitions={"ft-button":mr,"ft-typography":bo,"ft-icon":Eo,"ft-tooltip":Uo,"ft-switch":qo,"ft-switch-option":Ko,"ft-text-area":lr},Vr.styles=ao,Kr([s({type:Boolean})],Vr.prototype,"editorMode",void 0),Kr([s({type:Boolean})],Vr.prototype,"hideTitle",void 0),Kr([s({type:Boolean})],Vr.prototype,"ratingAllowed",void 0),Kr([s({attribute:!1})],Vr.prototype,"i18nProperties",void 0),Kr([s({attribute:!1})],Vr.prototype,"ratingSummary",void 0),Kr([s({attribute:!1})],Vr.prototype,"user",void 0),Kr([c(".ft-reader-feedback--feedback-input")],Vr.prototype,"feedbackInput",void 0),Kr([a()],Vr.prototype,"feedbackMessage",void 0),Kr([s()],Vr.prototype,"iconVariant",void 0),Kr([s()],Vr.prototype,"emptyStarIcon",void 0),Kr([s()],Vr.prototype,"filledStarIcon",void 0),Kr([s()],Vr.prototype,"emptyLikeIcon",void 0),Kr([s()],Vr.prototype,"filledLikeIcon",void 0),Kr([s()],Vr.prototype,"emptyDislikeIcon",void 0),Kr([s()],Vr.prototype,"filledDislikeIcon",void 0),Kr([s()],Vr.prototype,"feedbackMailLinkBuilder",void 0);const Zr=Pr.fromGwt("server");class qr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){var r;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=n.bodyMetadataIds)&&void 0!==r?r:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i;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.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Zr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${n}&body=${o}`}}var Gr=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 Jr extends(Mr(Di)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Oo.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 qr,this.i18nProperties={feedbackMainTitle:Lr.properties.mapFeedbackMainTitle(),ratingSectionTitle:Lr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Lr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Lr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore($r)}render(){return this.map&&(this.editorMode||this.componentVisible)?tt`
1562
+ `:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}is.elementDefinitions={"ft-button":wr,"ft-typography":yn,"ft-icon":Rn,"ft-tooltip":Fn,"ft-switch":Jn,"ft-switch-option":Kn,"ft-text-area":dr,"ft-text-field":Jr},is.styles=dn,es([s({type:Boolean})],is.prototype,"editorMode",void 0),es([s({type:Boolean})],is.prototype,"hideTitle",void 0),es([s({type:Boolean})],is.prototype,"ratingAllowed",void 0),es([s({attribute:!1})],is.prototype,"i18nProperties",void 0),es([s({attribute:!1})],is.prototype,"ratingSummary",void 0),es([s({attribute:!1})],is.prototype,"user",void 0),es([c(".ft-reader-feedback--feedback-input")],is.prototype,"feedbackInput",void 0),es([a()],is.prototype,"from",void 0),es([a()],is.prototype,"feedbackMessage",void 0),es([s()],is.prototype,"iconVariant",void 0),es([s()],is.prototype,"emptyStarIcon",void 0),es([s()],is.prototype,"filledStarIcon",void 0),es([s()],is.prototype,"emptyLikeIcon",void 0),es([s()],is.prototype,"filledLikeIcon",void 0),es([s()],is.prototype,"emptyDislikeIcon",void 0),es([s()],is.prototype,"filledDislikeIcon",void 0),es([Ai({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],is.prototype,"configuration",void 0),es([s()],is.prototype,"feedbackMailLinkBuilder",void 0);const os=Br.fromGwt("server");class ns{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){var r;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=o.bodyMetadataIds)&&void 0!==r?r:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),r=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${os.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${n}&body=${r}`}}var rs=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ss extends(Ur(Li)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_n.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 ns,this.i18nProperties={feedbackMainTitle:Wr.properties.mapFeedbackMainTitle(),ratingSectionTitle:Wr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Wr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Wr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(kr)}render(){return this.map&&(this.editorMode||this.componentVisible)?it`
1311
1563
  <ft-reader-feedback
1312
1564
  ratingAllowed
1313
1565
  .i18nProperties=${this.i18nProperties}
@@ -1327,13 +1579,13 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
1327
1579
  @send-feedback=${this.sendFeedback}
1328
1580
  @mailer-feedback=${this.onMailerFeedbackSent}
1329
1581
  ></ft-reader-feedback>
1330
- `:tt`
1582
+ `:it`
1331
1583
  <style>
1332
1584
  :host {
1333
1585
  display: none !important;
1334
1586
  }
1335
1587
  </style>
1336
- `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}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:Lr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new Ot({type:"info",message:Lr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Jr.elementDefinitions={"ft-reader-feedback":Vr},Gr([Ii({store:$r.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Jr.prototype,"user",void 0),Gr([Ii({store:"reader"})],Jr.prototype,"map",void 0),Gr([Ii({store:$r.name})],Jr.prototype,"editorMode",void 0),Gr([Ii({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Jr.prototype,"configuration",void 0),Gr([a()],Jr.prototype,"ratingSummary",void 0),Gr([s({type:Boolean})],Jr.prototype,"hideTitle",void 0),Gr([s()],Jr.prototype,"iconVariant",void 0),Gr([s()],Jr.prototype,"emptyStarIcon",void 0),Gr([s()],Jr.prototype,"filledStarIcon",void 0),Gr([s()],Jr.prototype,"emptyLikeIcon",void 0),Gr([s()],Jr.prototype,"filledLikeIcon",void 0),Gr([s()],Jr.prototype,"emptyDislikeIcon",void 0),Gr([s()],Jr.prototype,"filledDislikeIcon",void 0),Gr([c("ft-reader-feedback")],Jr.prototype,"readerFeedback",void 0),Gr([Dr(Zr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Jr.prototype,"mailSubject",void 0);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 Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Qr=Symbol("registerInterval");class ts extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Qr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Qr]):this.dispatchEvent(new Yr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Qr,Xr([a()],i.prototype,"tocNode",void 0),Xr([a()],i.prototype,"disableContextInteractions",void 0),i}(Di)){}var es=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 is extends(Mr(ts)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Oo.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 qr,this.i18nProperties={feedbackMainTitle:Lr.properties.topicFeedbackMainTitle(),ratingSectionTitle:Lr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Lr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Lr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore($r)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?tt`
1588
+ `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;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===(o=this.user)||void 0===o?void 0:o.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,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ss.elementDefinitions={"ft-reader-feedback":is},rs([Ai({store:kr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],ss.prototype,"user",void 0),rs([Ai({store:"reader"})],ss.prototype,"map",void 0),rs([Ai({store:kr.name})],ss.prototype,"editorMode",void 0),rs([Ai({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ss.prototype,"configuration",void 0),rs([a()],ss.prototype,"ratingSummary",void 0),rs([s({type:Boolean})],ss.prototype,"hideTitle",void 0),rs([s()],ss.prototype,"iconVariant",void 0),rs([s()],ss.prototype,"emptyStarIcon",void 0),rs([s()],ss.prototype,"filledStarIcon",void 0),rs([s()],ss.prototype,"emptyLikeIcon",void 0),rs([s()],ss.prototype,"filledLikeIcon",void 0),rs([s()],ss.prototype,"emptyDislikeIcon",void 0),rs([s()],ss.prototype,"filledDislikeIcon",void 0),rs([c("ft-reader-feedback")],ss.prototype,"readerFeedback",void 0),rs([Lr(os.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],ss.prototype,"mailSubject",void 0);var as=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ls extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const cs=Symbol("registerInterval");class ds extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[cs]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[cs]):this.dispatchEvent(new ls)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=cs,as([a()],i.prototype,"tocNode",void 0),as([a()],i.prototype,"disableContextInteractions",void 0),i}(Li)){}var hs=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fs extends(Ur(ds)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_n.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 ns,this.i18nProperties={feedbackMainTitle:Wr.properties.topicFeedbackMainTitle(),ratingSectionTitle:Wr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Wr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Wr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(kr)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?it`
1337
1589
  <ft-reader-feedback
1338
1590
  .i18nProperties=${this.i18nProperties}
1339
1591
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1353,10 +1605,10 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
1353
1605
  @send-feedback=${this.sendFeedback}
1354
1606
  @mailer-feedback=${this.onMailerFeedbackSent}
1355
1607
  ></ft-reader-feedback>
1356
- `:tt`
1608
+ `:it`
1357
1609
  <style>
1358
1610
  :host {
1359
1611
  display: none !important;
1360
1612
  }
1361
1613
  </style>
1362
- `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}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:Lr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.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:Lr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}is.elementDefinitions={"ft-reader-feedback":Vr},es([Ii({store:$r.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],is.prototype,"user",void 0),es([Ii({store:"reader"})],is.prototype,"map",void 0),es([Ii({store:$r.name})],is.prototype,"editorMode",void 0),es([Ii({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],is.prototype,"configuration",void 0),es([a()],is.prototype,"ratingSummary",void 0),es([s({type:Boolean})],is.prototype,"hideTitle",void 0),es([s()],is.prototype,"iconVariant",void 0),es([s()],is.prototype,"emptyStarIcon",void 0),es([s()],is.prototype,"filledStarIcon",void 0),es([s()],is.prototype,"emptyLikeIcon",void 0),es([s()],is.prototype,"filledLikeIcon",void 0),es([s()],is.prototype,"emptyDislikeIcon",void 0),es([s()],is.prototype,"filledDislikeIcon",void 0),es([c("ft-reader-feedback")],is.prototype,"readerFeedback",void 0),es([Dr(Zr.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]})))],is.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")(Jr),f("ft-reader-topic-feedback")(is),t.FtReaderFeedbackCssVariables=so,t.FtReaderMapFeedback=Jr,t.FtReaderTopicFeedback=is,t.styles=ao}({});
1614
+ `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;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===(o=this.user)||void 0===o?void 0:o.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,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}fs.elementDefinitions={"ft-reader-feedback":is},hs([Ai({store:kr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],fs.prototype,"user",void 0),hs([Ai({store:"reader"})],fs.prototype,"map",void 0),hs([Ai({store:kr.name})],fs.prototype,"editorMode",void 0),hs([Ai({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fs.prototype,"configuration",void 0),hs([a()],fs.prototype,"ratingSummary",void 0),hs([s({type:Boolean})],fs.prototype,"hideTitle",void 0),hs([s()],fs.prototype,"iconVariant",void 0),hs([s()],fs.prototype,"emptyStarIcon",void 0),hs([s()],fs.prototype,"filledStarIcon",void 0),hs([s()],fs.prototype,"emptyLikeIcon",void 0),hs([s()],fs.prototype,"filledLikeIcon",void 0),hs([s()],fs.prototype,"emptyDislikeIcon",void 0),hs([s()],fs.prototype,"filledDislikeIcon",void 0),hs([c("ft-reader-feedback")],fs.prototype,"readerFeedback",void 0),hs([Lr(os.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]})))],fs.prototype,"mailSubject",void 0),v("ft-reader-map-feedback")(ss),v("ft-reader-topic-feedback")(fs),t.FtReaderFeedbackCssVariables=cn,t.FtReaderMapFeedback=ss,t.FtReaderTopicFeedback=fs,t.styles=dn}({});