@fluid-topics/ft-reader-feedback 1.1.70 → 1.1.71

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.
@@ -1,146 +1,13 @@
1
- !function(t){
2
- /**
3
- * @license
4
- * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let d=o.call(i,t);d||(d=h(t),e.call(i,t,d)),this===window.customElements&&(a.set(r,c),c.standInClass=d);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=d(o)||window.customElements,r=i._getDefinition(e);return r?p(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Dl){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
16
- /**
17
- * @license
18
- * Copyright 2019 Google LLC
19
- * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
21
- /**
22
- * @license
23
- * Copyright 2017 Google LLC
24
- * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:h,getPrototypeOf:f}=Object,u=globalThis,p=u.trustedTypes,g=p?p.emptyScript:"",y=u.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...d(t),...h(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,y?.({ReactiveElement:w}),(u.reactiveElementVersions??=[]).push("2.0.2");
26
- /**
27
- * @license
28
- * Copyright 2017 Google LLC
29
- * SPDX-License-Identifier: BSD-3-Clause
30
- */
31
- const O=globalThis,S=O.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,E="?"+$,k=`<${E}>`,I=document,R=()=>I.createComment(""),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,_=t=>L(t)||"function"==typeof t?.[Symbol.iterator],A="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,T=/>/g,z=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,D=/"/g,P=/^(?:script|style|textarea|title)$/i,M=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),j=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),H=new WeakMap,K=I.createTreeWalker(I,129);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=B;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===B?"!--"===l[1]?a=W:void 0!==l[1]?a=T:void 0!==l[2]?(P.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=z):void 0!==l[3]&&(a=z):a===z?">"===l[0]?(a=r??B,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?z:'"'===l[3]?D:F):a===D||a===F?a=z:a===W||a===T?a=B:(a=z,r=void 0);const h=a===z&&t[e+1].startsWith("/>")?" ":"";n+=a===B?o+k:c>=0?(i.push(s),o.slice(0,c)+N+o.slice(c)+$+h):o+$+(-2===c?e:h)}return[G(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let q=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,d]=V(e,o);if(this.el=t.createElement(c,i),K.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=K.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(N)){const e=d[a++],o=r.getAttribute(t).split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q}),r.removeAttribute(t)}else t.startsWith($)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(P.test(r.tagName)){const t=r.textContent.split($),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],R()),K.nextNode(),l.push({type:2,index:++n});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===E)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,e){const o=I.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,i){if(e===j)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=U(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Y(t,r._$AS(t,e.values),r,i)),e}let J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??I).importNode(e,!0);K.currentNode=i;let r=K.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new X(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new it(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=K.nextNode(),n++)}return K.currentNode=I,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),U(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Z&&U(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(G(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new q(t)),e}T(e){L(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(R()),this.k(R()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Z}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Y(this,i[o+a],e,a),s===j&&(s=this._$AH[a]),n||=!U(s)||s!==this._$AH[a],s===Z?t=Z:t!==Z&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends Q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Z?void 0:t}},et=class extends Q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}},ot=class extends Q{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??Z)===j)return;const o=this._$AH,i=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}};const rt={j:N,P:$,A:E,C:1,M:V,L:J,R:_,V:Y,D:X,I:Q,H:et,N:ot,U:tt,B:it},nt=O.litHtmlPolyfillSupport;nt?.(q,X),(O.litHtmlVersions??=[]).push("3.1.0");
32
- /**
33
- * @license
34
- * Copyright 2019 Google LLC
35
- * SPDX-License-Identifier: BSD-3-Clause
36
- */
37
- const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let dt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ht=t=>new dt("string"==typeof t?t:t+"",void 0,lt),ft=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new dt(o,t,lt)},ut=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=at.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}},pt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ht(e)})(t):t
38
- /**
39
- * @license
40
- * Copyright 2017 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- */,{is:gt,defineProperty:yt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:mt,getOwnPropertySymbols:vt,getPrototypeOf:xt}=Object,wt=globalThis,Ot=wt.trustedTypes,St=Ot?Ot.emptyScript:"",Ct=wt.reactiveElementPolyfillSupport,Nt=(t,e)=>t,$t={toAttribute(t,e){switch(e){case Boolean:t=t?St:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!gt(t,e),kt={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),wt.litPropertyMetadata??=new WeakMap;let It=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&yt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=bt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...mt(t),...vt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(pt(t))}else void 0!==t&&e.push(pt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:$t).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:$t;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Nt("elementProperties")]=new Map,It[Nt("finalized")]=new Map,Ct?.({ReactiveElement:It}),(wt.reactiveElementVersions??=[]).push("2.0.2");
43
- /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- const Rt=globalThis,Ut=Rt.trustedTypes,Lt=Ut?Ut.createPolicy("lit-html",{createHTML:t=>t}):void 0,_t="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Bt="?"+At,Wt=`<${Bt}>`,Tt=document,zt=()=>Tt.createComment(""),Ft=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Pt=t=>Dt(t)||"function"==typeof t?.[Symbol.iterator],Mt="[ \t\n\f\r]",jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zt=/-->/g,Ht=/>/g,Kt=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Vt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Xt=Yt(2),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=Tt.createTreeWalker(Tt,129);function ie(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Lt?Lt.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=jt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===jt?"!--"===l[1]?a=Zt:void 0!==l[1]?a=Ht:void 0!==l[2]?(qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Kt):void 0!==l[3]&&(a=Kt):a===Kt?">"===l[0]?(a=r??jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Kt:'"'===l[3]?Vt:Gt):a===Vt||a===Gt?a=Kt:a===Zt||a===Ht?a=jt:(a=Kt,r=void 0);const h=a===Kt&&t[e+1].startsWith("/>")?" ":"";n+=a===jt?o+Wt:c>=0?(i.push(s),o.slice(0,c)+_t+o.slice(c)+At+h):o+At+(-2===c?e:h)}return[ie(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=re(t,e);if(this.el=ne.createElement(l,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=oe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(_t)){const e=c[n++],o=i.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?de:"?"===a[1]?he:"@"===a[1]?fe:ce}),i.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(qt.test(i.tagName)){const t=i.textContent.split(At),e=t.length-1;if(e>0){i.textContent=Ut?Ut.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],zt()),oe.nextNode(),s.push({type:2,index:++r});i.append(t[e],zt())}}}else if(8===i.nodeType)if(i.data===Bt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(At,t+1));)s.push({type:7,index:r}),t+=At.length-1}r++}}static createElement(t,e){const o=Tt.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,i){if(e===Qt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Ft(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ae(t,r._$AS(t,e.values),r,i)),e}let se=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Tt).importNode(e,!0);oe.currentNode=i;let r=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ue(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=oe.nextNode(),n++)}return oe.currentNode=Tt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},le=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Ft(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Pt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==te&&Ft(this._$AH)?this._$AA.nextSibling.data=t:this.$(Tt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ne.createElement(ie(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new se(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ne(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(zt()),this.k(zt()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ae(this,t,e,0),n=!Ft(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ae(this,i[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!Ft(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},de=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},he=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},fe=class extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Qt)return;const o=this._$AH,i=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==te&&(o===te||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ue=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t)}};const pe={j:_t,P:At,A:Bt,C:1,M:re,L:se,R:Pt,V:ae,D:le,I:ce,H:he,N:fe,U:de,B:ue},ge=Rt.litHtmlPolyfillSupport;ge?.(ne,le),(Rt.litHtmlVersions??=[]).push("3.1.0");const ye=(t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new le(e.insertBefore(zt(),t),t,void 0,o??{})}return r._$AI(t),r
49
- /**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */};let be=class extends It{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var ve=Object.freeze({__proto__:null,CSSResult:dt,LitElement:be,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:pe,adoptStyles:ut,css:ft,defaultConverter:$t,getCompatibleStyle:pt,html:Jt,isServer:!1,noChange:Qt,notEqual:Et,nothing:te,render:ye,supportsAdoptingStyleSheets:st,svg:Xt,unsafeCSS:ht});
54
- /**
55
- * @license
56
- * Copyright 2017 Google LLC
57
- * SPDX-License-Identifier: BSD-3-Clause
58
- */const xe={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v},we=(t=xe,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};
59
- /**
60
- * @license
61
- * Copyright 2017 Google LLC
62
- * SPDX-License-Identifier: BSD-3-Clause
63
- */function Oe(t){return(e,o)=>"object"==typeof o?we(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
64
- /**
65
- * @license
66
- * Copyright 2017 Google LLC
67
- * SPDX-License-Identifier: BSD-3-Clause
68
- */}function Se(t){return Oe({...t,state:!0,attribute:!1})}
69
- /**
70
- * @license
71
- * Copyright 2017 Google LLC
72
- * SPDX-License-Identifier: BSD-3-Clause
73
- */function Ce(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
74
- /**
75
- * @license
76
- * Copyright 2017 Google LLC
77
- * SPDX-License-Identifier: BSD-3-Clause
78
- */const Ne=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
79
- /**
80
- * @license
81
- * Copyright 2017 Google LLC
82
- * SPDX-License-Identifier: BSD-3-Clause
83
- */;function $e(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Ne(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Ne(0,0,{get(){return n(this)}})}}
84
- /**
85
- * @license
86
- * Copyright 2017 Google LLC
87
- * SPDX-License-Identifier: BSD-3-Clause
88
- */let Ee;
89
- /**
90
- * @license
91
- * Copyright 2021 Google LLC
92
- * SPDX-License-Identifier: BSD-3-Clause
93
- */
94
- function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
95
- /**
96
- * @license
97
- * Copyright 2017 Google LLC
98
- * SPDX-License-Identifier: BSD-3-Clause
99
- */function Ie(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}var Re=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:Ce,property:Oe,query:$e,queryAll:function(t){return(e,o)=>Ne(0,0,{get(){return(this.renderRoot??(Ee??=document.createDocumentFragment())).querySelectorAll(t)}})
100
- /**
101
- * @license
102
- * Copyright 2017 Google LLC
103
- * SPDX-License-Identifier: BSD-3-Clause
104
- */},queryAssignedElements:ke,queryAssignedNodes:Ie,queryAsync:function(t){return(e,o)=>Ne(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:we,state:Se});
105
- /**
106
- * @license
107
- * Copyright 2017 Google LLC
108
- * SPDX-License-Identifier: BSD-3-Clause
109
- */const Ue=1,Le=2,_e=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
110
- /**
111
- * @license
112
- * Copyright 2020 Google LLC
113
- * SPDX-License-Identifier: BSD-3-Clause
114
- */const{D:Be}=rt,We=()=>document.createComment(""),Te=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(We(),r),n=i.insertBefore(We(),r);o=new Be(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},ze=(t,e,o=t)=>(t._$AI(e,o),t),Fe={},De=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Pe=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Me=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,d,h=0,f=r.length-1,u=0,p=n.length-1;for(;h<=f&&u<=p;)if(null===r[h])h++;else if(null===r[f])f--;else if(s[h]===a[u])l[u]=ze(r[h],n[u]),h++,u++;else if(s[f]===a[p])l[p]=ze(r[f],n[p]),f--,p--;else if(s[h]===a[p])l[p]=ze(r[h],n[p]),Te(t,l[p+1],r[h]),h++,p--;else if(s[f]===a[u])l[u]=ze(r[f],n[u]),Te(t,r[h],r[f]),f--,u++;else if(void 0===c&&(c=Pe(a,u,p),d=Pe(s,h,f)),c.has(s[h]))if(c.has(s[f])){const e=d.get(a[u]),o=void 0!==e?r[e]:null;if(null===o){const e=Te(t,r[h]);ze(e,n[u]),l[u]=e}else l[u]=ze(o,n[u]),Te(t,r[h],o),r[e]=null;u++}else De(r[f]),f--;else De(r[h]),h++;for(;u<=p;){const e=Te(t,l[p+1]);ze(e,n[u]),l[u++]=e}for(;h<=f;){const t=r[h++];null!==t&&De(t)}return this.dt=a,((t,e=Fe)=>{t._$AH=e})(t,l),j}});
115
- /**
116
- * @license
117
- * Copyright 2017 Google LLC
118
- * SPDX-License-Identifier: BSD-3-Clause
119
- */var je=Object.freeze({__proto__:null,repeat:Me});
120
- /**
121
- * @license
122
- * Copyright 2018 Google LLC
123
- * SPDX-License-Identifier: BSD-3-Clause
124
- */const Ze=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return j}});var He=Object.freeze({__proto__:null,classMap:Ze});
125
- /**
126
- * @license
127
- * Copyright 2018 Google LLC
128
- * SPDX-License-Identifier: BSD-3-Clause
129
- */const Ke="important",Ge=" !"+Ke,Ve=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(Ge);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?Ke:""):o[t]=i}}return j}});var qe=Object.freeze({__proto__:null,styleMap:Ve});
130
- /**
131
- * @license
132
- * Copyright 2017 Google LLC
133
- * SPDX-License-Identifier: BSD-3-Clause
134
- */let Ye=class extends Ae{constructor(t){if(super(t),this.et=Z,t.type!==Le)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this.vt=void 0,this.et=t;if(t===j)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ye.directiveName="unsafeHTML",Ye.resultType=1;const Je=_e(Ye);var Xe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ye,unsafeHTML:Je});class Qe extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class to extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Qe("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Qe("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const eo=t=>new to(((e,o)=>t.then(e).catch(o)));var oo=Object.freeze({__proto__:null,CancelablePromise:to,CanceledPromiseError:Qe,cancelable:eo});class io{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof to&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=eo(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}var ro=Object.freeze({__proto__:null,CacheRegistry:io});class no{constructor(t,e,o,i){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(t,e){var o,i;let r=(null!==(i=null!==(o=null==t?void 0:t.map)&&void 0!==o?o:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>no.flattenMetadata(t)));return null==e?r:r.find((t=>t.key===e))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,label:t.label,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,label:t.label,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e,o="No value"){var i,r;let n=no.extractResultMetadata(this.selectedResult,t),a=null!==(i=null==n?void 0:n.label)&&void 0!==i?i:null===(r=this.getMetadataDescriptor(t))||void 0===r?void 0:r.label;const s=this.allResults.map((e=>no.extractResultMetadata(e,t))).map((e=>null!=e?e:{key:t,label:a,value:void 0,displayValue:o})).filter((t=>t.value!=(null==n?void 0:n.value))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return s.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){if(null==t)return-1;if(null==e)return 1;let r=this.getMetadataDescriptor(o),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find((e=>t==e.key))}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>{var i;return(null===(i=no.extractResultMetadata(o,t))||void 0===i?void 0:i.value)==e}));let i,r=no.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,i=t,e===n.length))break}return i}countMatchingMetadata(t,e){return no.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var ao=Object.freeze({__proto__:null,ClusteringHelper:no});class so{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var lo=Object.freeze({__proto__:null,Debouncer:so});const co=t=>new Promise((e=>setTimeout(e,t)));async function ho(t,e=10,o=2e4){let i,r,n=await t();for(i=r=performance.now();null==n&&(!o||r-i<o);)await co(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function fo(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,i)=>e+o+":"+i)),new Date(t)}function uo(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!uo(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!uo(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!uo(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var po=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?fo(o):o}},deepEqual:uo,delay:co,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:fo,waitFor:ho,waitUntil:async function(t,e=10,o=2e4){await ho((async()=>await t()||void 0),e,o)}});const go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function yo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Oe({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!uo(t,e),...null!=e?e:{}})}function bo(t){return!isNaN(parseFloat(t))}var mo=Object.freeze({__proto__:null,customElement:go,isNumber:bo,jsonProperty:yo,optionalNumberProperty:function(t){return Oe({type:Object,converter:{fromAttribute:t=>{if(null!=t)return bo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const vo=t=>"string"==typeof t?ht(t):t;class xo{static create(t,e,o,i){const r=t=>vo(null!=t?t:i),n=ft`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=ft`var(${vo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${vo(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):vo(null!=e?e:t.lastResortDefaultValue()),i=ft`var(${vo(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>ft`var(${vo(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function wo(t,e){return vo(`${t.name}: ${e}`)}const Oo={colorWhite:xo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:xo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:xo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:xo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:xo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:xo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:xo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:xo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:xo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:xo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:xo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:xo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:xo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:xo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:xo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:xo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:xo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:xo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:xo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:xo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:xo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:xo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:xo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:xo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:xo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:xo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:xo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:xo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:xo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:xo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:xo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:xo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:xo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:xo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:xo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:xo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:xo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:xo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:xo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:xo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:xo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:xo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:xo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:xo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:xo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:xo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:xo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:xo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:xo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:xo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:xo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:xo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:xo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:xo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:xo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:xo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:xo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:xo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:xo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:xo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:xo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:xo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:xo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:xo.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:xo.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:xo.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:xo.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:xo.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:xo.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:xo.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:xo.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:xo.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:xo.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:xo.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:xo.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:xo.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:xo.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:xo.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:xo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:xo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:xo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:xo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:xo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:xo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:xo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:xo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:xo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:xo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:xo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:xo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:xo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:xo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:xo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:xo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:xo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:xo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:xo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:xo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:xo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:xo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:xo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:xo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:xo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:xo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:xo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:xo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:xo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:xo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:xo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:xo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:xo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:xo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:xo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:xo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:xo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:xo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:xo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:xo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:xo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:xo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:xo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:xo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:xo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:xo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:xo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:xo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:xo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:xo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:xo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:xo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:xo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:xo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:xo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:xo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:xo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:xo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:xo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:xo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:xo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:xo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:xo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:xo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:xo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:xo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:xo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:xo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:xo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:xo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:xo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:xo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:xo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:xo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:xo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:xo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:xo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:xo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:xo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:xo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:xo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:xo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:xo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:xo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:xo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:xo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:xo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:xo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:xo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:xo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:xo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:xo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:xo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:xo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:xo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:xo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:xo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:xo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:xo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:xo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:xo.create("--ft-opacity-0","","NUMBER","0"),opacity8:xo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:xo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:xo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:xo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:xo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:xo.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:xo.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:xo.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:xo.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:xo.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:xo.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:xo.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:xo.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:xo.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},So={fontFamily:xo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:xo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-display-textCase","","UNKNOWN","none")},Co={fontFamily:xo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:xo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},No={fontFamily:xo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:xo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},$o={fontFamily:xo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:xo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:xo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Eo={fontFamily:xo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ko={fontFamily:xo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Io={fontFamily:xo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:xo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Uo={fontFamily:xo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Lo={fontFamily:xo.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:xo.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:xo.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},_o={fontFamily:xo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ao={fontFamily:xo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:xo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Wo={fontFamily:xo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},To={fontFamily:xo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},zo={fontFamily:xo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:xo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:xo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Po={fontFamily:xo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Mo={fontFamily:xo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},jo={fontFamily:xo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Zo={fontFamily:xo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ho={fontFamily:xo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ko={fontFamily:xo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Go={fontFamily:xo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:xo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},qo={display:So,"title-1":Co,"title-2":No,"title-3":$o,"body-1-regular":Eo,"body-1-medium":ko,"body-1-semibold":Io,"body-2-regular":Ro,"body-2-medium":Uo,"body-2-medium-underline":Lo,"body-2-semibold":_o,"label-1-medium":Ao,"label-1-semibold":Bo,"label-1-bold":Wo,"label-2-medium":To,"label-2-semibold":zo,"label-2-bold":Fo,"caption-1-medium":Do,"caption-1-semibold":Po,"caption-1-bold":Mo,"caption-2-medium":jo,"caption-2-semibold":Zo,"caption-2-bold":Ho,"caption-3-medium":Ko,"caption-3-semibold":Go,"caption-3-bold":Vo},Yo={backgroundActionPrimary:xo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Oo.colorBrand0),backgroundErrorSubtle:xo.extend("--ft-background-error-subtle","Used as background of subtle error components.",Oo.colorRed10),backgroundInfoSubtle:xo.extend("--ft-background-info-subtle","Used as background of subtle information components.",Oo.colorCyan10),backgroundWarningSubtle:xo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Oo.colorOrange10),backgroundSuccessSubtle:xo.extend("--ft-background-success-subtle","Used as background of subtle success components.",Oo.colorGreen10),backgroundGlobalSurface:xo.extend("--ft-background-global-surface","Used as app background.",Oo.colorWhite),backgroundGlobalOnSurface:xo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Oo.colorGray10),backgroundGlobalOnSurfaceDark:xo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Oo.colorGray30),contentActionPrimary:xo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Oo.colorBrand0),contentWarningPrimary:xo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Oo.colorOrange200),contentWarningIconOnly:xo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Oo.colorOrange0),contentErrorPrimary:xo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Oo.colorRed0),contentErrorIconOnly:xo.extend("--ft-content-error-icon-only","Used on error status icons alone",Oo.colorRed70),contentInfoPrimary:xo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Oo.colorCyan200),contentInfoIconOnly:xo.extend("--ft-content-info-icon-only","Used on info status icons alone",Oo.colorCyan0),contentSuccessPrimary:xo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Oo.colorGreen200),contentSuccessIconOnly:xo.extend("--ft-content-success-icon-only","Used on success status icons alone",Oo.colorGreen0),contentGlobalPrimary:xo.extend("--ft-content-global-primary","Used for main content on the page.",Oo.colorGray500),contentGlobalSecondary:xo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Oo.colorGray200),contentGlobalSubtle:xo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Oo.colorGray0),contentGlobalOnColor:xo.extend("--ft-content-global-on-color","Used for content on a dominant color.",Oo.colorWhite),borderActionPrimary:xo.extend("--ft-border-action-primary","Used as border for primary action components.",Oo.colorBrand0),borderActionFocusRing:xo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Oo.colorCyan0),borderWarningPrimary:xo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Oo.colorOrange200),borderWarningSubtle:xo.extend("--ft-border-warning-subtle","Used as border for warning components.",Oo.colorOrange30),borderSuccessPrimary:xo.extend("--ft-border-success-primary","Used as border for success buttons.",Oo.colorGreen200),borderSuccessSubtle:xo.extend("--ft-border-success-subtle","Used as border for success components.",Oo.colorGreen30),borderErrorPrimary:xo.extend("--ft-border-error-primary","Used as border for text fields in error states.",Oo.colorRed0),borderErrorSubtle:xo.extend("--ft-border-error-subtle","Used as border for error components.",Oo.colorRed30),borderInfoPrimary:xo.extend("--ft-border-info-primary","Used as border for buttons in info color.",Oo.colorCyan200),borderInfoSubtle:xo.extend("--ft-border-info-subtle","Used as border for information components.",Oo.colorCyan30),borderGlobalPrimary:xo.extend("--ft-border-global-primary","Used as border for element like input.",Oo.colorGray50),borderGlobalSubtle:xo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Oo.colorGray30),borderInputPrimary:xo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Oo.colorGray80)},Jo={largeHeight:xo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:xo.extend("--ft-button-large-horizontal-padding","",Oo.spacing4),largeGap:xo.extend("--ft-button-large-gap","",Oo.spacing2),largeBorderRadius:xo.extend("--ft-button-large-border-radius","",Oo.borderRadiusS),largeIconSize:xo.extend("--ft-button-large-icon-size","",Oo.iconSize3),largeBorderWidth:xo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:xo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:xo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:xo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:xo.extend("--ft-button-small-horizontal-padding","",Oo.spacing3),smallGap:xo.extend("--ft-button-small-gap","",Oo.spacing2),smallBorderRadius:xo.extend("--ft-button-small-border-radius","",Oo.borderRadiusS),smallIconSize:xo.extend("--ft-button-small-icon-size","",Oo.iconSize2),smallBorderWidth:xo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:xo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:xo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:xo.extend("--ft-button-primary-background-color","",Yo.backgroundActionPrimary),primaryColor:xo.extend("--ft-button-primary-color","",Yo.contentGlobalOnColor),primaryIconColor:xo.extend("--ft-button-primary-icon-color","",Yo.contentGlobalOnColor),primaryStateLayerColor:xo.extend("--ft-button-primary-state-layer-color","",Yo.contentGlobalOnColor),primaryHoverStateLayerOpacity:xo.extend("--ft-button-primary-hover-state-layer-opacity","",Oo.opacity16),primaryFocusStateLayerOpacity:xo.extend("--ft-button-primary-focus-state-layer-opacity","",Oo.opacity16),primaryActiveStateLayerOpacity:xo.extend("--ft-button-primary-active-state-layer-opacity","",Oo.opacity24),primaryDisabledComponentOpacity:xo.extend("--ft-button-primary-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-button-focus-focus-ring-color","",Yo.borderActionFocusRing),tertiaryBackgroundColor:xo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:xo.extend("--ft-button-tertiary-color","",Yo.contentActionPrimary),tertiaryIconColor:xo.extend("--ft-button-tertiary-icon-color","",Yo.contentActionPrimary),tertiaryStateLayerColor:xo.extend("--ft-button-tertiary-state-layer-color","",Yo.contentActionPrimary),tertiaryHoverStateLayerOpacity:xo.extend("--ft-button-tertiary-hover-state-layer-opacity","",Oo.opacity8),tertiaryFocusStateLayerOpacity:xo.extend("--ft-button-tertiary-focus-state-layer-opacity","",Oo.opacity8),tertiaryActiveStateLayerOpacity:xo.extend("--ft-button-tertiary-active-state-layer-opacity","",Oo.opacity16),tertiaryDisabledComponentOpacity:xo.extend("--ft-button-tertiary-disabled-component-opacity","",Oo.opacity40),secondaryBackgroundColor:xo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:xo.extend("--ft-button-secondary-color","",Yo.contentActionPrimary),secondaryIconColor:xo.extend("--ft-button-secondary-icon-color","",Yo.contentActionPrimary),secondaryStateLayerColor:xo.extend("--ft-button-secondary-state-layer-color","",Yo.contentActionPrimary),secondaryHoverStateLayerOpacity:xo.extend("--ft-button-secondary-hover-state-layer-opacity","",Oo.opacity8),secondaryFocusStateLayerOpacity:xo.extend("--ft-button-secondary-focus-state-layer-opacity","",Oo.opacity8),secondaryActiveStateLayerOpacity:xo.extend("--ft-button-secondary-active-state-layer-opacity","",Oo.opacity16),secondaryDisabledComponentOpacity:xo.extend("--ft-button-secondary-disabled-component-opacity","",Oo.opacity40),secondaryBorderColor:xo.extend("--ft-button-secondary-border-color","",Yo.borderActionPrimary),neutralBackgroundColor:xo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:xo.extend("--ft-button-neutral-icon-color","",Yo.contentGlobalSecondary),neutralColor:xo.extend("--ft-button-neutral-color","",Yo.contentGlobalSecondary),neutralStateLayerColor:xo.extend("--ft-button-neutral-state-layer-color","",Yo.contentGlobalSecondary),neutralHoverStateLayerOpacity:xo.extend("--ft-button-neutral-hover-state-layer-opacity","",Oo.opacity8),neutralFocusStateLayerOpacity:xo.extend("--ft-button-neutral-focus-state-layer-opacity","",Oo.opacity8),neutralActiveStateLayerOpacity:xo.extend("--ft-button-neutral-active-state-layer-opacity","",Oo.opacity16),neutralDisabledComponentOpacity:xo.extend("--ft-button-neutral-disabled-component-opacity","",Oo.opacity40)},Xo={iconSize:xo.extend("--ft-banner-icon-size","",Oo.iconSize5),borderWidth:xo.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-banner-horizontal-padding","",Oo.spacing6),verticalPadding:xo.extend("--ft-banner-vertical-padding","",Oo.spacing6),horizontalSideGap:xo.extend("--ft-banner-horizontal-side-gap","",Oo.spacing6),horizontalMobileGap:xo.extend("--ft-banner-horizontal-mobile-gap","",Oo.spacing4),verticalMobileGap:xo.extend("--ft-banner-vertical-mobile-gap","",Oo.spacing6),horizontalMiddleGap:xo.extend("--ft-banner-horizontal-middle-gap","",Oo.spacing20),infoBackgroundColor:xo.extend("--ft-banner-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-banner-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-banner-info-icon-color","",Yo.contentInfoIconOnly)},Qo={horizontalGap:xo.extend("--ft-breadcrumb-horizontal-gap","",Oo.spacing1),verticalGap:xo.extend("--ft-breadcrumb-vertical-gap","",Oo.spacing2),currentElementColor:xo.extend("--ft-breadcrumb-current-element-color","",Yo.contentGlobalPrimary),iconColor:xo.extend("--ft-breadcrumb-icon-color","",Yo.contentGlobalSubtle)},ti={horizontalPadding:xo.extend("--ft-page-header-horizontal-padding","",Oo.spacing12),horizontalGap:xo.extend("--ft-page-header-horizontal-gap","",Oo.spacing4),verticalGap:xo.extend("--ft-page-header-vertical-gap","",Oo.spacing2),classicVerticalPadding:xo.extend("--ft-page-header-classic-vertical-padding","",Oo.spacing6),multilineVerticalPadding:xo.extend("--ft-page-header-multiline-vertical-padding","",Oo.spacing4),inlineVerticalPadding:xo.extend("--ft-page-header-inline-vertical-padding","",Oo.spacing2),backgroundColor:xo.extend("--ft-page-header-background-color","",Oo.colorWhite),bottomBorderColor:xo.extend("--ft-page-header-bottom-border-color","",Yo.borderGlobalSubtle),titleColor:xo.extend("--ft-page-header-title-color","",Yo.contentGlobalPrimary),subtitleColor:xo.extend("--ft-page-header-subtitle-color","",Yo.contentGlobalSecondary)},ei={smallContainerWidth:xo.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:xo.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:xo.extend("--ft-modal-overlay-background-color","",Oo.colorGray700),overlayOpacity:xo.extend("--ft-modal-overlay-opacity","",Oo.opacity40),shadow:xo.extend("--ft-modal-shadow","",Oo.shadowElevation03),bodyBackgroundColor:xo.extend("--ft-modal-body-background-color","",Oo.colorWhite),bodyColor:xo.extend("--ft-modal-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-modal-body-horizontal-padding","",Oo.spacing6),bodyVerticalPadding:xo.extend("--ft-modal-body-vertical-padding","",Oo.spacing6),bodyVerticalGap:xo.extend("--ft-modal-body-vertical-gap","",Oo.spacing6),containerMargin:xo.extend("--ft-modal-container-margin","",Oo.spacing3),headerBackgroundColor:xo.extend("--ft-modal-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-modal-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-modal-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-modal-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerVerticalPadding:xo.extend("--ft-modal-header-vertical-padding","",Oo.spacing1),headerRightPadding:xo.extend("--ft-modal-header-right-padding","",Oo.spacing1),headerLeftPadding:xo.extend("--ft-modal-header-left-padding","",Oo.spacing6),headerGap:xo.extend("--ft-modal-header-gap","",Oo.spacing2),headerBorderBottom:xo.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:xo.extend("--ft-modal-border-radius","",Oo.borderRadiusM)},oi={overlayOpacity:xo.extend("--ft-drawer-overlay-opacity","",Oo.opacity40),shadow:xo.extend("--ft-drawer-shadow","",Oo.shadowElevation03),bodyColor:xo.extend("--ft-drawer-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-drawer-body-horizontal-padding","",Oo.spacing6),bodyVerticalPadding:xo.extend("--ft-drawer-body-vertical-padding","",Oo.spacing6),bodyGap:xo.extend("--ft-drawer-body-gap","",Oo.spacing6),bodyBackgroundColor:xo.extend("--ft-drawer-body-background-color","",Oo.colorWhite),headerBackgroundColor:xo.extend("--ft-drawer-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-drawer-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-drawer-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-drawer-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerHeight:xo.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:xo.extend("--ft-drawer-header-horizontal-padding","",Oo.spacing2),headerBorderWidth:xo.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:xo.extend("--ft-drawer-header-gap","",Oo.spacing3),buttonsBarBackgroundColor:xo.extend("--ft-drawer-buttons-bar-background-color","",Yo.backgroundGlobalOnSurface),buttonsBarBorderColor:xo.extend("--ft-drawer-buttons-bar-border-color","",Yo.borderGlobalSubtle),buttonsBarColor:xo.extend("--ft-drawer-buttons-bar-color","",Yo.contentGlobalPrimary),buttonsBarHorizontalPadding:xo.extend("--ft-drawer-buttons-bar-horizontal-padding","",Oo.spacing4),buttonsBarVerticalPadding:xo.extend("--ft-drawer-buttons-bar-vertical-padding","",Oo.spacing4),buttonsBarGap:xo.extend("--ft-drawer-buttons-bar-gap","",Oo.spacing3),buttonsBarBorderWidth:xo.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:xo.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:xo.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:xo.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:xo.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:xo.extend("--ft-drawer-overlay-background-color","",Oo.colorGray700)},ii={fieldHorizontalPadding:xo.extend("--ft-text-input-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-input-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-text-input-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-text-input-field-icon-size","",Oo.iconSize3),fieldHeight:xo.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-text-input-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-text-input-helper-horizontal-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-text-input-helper-icon-size","",Oo.iconSize2),borderRadius:xo.extend("--ft-text-input-border-radius","",Oo.borderRadiusM),backgroundColor:xo.extend("--ft-text-input-background-color","",Oo.colorWhite),contentValueColor:xo.extend("--ft-text-input-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-text-input-trailing-icon-color","",Yo.contentGlobalSubtle),labelColor:xo.extend("--ft-text-input-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-input-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-input-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-input-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-input-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-input-error-helper-icon-color","",Yo.contentErrorIconOnly),warningBorderWidth:xo.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:xo.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-text-input-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-input-disabled-component-opacity","",Oo.opacity40)},ri={backgroundColor:xo.extend("--ft-text-area-background-color","",Oo.colorWhite),contentValueColor:xo.extend("--ft-text-area-content-value-color","",Yo.contentGlobalPrimary),labelColor:xo.extend("--ft-text-area-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-area-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-area-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-area-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-area-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-area-error-helper-icon-color","",Yo.contentErrorIconOnly),focusFocusRingColor:xo.extend("--ft-text-area-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-area-disabled-component-opacity","",Oo.opacity40),fieldHorizontalLeftPadding:xo.extend("--ft-text-area-field-horizontal-left-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-area-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-text-area-field-vertical-gap","",Oo.spacing05),fieldMinHeight:xo.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:xo.extend("--ft-text-area-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-text-area-helper-horizontal-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-text-area-helper-icon-size","",Oo.iconSize2),borderRadius:xo.extend("--ft-text-area-border-radius","",Oo.borderRadiusM)},ni={height:xo.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:xo.extend("--ft-floating-menu-horizontal-padding","",Oo.spacing4),offIconColor:xo.extend("--ft-floating-menu-off-icon-color","",Yo.contentGlobalPrimary),offColor:xo.extend("--ft-floating-menu-off-color","",Yo.contentGlobalPrimary),onColor:xo.extend("--ft-floating-menu-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-floating-menu-on-state-layer-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-floating-menu-gap","",Oo.spacing3),focusFocusRingColor:xo.extend("--ft-floating-menu-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:xo.extend("--ft-floating-menu-focus-state-layer-opacity","",Oo.opacity8),hoverStateLayerOpacity:xo.extend("--ft-floating-menu-hover-state-layer-opacity","",Oo.opacity8),activeStateLayerOpacity:xo.extend("--ft-floating-menu-active-state-layer-opacity","",Oo.opacity16),disabledComponentOpacity:xo.extend("--ft-floating-menu-disabled-component-opacity","",Oo.opacity40),iconSize:xo.extend("--ft-floating-menu-icon-size","",Oo.iconSize3),backgroundColor:xo.extend("--ft-floating-menu-background-color","",Yo.backgroundGlobalOnSurface)},ai={fieldHorizontalPadding:xo.extend("--ft-combobox-single-select-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-single-select-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-single-select-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-combobox-single-select-field-icon-size","",Oo.iconSize3),fieldHeight:xo.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-combobox-single-select-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-single-select-helper-horizontal-gap","",Oo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-single-select-helper-vertical-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-combobox-single-select-helper-icon-size","",Oo.iconSize2),menuVerticalGap:xo.extend("--ft-combobox-single-select-menu-vertical-gap","",Oo.spacing2),borderRadius:xo.extend("--ft-combobox-single-select-border-radius","",Oo.borderRadiusM),backgroundColor:xo.extend("--ft-combobox-single-select-background-color","",Oo.colorWhite),labelColor:xo.extend("--ft-combobox-single-select-label-color","",Yo.contentGlobalSubtle),contentValueColor:xo.extend("--ft-combobox-single-select-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-combobox-single-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-single-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-single-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-combobox-single-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-single-select-error-helper-text-color","",Yo.contentErrorPrimary),warningBorderWidth:xo.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-single-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-single-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-single-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),focusOutlineWidth:xo.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-single-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-single-select-disabled-component-opacity","",Oo.opacity40)},si={backgroundColor:xo.extend("--ft-combobox-multi-select-background-color","",Oo.colorWhite),labelColor:xo.extend("--ft-combobox-multi-select-label-color","",Yo.contentGlobalSubtle),trailingIconColor:xo.extend("--ft-combobox-multi-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-multi-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-multi-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:xo.extend("--ft-combobox-multi-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-multi-select-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIcon:xo.extend("--ft-combobox-multi-select-error-helper-icon","",Yo.contentErrorIconOnly),errorBorderWidth:xo.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-multi-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-multi-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-multi-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),warningBorderWidth:xo.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-multi-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-multi-select-disabled-component-opacity","",Oo.opacity40),helperHorizontalPadding:xo.extend("--ft-combobox-multi-select-helper-horizontal-padding","",Oo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-multi-select-helper-horizontal-gap","",Oo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-multi-select-helper-vertical-gap","",Oo.spacing1),helperIconSize:xo.extend("--ft-combobox-multi-select-helper-icon-size","",Oo.iconSize2),fieldHorizontalPadding:xo.extend("--ft-combobox-multi-select-field-horizontal-padding","",Oo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-multi-select-field-horizontal-gap","",Oo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-multi-select-field-vertical-gap","",Oo.spacing05),fieldIconSize:xo.extend("--ft-combobox-multi-select-field-icon-size","",Oo.iconSize3),fieldMaxHeight:xo.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:xo.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",Oo.spacing1),contentValuesVerticalGap:xo.extend("--ft-combobox-multi-select-content-values-vertical-gap","",Oo.spacing1),borderRadius:xo.extend("--ft-combobox-multi-select-border-radius","",Oo.borderRadiusM)},li={backgroundColor:xo.extend("--ft-popover-background-color","",Yo.backgroundGlobalOnSurface),horizontalPadding:xo.extend("--ft-popover-horizontal-padding","",Oo.spacing6),verticalPadding:xo.extend("--ft-popover-vertical-padding","",Oo.spacing6),iconColor:xo.extend("--ft-popover-icon-color","",Yo.contentGlobalSecondary),iconSize:xo.extend("--ft-popover-icon-size","",Oo.iconSize2),titleColor:xo.extend("--ft-popover-title-color","",Yo.contentGlobalPrimary),bodyColor:xo.extend("--ft-popover-body-color","",Yo.contentGlobalSecondary),linkColor:xo.extend("--ft-popover-link-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-popover-gap","",Oo.spacing3),borderRadius:xo.extend("--ft-popover-border-radius","",Oo.borderRadiusM),shadow:xo.extend("--ft-popover-shadow","",Oo.shadowElevation02)},ci={topLeftBorderRadius:xo.extend("--ft-tabs-top-left-border-radius","",Oo.borderRadiusS),topRightBorderRadius:xo.extend("--ft-tabs-top-right-border-radius","",Oo.borderRadiusS),labelHorizontalPadding:xo.extend("--ft-tabs-label-horizontal-padding","",Oo.spacing4),labelVerticalPadding:xo.extend("--ft-tabs-label-vertical-padding","",Oo.spacing3),labelGap:xo.extend("--ft-tabs-label-gap","",Oo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-tabs-off-hover-state-layer-opacity","",Oo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-tabs-off-focus-state-layer-opacity","",Oo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-tabs-off-active-state-layer-opacity","",Oo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-tabs-off-disabled-component-opacity","",Oo.opacity40),offColor:xo.extend("--ft-tabs-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-tabs-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-tabs-on-hover-state-layer-opacity","",Oo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-tabs-on-focus-state-layer-opacity","",Oo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-tabs-on-active-state-layer-opacity","",Oo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-tabs-on-disabled-component-opacity","",Oo.opacity40),onColor:xo.extend("--ft-tabs-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-tabs-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-tabs-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-tabs-icon-vertical-padding","",Oo.spacing4),focusOutlineWidth:xo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-tabs-focus-focus-ring-color","",Yo.borderActionFocusRing)},di={hoverStateLayerOpacity:xo.extend("--ft-collapsible-hover-state-layer-opacity","",Oo.opacity8),focusStateLayerOpacity:xo.extend("--ft-collapsible-focus-state-layer-opacity","",Oo.opacity8),focusOutlineWidth:xo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:xo.extend("--ft-collapsible-focus-focus-ring-color","",Yo.borderActionFocusRing),activeStateLayerOpacity:xo.extend("--ft-collapsible-active-state-layer-opacity","",Oo.opacity16),disabledComponentOpacity:xo.extend("--ft-collapsible-disabled-component-opacity","",Oo.opacity40),horizontalPadding:xo.extend("--ft-collapsible-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-collapsible-vertical-padding","",Oo.spacing3),color:xo.extend("--ft-collapsible-color","",Yo.contentGlobalPrimary),stateLayerColor:xo.extend("--ft-collapsible-state-layer-color","",Yo.contentGlobalPrimary),backgroundColor:xo.extend("--ft-collapsible-background-color","",Yo.backgroundGlobalOnSurface),borderColor:xo.extend("--ft-collapsible-border-color","",Yo.borderGlobalSubtle),iconSize:xo.extend("--ft-collapsible-icon-size","",Oo.iconSize3)},hi={groupHorizontalPadding:xo.extend("--ft-switch-group-horizontal-padding","",Oo.spacing1),groupVerticalPadding:xo.extend("--ft-switch-group-vertical-padding","",Oo.spacing1),groupGap:xo.extend("--ft-switch-group-gap","",Oo.spacing1),groupBackgroundColor:xo.extend("--ft-switch-group-background-color","",Yo.backgroundGlobalSurface),groupBorderColor:xo.extend("--ft-switch-group-border-color","",Yo.borderGlobalSubtle),groupBorderRadius:xo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:xo.extend("--ft-switch-label-horizontal-padding","",Oo.spacing2),labelVerticalPadding:xo.extend("--ft-switch-label-vertical-padding","",Oo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-switch-off-hover-state-layer-opacity","",Oo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-switch-off-focus-state-layer-opacity","",Oo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-switch-off-active-state-layer-opacity","",Oo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-switch-off-disabled-component-opacity","",Oo.opacity40),offColor:xo.extend("--ft-switch-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-switch-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-switch-on-hover-state-layer-opacity","",Oo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-switch-on-focus-state-layer-opacity","",Oo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-switch-on-active-state-layer-opacity","",Oo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-switch-on-disabled-component-opacity","",Oo.opacity40),onColor:xo.extend("--ft-switch-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-switch-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-switch-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-switch-icon-vertical-padding","",Oo.spacing1),focusOutlineWidth:xo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-switch-focus-focus-ring-color","",Yo.borderActionFocusRing),optionBorderRadius:xo.extend("--ft-switch-option-border-radius","",Oo.borderRadiusS)},fi={color1Light:xo.extend("--ft-chart-1-light","for area color charts",Oo.colorBrand40),color1Base:xo.extend("--ft-chart-1-base","for line charts",Oo.colorBrand0),color2Light:xo.extend("--ft-chart-2-light","for area color charts",Oo.colorYellow60),color2Base:xo.extend("--ft-chart-2-base","for line charts",Oo.colorYellow100),color3Light:xo.extend("--ft-chart-3-light","",Oo.colorUltramarine40),color3Base:xo.extend("--ft-chart-3-base","",Oo.colorUltramarine70),color4Light:xo.extend("--ft-chart-4-light","",Oo.colorCyan50),color4Base:xo.extend("--ft-chart-4-base","",Oo.colorCyan100),color5Light:xo.extend("--ft-chart-5-light","",Oo.colorRed40),color5Base:xo.extend("--ft-chart-5-base","",Oo.colorRed60),color6Light:xo.extend("--ft-chart-6-light","",Oo.colorGreen40),color6Base:xo.extend("--ft-chart-6-base","",Oo.colorGreen70),color7Light:xo.extend("--ft-chart-7-light","",Oo.colorOrange70),color7Base:xo.extend("--ft-chart-7-base","",Oo.colorOrange100),color8Light:xo.extend("--ft-chart-8-light","",Oo.colorAvocado70),color8Base:xo.extend("--ft-chart-8-base","",Oo.colorAvocado200),color9Light:xo.extend("--ft-chart-9-light","",Oo.colorBrown50),color9Base:xo.extend("--ft-chart-9-base","",Oo.colorBrown200),color10Light:xo.extend("--ft-chart-10-light","",Oo.colorGray50),color10Base:xo.extend("--ft-chart-10-base","",Oo.colorGray80),monochrome10:xo.extend("--ft-chart-monochrome-10","",Oo.colorBrand10),monochrome20:xo.extend("--ft-chart-monochrome-20","",Oo.colorBrand20),monochrome30:xo.extend("--ft-chart-monochrome-30","",Oo.colorBrand40),monochrome40:xo.extend("--ft-chart-monochrome-40","",Oo.colorBrand60),monochrome50:xo.extend("--ft-chart-monochrome-50","",Oo.colorBrand0),monochrome60:xo.extend("--ft-chart-monochrome-60","",Oo.colorBrand200)},ui={largeHorizontalPadding:xo.extend("--ft-chip-large-horizontal-padding","",Oo.spacing4),largeVerticalPadding:xo.extend("--ft-chip-large-vertical-padding","",Oo.spacing2),largeGap:xo.extend("--ft-chip-large-gap","",Oo.spacing1),largeFocusOutlineOffset:xo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:xo.extend("--ft-chip-large-border-radius","",Oo.borderRadiusPill),largeBorderWidth:xo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:xo.extend("--ft-chip-large-icon-size","",Oo.iconSize3),mediumHorizontalPadding:xo.extend("--ft-chip-medium-horizontal-padding","",Oo.spacing3),mediumVerticalPadding:xo.extend("--ft-chip-medium-vertical-padding","",Oo.spacing1),mediumGap:xo.extend("--ft-chip-medium-gap","",Oo.spacing1),mediumFocusOutlineOffset:xo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:xo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:xo.extend("--ft-chip-medium-border-radius","",Oo.borderRadiusPill),mediumBorderWidth:xo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:xo.extend("--ft-chip-medium-icon-size","",Oo.iconSize2),smallHorizontalPadding:xo.extend("--ft-chip-small-horizontal-padding","",Oo.spacing2),smallVerticalPadding:xo.extend("--ft-chip-small-vertical-padding","",Oo.spacing05),smallGap:xo.extend("--ft-chip-small-gap","",Oo.spacing1),smallFocusOutlineOffset:xo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:xo.extend("--ft-chip-small-border-radius","",Oo.borderRadiusPill),smallBorderWidth:xo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:xo.extend("--ft-chip-small-icon-size","",Oo.iconSize1),neutralBackgroundColor:xo.extend("--ft-chip-neutral-background-color","",Yo.backgroundGlobalOnSurface),neutralColor:xo.extend("--ft-chip-neutral-color","",Yo.contentGlobalPrimary),neutralIconColor:xo.extend("--ft-chip-neutral-icon-color","",Yo.contentGlobalPrimary),neutralBorderColor:xo.extend("--ft-chip-neutral-border-color","",Yo.borderGlobalSubtle),infoBackgroundColor:xo.extend("--ft-chip-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-chip-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-chip-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-chip-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-chip-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-chip-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-chip-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-chip-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-chip-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-chip-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-chip-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-chip-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-chip-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-chip-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-chip-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-chip-error-border-color","",Yo.borderErrorSubtle)},pi={infoBorderColor:xo.extend("--ft-border-info-border-color","",Yo.borderInfoSubtle)},gi={borderWidth:xo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-notice-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-notice-vertical-padding","",Oo.spacing1),borderRadius:xo.extend("--ft-notice-border-radius","",Oo.borderRadiusS),gap:xo.extend("--ft-notice-gap","",Oo.spacing2),iconSize:xo.extend("--ft-notice-icon-size","",Oo.iconSize3),infoBackgroundColor:xo.extend("--ft-notice-info-background-color","",Yo.backgroundInfoSubtle),infoBorderColor:xo.extend("--ft-notice-info-border-color","",Yo.borderInfoSubtle),infoColor:xo.extend("--ft-notice-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notice-info-icon-color","",Yo.contentInfoIconOnly),warningBackgroundColor:xo.extend("--ft-notice-warning-background-color","",Yo.backgroundWarningSubtle),warningBorderColor:xo.extend("--ft-notice-warning-border-color","",Yo.borderWarningSubtle),warningColor:xo.extend("--ft-notice-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notice-warning-icon-color","",Yo.contentWarningIconOnly),errorBackgroundColor:xo.extend("--ft-notice-error-background-color","",Yo.backgroundErrorSubtle),errorBorderColor:xo.extend("--ft-notice-error-border-color","",Yo.borderErrorSubtle),errorColor:xo.extend("--ft-notice-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notice-error-icon-color","",Yo.contentErrorIconOnly),successBackgroundColor:xo.extend("--ft-notice-success-background-color","",Yo.backgroundSuccessSubtle),successBorderColor:xo.extend("--ft-notice-success-border-color","",Yo.borderSuccessSubtle),successColor:xo.extend("--ft-notice-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notice-success-icon-color","",Yo.contentSuccessIconOnly)},yi={color:xo.extend("--ft-checkbox-color","",Yo.contentGlobalPrimary),checkedBackgroundColor:xo.extend("--ft-checkbox-checked-background-color","",Yo.contentActionPrimary),checkedStateLayerColor:xo.extend("--ft-checkbox-checked-state-layer-color","",Yo.contentActionPrimary),checkedIconColor:xo.extend("--ft-checkbox-checked-icon-color","",Yo.contentGlobalOnColor),checkedHoverStateLayerOpacity:xo.extend("--ft-checkbox-checked-hover-state-layer-opacity","",Oo.opacity16),checkedFocusStateLayerOpacity:xo.extend("--ft-checkbox-checked-focus-state-layer-opacity","",Oo.opacity16),checkedActiveStateLayerOpacity:xo.extend("--ft-checkbox-checked-active-state-layer-opacity","",Oo.opacity24),checkedDisabledComponentOpacity:xo.extend("--ft-checkbox-checked-disabled-component-opacity","",Oo.opacity40),uncheckedBorderColor:xo.extend("--ft-checkbox-unchecked-border-color","",Oo.colorGray80),uncheckedStateLayerColor:xo.extend("--ft-checkbox-unchecked-state-layer-color","",Oo.colorGray80),uncheckedHoverStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",Oo.opacity16),uncheckedFocusStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",Oo.opacity16),uncheckedActiveStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",Oo.opacity24),uncheckedDisabledComponentOpacity:xo.extend("--ft-checkbox-unchecked-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-checkbox-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-checkbox-gap","",Oo.spacing3)},bi={offHoverStateLayerOpacity:xo.extend("--ft-toggle-off-hover-state-layer-opacity","",Oo.opacity16),offFocusStateLayerOpacity:xo.extend("--ft-toggle-off-focus-state-layer-opacity","",Oo.opacity16),offActiveStateLayerOpacity:xo.extend("--ft-toggle-off-active-state-layer-opacity","",Oo.opacity24),offDisabledComponentOpacity:xo.extend("--ft-toggle-off-disabled-component-opacity","",Oo.opacity40),offBackgroundColor:xo.extend("--ft-toggle-off-background-color","",Yo.contentGlobalSubtle),offIconColor:xo.extend("--ft-toggle-off-icon-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-toggle-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-toggle-on-hover-state-layer-opacity","",Oo.opacity16),onFocusStateLayerOpacity:xo.extend("--ft-toggle-on-focus-state-layer-opacity","",Oo.opacity16),onActiveStateLayerOpacity:xo.extend("--ft-toggle-on-active-state-layer-opacity","",Oo.opacity24),onDisabledComponentOpacity:xo.extend("--ft-toggle-on-disabled-component-opacity","",Oo.opacity40),onBackgroundColor:xo.extend("--ft-toggle-on-background-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-toggle-on-state-layer-color","",Yo.contentActionPrimary),onIconColor:xo.extend("--ft-toggle-on-icon-color","",Yo.contentActionPrimary),color:xo.extend("--ft-toggle-color","",Yo.contentGlobalPrimary),focusFocusRingColor:xo.extend("--ft-toggle-focus-focus-ring-color","",Yo.borderActionFocusRing),gap:xo.extend("--ft-toggle-gap","",Oo.spacing3)},mi={color:xo.extend("--ft-radio-color","",Yo.contentGlobalPrimary),selectedRadioColor:xo.extend("--ft-radio-selected-radio-color","",Yo.contentActionPrimary),selectedStateLayerColor:xo.extend("--ft-radio-selected-state-layer-color","",Yo.contentActionPrimary),selectedHoverStateLayerOpacity:xo.extend("--ft-radio-selected-hover-state-layer-opacity","",Oo.opacity16),selectedFocusStateLayerOpacity:xo.extend("--ft-radio-selected-focus-state-layer-opacity","",Oo.opacity16),selectedActiveStateLayerOpacity:xo.extend("--ft-radio-selected-active-state-layer-opacity","",Oo.opacity24),selectedDisabledComponentOpacity:xo.extend("--ft-radio-selected-disabled-component-opacity","",Oo.opacity40),unselectedStateLayerColor:xo.extend("--ft-radio-unselected-state-layer-color","",Yo.borderInputPrimary),unselectedBorderColor:xo.extend("--ft-radio-unselected-border-color","",Yo.borderInputPrimary),unselectedHoverStateLayerOpacity:xo.extend("--ft-radio-unselected-hover-state-layer-opacity","",Oo.opacity16),unselectedFocusStateLayerOpacity:xo.extend("--ft-radio-unselected-focus-state-layer-opacity","",Oo.opacity16),unselectedActiveStateLayerOpacity:xo.extend("--ft-radio-unselected-active-state-layer-opacity","",Oo.opacity24),unselectedDisabledComponentOpacity:xo.extend("--ft-radio-unselected-disabled-component-opacity","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-radio-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-radio-gap","",Oo.spacing3)},vi={iconSize:xo.extend("--ft-notification-icon-size","",Oo.iconSize4),horizontalPadding:xo.extend("--ft-notification-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-notification-vertical-padding","",Oo.spacing4),infoBackgroundColor:xo.extend("--ft-notification-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-notification-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notification-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-notification-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-notification-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-notification-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notification-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-notification-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-notification-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-notification-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notification-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-notification-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-notification-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-notification-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notification-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-notification-error-border-color","",Yo.borderErrorSubtle),borderRadius:xo.extend("--ft-notification-border-radius","",Oo.borderRadiusPill),borderWidth:xo.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:xo.extend("--ft-notification-leading-gap","",Oo.spacing2),trailingGap:xo.extend("--ft-notification-trailing-gap","",Oo.spacing8)},xi={horizontalPadding:xo.extend("--ft-tooltip-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-tooltip-vertical-padding","",Oo.spacing2),borderRadius:xo.extend("--ft-tooltip-border-radius","",Oo.borderRadiusS),color:xo.extend("--ft-tooltip-color","",Yo.contentGlobalOnColor),backgroundColor:xo.extend("--ft-tooltip-background-color","",Yo.contentGlobalPrimary),backgroundOpacity:xo.extend("--ft-tooltip-background-opacity","",Oo.opacity80),shadow:xo.extend("--ft-tooltip-shadow","",Oo.shadowElevation03),maxWidth:xo.create("--ft-tooltip-max-width","","SIZE","256px"),gap:xo.extend("--ft-tooltip-gap","",Oo.spacing05)};var wi=Object.freeze({__proto__:null,FtCssVariableFactory:xo,banner:Xo,border:pi,breadcrumb:Qo,button:Jo,chart:fi,checkbox:yi,chip:ui,collapsible:di,comboboxMultiSelect:si,comboboxSingleSelect:ai,drawer:oi,floatingMenu:ni,foundation:Oo,modal:ei,notice:gi,notification:vi,pageHeader:ti,popover:li,radio:mi,semantic:Yo,setVariable:wo,switch_:hi,tabs:ci,textArea:ri,textInput:ii,toggle:bi,tooltip:xi,typographies:qo,typographyBody1Medium:ko,typographyBody1Regular:Eo,typographyBody1Semibold:Io,typographyBody2Medium:Uo,typographyBody2MediumUnderline:Lo,typographyBody2Regular:Ro,typographyBody2Semibold:_o,typographyCaption1Bold:Mo,typographyCaption1Medium:Do,typographyCaption1Semibold:Po,typographyCaption2Bold:Ho,typographyCaption2Medium:jo,typographyCaption2Semibold:Zo,typographyCaption3Bold:Vo,typographyCaption3Medium:Ko,typographyCaption3Semibold:Go,typographyDisplay:So,typographyLabel1Bold:Wo,typographyLabel1Medium:Ao,typographyLabel1Semibold:Bo,typographyLabel2Bold:Fo,typographyLabel2Medium:To,typographyLabel2Semibold:zo,typographyTitle1:Co,typographyTitle2:No,typographyTitle3:$o,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const Oi={colorPrimary:xo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:xo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:xo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:xo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:xo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:xo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:xo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:xo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:xo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:xo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:xo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:xo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:xo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:xo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:xo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:xo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:xo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:xo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:xo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:xo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:xo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:xo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:xo.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:xo.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:xo.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:xo.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:xo.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:xo.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:xo.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:xo.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:xo.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:xo.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:xo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:xo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:xo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:xo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Si=Object.freeze({__proto__:null,designSystemVariables:Oi});class Ci extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ni extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class $i extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var Ei=Object.freeze({__proto__:null,FtNotificationEvent:Ci,PostResizeEvent:$i,PreResizeEvent:Ni});const ki=["start","end"],Ii=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ki[0],e+"-"+ki[1])),[]),Ri=Math.min,Ui=Math.max,Li=Math.round,_i=t=>({x:t,y:t}),Ai={left:"right",right:"left",bottom:"top",top:"bottom"},Bi={start:"end",end:"start"};function Wi(t,e,o){return Ui(t,Ri(e,o))}function Ti(t,e){return"function"==typeof t?t(e):t}function zi(t){return t.split("-")[0]}function Fi(t){return t.split("-")[1]}function Di(t){return"x"===t?"y":"x"}function Pi(t){return"y"===t?"height":"width"}function Mi(t){return["top","bottom"].includes(zi(t))?"y":"x"}function ji(t){return Di(Mi(t))}function Zi(t){return t.replace(/left|right|bottom|top/g,(t=>Ai[t]))}function Hi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ki(t,e,o){let{reference:i,floating:r}=t;const n=Mi(e),a=ji(e),s=Pi(a),l=zi(e),c="y"===n,d=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let u;switch(l){case"top":u={x:d,y:i.y-r.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-r.width,y:h};break;default:u={x:i.x,y:i.y}}switch(Fi(e)){case"start":u[a]-=f*(o&&c?-1:1);break;case"end":u[a]+=f*(o&&c?-1:1)}return u}async function Gi(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:u=0}=Ti(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),g=s[f?"floating"===h?"reference":"floating":h],y=Hi(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Hi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+p.top)/v.y,bottom:(x.bottom-y.bottom+p.bottom)/v.y,left:(y.left-x.left+p.left)/v.x,right:(x.right-y.right+p.right)/v.x}}function Vi(t,e,o){return(t?[...o.filter((e=>Fi(e)===t)),...o.filter((e=>Fi(e)!==t))]:o.filter((t=>zi(t)===t))).filter((o=>!t||(Fi(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Bi[t]))}(o)!==o)))}const qi=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Ii,autoAlignment:u=!0,...p}=Ti(t,e),g=void 0!==h||f===Ii?Vi(h||null,u,f):f,y=await Gi(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Fi(t),r=ji(t),n=Pi(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Zi(a)),[a,Zi(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[zi(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Fi(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=S.filter((t=>t[2].slice(0,Fi(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=C[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Yi(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function Ji(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Xi(t){var e;return null==(e=(Qi(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Qi(t){return t instanceof Node||t instanceof Ji(t).Node}function tr(t){return t instanceof Element||t instanceof Ji(t).Element}function er(t){return t instanceof HTMLElement||t instanceof Ji(t).HTMLElement}function or(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ji(t).ShadowRoot)}function ir(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=lr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function rr(t){return["table","td","th"].includes(Yi(t))}function nr(t){const e=ar(),o=lr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ar(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function sr(t){return["html","body","#document"].includes(Yi(t))}function lr(t){return Ji(t).getComputedStyle(t)}function cr(t){return tr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dr(t){if("html"===Yi(t))return t;const e=t.assignedSlot||t.parentNode||or(t)&&t.host||Xi(t);return or(e)?e.host:e}function hr(t){const e=dr(t);return sr(e)?t.ownerDocument?t.ownerDocument.body:t.body:er(e)&&ir(e)?e:hr(e)}function fr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=hr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ji(r);return n?e.concat(a,a.visualViewport||[],ir(r)?r:[],a.frameElement&&o?fr(a.frameElement):[]):e.concat(r,fr(r,[],o))}function ur(t){const e=lr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=er(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Li(o)!==n||Li(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function pr(t){return tr(t)?t:t.contextElement}function gr(t){const e=pr(t);if(!er(e))return _i(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=ur(e);let a=(n?Li(o.width):o.width)/i,s=(n?Li(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yr=_i(0);function br(t){const e=Ji(t);return ar()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yr}function mr(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=pr(t);let a=_i(1);e&&(i?tr(i)&&(a=gr(i)):a=gr(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ji(t))&&e}(n,o,i)?br(n):_i(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,h=r.height/a.y;if(n){const t=Ji(n),e=i&&tr(i)?Ji(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=gr(o),e=o.getBoundingClientRect(),i=lr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=r,c+=n,o=Ji(o).frameElement}}return Hi({width:d,height:h,x:l,y:c})}function vr(t){return mr(Xi(t)).left+cr(t).scrollLeft}function xr(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ji(t),i=Xi(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=ar();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Xi(t),o=cr(t),i=t.ownerDocument.body,r=Ui(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ui(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+vr(t);const s=-o.scrollTop;return"rtl"===lr(i).direction&&(a+=Ui(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Xi(t));else if(tr(e))i=function(t,e){const o=mr(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=er(t)?gr(t):_i(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=br(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Hi(i)}function wr(t,e){const o=dr(t);return!(o===e||!tr(o)||sr(o))&&("fixed"===lr(o).position||wr(o,e))}function Or(t,e,o){const i=er(e),r=Xi(e),n="fixed"===o,a=mr(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=_i(0);if(i||!i&&!n)if(("body"!==Yi(e)||ir(r))&&(s=cr(e)),i){const t=mr(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=vr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Sr(t,e){return er(t)&&"fixed"!==lr(t).position?e?e(t):t.offsetParent:null}function Cr(t,e){const o=Ji(t);if(!er(t))return o;let i=Sr(t,e);for(;i&&rr(i)&&"static"===lr(i).position;)i=Sr(i,e);return i&&("html"===Yi(i)||"body"===Yi(i)&&"static"===lr(i).position&&!nr(i))?o:i||function(t){let e=dr(t);for(;er(e)&&!sr(e);){if(nr(e))return e;e=dr(e)}return null}(t)||o}const Nr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=er(o),n=Xi(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=_i(1);const l=_i(0);if((r||!r&&"fixed"!==i)&&(("body"!==Yi(o)||ir(n))&&(a=cr(o)),er(o))){const t=mr(o);s=gr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Xi,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=fr(t,[],!1).filter((t=>tr(t)&&"body"!==Yi(t))),r=null;const n="fixed"===lr(t).position;let a=n?dr(t):t;for(;tr(a)&&!sr(a);){const e=lr(a),o=nr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ir(a)&&!o&&wr(t,a))?i=i.filter((t=>t!==a)):r=e,a=dr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=xr(e,o,r);return t.top=Ui(i.top,t.top),t.right=Ri(i.right,t.right),t.bottom=Ri(i.bottom,t.bottom),t.left=Ui(i.left,t.left),t}),xr(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Cr,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Cr,n=this.getDimensions;return{reference:Or(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ur(t)},getScale:gr,isElement:tr,isRTL:function(t){return"rtl"===lr(t).direction}},$r=(t,e,o)=>{const i=new Map,r={platform:Nr,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:h}=Ki(c,i,l),f=i,u={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:h,initialPlacement:i,placement:f,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,h=null!=b?b:h,u={...u,[n]:{...u[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:h}=Ki(c,f,l))),o=-1)}return{x:d,y:h,placement:f,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Er(t){return function(t){for(let e=t;e;e=kr(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=kr(t);e;e=kr(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function kr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Ir(t,e,o){return $r(t,e,{platform:{...Nr,getOffsetParent:t=>Nr.getOffsetParent(t,Er)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ti(i,t),c={x:e,y:o},d=await Gi(t,l),h=Mi(zi(r)),f=Di(h);let u=c[f],p=c[h];if(n){const t="y"===f?"bottom":"right";u=Wi(u+d["y"===f?"top":"left"],u,u-d[t])}if(a){const t="y"===h?"bottom":"right";p=Wi(p+d["y"===h?"top":"left"],p,p-d[t])}const g=s.fn({...t,[f]:u,[h]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),qi({allowedPlacements:[o]})]});var i}var Rr=Object.freeze({__proto__:null,computeOffsetPosition:Ir});
135
- /**
136
- * @license
137
- * Copyright 2019 Google LLC
138
- * SPDX-License-Identifier: BSD-3-Clause
139
- */const Ur=window,Lr=Ur.ShadowRoot&&(void 0===Ur.ShadyCSS||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class _r extends be{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Lr?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Ur.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ar,Br=Object.freeze({__proto__:null,ScopedRegistryLitElement:_r}),Wr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Tr=Symbol("constructorPrototype"),zr=Symbol("constructorName"),Fr=Symbol("exportpartsDebouncer");class Dr extends _r{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[Ar]=new so(5),this[zr]=this.constructor.name,this[Tr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zr]&&Object.setPrototypeOf(this,this[Tr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,i;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync(null!==(e=this.customStylesheet)&&void 0!==e?e:"")}catch(t){console.error(t,this.customStylesheet)}}else if((null!==(i=null===(o=this.shadowRoot)||void 0===o?void 0:o.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(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Fr].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Ar=Fr,Wr([Oe()],Dr.prototype,"exportpartsPrefix",void 0),Wr([yo([])],Dr.prototype,"exportpartsPrefixes",void 0),Wr([Oe()],Dr.prototype,"customStylesheet",void 0);var Pr=Object.freeze({__proto__:null,FtLitElement:Dr}),Mr=Object.freeze({__proto__:null});class jr{constructor(t,e=!0,o=[],i=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=i}static matches(t,e){const o="string"==typeof e?[e]:e,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let e=!1;return o.every((o=>!i.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let i;try{const e=t.contentWindow;if(i=e.document,!e||!i)throw new Error("iframe inaccessible")}catch(t){o()}i&&e(i)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let i=!1,r=null;const n=()=>{if(!i){i=!0,clearTimeout(r);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),r=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,i=(()=>{})){let r=t.querySelectorAll("iframe"),n=r.length,a=0;r=Array.prototype.slice.call(r);const s=()=>{--n<=0&&i(a)};n||s(),r.forEach((t=>{jr.matches(t,this.exclude)?s():this.onIframeReady(t,(i=>{e(t)&&(a++,o(i)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new jr(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,i){let r=!1,n=!1;return i.forEach(((t,e)=>{t.val===o&&(r=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==r||n?!1===r||n||(i[r].handled=!0):i.push({val:o,handled:!0}),!0):(!1===r&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,i){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,i)}))}))}iterateThroughNodes(t,e,o,i,r){const n=this.createIterator(e,t,i);let a,s,l=[],c=[],d=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;d();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),i)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,i),r()}forEachNode(t,e,o,i=(()=>{})){const r=this.getContexts();let n=r.length;n||i(),r.forEach((r=>{const a=()=>{this.iterateThroughNodes(t,r,e,o,(()=>{--n<=0&&i()}))};this.iframes?this.waitForIframes(r,a):a()}))}}const Zr=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new jr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in e)if(e.hasOwnProperty(r)){const n=e[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),i+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let i=o.charAt(e+1);return/[(|)\\]/.test(i)||""===i?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let i=[];return t.split("").forEach((r=>{o.every((o=>{if(-1!==o.indexOf(r)){if(i.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),i.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,i="string"==typeof e?[]:e.limiters,r="";switch(i.forEach((t=>{r+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return r="\\s"+(r||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${r}]*${t}[^${r}]*)`;case"exactly":return`(^|\\s${r})(${t})(?=$|\\s${r})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:i,end:r,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=i,t.length=r-i,e.push(t),o=r)})),e}callNoMatchOnInvalidRanges(t,e){let o,i,r=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),i=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-e>0&&i-o>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:i,valid:r}}checkWhitespaceRanges(t,e,o){let i,r=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,i=s+parseInt(t.length,10),i>n&&(i=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||i-s<0||s>n||i>n?(r=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:i,valid:r}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return jr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const i=this.opt.element?this.opt.element:"mark",r=t.splitText(e),n=r.splitText(o-e);let a=document.createElement(i);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),n}wrapRangeInMappedTextNode(t,e,o,i,r){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!i(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),d=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+d,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,r(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let r;for(e=e.node;null!==(r=t.exec(e.textContent))&&""!==r[n];){if(!o(r[n],e))continue;let a=r.index;if(0!==n)for(let t=1;t<n;t++)a+=r[t].length;e=this.wrapRangeInTextNode(e,a,a+r[n].length),i(e.previousSibling),t.lastIndex=0}})),r()}))}wrapMatchesAcrossElements(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let r=a.index;if(0!==n)for(let t=1;t<n;t++)r+=a[t].length;const s=r+a[n].length;this.wrapRangeInMappedTextNode(e,r,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,i(e)}))}r()}))}wrapRangeFromIndex(t,e,o,i){this.getTextNodes((r=>{const n=r.value.length;t.forEach(((t,i)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,r.value);l&&this.wrapRangeInMappedTextNode(r,a,s,(o=>e(o,t,r.value.substring(a,s),i)),(e=>{o(e,t)}))})),i()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,i="wrapMatches";const{keywords:r,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[i](e,1,((e,i)=>this.opt.filter(i,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),r[n-1]===t?this.opt.done(o):s(r[r.indexOf(t)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(r[0])}markRanges(t,e){this.opt=e;let o=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,((t,e,o,i)=>this.opt.filter(t,e,o,i)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=jr.matches(t,e),i=this.matchesExclude(t);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},Hr=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Kr=ft`
1
+ "use strict";(()=>{var Cd=Object.create;var ji=Object.defineProperty;var Ad=Object.getOwnPropertyDescriptor;var Rd=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,Nd=Object.prototype.hasOwnProperty;var Td=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ot=(r,t)=>{for(var e in t)ji(r,e,{get:t[e],enumerable:!0})},Id=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rd(t))!Nd.call(r,n)&&n!==e&&ji(r,n,{get:()=>t[n],enumerable:!(o=Ad(t,n))||o.enumerable});return r};var Pd=(r,t,e)=>(e=r!=null?Cd(_d(r)):{},Id(t||!r||!r.__esModule?ji(e,"default",{value:r,enumerable:!0}):e,r));var id=Td(od=>{(function(r){var t=function(e){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function d(m){var x={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,_){this.append(_,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var _=this.map[m];this.map[m]=_?_+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(x,this.map[_],_,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,_){m.push(_)}),d(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),d(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,_){m.push([_,x])}),d(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,_){m.onload=function(){x(m.result)},m.onerror=function(){_(m.error)}})}function b(m){var x=new FileReader,_=y(x);return x.readAsArrayBuffer(m),_}function v(m){var x=new FileReader,_=y(x);return x.readAsText(m),_}function w(m){for(var x=new Uint8Array(m),_=new Array(x.length),K=0;K<x.length;K++)_[K]=String.fromCharCode(x[K]);return _.join("")}function N(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&n(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=N(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var _=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(_)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var x=new FormData;return m.trim().split("&").forEach(function(_){if(_){var K=_.split("="),ut=K.shift().replace(/\+/g," "),X=K.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function D(m){var x=new u,_=m.replace(/\r?\n[\t ]+/g," ");return _.split(/\r?\n/).forEach(function(K){var ut=K.split(":"),X=ut.shift().trim();if(X){var _o=ut.join(":").trim();x.append(X,_o)}}),x}T.call(S.prototype);function z(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}T.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},z.error=function(){var m=new z(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];z.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new z(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,_){this.message=x,this.name=_;var K=Error(x);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(_,K){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function _o(){X.abort()}X.onload=function(){var Hr={status:X.status,statusText:X.statusText,headers:D(X.getAllResponseHeaders()||"")};Hr.url="responseURL"in X?X.responseURL:Hr.headers.get("X-Request-URL");var Vi="response"in X?X.response:X.responseText;_(new z(Vi,Hr))},X.onerror=function(){K(new TypeError("Network request failed"))},X.ontimeout=function(){K(new TypeError("Network request failed"))},X.onabort=function(){K(new e.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Hr,Vi){X.setRequestHeader(Vi,Hr)}),ut.signal&&(ut.signal.addEventListener("abort",_o),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",_o)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,r.fetch||(r.fetch=Y,r.Headers=u,r.Request=S,r.Response=z),e.Headers=u,e.Request=S,e.Response=z,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:od)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,D=new Set(S.observedAttributes||[]);y(S,D,E);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(O,z),this._definitionsByClass.set(S,z);let At=e.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,z),z.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,z,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){N.push(this),o.upgrade.apply(o,arguments),N.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(D=>E.resolve=D),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let D=this._awaitingUpgrade.get(S);D||this._awaitingUpgrade.set(S,D=new Set),E?D.add(O):D.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=r.prototype;let d=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!d(S)){let E=N[N.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let D=u(E)||window.customElements,z=D._getDefinition(O);return z?v(E,z):a.set(E,D),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,S,E)=>{if(S.size===0||E===void 0)return;let D=O.prototype.setAttribute;D&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);D.call(this,x,m),E.call(this,x,_,m)}else D.call(this,x,m)});let z=O.prototype.removeAttribute;z&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);z.call(this,m),E.call(this,m,x,null)}else z.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);At.call(this,x,m);let K=this.getAttribute(x);E.call(this,x,_,K)}else At.call(this,x,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(O,window.HTMLElement):b(S)},v=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(D=>{O.hasAttribute(D)&&S.attributeChangedCallback.call(O,D,null,O.getAttribute(D))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=w.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let N=[document],T=(O,S,E=void 0)=>{let D=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){N.push(this);let z=D.apply(E||this,arguments);return z!==void 0&&l.set(z,this),N.pop(),z}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let k=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(D){N.push(this),E.set.call(this,D),N.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},E.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(..._){let K=O.get(this);if(n.get(K).formAssociated===!0)return x?.call(this,..._);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class z{constructor(m){let x=new Map;m.forEach((_,K)=>{let ut=_.getAttribute("name"),X=x.get(ut)||[];this[+K]=_,X.push(_),x.set(ut,X)}),this.length=m.length,x.forEach((_,K)=>{_&&(_.length===1?this[K]=_[0]:this[K]=new D(_))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let _=n.get(x);(!_||_.formAssociated===!0)&&m.push(x)}return new z(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,o,n)=>{if(o!==null)try{t.bind(window.customElements)(e,o,n)}catch(a){console.info(e,o,n,a)}}}var nn={};ot(nn,{CSSResult:()=>xr,LitElement:()=>ge,ReactiveElement:()=>re,_$LE:()=>rp,_$LH:()=>Qd,adoptStyles:()=>Ho,css:()=>P,defaultConverter:()=>Vo,getCompatibleStyle:()=>Xr,html:()=>$,isServer:()=>Tf,noChange:()=>_e,notEqual:()=>Ji,nothing:()=>B,render:()=>on,supportsAdoptingStyleSheets:()=>Yr,svg:()=>Jd,unsafeCSS:()=>he});var No=globalThis,Io=No.ShadowRoot&&(No.ShadyCSS===void 0||No.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hs=Symbol(),fs=new WeakMap,To=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==hs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Io&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=fs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&fs.set(e,t))}return t}toString(){return this.cssText}},ms=r=>new To(typeof r=="string"?r:r+"",void 0,hs);var Ki=(r,t)=>{if(Io)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=No.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Po=Io?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return ms(e)})(r):r;var{is:$d,defineProperty:kd,getOwnPropertyDescriptor:Ld,getOwnPropertyNames:Md,getOwnPropertySymbols:Dd,getPrototypeOf:Ud}=Object,$o=globalThis,gs=$o.trustedTypes,Bd=gs?gs.emptyScript:"",Fd=$o.reactiveElementPolyfillSupport,Vr=(r,t)=>r,jr={toAttribute(r,t){switch(t){case Boolean:r=r?Bd:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ko=(r,t)=>!$d(r,t),ys={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko};Symbol.metadata??=Symbol("metadata"),$o.litPropertyMetadata??=new WeakMap;var Ge=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ys){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&kd(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=Ld(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ys}static _$Ei(){if(this.hasOwnProperty(Vr("elementProperties")))return;let t=Ud(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Vr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vr("properties"))){let e=this.properties,o=[...Md(e),...Dd(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Po(n))}else t!==void 0&&e.push(Po(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ki(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:jr).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jr;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??ko)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ge[Vr("elementProperties")]=new Map,Ge[Vr("finalized")]=new Map,Fd?.({ReactiveElement:Ge}),($o.reactiveElementVersions??=[]).push("2.0.2");var Zi=globalThis,Lo=Zi.trustedTypes,bs=Lo?Lo.createPolicy("lit-html",{createHTML:r=>r}):void 0,qi="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,Yi="?"+fe,zd=`<${Yi}>`,Ye=document,Mo=()=>Ye.createComment(""),Gr=r=>r===null||typeof r!="object"&&typeof r!="function",Es=Array.isArray,Cs=r=>Es(r)||typeof r?.[Symbol.iterator]=="function",Gi=`[
2
+ \f\r]`,Kr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vs=/-->/g,xs=/>/g,Ze=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ss=/'/g,Os=/"/g,As=/^(?:script|style|textarea|title)$/i,Rs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),_s=Rs(1),Ns=Rs(2),Bt=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ws=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function Ts(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return bs!==void 0?bs.createHTML(t):t}var Is=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=Kr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Kr?u[1]==="!--"?s=vs:u[1]!==void 0?s=xs:u[2]!==void 0?(As.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ze):u[3]!==void 0&&(s=Ze):s===Ze?u[0]===">"?(s=n??Kr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ze:u[3]==='"'?Os:Ss):s===Os||s===Ss?s=Ze:s===vs||s===xs?s=Kr:(s=Ze,n=void 0);let b=s===Ze&&r[l+1].startsWith("/>")?" ":"";a+=s===Kr?c+zd:h>=0?(o.push(d),c.slice(0,h)+qi+c.slice(h)+fe+b):c+fe+(h===-2?l:b)}return[Ts(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},Zr=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Is(t,e);if(this.el=r.createElement(d,o),qe.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=qe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(qi)){let y=u[s++],b=n.getAttribute(h).split(fe),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Uo:v[1]==="?"?Bo:v[1]==="@"?Fo:Je}),n.removeAttribute(h)}else h.startsWith(fe)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(As.test(n.tagName)){let h=n.textContent.split(fe),y=h.length-1;if(y>0){n.textContent=Lo?Lo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Mo()),qe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Mo())}}}else if(n.nodeType===8)if(n.data===Yi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(fe,h+1))!==-1;)c.push({type:7,index:a}),h+=fe.length-1}a++}}static createElement(t,e){let o=Ye.createElement("template");return o.innerHTML=t,o}};function Xe(r,t,e=r,o){if(t===Bt)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=Gr(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=Xe(r,n._$AS(r,t.values),n,o)),t}var Do=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){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??Ye).importNode(e,!0);qe.currentNode=n;let a=qe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new qr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new zo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},qr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Xe(this,t,e),Gr(t)?t===lt||t==null||t===""?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==Bt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cs(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!==lt&&Gr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ye.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Zr.createElement(Ts(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Do(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=ws.get(t.strings);return e===void 0&&ws.set(t.strings,e=new Zr(t)),e}T(t){Es(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(Mo()),this.k(Mo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=lt}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Xe(this,t,e,0),s=!Gr(t)||t!==this._$AH&&t!==Bt,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Xe(this,l[o+c],e,c),d===Bt&&(d=this._$AH[c]),s||=!Gr(d)||d!==this._$AH[c],d===lt?t=lt:t!==lt&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Uo=class extends Je{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},Bo=class extends Je{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},Fo=class extends Je{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=Xe(this,t,e,0)??lt)===Bt)return;let o=this._$AH,n=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==lt&&(o===lt||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},zo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Xe(this,t)}},Ps={j:qi,P:fe,A:Yi,C:1,M:Is,L:Do,R:Cs,V:Xe,D:qr,I:Je,H:Bo,N:Fo,U:Uo,B:zo},Wd=Zi.litHtmlPolyfillSupport;Wd?.(Zr,qr),(Zi.litHtmlVersions??=[]).push("3.1.0");var Wo=globalThis,Yr=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xi=Symbol(),$s=new WeakMap,xr=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yr&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=$s.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&$s.set(e,t))}return t}toString(){return this.cssText}},he=r=>new xr(typeof r=="string"?r:r+"",void 0,Xi),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new xr(e,r,Xi)},Ho=(r,t)=>{if(Yr)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=Wo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Xr=Yr?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return he(e)})(r):r;var{is:Hd,defineProperty:Vd,getOwnPropertyDescriptor:jd,getOwnPropertyNames:Kd,getOwnPropertySymbols:Gd,getPrototypeOf:Zd}=Object,jo=globalThis,ks=jo.trustedTypes,qd=ks?ks.emptyScript:"",Yd=jo.reactiveElementPolyfillSupport,Jr=(r,t)=>r,Vo={toAttribute(r,t){switch(t){case Boolean:r=r?qd:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Ji=(r,t)=>!Hd(r,t),Ls={attribute:!0,type:String,converter:Vo,reflect:!1,hasChanged:Ji};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var re=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&Vd(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=jd(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ls}static _$Ei(){if(this.hasOwnProperty(Jr("elementProperties")))return;let t=Zd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jr("properties"))){let e=this.properties,o=[...Kd(e),...Gd(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Xr(n))}else t!==void 0&&e.push(Xr(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ho(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Vo).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Vo;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Ji)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[Jr("elementProperties")]=new Map,re[Jr("finalized")]=new Map,Yd?.({ReactiveElement:re}),(jo.reactiveElementVersions??=[]).push("2.0.2");var tn=globalThis,Ko=tn.trustedTypes,Ms=Ko?Ko.createPolicy("lit-html",{createHTML:r=>r}):void 0,en="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,rn="?"+me,Xd=`<${rn}>`,er=document,to=()=>er.createComment(""),eo=r=>r===null||typeof r!="object"&&typeof r!="function",Ws=Array.isArray,Hs=r=>Ws(r)||typeof r?.[Symbol.iterator]=="function",Qi=`[
4
+ \f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,Us=/>/g,Qe=RegExp(`>|${Qi}(?:([^\\s"'>=/]+)(${Qi}*=${Qi}*(?:[^
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Bs=/'/g,Fs=/"/g,Vs=/^(?:script|style|textarea|title)$/i,js=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=js(1),Jd=js(2),_e=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),zs=new WeakMap,tr=er.createTreeWalker(er,129);function Ks(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=Qr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Qr?u[1]==="!--"?s=Ds:u[1]!==void 0?s=Us:u[2]!==void 0?(Vs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Qe):u[3]!==void 0&&(s=Qe):s===Qe?u[0]===">"?(s=n??Qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Qe:u[3]==='"'?Fs:Bs):s===Fs||s===Bs?s=Qe:s===Ds||s===Us?s=Qr:(s=Qe,n=void 0);let b=s===Qe&&r[l+1].startsWith("/>")?" ":"";a+=s===Qr?c+Xd:h>=0?(o.push(d),c.slice(0,h)+en+c.slice(h)+me+b):c+me+(h===-2?l:b)}return[Ks(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},ro=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Gs(t,e);if(this.el=r.createElement(d,o),tr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(en)){let y=u[s++],b=n.getAttribute(h).split(me),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Zo:v[1]==="?"?qo:v[1]==="@"?Yo:or}),n.removeAttribute(h)}else h.startsWith(me)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Vs.test(n.tagName)){let h=n.textContent.split(me),y=h.length-1;if(y>0){n.textContent=Ko?Ko.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],to()),tr.nextNode(),c.push({type:2,index:++a});n.append(h[y],to())}}}else if(n.nodeType===8)if(n.data===rn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(me,h+1))!==-1;)c.push({type:7,index:a}),h+=me.length-1}a++}}static createElement(t,e){let o=er.createElement("template");return o.innerHTML=t,o}};function rr(r,t,e=r,o){if(t===_e)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=eo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=rr(r,n._$AS(r,t.values),n,o)),t}var Go=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){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??er).importNode(e,!0);tr.currentNode=n;let a=tr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Sr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Xo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=er,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Sr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rr(this,t,e),eo(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Hs(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!==B&&eo(this._$AH)?this._$AA.nextSibling.data=t:this.$(er.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ro.createElement(Ks(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Go(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=zs.get(t.strings);return e===void 0&&zs.set(t.strings,e=new ro(t)),e}T(t){Ws(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(to()),this.k(to()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},or=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=rr(this,t,e,0),s=!eo(t)||t!==this._$AH&&t!==_e,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=rr(this,l[o+c],e,c),d===_e&&(d=this._$AH[c]),s||=!eo(d)||d!==this._$AH[c],d===B?t=B:t!==B&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Zo=class extends or{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},qo=class extends or{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Yo=class extends or{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=rr(this,t,e,0)??B)===_e)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Xo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){rr(this,t)}},Qd={j:en,P:me,A:rn,C:1,M:Gs,L:Go,R:Hs,V:rr,D:Sr,I:or,H:qo,N:Yo,U:Zo,B:Xo},tp=tn.litHtmlPolyfillSupport;tp?.(ro,Sr),(tn.litHtmlVersions??=[]).push("3.1.0");var on=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new Sr(t.insertBefore(to(),a),a,void 0,e??{})}return n._$AI(r),n};var ge=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=on(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _e}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});var ep=globalThis.litElementPolyfillSupport;ep?.({LitElement:ge});var rp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Tf=!1;var sn={};ot(sn,{customElement:()=>op,eventOptions:()=>ye,property:()=>g,query:()=>G,queryAll:()=>ap,queryAssignedElements:()=>an,queryAssignedNodes:()=>oo,queryAsync:()=>sp,standardProperty:()=>Zs,state:()=>H});var op=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var ip={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko},Zs=(r=ip,t,e)=>{let{kind:o,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),o==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(t,e)=>typeof e=="object"?Zs(r,t,e):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function H(r){return g({...r,state:!0,attribute:!1})}function ye(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var Yt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function G(r,t){return(e,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof o=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return Yt(e,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Yt(e,o,{get(){return a(this)}})}}var np;function ap(r){return(t,e)=>Yt(t,e,{get(){return(this.renderRoot??(np??=document.createDocumentFragment())).querySelectorAll(r)}})}function sp(r){return(t,e)=>Yt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function an(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function oo(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var cn={};ot(cn,{repeat:()=>ln});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=r=>(...t)=>({_$litDirective$:r,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:lp}=Ps;var qs=()=>document.createComment(""),Or=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(qs(),n),s=o.insertBefore(qs(),n);e=new lp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let c;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(c=r._$AU)!==s._$AU&&e._$AP(c)}if(a!==n||l){let c=e._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return e},Ie=(r,t,e=r)=>(r._$AI(t,e),r),cp={},Ys=(r,t=cp)=>r._$AH=t,Xs=r=>r._$AH,Jo=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var Js=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},ln=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let o;e===void 0?e=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,o]){let n=Xs(r),{values:a,keys:s}=this.ht(t,e,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Ie(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Ie(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Ie(n[h],a[v]),Or(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Ie(n[y],a[b]),Or(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=Js(s,b,v),u=Js(l,h,y)),d.has(l[h]))if(d.has(l[y])){let w=u.get(s[b]),N=w!==void 0?n[w]:null;if(N===null){let T=Or(r,n[h]);Ie(T,a[b]),c[b]=T}else c[b]=Ie(N,a[b]),Or(r,n[h],N),n[w]=null;b++}else Jo(n[y]),y--;else Jo(n[h]),h++;for(;b<=v;){let w=Or(r,c[v+1]);Ie(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&Jo(w)}return this.dt=s,Ys(r,c),Bt}});var dn={};ot(dn,{classMap:()=>Nt});var Nt=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let e=r.element.classList;for(let o of this.it)o in t||(e.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return Bt}});var pn={};ot(pn,{styleMap:()=>pp});var Qs="important",dp=" !"+Qs,pp=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let o=r[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(dp);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?Qs:""):e[o]=n}}return Bt}});var fn={};ot(fn,{UnsafeHTMLDirective:()=>wr,unsafeHTML:()=>un});var wr=class extends oe{constructor(t){if(super(t),this.et=lt,t.type!==Ne.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||t==null)return this.vt=void 0,this.et=t;if(t===Bt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};wr.directiveName="unsafeHTML",wr.resultType=1;var un=Te(wr);var gn={};ot(gn,{CacheRegistry:()=>ie});var mn={};ot(mn,{CancelablePromise:()=>Er,CanceledPromiseError:()=>ir,cancelable:()=>hn});var ir=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Er=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ir("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ir("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},hn=r=>new Er((t,e)=>r.then(t).catch(e));var ie=class{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 Er&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(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(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=hn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var yn={};ot(yn,{ClusteringHelper:()=>io});var io=class r{constructor(t,e,o,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,e){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata.map(s=>r.flattenMetadata(s));return e==null?a:a.find(s=>s.key===e)}static flattenMetadata(t){if(t.hierarchicalValues){let e=[],o=[];return t.hierarchicalValues.forEach(n=>{e.push(n.join(" > ")),n.length>2?o.push(`... > ${n[n.length-1]}`):o.push(n.join(" > "))}),{key:t.key,label:t.label,value:e.join(", "),displayValue:o.join(", ")}}else{let e=t.values.join(", ");return{key:t.key,label:t.label,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,t)).map(d=>d??{key:t,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,u,h)=>h.findIndex(y=>y.value===d.value)===u).map(d=>({result:this.findBestResultForMetadataValue(t,d.value),metadata:d})).sort((d,u)=>this.compareMetadata(d.metadata.value,u.metadata.value,t,e))}compareMetadata(t,e,o,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(e,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,t))===null||d===void 0?void 0:d.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(o=>e.some(n=>n.key===o.key&&n.value===o.value)).length}};var bn={};ot(bn,{Debouncer:()=>et});var et=class{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 this.promise==null&&(this.promise=new Promise((e,o)=>{this.resolvePromise=e,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var xn={};ot(xn,{customElement:()=>V,isNumber:()=>el,jsonProperty:()=>ne,optionalNumberProperty:()=>bp});var vn={};ot(vn,{dateReviver:()=>fp,deepEqual:()=>jt,delay:()=>Qo,eventPathContainsMatchingElement:()=>mp,flatDeep:()=>tl,last:()=>yp,minmax:()=>gp,parseDate:()=>ti,waitFor:()=>no,waitUntil:()=>up});var Qo=r=>new Promise(t=>setTimeout(t,r));async function up(r,t=10,e=2e4){await no(async()=>await r()||void 0,t,e)}async function no(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await Qo(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function tl(r,t){return r.flatMap(e=>[e,...tl(t(e),t)])}function fp(...r){return function(t,e){return r.includes(t)?ti(e):e}}function ti(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,o,n)=>e+o+":"+n),new Date(r)}function hp(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,o,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(o=e;o--!==0;)if(!jt(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!jt(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(o=e;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=e;o--!==0;){var a=n[o];if(!jt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function jt(r,t){try{return hp(r,t)}catch{return!1}}function mp(r,t,e=window.document.body){if(t.length>0){let o=r.composedPath();for(let n of o){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function gp(r,t,e){return Math.min(Math.max(r,t),e)}function yp(r){return r[r.length-1]}var V=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ne(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return e();try{return JSON.parse(o)}catch{return e()}},toAttribute:o=>JSON.stringify(o)},hasChanged:(o,n)=>!jt(o,n),...t??{}})}function bp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return el(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function el(r){return!isNaN(parseFloat(r))}var Gn={};ot(Gn,{designSystemVariables:()=>A});var Kn={};ot(Kn,{FtCssVariableFactory:()=>i,banner:()=>xp,border:()=>Mp,breadcrumb:()=>Sp,button:()=>I,chart:()=>kp,checkbox:()=>Up,chip:()=>Lp,collapsible:()=>Pp,comboboxMultiSelect:()=>Np,comboboxSingleSelect:()=>_p,drawer:()=>Ep,floatingMenu:()=>Rp,foundation:()=>p,modal:()=>wp,notice:()=>Dp,notification:()=>zp,pageHeader:()=>Op,popover:()=>Tp,radio:()=>Fp,semantic:()=>f,setVariable:()=>C,switch_:()=>$p,tabs:()=>Ip,textArea:()=>Ap,textInput:()=>Cp,toggle:()=>Bp,tooltip:()=>Wp,typographies:()=>ao,typographyBody1Medium:()=>An,typographyBody1Regular:()=>Cn,typographyBody1Semibold:()=>Rn,typographyBody2Medium:()=>Nn,typographyBody2MediumUnderline:()=>rl,typographyBody2Regular:()=>_n,typographyBody2Semibold:()=>Tn,typographyCaption1Bold:()=>Bn,typographyCaption1Medium:()=>Dn,typographyCaption1Semibold:()=>Un,typographyCaption2Bold:()=>Wn,typographyCaption2Medium:()=>Fn,typographyCaption2Semibold:()=>zn,typographyCaption3Bold:()=>jn,typographyCaption3Medium:()=>Hn,typographyCaption3Semibold:()=>Vn,typographyDisplay:()=>Sn,typographyLabel1Bold:()=>$n,typographyLabel1Medium:()=>In,typographyLabel1Semibold:()=>Pn,typographyLabel2Bold:()=>Mn,typographyLabel2Medium:()=>kn,typographyLabel2Semibold:()=>Ln,typographyTitle1:()=>On,typographyTitle2:()=>wn,typographyTitle3:()=>En,typographyVariants:()=>vp});var be=r=>typeof r=="string"?he(r):r,i=class{static create(t,e,o,n){let a=l=>be(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,o,n){let a=l=>o.get(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,e){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):be(a??t.lastResortDefaultValue()),n=P`var(${be(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=o,n.get=a=>P`var(${be(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function C(r,t){return be(`${r.name}: ${t}`)}var p={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:i.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:i.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:i.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:i.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:i.create("--ft-icon-size-6","","SIZE","48px"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Sn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},On={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},wn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},En={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Cn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},An={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Rn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},_n={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Nn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},rl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Tn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},ao={display:Sn,"title-1":On,"title-2":wn,"title-3":En,"body-1-regular":Cn,"body-1-medium":An,"body-1-semibold":Rn,"body-2-regular":_n,"body-2-medium":Nn,"body-2-medium-underline":rl,"body-2-semibold":Tn,"label-1-medium":In,"label-1-semibold":Pn,"label-1-bold":$n,"label-2-medium":kn,"label-2-semibold":Ln,"label-2-bold":Mn,"caption-1-medium":Dn,"caption-1-semibold":Un,"caption-1-bold":Bn,"caption-2-medium":Fn,"caption-2-semibold":zn,"caption-2-bold":Wn,"caption-3-medium":Hn,"caption-3-semibold":Vn,"caption-3-bold":jn},vp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
+ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var I={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:i.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:i.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing3),smallGap:i.extend("--ft-button-small-gap","",p.spacing2),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize2),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var xp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-banner-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly)};var Sp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentElementColor:i.extend("--ft-breadcrumb-current-element-color","",f.contentGlobalPrimary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Op={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing12),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var wp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:i.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Ep={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Cp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var Ap={backgroundColor:i.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Rp={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var _p={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var Np={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Tp={backgroundColor:i.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",p.spacing6),iconColor:i.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:i.extend("--ft-popover-icon-size","",p.iconSize2),titleColor:i.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",p.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",p.shadowElevation02)};var Ip={topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),labelHorizontalPadding:i.extend("--ft-tabs-label-horizontal-padding","",p.spacing4),labelVerticalPadding:i.extend("--ft-tabs-label-vertical-padding","",p.spacing3),labelGap:i.extend("--ft-tabs-label-gap","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-tabs-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-tabs-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-tabs-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-tabs-icon-vertical-padding","",p.spacing4),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Pp={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:i.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",p.iconSize3)};var $p={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:i.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var kp={color1Light:i.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",p.colorRed40),color5Base:i.extend("--ft-chart-5-base","",p.colorRed60),color6Light:i.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",p.colorGray50),color10Base:i.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var Lp={largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing4),largeVerticalPadding:i.extend("--ft-chip-large-vertical-padding","",p.spacing2),largeGap:i.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.extend("--ft-chip-large-border-radius","",p.borderRadiusPill),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing3),mediumVerticalPadding:i.extend("--ft-chip-medium-vertical-padding","",p.spacing1),mediumGap:i.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.extend("--ft-chip-medium-border-radius","",p.borderRadiusPill),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing2),smallVerticalPadding:i.extend("--ft-chip-small-vertical-padding","",p.spacing05),smallGap:i.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.extend("--ft-chip-small-border-radius","",p.borderRadiusPill),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalPrimary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalPrimary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Mp={infoBorderColor:i.extend("--ft-border-info-border-color","",f.borderInfoSubtle)};var Dp={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-notice-vertical-padding","",p.spacing1),borderRadius:i.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:i.extend("--ft-notice-gap","",p.spacing2),iconSize:i.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Up={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",p.spacing3)};var Bp={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",p.spacing3)};var Fp={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",p.spacing3)};var zp={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),horizontalPadding:i.extend("--ft-notification-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing4),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",p.spacing8)};var Wp={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:i.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:i.extend("--ft-tooltip-shadow","",p.shadowElevation03),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var A={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Yn={};ot(Yn,{FtNotificationEvent:()=>Tt,PostResizeEvent:()=>qn,PreResizeEvent:()=>Zn});var Tt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Zn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},qn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var sa={};ot(sa,{computeOffsetPosition:()=>fo});var il=["top","right","bottom","left"],ol=["start","end"],Jn=il.reduce((r,t)=>r.concat(t,t+"-"+ol[0],t+"-"+ol[1]),[]),so=Math.min,Pe=Math.max,lo=Math.round;var ve=r=>({x:r,y:r}),Hp={left:"right",right:"left",bottom:"top",top:"bottom"},Vp={start:"end",end:"start"};function Qn(r,t,e){return Pe(r,so(t,e))}function ei(r,t){return typeof r=="function"?r(t):r}function Cr(r){return r.split("-")[0]}function $e(r){return r.split("-")[1]}function ta(r){return r==="x"?"y":"x"}function ea(r){return r==="y"?"height":"width"}function ri(r){return["top","bottom"].includes(Cr(r))?"y":"x"}function ra(r){return ta(ri(r))}function nl(r,t,e){e===void 0&&(e=!1);let o=$e(r),n=ra(r),a=ea(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xn(s)),[s,Xn(s)]}function al(r){return r.replace(/start|end/g,t=>Vp[t])}function Xn(r){return r.replace(/left|right|bottom|top/g,t=>Hp[t])}function jp(r){return{top:0,right:0,bottom:0,left:0,...r}}function sl(r){return typeof r!="number"?jp(r):{top:r,right:r,bottom:r,left:r}}function nr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function ll(r,t,e){let{reference:o,floating:n}=r,a=ri(t),s=ra(t),l=ea(s),c=Cr(t),d=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch($e(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var cl=async(r,t,e)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:u,y:h}=ll(d,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:N,fn:T}=l[w],{x:k,y:O,data:S,reset:E}=await T({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:t}});if(u=k??u,h=O??h,b={...b,[N]:{...b[N],...S}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):E.rects),{x:u,y:h}=ll(d,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function oa(r,t){var e;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=ei(t,r),v=sl(b),N=l[y?h==="floating"?"reference":"floating":h],T=nr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(T.top-E.top+v.top)/S.y,bottom:(E.bottom-T.bottom+v.bottom)/S.y,left:(T.left-E.left+v.left)/S.x,right:(E.right-T.right+v.right)/S.x}}function Kp(r,t,e){return(r?[...e.filter(n=>$e(n)===r),...e.filter(n=>$e(n)!==r)]:e.filter(n=>Cr(n)===n)).filter(n=>r?$e(n)===r||(t?al(n)!==n:!1):!0)}var ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=Jn,autoAlignment:b=!0,...v}=ei(r,t),w=h!==void 0||y===Jn?Kp(h||null,b,y):y,N=await oa(t,v),T=((e=s.autoPlacement)==null?void 0:e.index)||0,k=w[T];if(k==null)return{};let O=nl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[N[Cr(k)],N[O[0]],N[O[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],D=w[T+1];if(D)return{data:{index:T+1,overflows:E},reset:{placement:D}};let z=E.map(m=>{let x=$e(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((_,K)=>_+K,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=z.filter(m=>m[2].slice(0,$e(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||z[0][0];return Y!==l?{data:{index:T+1,overflows:E},reset:{placement:Y}}:{}}}};var na=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:k}=N;return{x:T,y:k}}},...c}=ei(r,t),d={x:e,y:o},u=await oa(t,c),h=ri(Cr(n)),y=ta(h),b=d[y],v=d[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",k=b+u[N],O=b-u[T];b=Qn(k,b,O)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",k=v+u[N],O=v-u[T];v=Qn(k,v,O)}let w=l.fn({...t,[y]:b,[h]:v});return{...w,data:{x:w.x-e,y:w.y-o}}}}};function xe(r){return pl(r)?(r.nodeName||"").toLowerCase():"#document"}function kt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(pl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function pl(r){return r instanceof Node||r instanceof kt(r).Node}function ae(r){return r instanceof Element||r instanceof kt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof kt(r).HTMLElement}function dl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof kt(r).ShadowRoot}function Ar(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=Ft(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function ul(r){return["table","td","th"].includes(xe(r))}function ii(r){let t=ni(),e=Ft(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function fl(r){let t=ar(r);for(;Xt(t)&&!co(t);){if(ii(t))return t;t=ar(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(r){return["html","body","#document"].includes(xe(r))}function Ft(r){return kt(r).getComputedStyle(r)}function po(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function ar(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||dl(r)&&r.host||Se(r);return dl(t)?t.host:t}function hl(r){let t=ar(r);return co(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&Ar(t)?t:hl(t)}function oi(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=hl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=kt(n);return a?t.concat(s,s.visualViewport||[],Ar(n)?n:[],s.frameElement&&e?oi(s.frameElement):[]):t.concat(n,oi(n,[],e))}function yl(r){let t=Ft(r),e=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:o,l=lo(e)!==a||lo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function bl(r){return ae(r)?r:r.contextElement}function Rr(r){let t=bl(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=yl(t),s=(a?lo(e.width):e.width)/o,l=(a?lo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Gp=ve(0);function vl(r){let t=kt(r);return!ni()||!t.visualViewport?Gp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zp(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==kt(r)?!1:t}function uo(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=bl(r),s=ve(1);t&&(o?ae(o)&&(s=Rr(o)):s=Rr(r));let l=Zp(a,e,o)?vl(a):ve(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=kt(a),b=o&&ae(o)?kt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=Rr(v),N=v.getBoundingClientRect(),T=Ft(v),k=N.left+(v.clientLeft+parseFloat(T.paddingLeft))*w.x,O=N.top+(v.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=k,d+=O,v=kt(v).frameElement}}return nr({width:u,height:h,x:c,y:d})}function qp(r){let{rect:t,offsetParent:e,strategy:o}=r,n=Xt(e),a=Se(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(e)!=="body"||Ar(a))&&(s=po(e)),Xt(e))){let d=uo(e);l=Rr(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function Yp(r){return Array.from(r.getClientRects())}function xl(r){return uo(Se(r)).left+po(r).scrollLeft}function Xp(r){let t=Se(r),e=po(r),o=r.ownerDocument.body,n=Pe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+xl(r),l=-e.scrollTop;return Ft(o).direction==="rtl"&&(s+=Pe(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Jp(r,t){let e=kt(r),o=Se(r),n=e.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=ni();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Qp(r,t){let e=uo(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Rr(r):ve(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function ml(r,t,e){let o;if(t==="viewport")o=Jp(r,e);else if(t==="document")o=Xp(Se(r));else if(ae(t))o=Qp(t,e);else{let n=vl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return nr(o)}function Sl(r,t){let e=ar(r);return e===t||!ae(e)||co(e)?!1:Ft(e).position==="fixed"||Sl(e,t)}function tu(r,t){let e=t.get(r);if(e)return e;let o=oi(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=Ft(r).position==="fixed",s=a?ar(r):r;for(;ae(s)&&!co(s);){let l=Ft(s),c=ii(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ar(s)&&!c&&Sl(r,s))?o=o.filter(u=>u!==s):n=l,s=ar(s)}return t.set(r,o),o}function eu(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?tu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=ml(t,u,n);return d.top=Pe(h.top,d.top),d.right=so(h.right,d.right),d.bottom=so(h.bottom,d.bottom),d.left=Pe(h.left,d.left),d},ml(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ru(r){return yl(r)}function ou(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=uo(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Ar(n))&&(l=po(t)),o){let d=uo(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=xl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function gl(r,t){return!Xt(r)||Ft(r).position==="fixed"?null:t?t(r):r.offsetParent}function Ol(r,t){let e=kt(r);if(!Xt(r))return e;let o=gl(r,t);for(;o&&ul(o)&&Ft(o).position==="static";)o=gl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&Ft(o).position==="static"&&!ii(o))?e:o||fl(r)||e}var iu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:ou(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function nu(r){return Ft(r).direction==="rtl"}var ai={convertOffsetParentRelativeRectToViewportRelativeRect:qp,getDocumentElement:Se,getClippingRect:eu,getOffsetParent:Ol,getElementRects:iu,getClientRects:Yp,getDimensions:ru,getScale:Rr,isElement:ae,isRTL:nu};var wl=(r,t,e)=>{let o=new Map,n={platform:ai,...e},a={...n.platform,_c:o};return cl(r,t,{...n,platform:a})};function El(r){return au(r)}function aa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function au(r){for(let t=r;t;t=aa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=aa(r);t;t=aa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function fo(r,t,e){return wl(r,t,{platform:{...ai,getOffsetParent:o=>ai.getOffsetParent(o,El)},middleware:[na({crossAxis:!0}),ia({allowedPlacements:[e]})]})}var da={};ot(da,{FtLitElement:()=>W});var la={};ot(la,{ScopedRegistryLitElement:()=>ho});var si=window,su=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_y=Symbol();var Cl=(r,t)=>{su?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=si.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var ho=class extends ge{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return Cl(o,t.elementStyles),o}};var ca=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_l,Al=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),W=class extends ho{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[_l]=new et(5),this[Rl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((e=this.customStylesheet)!==null&&e!==void 0?e:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&o!==void 0&&o)&&this[Nl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=t.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>u.add(w))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};_l=Nl;ca([g()],W.prototype,"exportpartsPrefix",void 0);ca([ne([])],W.prototype,"exportpartsPrefixes",void 0);ca([g()],W.prototype,"customStylesheet",void 0);var Tl={};var ha={};ot(ha,{highlightHtml:()=>fa,highlightHtmlColorCssVariable:()=>Il,highlightHtmlStyles:()=>cu});var sr=class r{constructor(t,e=!0,o=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=n}static matches(t,e){let o=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(o=>{let n=e.filter(a=>a.contains(o)).length>0;e.indexOf(o)===-1&&!n&&e.push(o)}),e}getIframeContents(t,e,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&e(n)}isIframeBlank(t){let e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch{o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||e()})},n=>{n||e()})}forEachIframe(t,e,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,u=>{e(d)&&(l++,o(u)),c()},c)})}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),o;return e===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,o,n)})})}iterateThroughNodes(t,e,o,n,a){let s=this.createIterator(e,t,n),l=[],c=[],d,u,h=()=>({prevNode:u,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(d,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,e,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var mo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[e]=="function"&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):o.trim()&&e.indexOf(o)===-1&&e.push(o)}),{keywords:e.sort((o,n)=>n.length-o.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,e.push(n),o=s)}),e}callNoMatchOnInvalidRanges(t,e){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:n,valid:a}}checkWhitespaceRanges(t,e,o){let n,a=!0,s=o.length,l=e-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:o})})}matchesExclude(t){return sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(o-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>e){if(!n(s.node))return!1;let d=e-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=t.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;c=this.wrapRangeInTextNode(c,u,u+d[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let u=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:d,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,u,y=>e(y,l,a.value.substring(d,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,e){this.opt=e;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=d=>{let u=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,d,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(t,e){this.opt=e;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=sr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pa(r){let t=new mo(r);return this.mark=(e,o)=>(t.mark(e,o),this),this.markRegExp=(e,o)=>(t.markRegExp(e,o),this),this.markRanges=(e,o)=>(t.markRanges(e,o),this),this.unmark=e=>(t.unmark(e),this),this}var lu=pa,Il=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),cu=P`
140
7
  .highlight-html-match {
141
- background: ${Hr};
8
+ background: ${Il};
142
9
  }
143
- `,Gr={className:"highlight-html-match"};function Vr(t,e){var o;let i=t.getAttribute("data-highlight-html-query");if((null!=i?i:"")!==(null!=e?e:"")){const i=new Zr(t);if(i.unmark(Gr),e&&e.trim()){i.mark(e.replace(/"[^"]+"/g,""),{...Gr,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>i.mark(t.replace(/"/g,""),{...Gr,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")}var qr=Object.freeze({__proto__:null,highlightHtml:Vr,highlightHtmlColorCssVariable:Hr,highlightHtmlStyles:Kr});const Yr=ft`
10
+ `,ua={className:"highlight-html-match"};function fa(r,t){var e;let o=r.getAttribute("data-highlight-html-query");if((o??"")!==(t??"")){let n=new lu(r);n.unmark(ua),t&&t.trim()&&(n.mark(t.replace(/"[^"]+"/g,""),{...ua,separateWordSearch:!0}),((e=t.match(/"[^"]+"/g))!==null&&e!==void 0?e:[]).forEach(s=>n.mark(s.replace(/"/g,""),{...ua,separateWordSearch:!1})))}r.setAttribute("data-highlight-html-query",t??"")}var ma={};ot(ma,{noTextSelect:()=>lr,safariEllipsisFix:()=>cr,wordWrap:()=>du});var lr=P`
144
11
  .ft-no-text-select {
145
12
  -webkit-touch-callout: none;
146
13
  -webkit-user-select: none;
@@ -149,7 +16,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
149
16
  -ms-user-select: none;
150
17
  user-select: none;
151
18
  }
152
- `,Jr=ft`
19
+ `,du=P`
153
20
  .ft-word-wrap {
154
21
  white-space: normal;
155
22
  word-wrap: break-word;
@@ -161,7 +28,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
161
28
  -webkit-hyphens: auto;
162
29
  hyphens: auto
163
30
  }
164
- `,Xr=ft`
31
+ `,cr=P`
165
32
  .ft-safari-ellipsis-fix {
166
33
  margin-right: 0;
167
34
 
@@ -172,7 +39,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
172
39
  display: inline-block;
173
40
  width: 0;
174
41
  }
175
- `;var Qr=Object.freeze({__proto__:null,noTextSelect:Yr,safariEllipsisFix:Xr,wordWrap:Jr}),tn=Object.freeze({__proto__:null});class en{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var on=Object.freeze({__proto__:null,ParametrizedLabelResolver:en});const rn=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!uo(t,e),attribute:!1,...e};Oe(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},nn=t=>(e,o)=>{const i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(o,t)};class an{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function sn(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var ln,cn,dn;const hn=Symbol("internalReduxEventsUnsubscribers"),fn=Symbol("internalStoresUnsubscribers"),un=Symbol("internalStores");class pn extends Dr{constructor(){super(...arguments),this[ln]=new Map,this[cn]=new Map,this[dn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[un].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[un].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[un].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:sn(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[un].delete(e)}setupStore(t,e){this[un].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[un].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[fn].has(t.store):this[fn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[fn].set(t,e.subscribe((()=>this.updateFromStores()))),sn(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[hn].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[fn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[hn].forEach((t=>t())),this[hn]=[]}unsubscribeFromStore(t){this[fn].has(t)&&this[fn].get(t)(),this[fn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function gn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function yn(t){return!!t&&!!t[oa]}function bn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===ia}(t)||Array.isArray(t)||!!t[ea]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ea])||Sn(t)||Cn(t))}function mn(t,e,o){void 0===o&&(o=!1),0===vn(t)?(o?Object.keys:ra)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function vn(t){var e=t[oa];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sn(t)?2:Cn(t)?3:0}function xn(t,e){return 2===vn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wn(t,e,o){var i=vn(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function On(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Sn(t){return Jn&&t instanceof Map}function Cn(t){return Xn&&t instanceof Set}function Nn(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=na(t);delete e[oa];for(var o=ra(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function En(t,e){return void 0===e&&(e=!1),In(t)||yn(t)||!bn(t)||(vn(t)>1&&(t.set=t.add=t.clear=t.delete=kn),Object.freeze(t),e&&mn(t,(function(t,e){return En(e,!0)}),!0)),t}function kn(){gn(2)}function In(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Rn(t){var e=aa[t];return e||gn(18,t),e}function Un(){return qn}function Ln(t,e){e&&(Rn("Patches"),t.u=[],t.s=[],t.v=e)}function _n(t){An(t),t.p.forEach(Wn),t.p=null}function An(t){t===qn&&(qn=t.l)}function Bn(t){return qn={p:[],l:qn,h:t,m:!0,_:0}}function Wn(t){var e=t[oa];0===e.i||1===e.i?e.j():e.g=!0}function Tn(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||Rn("ES5").S(e,t,i),i?(o[oa].P&&(_n(e),gn(4)),bn(t)&&(t=zn(e,t),e.l||Dn(e,t)),e.u&&Rn("Patches").M(o[oa].t,t,e.u,e.s)):t=zn(e,o,[]),_n(e),e.u&&e.v(e.u,e.s),t!==ta?t:void 0}function zn(t,e,o){if(In(e))return e;var i=e[oa];if(!i)return mn(e,(function(r,n){return Fn(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Dn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=$n(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),mn(n,(function(e,n){return Fn(t,i,r,e,n,o,a)})),Dn(t,r,!1),o&&t.u&&Rn("Patches").N(i,o,t.u,t.s)}return i.o}function Fn(t,e,o,i,r,n,a){if(yn(r)){var s=zn(t,r,n&&e&&3!==e.i&&!xn(e.R,i)?n.concat(i):void 0);if(wn(o,i,s),!yn(s))return;t.m=!1}else a&&o.add(r);if(bn(r)&&!In(r)){if(!t.h.D&&t._<1)return;zn(t,r),e&&e.A.l||Dn(t,r)}}function Dn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&En(e,o)}function Pn(t,e){var o=t[oa];return(o?Nn(o):t)[e]}function Mn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function jn(t){t.P||(t.P=!0,t.l&&jn(t.l))}function Zn(t){t.o||(t.o=$n(t.t))}function Hn(t,e,o){var i=Sn(e)?Rn("MapSet").F(e,o):Cn(e)?Rn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:Un(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=sa;o&&(r=[i],n=la);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):Rn("ES5").J(e,o);return(o?o.A:Un()).p.push(i),i}function Kn(t){return yn(t)||gn(22,t),function t(e){if(!bn(e))return e;var o,i=e[oa],r=vn(e);if(i){if(!i.P&&(i.i<4||!Rn("ES5").K(i)))return i.t;i.I=!0,o=Gn(e,r),i.I=!1}else o=Gn(e,r);return mn(o,(function(e,r){i&&function(t,e){return 2===vn(t)?t.get(e):t[e]}(i.t,e)===r||wn(o,e,t(r))})),3===r?new Set(o):o}(t)}function Gn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}ln=fn,cn=un,dn=hn,pn.reduxProperties=new Map,pn.reduxReactiveProperties=new Set,pn.reduxEventListeners=new Map;var Vn,qn,Yn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Jn="undefined"!=typeof Map,Xn="undefined"!=typeof Set,Qn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ta=Yn?Symbol.for("immer-nothing"):((Vn={})["immer-nothing"]=!0,Vn),ea=Yn?Symbol.for("immer-draftable"):"__$immer_draftable",oa=Yn?Symbol.for("immer-state"):"__$immer_state",ia=""+Object.prototype.constructor,ra="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,na=Object.getOwnPropertyDescriptors||function(t){var e={};return ra(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},aa={},sa={get:function(t,e){if(e===oa)return t;var o=Nn(t);if(!xn(o,e))return function(t,e,o){var i,r=Mn(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!bn(i)?i:i===Pn(t.t,e)?(Zn(t),t.o[e]=Hn(t.A.h,i,t)):i},has:function(t,e){return e in Nn(t)},ownKeys:function(t){return Reflect.ownKeys(Nn(t))},set:function(t,e,o){var i=Mn(Nn(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Pn(Nn(t),e),n=null==r?void 0:r[oa];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(On(o,r)&&(void 0!==o||xn(t.t,e)))return!0;Zn(t),jn(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Pn(t.t,e)||e in t.t?(t.R[e]=!1,Zn(t),jn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Nn(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){gn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){gn(12)}},la={};mn(sa,(function(t,e){la[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),la.deleteProperty=function(t,e){return la.set.call(this,t,e,void 0)},la.set=function(t,e,o){return sa.set.call(this,t[0],e,o,t[0])};var ca=function(){function t(t){var e=this;this.O=Qn,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&gn(6),void 0!==i&&"function"!=typeof i&&gn(7),bn(t)){var s=Bn(e),l=Hn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?_n(s):An(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ln(s,i),Tn(t,s)}),(function(t){throw _n(s),t})):(Ln(s,i),Tn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ta&&(a=void 0),e.D&&En(a,!0),i){var d=[],h=[];Rn("Patches").M(t,a,d,h),i(d,h)}return a}gn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){bn(t)||gn(8),yn(t)&&(t=Kn(t));var e=Bn(this),o=Hn(this,t,void 0);return o[oa].C=!0,An(e),o},e.finishDraft=function(t,e){var o=(t&&t[oa]).A;return Ln(o,e),Tn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Qn&&gn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=Rn("Patches").$;return yn(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),da=new ca,ha=da.produce;function fa(t){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(t)}function ua(t){var e=function(t,e){if("object"!==fa(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==fa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fa(e)?e:String(e)}function pa(t,e,o){return(e=ua(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ga(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ya(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ga(Object(o),!0).forEach((function(e){pa(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ga(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ba(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. "}da.produceWithPatches.bind(da),da.setAutoFreeze.bind(da),da.setUseProxies.bind(da),da.applyPatches.bind(da),da.createDraft.bind(da),da.finishDraft.bind(da);var ma="function"==typeof Symbol&&Symbol.observable||"@@observable",va=function(){return Math.random().toString(36).substring(7).split("").join(".")},xa={INIT:"@@redux/INIT"+va(),REPLACE:"@@redux/REPLACE"+va(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+va()}};function wa(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ba(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ba(1));return o(wa)(t,e)}if("function"!=typeof t)throw new Error(ba(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(ba(3));return n}function h(t){if("function"!=typeof t)throw new Error(ba(4));if(l)throw new Error(ba(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ba(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ba(7));if(void 0===t.type)throw new Error(ba(8));if(l)throw new Error(ba(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return f({type:xa.INIT}),(i={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ba(10));r=t,f({type:xa.REPLACE})}})[ma]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ba(11));function o(){t.next&&t.next(d())}return o(),{unsubscribe:e(o)}}})[ma]=function(){return this},t},i}function Oa(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:xa.INIT}))throw new Error(ba(12));if(void 0===o(void 0,{type:xa.PROBE_UNKNOWN_ACTION()}))throw new Error(ba(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(ba(14));r[l]=h,i=i||h!==d}return(i=i||a.length!==Object.keys(t).length)?r:t}}function Sa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ca(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ba(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=Sa.apply(void 0,n)(o.dispatch),ya(ya({},o),{},{dispatch:i})}}}function Na(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var $a=Na();$a.withExtraArgument=Na;var Ea,ka=$a,Ia=(Ea=function(t,e){return Ea=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},Ea(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Ea(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ra=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Ua=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},La=Object.defineProperty,_a=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,za=function(t,e,o){return e in t?La(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Fa=function(t,e){for(var o in e||(e={}))Wa.call(e,o)&&za(t,o,e[o]);if(Ba)for(var i=0,r=Ba(e);i<r.length;i++){o=r[i];Ta.call(e,o)&&za(t,o,e[o])}return t},Da=function(t,e){return _a(t,Aa(e))},Pa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Sa:Sa.apply(null,arguments)};var Ma=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ia(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ua([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ua([void 0],t.concat(this))))},e}(Array),ja=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ia(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ua([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ua([void 0],t.concat(this))))},e}(Array);function Za(t){return bn(t)?ha(t,(function(){})):t}function Ha(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ma;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(ka.withExtraArgument(o.extraArgument)):i.push(ka));return i}(t)}}function Ka(t){var e,o=Ha(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,d=i.preloadedState,h=void 0===d?void 0:d,f=i.enhancers,u=void 0===f?void 0:f;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Oa(n)}var p=s;"function"==typeof p&&(p=p(o));var g=Ca.apply(void 0,p),y=Sa;c&&(y=Pa(Fa({trace:!1},"object"==typeof c&&c)));var b=new ja(g),m=b;return Array.isArray(u)?m=Ua([g],u):"function"==typeof u&&(m=u(b)),wa(e,h,y.apply(void 0,m))}function Ga(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Fa(Fa({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Va(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function qa(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Za(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Va(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,d=Fa(Fa({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Va(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Za(t())};else{var c=Za(t);r=function(){return c}}function d(t,e){void 0===t&&(t=r());var o=Ua([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(yn(t))return void 0===(i=o(t,e))?t:i;if(bn(t))return ha(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return d.getInitialState=r,d}(i,(function(t){for(var e in d)t.addCase(e,d[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?Ga(c,i):Ga(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ya=["name","message","stack","code"],Ja=function(t,e){this.payload=t,this.meta=e},Xa=function(t,e){this.payload=t,this.meta=e},Qa=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ya;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function ts(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Ga(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Da(Fa({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ga(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Da(Fa({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ga(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Qa)(t||"Rejected"),meta:Da(Fa({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var d,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new a;function u(t){d=t,f.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Ra(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),s(r(h,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Ja(t,e)},fulfillWithValue:function(t,e){return new Xa(t,e)}})).then((function(e){if(e instanceof Ja)throw e;return e instanceof Xa?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Ja?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{r(g.next(t))}catch(t){e(t)}},i=function(t){try{r(g.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(ts)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var es="listenerMiddleware";Ga(es+"/add"),Ga(es+"/removeAll"),Ga(es+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[oa];return sa.get(e,t)},set:function(e){var o=this[oa];sa.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][oa];if(!r.P)switch(r.i){case 5:i(r)&&jn(r);break;case 4:o(r)&&jn(r)}}}function o(t){for(var e=t.t,o=t.k,i=ra(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==oa){var a=e[n];if(void 0===a&&!xn(e,n))return!0;var s=o[n],l=s&&s[oa];if(l?l.t!==a:!On(s,a))return!0}}var c=!!e[oa];return i.length!==ra(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){aa[t]||(aa[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=na(o);delete n[oa];for(var a=ra(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:Un(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,oa,{value:n,writable:!0}),r},S:function(t,o,r){r?yn(o)&&o[oa].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[oa];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)mn(n,(function(e){e!==oa&&(void 0!==r[e]||xn(r,e)?a[e]||t(n[e]):(a[e]=!0,jn(o)))})),mn(r,(function(t){void 0!==n[t]||xn(n,t)||(a[t]=!1,jn(o))}));else if(5===s){if(i(o)&&(jn(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var d=Math.min(n.length,r.length),h=0;h<d;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class os{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(sn(r))return r;if(null==i)return;const n=qa({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Ka({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[i.name]=new os(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new an,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var is=Object.freeze({__proto__:null,FtCommandQueue:an,FtLitElementRedux:pn,FtReduxStore:os,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))sn(e)&&e.clear()},isFtReduxStore:sn,redux:rn,reduxEventListener:nn,reduxReactive:()=>(t,e)=>{var o;const i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),null===(o=i.reduxReactiveProperties)||void 0===o||o.add(e)}});var rs=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,i,r,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(i=e.query)||void 0===i?void 0:i.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(r=e.sort)||void 0===r?void 0:r.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const ns=Symbol("elementInternals");function as(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[ns].form}constructor(...t){super(t),this[ns]=this.attachInternals(),this[ns].role=e}setFormValue(t){this[ns].setFormValue(t)}}}var ss,ls,cs,ds,hs=Object.freeze({__proto__:null,toFtFormComponent:as});const fs=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(cs=null===(ls=null===(ss=window.safari)||void 0===ss?void 0:ss.pushNotification)||void 0===ls?void 0:ls.toString())&&void 0!==cs?cs:""),us="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var ps;window.ftGlobals=null!==(ds=window.ftGlobals)&&void 0!==ds?ds:{lit:ve,litDecorators:Re,litRepeat:je,litClassMap:He,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...ro,...oo,...ao,...lo,...mo,...Si,...Ei,...Rr,...wi,...Pr,...Mr,...po,...qr,...Qr,...tn,...on,...is,...Br,...rs,...hs,isSafari:fs,isTouchScreen:us}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(ps||(ps={}));var gs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const bs=Symbol("registerInterval");class ms extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[bs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[bs]):this.dispatchEvent(new ys)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bs,gs([Se()],o.prototype,"stateManager",void 0),o}(pn)){}const vs=xo.extend("--ft-ripple-color","",Oi.colorContent),xs={color:vs,backgroundColor:xo.extend("--ft-ripple-background-color","",vs),opacityContentOnSurfacePressed:xo.external(Oi.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Oi.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Oi.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Oi.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},ws=xo.extend("--ft-ripple-color","",Oi.colorPrimary),Os=ws,Ss=xo.extend("--ft-ripple-background-color","",ws),Cs=xo.extend("--ft-ripple-color","",Oi.colorSecondary),Ns=Cs,$s=xo.extend("--ft-ripple-background-color","",Cs),Es=ft`
42
+ `;var Pl={};var ga={};ot(ga,{ParametrizedLabelResolver:()=>go});var go=class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,n;t=this.resolvePluralKey(t,e);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,d)=>this.formatValue(s,d))),a}resolvePluralKey(t,e){for(let o of e)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t??""}formatDate(t,e){let o=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Wa={};ot(Wa,{FtCommandQueue:()=>bo,FtLitElementRedux:()=>Kt,FtReduxStore:()=>we,clearAllStores:()=>Zu,isFtReduxStore:()=>dr,redux:()=>ct,reduxEventListener:()=>yo,reduxReactive:()=>pu});var pu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:(l,c)=>!jt(l,c),attribute:!1,...t};g(a)(e,o);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},yo=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var bo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(o=>o.type===t);return e&&(this.queue=this.queue.filter(o=>o!==e)),e}};function dr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var $l,kl,Ll,li=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),Kt=class extends W{constructor(){super(...arguments),this[$l]=new Map,this[kl]=new Map,this[Ll]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[pr].get(t)}addStore(t,e){var o;e=(o=e??(dr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[pr].delete(e)}setupStore(t,e){this[pr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let o=this.constructor.getPropertyOptions(e);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[ke].has(t.store):this[ke].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[ke].set(t,e.subscribe(()=>this.updateFromStores())),dr(e)&&e.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[li].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ke].forEach((t,e)=>this.unsubscribeFromStore(e)),this[li].forEach(t=>t()),this[li]=[]}unsubscribeFromStore(t){this[ke].has(t)&&this[ke].get(t)(),this[ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};$l=ke,kl=pr,Ll=li;Kt.reduxProperties=new Map;Kt.reduxReactiveProperties=new Set;Kt.reduxEventListeners=new Map;function Gt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(r){return!!r&&!!r[it]}function Jt(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===vu}(r)||Array.isArray(r)||!!r[Wl]||!!(!((t=r.constructor)===null||t===void 0)&&t[Wl])||Ca(r)||Aa(r))}function ur(r,t,e){e===void 0&&(e=!1),Tr(r)===0?(e?Object.keys:Nr)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function Tr(r){var t=r[it];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ca(r)?2:Aa(r)?3:0}function _r(r,t){return Tr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function uu(r,t){return Tr(r)===2?r.get(t):r[t]}function Hl(r,t,e){var o=Tr(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function Vl(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ca(r){return yu&&r instanceof Map}function Aa(r){return bu&&r instanceof Set}function Le(r){return r.o||r.t}function Ra(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Gl(r);delete t[it];for(var e=Nr(t),o=0;o<e.length;o++){var n=e[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function _a(r,t){return t===void 0&&(t=!1),Na(r)||Oe(r)||!Jt(r)||(Tr(r)>1&&(r.set=r.add=r.clear=r.delete=fu),Object.freeze(r),t&&ur(r,function(e,o){return _a(o,!0)},!0)),r}function fu(){Gt(2)}function Na(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Ea[r];return t||Gt(18,r),t}function hu(r,t){Ea[r]||(Ea[r]=t)}function Sa(){return xo}function ya(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function ci(r){Oa(r),r.p.forEach(mu),r.p=null}function Oa(r){r===xo&&(xo=r.l)}function Ml(r){return xo={p:[],l:xo,h:r,m:!0,_:0}}function mu(r){var t=r[it];t.i===0||t.i===1?t.j():t.g=!0}function ba(r,t){t._=t.p.length;var e=t.p[0],o=r!==void 0&&r!==e;return t.h.O||se("ES5").S(t,r,o),o?(e[it].P&&(ci(t),Gt(4)),Jt(r)&&(r=di(t,r),t.l||pi(t,r)),t.u&&se("Patches").M(e[it].t,r,t.u,t.s)):r=di(t,e,[]),ci(t),t.u&&t.v(t.u,t.s),r!==Kl?r:void 0}function di(r,t,e){if(Na(t))return t;var o=t[it];if(!o)return ur(t,function(l,c){return Dl(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return pi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ra(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ur(a,function(l,c){return Dl(r,o,n,l,c,e,s)}),pi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function Dl(r,t,e,o,n,a,s){if(Oe(n)){var l=di(r,n,a&&t&&t.i!==3&&!_r(t.R,o)?a.concat(o):void 0);if(Hl(e,o,l),!Oe(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!Na(n)){if(!r.h.D&&r._<1)return;di(r,n),t&&t.A.l||pi(r,n)}}function pi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&_a(t,e)}function va(r,t){var e=r[it];return(e?Le(e):r)[t]}function Ul(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var o=Object.getOwnPropertyDescriptor(e,t);if(o)return o;e=Object.getPrototypeOf(e)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function xa(r){r.o||(r.o=Ra(r.t))}function wa(r,t,e){var o=Ca(t)?se("MapSet").F(t,e):Aa(t)?se("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Sa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=So;s&&(c=[l],d=vo);var u=Proxy.revocable(c,d),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,e):se("ES5").J(t,e);return(e?e.A:Sa()).p.push(o),o}function gu(r){return Oe(r)||Gt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[it],a=Tr(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=Bl(e,a),n.I=!1}else o=Bl(e,a);return ur(o,function(s,l){n&&uu(n.t,s)===l||Hl(o,s,t(l))}),a===3?new Set(o):o}(r)}function Bl(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ra(r)}function jl(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[it];return So.get(d,s)},set:function(d){var u=this[it];So.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][it];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:e(c)&&Me(c)}}}function e(s){for(var l=s.t,c=s.k,d=Nr(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==it){var y=l[h];if(y===void 0&&!_r(l,h))return!0;var b=c[h],v=b&&b[it];if(v?v.t!==y:!Vl(b,y))return!0}}var w=!!l[it];return d.length!==Nr(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify(Le(s)))}var a={};hu("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=Gl(y);delete w[it];for(var N=Nr(w),T=0;T<N.length;T++){var k=N[T];w[k]=r(k,h||!!w[k].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(c,s),u={i:c?5:4,A:l?l.A:Sa(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,it,{value:u,writable:!0}),d},S:function(s,l,c){c?Oe(l)&&l[it].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[it];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)ur(b,function(S){S!==it&&(y[S]!==void 0||_r(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),ur(y,function(S){b[S]!==void 0||_r(b,S)||(v[S]=!1,Me(h))});else if(w===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)v[N]=!1;else for(var T=y.length;T<b.length;T++)v[T]=!0;for(var k=Math.min(b.length,y.length),O=0;O<k;O++)b.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&d(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):o(s)}})}var Fl,xo,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",yu=typeof Map<"u",bu=typeof Set<"u",zl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kl=Ta?Symbol.for("immer-nothing"):((Fl={})["immer-nothing"]=!0,Fl),Wl=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",it=Ta?Symbol.for("immer-state"):"__$immer_state";var vu=""+Object.prototype.constructor,Nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(r){var t={};return Nr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Ea={},So={get:function(r,t){if(t===it)return r;var e=Le(r);if(!_r(e,t))return function(n,a,s){var l,c=Ul(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var o=e[t];return r.I||!Jt(o)?o:o===va(r.t,t)?(xa(r),r.o[t]=wa(r.A.h,o,r)):o},has:function(r,t){return t in Le(r)},ownKeys:function(r){return Reflect.ownKeys(Le(r))},set:function(r,t,e){var o=Ul(Le(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=va(Le(r),t),a=n?.[it];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Vl(e,n)&&(e!==void 0||_r(r.t,t)))return!0;xa(r),Me(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return va(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,xa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=Le(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Gt(12)}},vo={};ur(So,function(r,t){vo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vo.deleteProperty=function(r,t){return vo.set.call(this,r,t,void 0)},vo.set=function(r,t,e){return So.set.call(this,r[0],t,e,r[0])};var xu=function(){function r(e){var o=this;this.O=zl,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(w){var N=this;w===void 0&&(w=l);for(var T=arguments.length,k=Array(T>1?T-1:0),O=1;O<T;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var E;return(E=a).call.apply(E,[N,S].concat(k))})}}var d;if(typeof a!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),Jt(n)){var u=Ml(o),h=wa(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?ci(u):Oa(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return ya(u,s),ba(w,u)},function(w){throw ci(u),w}):(ya(u,s),ba(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===Kl&&(d=void 0),o.D&&_a(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Gt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(d,u){s=d,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){Jt(e)||Gt(8),Oe(e)&&(e=gu(e));var o=Ml(this),n=wa(this,e,void 0);return n[it].C=!0,Oa(o),n},t.finishDraft=function(e,o){var n=e&&e[it],a=n.A;return ya(a,o),ba(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!zl&&Gt(20),this.O=e},t.applyPatches=function(e,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return Oe(e)?s(e,o):this.produce(e,function(l){return s(l,o)})},r}(),zt=new xu,Su=zt.produce,Qy=zt.produceWithPatches.bind(zt),tb=zt.setAutoFreeze.bind(zt),eb=zt.setUseProxies.bind(zt),rb=zt.applyPatches.bind(zt),ob=zt.createDraft.bind(zt),ib=zt.finishDraft.bind(zt),ui=Su;function De(r){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(r)}function Ia(r,t){if(De(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(De(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Pa(r){var t=Ia(r,"string");return De(t)==="symbol"?t:String(t)}function $a(r,t,e){return t=Pa(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Zl(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,o)}return e}function fi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(e),!0).forEach(function(o){$a(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Zl(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function Rt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var ql=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},hi={INIT:"@@redux/INIT"+ka(),REPLACE:"@@redux/REPLACE"+ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ka()}};function Ou(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function La(r,t,e){var o;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Rt(1));return e(La)(r,t)}if(typeof r!="function")throw new Error(Rt(2));var n=r,a=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(w){if(typeof w!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var N=!0;return d(),l.push(w),function(){if(N){if(c)throw new Error(Rt(6));N=!1,d();var k=l.indexOf(w);l.splice(k,1),s=null}}}function y(w){if(!Ou(w))throw new Error(Rt(7));if(typeof w.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var N=s=l,T=0;T<N.length;T++){var k=N[T];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:hi.REPLACE})}function v(){var w,N=h;return w={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function O(){k.next&&k.next(u())}O();var S=N(O);return{unsubscribe:S}}},w[ql]=function(){return this},w}return y({type:hi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[ql]=v,o}function wu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:hi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function Yl(r){for(var t=Object.keys(r),e={},o=0;o<t.length;o++){var n=t[o];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{wu(e)}catch(c){l=c}return function(d,u){if(d===void 0&&(d={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var w=a[v],N=e[w],T=d[w],k=N(T,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==T}return y=y||a.length!==Object.keys(d).length,y?b:d}}function Ir(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Xl(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=Ir.apply(void 0,l)(n.dispatch),fi(fi({},n),{},{dispatch:a})}}}function Jl(r){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Ql=Jl();Ql.withExtraArgument=Jl;var Ma=Ql;var ic=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Eu=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(u){return c([d,u])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(a=d[0]&2?n.return:d[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,d[1])).done)return a;switch(n=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,n=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){e=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){e.label=d[1];break}if(d[0]===6&&e.label<a[1]){e.label=a[1],a=d;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(d);break}a[2]&&e.ops.pop(),e.trys.pop();continue}d=t.call(r,e)}catch(u){d=[6,u],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Pr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},Cu=Object.defineProperty,Au=Object.defineProperties,Ru=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,ec=function(r,t,e){return t in r?Cu(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ue=function(r,t){for(var e in t||(t={}))_u.call(t,e)&&ec(r,e,t[e]);if(tc)for(var o=0,n=tc(t);o<n.length;o++){var e=n[o];Nu.call(t,e)&&ec(r,e,t[e])}return r},Da=function(r,t){return Au(r,Ru(t))},Tu=function(r,t,e){return new Promise(function(o,n){var a=function(c){try{l(e.next(c))}catch(d){n(d)}},s=function(c){try{l(e.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Iu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},Ob=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Pu(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var $u=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array),ku=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array);function Fa(r){return Jt(r)?ui(r,function(){}):r}function Lu(r){return typeof r=="boolean"}function Mu(){return function(t){return Du(t)}}function Du(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new $u;if(e&&(Lu(e)?l.push(Ma):l.push(Ma.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ua=!0;function nc(r){var t=Mu(),e=r||{},o=e.reducer,n=o===void 0?void 0:o,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,d=e.preloadedState,u=d===void 0?void 0:d,h=e.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Pu(n))b=Yl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(t),!Ua&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ua&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Xl.apply(void 0,v),N=Ir;c&&(N=Iu(Ue({trace:!Ua},typeof c=="object"&&c)));var T=new ku(w),k=T;Array.isArray(y)?k=Pr([w],y):typeof y=="function"&&(k=y(T));var O=N.apply(void 0,k);return La(b,u,O)}function Be(r,t){function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Ue(Ue({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(o){return o.type===r},e}function ac(r){var t={},e=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[t,e,o]}function Uu(r){return typeof r=="function"}function Bu(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?ac(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(Uu(r))c=function(){return Fa(r())};else{var d=Fa(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=Pr([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Oe(v)){var N=v,T=w(N,y);return T===void 0?v:T}else{if(Jt(v))return ui(v,function(k){return w(k,y)});var T=w(v,y);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},h)}return u.getInitialState=c,u}function Fu(r,t){return r+"/"+t}function sc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Fa(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=Fu(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Be(y,v):Be(y)});function c(){var u=typeof r.extraReducers=="function"?ac(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],N=w===void 0?void 0:w,T=Ue(Ue({},y),s);return Bu(e,function(k){for(var O in T)k.addCase(O,T[O]);for(var S=0,E=v;S<E.length;S++){var D=E[S];k.addMatcher(D.matcher,D.reducer)}N&&k.addDefaultCase(N)})}var d;return{name:t,reducer:function(u,h){return d||(d=c()),d(u,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wu=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=zu[Math.random()*64|0];return t},Hu=["name","message","stack","code"],Ba=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),rc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vu=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=Hu;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},Ab=function(){function r(t,e,o){var n=Be(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:Da(Ue({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Be(t+"/pending",function(u,h,y){return{payload:void 0,meta:Da(Ue({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||Vu)(u||"Rejected"),meta:Da(Ue({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function d(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):Wu(),w=new c,N,T=!1;function k(S){N=S,w.abort()}var O=function(){return Tu(this,null,function(){var S,E,D,z,At,Y,m;return Eu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),z=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),Ku(z)?[4,z]:[3,2];case 1:z=x.sent(),x.label=2;case 2:if(z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,At=new Promise(function(_,K){return w.signal.addEventListener("abort",function(){return K({name:"AbortError",message:N||"Aborted"})})}),h(a(v,u,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(e(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:w.signal,abort:k,rejectWithValue:function(_,K){return new Ba(_,K)},fulfillWithValue:function(_,K){return new rc(_,K)}})).then(function(_){if(_ instanceof Ba)throw _;return _ instanceof rc?n(_.payload,v,u,_.meta):n(_,v,u)})])];case 3:return D=x.sent(),[3,5];case 4:return Y=x.sent(),D=Y instanceof Ba?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,m||h(D),[2,D]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(ju)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function ju(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ku(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var lc="listener",cc="completed",dc="cancelled",Rb="task-"+dc,_b="task-"+cc,Nb=lc+"-"+dc,Tb=lc+"-"+cc;var za="listenerMiddleware";var Ib=Be(za+"/add"),Pb=Be(za+"/removeAll"),$b=Be(za+"/remove");var oc,kb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(oc||(oc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Gu=function(r){return function(t){setTimeout(t,r)}},Lb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gu(10);jl();window.ftReduxStores||(window.ftReduxStores={});var we=class r{static get(t){var e;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(dr(a))return a;if(n==null)return;let s=sc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=nc({reducer:(c,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new bo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let d=l(...c);return this.reduxStore.dispatch(d),d}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Zu(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))dr(t)&&t.clear()}var Ha={};ot(Ha,{serializeRequest:()=>Yu});function qu(r){return`"${r}"`}function Yu(r,t){var e,o,n,a;let s=new URLSearchParams({"content-lang":(e=t.contentLocale)!==null&&e!==void 0?e:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+d)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(d=>{let u=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(qu(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Va={};ot(Va,{toFtFormComponent:()=>fr});var mi=Symbol("elementInternals");function fr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[mi].form}constructor(...n){super(n),this[mi]=this.attachInternals(),this[mi].role=t}setFormValue(n){this[mi].setFormValue(n)}}return e}var ja,Ka,Ga,Za,Oo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ga=(Ka=(ja=window.safari)===null||ja===void 0?void 0:ja.pushNotification)===null||Ka===void 0?void 0:Ka.toString())!==null&&Ga!==void 0?Ga:"")==="[object SafariRemoteNotification]",Xu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Za=window.ftGlobals)!==null&&Za!==void 0?Za:{lit:nn,litDecorators:sn,litRepeat:cn,litClassMap:dn,litStyleMap:pn,litUnsafeHTML:fn,wcUtils:{...gn,...mn,...yn,...bn,...xn,...Gn,...Yn,...sa,...Kn,...da,...Tl,...vn,...ha,...ma,...Pl,...ga,...Wa,...la,...Ha,...Va,isSafari:Oo,isTouchScreen:Xu}};var Zt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zt||(Zt={}));var Ju=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ya=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},qa=Symbol("registerInterval");function Qu(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[qa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[qa]):this.dispatchEvent(new Ya)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=qa,Ju([H()],e.prototype,"stateManager",void 0),e}var Fe=class extends Qu(Kt){};var pc=i.extend("--ft-ripple-color","",A.colorContent),F={color:pc,backgroundColor:i.extend("--ft-ripple-background-color","",pc),opacityContentOnSurfacePressed:i.external(A.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(A.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(A.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(A.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},uc=i.extend("--ft-ripple-color","",A.colorPrimary),fc={color:uc,backgroundColor:i.extend("--ft-ripple-background-color","",uc)},hc=i.extend("--ft-ripple-color","",A.colorSecondary),mc={color:hc,backgroundColor:i.extend("--ft-ripple-background-color","",hc)},gc=P`
176
43
  :host {
177
44
  display: contents;
178
45
  }
@@ -185,7 +52,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
185
52
 
186
53
  .ft-ripple:not(.ft-ripple--unbounded) {
187
54
  overflow: hidden;
188
- border-radius: ${xs.borderRadius};
55
+ border-radius: ${F.borderRadius};
189
56
  }
190
57
 
191
58
  .ft-ripple .ft-ripple--background,
@@ -219,27 +86,27 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
219
86
  }
220
87
 
221
88
  .ft-ripple .ft-ripple--background {
222
- background-color: ${xs.backgroundColor};
89
+ background-color: ${F.backgroundColor};
223
90
  }
224
91
 
225
92
  .ft-ripple .ft-ripple--effect {
226
- background-color: ${xs.color};
93
+ background-color: ${F.color};
227
94
  }
228
95
 
229
96
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
230
- background-color: ${$s};
97
+ background-color: ${mc.backgroundColor};
231
98
  }
232
99
 
233
100
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
234
- background-color: ${Ns};
101
+ background-color: ${mc.color};
235
102
  }
236
103
 
237
104
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
238
- background-color: ${Ss};
105
+ background-color: ${fc.backgroundColor};
239
106
  }
240
107
 
241
108
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
242
- background-color: ${Os};
109
+ background-color: ${fc.color};
243
110
  }
244
111
 
245
112
  .ft-ripple .ft-ripple--background {
@@ -269,126 +136,126 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
269
136
  }
270
137
 
271
138
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
272
- opacity: ${xs.opacityContentOnSurfaceHover};
139
+ opacity: ${F.opacityContentOnSurfaceHover};
273
140
  }
274
141
 
275
142
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
276
- opacity: ${xs.opacityContentOnSurfaceSelected};
143
+ opacity: ${F.opacityContentOnSurfaceSelected};
277
144
  }
278
145
 
279
146
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
280
- opacity: ${xs.opacityContentOnSurfaceFocused};
147
+ opacity: ${F.opacityContentOnSurfaceFocused};
281
148
  }
282
149
 
283
150
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
284
- opacity: ${xs.opacityContentOnSurfacePressed};
151
+ opacity: ${F.opacityContentOnSurfacePressed};
285
152
  transform: translate(-50%, -50%) scale(1);
286
153
  }
287
- `;const ks=xo.extend("--ft-typography-font-family","",Oi.titleFont),Is=xo.extend("--ft-typography-font-family","",Oi.contentFont),Rs={fontFamily:Is,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Us={fontFamily:xo.extend("--ft-typography-title-font-family","",ks),fontSize:xo.extend("--ft-typography-title-font-size","",Rs.fontSize,"20px"),fontWeight:xo.extend("--ft-typography-title-font-weight","",Rs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-letter-spacing","",Rs.letterSpacing,"0.15px"),lineHeight:xo.extend("--ft-typography-title-line-height","",Rs.lineHeight,"1.2"),textTransform:xo.extend("--ft-typography-title-text-transform","",Rs.textTransform,"inherit")},Ls={fontFamily:xo.extend("--ft-typography-title-dense-font-family","",ks),fontSize:xo.extend("--ft-typography-title-dense-font-size","",Rs.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-title-dense-font-weight","",Rs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-dense-letter-spacing","",Rs.letterSpacing,"0.105px"),lineHeight:xo.extend("--ft-typography-title-dense-line-height","",Rs.lineHeight,"1.7"),textTransform:xo.extend("--ft-typography-title-dense-text-transform","",Rs.textTransform,"inherit")},_s=xo.extend("--ft-typography-subtitle1-font-family","",Is),As=xo.extend("--ft-typography-subtitle1-font-size","",Rs.fontSize,"16px"),Bs=xo.extend("--ft-typography-subtitle1-font-weight","",Rs.fontWeight,"600"),Ws=xo.extend("--ft-typography-subtitle1-letter-spacing","",Rs.letterSpacing,"0.144px"),Ts=xo.extend("--ft-typography-subtitle1-line-height","",Rs.lineHeight,"1.5"),zs=xo.extend("--ft-typography-subtitle1-text-transform","",Rs.textTransform,"inherit"),Fs=xo.extend("--ft-typography-subtitle2-font-family","",Is),Ds=xo.extend("--ft-typography-subtitle2-font-size","",Rs.fontSize,"14px"),Ps=xo.extend("--ft-typography-subtitle2-font-weight","",Rs.fontWeight,"normal"),Ms=xo.extend("--ft-typography-subtitle2-letter-spacing","",Rs.letterSpacing,"0.098px"),js=xo.extend("--ft-typography-subtitle2-line-height","",Rs.lineHeight,"1.7"),Zs=xo.extend("--ft-typography-subtitle2-text-transform","",Rs.textTransform,"inherit"),Hs={fontFamily:xo.extend("--ft-typography-body1-font-family","",Is),fontSize:xo.extend("--ft-typography-body1-font-size","",Rs.fontSize,"16px"),fontWeight:xo.extend("--ft-typography-body1-font-weight","",Rs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body1-letter-spacing","",Rs.letterSpacing,"0.496px"),lineHeight:xo.extend("--ft-typography-body1-line-height","",Rs.lineHeight,"1.5"),textTransform:xo.extend("--ft-typography-body1-text-transform","",Rs.textTransform,"inherit")},Ks=xo.extend("--ft-typography-body2-font-family","",Is),Gs=xo.extend("--ft-typography-body2-font-size","",Rs.fontSize,"14px"),Vs=xo.extend("--ft-typography-body2-font-weight","",Rs.fontWeight,"normal"),qs=xo.extend("--ft-typography-body2-letter-spacing","",Rs.letterSpacing,"0.252px"),Ys=xo.extend("--ft-typography-body2-line-height","",Rs.lineHeight,"1.4"),Js=xo.extend("--ft-typography-body2-text-transform","",Rs.textTransform,"inherit"),Xs={fontFamily:xo.extend("--ft-typography-caption-font-family","",Is),fontSize:xo.extend("--ft-typography-caption-font-size","",Rs.fontSize,"12px"),fontWeight:xo.extend("--ft-typography-caption-font-weight","",Rs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-caption-letter-spacing","",Rs.letterSpacing,"0.396px"),lineHeight:xo.extend("--ft-typography-caption-line-height","",Rs.lineHeight,"1.33"),textTransform:xo.extend("--ft-typography-caption-text-transform","",Rs.textTransform,"inherit")},Qs=xo.extend("--ft-typography-breadcrumb-font-family","",Is),tl=xo.extend("--ft-typography-breadcrumb-font-size","",Rs.fontSize,"10px"),el=xo.extend("--ft-typography-breadcrumb-font-weight","",Rs.fontWeight,"normal"),ol=xo.extend("--ft-typography-breadcrumb-letter-spacing","",Rs.letterSpacing,"0.33px"),il=xo.extend("--ft-typography-breadcrumb-line-height","",Rs.lineHeight,"1.6"),rl=xo.extend("--ft-typography-breadcrumb-text-transform","",Rs.textTransform,"inherit"),nl=xo.extend("--ft-typography-overline-font-family","",Is),al=xo.extend("--ft-typography-overline-font-size","",Rs.fontSize,"10px"),sl=xo.extend("--ft-typography-overline-font-weight","",Rs.fontWeight,"normal"),ll=xo.extend("--ft-typography-overline-letter-spacing","",Rs.letterSpacing,"1.5px"),cl=xo.extend("--ft-typography-overline-line-height","",Rs.lineHeight,"1.6"),dl=xo.extend("--ft-typography-overline-text-transform","",Rs.textTransform,"uppercase"),hl={fontFamily:xo.extend("--ft-typography-button-font-family","",Is),fontSize:xo.extend("--ft-typography-button-font-size","",Rs.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",Rs.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",Rs.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",Rs.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",Rs.textTransform,"uppercase")},fl=ft`
154
+ `;function yc(r){let t=ao[r];return P`
155
+ .ft-typography--${he(r)} {
156
+ font-family: ${t.fontFamily};
157
+ font-size: ${t.fontSize};
158
+ font-weight: ${t.fontWeight};
159
+ letter-spacing: ${t.letterSpacing};
160
+ line-height: ${t.lineHeight};
161
+ text-transform: ${t.textCase};
162
+ }
163
+ `}var bc=i.extend("--ft-typography-font-family","",A.titleFont),Ee=i.extend("--ft-typography-font-family","",A.contentFont),L={fontFamily:Ee,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ze={fontFamily:i.extend("--ft-typography-title-font-family","",bc),fontSize:i.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},We={fontFamily:i.extend("--ft-typography-title-dense-font-family","",bc),fontSize:i.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},$r={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},kr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},qt={fontFamily:i.extend("--ft-typography-body1-font-family","",Ee),fontSize:i.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Lr={fontFamily:i.extend("--ft-typography-body2-font-family","",Ee),fontSize:i.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Qt={fontFamily:i.extend("--ft-typography-caption-font-family","",Ee),fontSize:i.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Dr={fontFamily:i.extend("--ft-typography-overline-font-family","",Ee),fontSize:i.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},It={fontFamily:i.extend("--ft-typography-button-font-family","",Ee),fontSize:i.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},vc=P`
288
164
  .ft-typography--title {
289
- font-family: ${Us.fontFamily};
290
- font-size: ${Us.fontSize};
291
- font-weight: ${Us.fontWeight};
292
- letter-spacing: ${Us.letterSpacing};
293
- line-height: ${Us.lineHeight};
294
- text-transform: ${Us.textTransform};
295
- }
296
- `,ul=ft`
165
+ font-family: ${ze.fontFamily};
166
+ font-size: ${ze.fontSize};
167
+ font-weight: ${ze.fontWeight};
168
+ letter-spacing: ${ze.letterSpacing};
169
+ line-height: ${ze.lineHeight};
170
+ text-transform: ${ze.textTransform};
171
+ }
172
+ `,xc=P`
297
173
  .ft-typography--title-dense {
298
- font-family: ${Ls.fontFamily};
299
- font-size: ${Ls.fontSize};
300
- font-weight: ${Ls.fontWeight};
301
- letter-spacing: ${Ls.letterSpacing};
302
- line-height: ${Ls.lineHeight};
303
- text-transform: ${Ls.textTransform};
304
- }
305
- `,pl=ft`
174
+ font-family: ${We.fontFamily};
175
+ font-size: ${We.fontSize};
176
+ font-weight: ${We.fontWeight};
177
+ letter-spacing: ${We.letterSpacing};
178
+ line-height: ${We.lineHeight};
179
+ text-transform: ${We.textTransform};
180
+ }
181
+ `,Sc=P`
306
182
  .ft-typography--subtitle1 {
307
- font-family: ${_s};
308
- font-size: ${As};
309
- font-weight: ${Bs};
310
- letter-spacing: ${Ws};
311
- line-height: ${Ts};
312
- text-transform: ${zs};
313
- }
314
- `,gl=ft`
183
+ font-family: ${$r.fontFamily};
184
+ font-size: ${$r.fontSize};
185
+ font-weight: ${$r.fontWeight};
186
+ letter-spacing: ${$r.letterSpacing};
187
+ line-height: ${$r.lineHeight};
188
+ text-transform: ${$r.textTransform};
189
+ }
190
+ `,Oc=P`
315
191
  .ft-typography--subtitle2 {
316
- font-family: ${Fs};
317
- font-size: ${Ds};
318
- font-weight: ${Ps};
319
- letter-spacing: ${Ms};
320
- line-height: ${js};
321
- text-transform: ${Zs};
192
+ font-family: ${kr.fontFamily};
193
+ font-size: ${kr.fontSize};
194
+ font-weight: ${kr.fontWeight};
195
+ letter-spacing: ${kr.letterSpacing};
196
+ line-height: ${kr.lineHeight};
197
+ text-transform: ${kr.textTransform};
322
198
  }
323
199
 
324
- `,yl=ft`
200
+ `,Ur=P`
325
201
  .ft-typography--body1 {
326
- font-family: ${Hs.fontFamily};
327
- font-size: ${Hs.fontSize};
328
- font-weight: ${Hs.fontWeight};
329
- letter-spacing: ${Hs.letterSpacing};
330
- line-height: ${Hs.lineHeight};
331
- text-transform: ${Hs.textTransform};
332
- }
333
- `,bl=ft`
202
+ font-family: ${qt.fontFamily};
203
+ font-size: ${qt.fontSize};
204
+ font-weight: ${qt.fontWeight};
205
+ letter-spacing: ${qt.letterSpacing};
206
+ line-height: ${qt.lineHeight};
207
+ text-transform: ${qt.textTransform};
208
+ }
209
+ `,wc=P`
334
210
  .ft-typography--body2 {
335
- font-family: ${Ks};
336
- font-size: ${Gs};
337
- font-weight: ${Vs};
338
- letter-spacing: ${qs};
339
- line-height: ${Ys};
340
- text-transform: ${Js};
341
- }
342
- `,ml=ft`
211
+ font-family: ${Lr.fontFamily};
212
+ font-size: ${Lr.fontSize};
213
+ font-weight: ${Lr.fontWeight};
214
+ letter-spacing: ${Lr.letterSpacing};
215
+ line-height: ${Lr.lineHeight};
216
+ text-transform: ${Lr.textTransform};
217
+ }
218
+ `,gi=P`
343
219
  .ft-typography--caption {
344
- font-family: ${Xs.fontFamily};
345
- font-size: ${Xs.fontSize};
346
- font-weight: ${Xs.fontWeight};
347
- letter-spacing: ${Xs.letterSpacing};
348
- line-height: ${Xs.lineHeight};
349
- text-transform: ${Xs.textTransform};
350
- }
351
- `,vl=ft`
220
+ font-family: ${Qt.fontFamily};
221
+ font-size: ${Qt.fontSize};
222
+ font-weight: ${Qt.fontWeight};
223
+ letter-spacing: ${Qt.letterSpacing};
224
+ line-height: ${Qt.lineHeight};
225
+ text-transform: ${Qt.textTransform};
226
+ }
227
+ `,Ec=P`
352
228
  .ft-typography--breadcrumb {
353
- font-family: ${Qs};
354
- font-size: ${tl};
355
- font-weight: ${el};
356
- letter-spacing: ${ol};
357
- line-height: ${il};
358
- text-transform: ${rl};
359
- }
360
- `,xl=ft`
229
+ font-family: ${Mr.fontFamily};
230
+ font-size: ${Mr.fontSize};
231
+ font-weight: ${Mr.fontWeight};
232
+ letter-spacing: ${Mr.letterSpacing};
233
+ line-height: ${Mr.lineHeight};
234
+ text-transform: ${Mr.textTransform};
235
+ }
236
+ `,Cc=P`
361
237
  .ft-typography--overline {
362
- font-family: ${nl};
363
- font-size: ${al};
364
- font-weight: ${sl};
365
- letter-spacing: ${ll};
366
- line-height: ${cl};
367
- text-transform: ${dl};
368
- }
369
- `,wl=ft`
238
+ font-family: ${Dr.fontFamily};
239
+ font-size: ${Dr.fontSize};
240
+ font-weight: ${Dr.fontWeight};
241
+ letter-spacing: ${Dr.letterSpacing};
242
+ line-height: ${Dr.lineHeight};
243
+ text-transform: ${Dr.textTransform};
244
+ }
245
+ `,Ac=P`
370
246
  .ft-typography--button {
371
- font-family: ${hl.fontFamily};
372
- font-size: ${hl.fontSize};
373
- font-weight: ${hl.fontWeight};
374
- letter-spacing: ${hl.letterSpacing};
375
- line-height: ${hl.lineHeight};
376
- text-transform: ${hl.textTransform};
377
- }
378
- `,Ol=ft`
247
+ font-family: ${It.fontFamily};
248
+ font-size: ${It.fontSize};
249
+ font-weight: ${It.fontWeight};
250
+ letter-spacing: ${It.letterSpacing};
251
+ line-height: ${It.lineHeight};
252
+ text-transform: ${It.textTransform};
253
+ }
254
+ `,Rc=P`
379
255
  .ft-typography {
380
256
  vertical-align: inherit;
381
257
  }
382
- `,Sl=[Object.keys(qo).map((t=>function(t){const e=qo[t];return ft`
383
- .ft-typography--${ht(t)} {
384
- font-family: ${e.fontFamily};
385
- font-size: ${e.fontSize};
386
- font-weight: ${e.fontWeight};
387
- letter-spacing: ${e.letterSpacing};
388
- line-height: ${e.lineHeight};
389
- text-transform: ${e.textCase};
390
- }
391
- `}(t)))],Cl={color:xo.extend("--ft-loader-color","",Oi.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Nl=ft`
258
+ `,_c=[Object.keys(ao).map(r=>yc(r))];var Lt={color:i.extend("--ft-loader-color","",A.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Nc=P`
392
259
  :host {
393
260
  line-height: 0;
394
261
  }
@@ -397,8 +264,8 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
397
264
  display: inline-block;
398
265
  position: relative;
399
266
 
400
- width: ${Cl.size};
401
- height: ${Cl.size};
267
+ width: ${Lt.size};
268
+ height: ${Lt.size};
402
269
  }
403
270
 
404
271
  .ft-loader div {
@@ -407,7 +274,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
407
274
  width: 25%;
408
275
  height: 25%;
409
276
  border-radius: 50%;
410
- background: ${Cl.color};
277
+ background: ${Lt.color};
411
278
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
412
279
  }
413
280
 
@@ -454,10 +321,10 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
454
321
  transform: translate(0, 0);
455
322
  }
456
323
  100% {
457
- transform: translate(calc(0.35 * ${Cl.size}), 0);
324
+ transform: translate(calc(0.35 * ${Lt.size}), 0);
458
325
  }
459
326
  }
460
- `,$l={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},El=ft`
327
+ `;var St={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Tc=P`
461
328
  :host, i.ft-icon {
462
329
  display: inline-flex;
463
330
  align-items: center;
@@ -466,14 +333,14 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
466
333
  }
467
334
 
468
335
  :host {
469
- width: ${$l.size};
470
- height: ${$l.size};
336
+ width: ${St.size};
337
+ height: ${St.size};
471
338
  }
472
339
 
473
340
  i.ft-icon {
474
341
  width: 100%;
475
342
  height: 100%;
476
- font-size: ${$l.size};
343
+ font-size: ${St.size};
477
344
  line-height: 1;
478
345
  font-weight: normal;
479
346
  text-transform: none;
@@ -484,28 +351,28 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
484
351
  text-rendering: auto;
485
352
  -webkit-font-smoothing: antialiased;
486
353
  -moz-osx-font-smoothing: grayscale;
487
- vertical-align: ${$l.verticalAlign};
354
+ vertical-align: ${St.verticalAlign};
488
355
  }
489
356
 
490
357
  i.ft-icon.ft-icon--fluid-topics {
491
- font-family: ${$l.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
358
+ font-family: ${St.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
492
359
 
493
360
  /* Ugly fix because font is broken */
494
- font-size: calc(0.75 * ${$l.size});
495
- line-height: ${$l.size};
361
+ font-size: calc(0.75 * ${St.size});
362
+ line-height: ${St.size};
496
363
  position: relative;
497
364
  top: -4%;
498
365
  justify-content: center;
499
366
  }
500
367
 
501
368
  .ft-icon--file-format {
502
- font-family: ${$l.fileFormatFontFamily}, ft-mime, sans-serif;
369
+ font-family: ${St.fileFormatFontFamily}, ft-mime, sans-serif;
503
370
  }
504
371
 
505
372
  .ft-icon--material {
506
- font-family: ${$l.materialFontFamily}, "Material Icons", sans-serif;
373
+ font-family: ${St.materialFontFamily}, "Material Icons", sans-serif;
507
374
  }
508
- `,kl=xo.extend("--ft-button-color","",Oi.colorPrimary),Il={backgroundColor:xo.extend("--ft-button-background-color","",Oi.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Oi.borderRadiusL),color:kl,fontSize:xo.extend("--ft-button-font-size","",hl.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",kl),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Oi.colorOpacityDisabled,"Design system")},Rl=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Oi.colorOnPrimary)),Ul={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Oi.colorPrimary)),color:Rl,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Rl)},Ll=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Oi.borderRadiusM)),_l=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Al=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Bl=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Wl=[ft`
375
+ `;var Ic=i.extend("--ft-button-color","",A.colorPrimary),rt={backgroundColor:i.extend("--ft-button-background-color","",A.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",A.borderRadiusL),color:Ic,fontSize:i.extend("--ft-button-font-size","",It.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",Ic),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(A.colorOpacityDisabled,"Design system")},Pc=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",A.colorOnPrimary)),Xa={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",A.colorPrimary)),color:Pc,rippleColor:i.extend("--ft-button-primary-ripple-color","",Pc)},le={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",A.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},$c=[P`
509
376
  :host {
510
377
  display: inline-block;
511
378
  max-width: 100%;
@@ -516,7 +383,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
516
383
  box-shadow: 0px 0px 0px transparent;
517
384
  border: 0px solid transparent;
518
385
  text-shadow: 0px 0px 0px transparent;
519
- font-size: ${Il.fontSize};
386
+ font-size: ${rt.fontSize};
520
387
  }
521
388
 
522
389
  button:hover {
@@ -545,31 +412,31 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
545
412
  border: none;
546
413
  pointer-events: auto;
547
414
 
548
- --ft-button-internal-line-height: max(calc(${Il.fontSize} + 2px), ${Il.iconSize});
549
- --ft-button-internal-color: ${Il.color};
550
- ${wo($l.size,Il.iconSize)};
551
- ${wo(xs.color,Il.rippleColor)};
415
+ --ft-button-internal-line-height: max(calc(${rt.fontSize} + 2px), ${rt.iconSize});
416
+ --ft-button-internal-color: ${rt.color};
417
+ ${C(St.size,rt.iconSize)};
418
+ ${C(F.color,rt.rippleColor)};
552
419
 
553
- border-radius: ${Il.borderRadius};
554
- padding: ${Il.verticalPadding} ${Il.horizontalPadding};
555
- background-color: ${Il.backgroundColor};
420
+ border-radius: ${rt.borderRadius};
421
+ padding: ${rt.verticalPadding} ${rt.horizontalPadding};
422
+ background-color: ${rt.backgroundColor};
556
423
  color: var(--ft-button-internal-color);
557
424
  -webkit-mask-image: radial-gradient(white, black);
558
425
  }
559
426
 
560
427
  .ft-button.ft-button--outlined {
561
428
  border: 1px solid var(--ft-button-internal-color);
562
- padding: calc(${Il.verticalPadding} - 1px) calc(${Il.horizontalPadding} - 1px);
429
+ padding: calc(${rt.verticalPadding} - 1px) calc(${rt.horizontalPadding} - 1px);
563
430
  }
564
431
 
565
432
  .ft-button.ft-button--dense {
566
- padding: ${_l} ${Al};
567
- border-radius: ${Ll};
568
- gap: ${Bl};
433
+ padding: ${le.verticalPadding} ${le.horizontalPadding};
434
+ border-radius: ${le.borderRadius};
435
+ gap: ${le.iconPadding};
569
436
  }
570
437
 
571
438
  .ft-button.ft-button--dense.ft-button--outlined {
572
- padding: calc(${_l} - 1px) calc(${Al} - 1px);
439
+ padding: calc(${le.verticalPadding} - 1px) calc(${le.horizontalPadding} - 1px);
573
440
  }
574
441
 
575
442
  .ft-button:not([disabled]):hover {
@@ -577,22 +444,22 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
577
444
  }
578
445
 
579
446
  .ft-button--round {
580
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Il.verticalPadding});
447
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${rt.verticalPadding});
581
448
  }
582
449
 
583
450
  .ft-button--round.ft-button--dense {
584
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_l});
451
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${le.verticalPadding});
585
452
  }
586
453
 
587
454
  .ft-button[disabled] {
588
455
  filter: grayscale(1);
589
- opacity: ${Il.opacityDisabled};
456
+ opacity: ${rt.opacityDisabled};
590
457
  }
591
458
 
592
459
  .ft-button.ft-button--primary {
593
- background-color: ${Ul.backgroundColor};
594
- --ft-button-internal-color: ${Ul.color};
595
- ${wo(xs.color,Ul.rippleColor)};
460
+ background-color: ${Xa.backgroundColor};
461
+ --ft-button-internal-color: ${Xa.color};
462
+ ${C(F.color,Xa.rippleColor)};
596
463
  }
597
464
 
598
465
  .ft-button:focus {
@@ -605,44 +472,43 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
605
472
  white-space: nowrap;
606
473
  text-overflow: ellipsis;
607
474
  display: block;
608
- margin: 0 ${Il.iconPadding};
609
- ${wo(hl.fontSize,"1em")};
610
- ${wo(hl.lineHeight,"var(--ft-button-internal-line-height)")};
475
+ margin: 0 ${rt.iconPadding};
476
+ ${C(It.fontSize,"1em")};
477
+ ${C(It.lineHeight,"var(--ft-button-internal-line-height)")};
611
478
  }
612
479
 
613
480
  .ft-button--dense .ft-button--label {
614
- margin: 0 ${Bl};
481
+ margin: 0 ${le.iconPadding};
615
482
  }
616
483
 
617
484
  .ft-button--label[hidden] {
618
485
  display: none;
619
486
  }
620
487
 
621
- ft-icon {
488
+ [part="icon"] {
622
489
  flex-shrink: 0;
623
490
  position: relative;
624
491
  }
625
492
 
626
- .ft-button--label[hidden] + ft-icon {
627
- margin: 0 calc(${Il.horizontalPadding} * -1);
628
- padding: 0 ${Il.verticalPadding};
493
+ .ft-button--label[hidden] + [part="icon"] {
494
+ margin: 0 calc(${rt.horizontalPadding} * -1);
495
+ padding: 0 ${rt.verticalPadding};
629
496
  }
630
497
 
631
- .ft-button--dense .ft-button--label[hidden] + ft-icon {
632
- margin: 0 calc(${Al} * -1);
633
- padding: 0 ${_l};
498
+ .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
499
+ margin: 0 calc(${le.horizontalPadding} * -1);
500
+ padding: 0 ${le.verticalPadding};
634
501
  }
635
502
 
636
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
637
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
638
- order: -1;
503
+ .ft-button:not(.ft-button--trailing-icon) [part="label"]{
504
+ order: 2;
639
505
  }
640
506
 
641
507
  ft-loader {
642
- ${wo(Cl.size,Il.iconSize)};
643
- ${wo(Cl.color,"var(--ft-button-internal-color)")};
508
+ ${C(Lt.size,rt.iconSize)};
509
+ ${C(Lt.color,"var(--ft-button-internal-color)")};
644
510
  }
645
- `,Yr],Tl={textColor:xo.extend("--ft-switch-text-color","",Oi.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",Oi.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",Oi.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",Oi.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",Oi.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",Oi.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",hl.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",Oi.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",Oi.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",Oi.colorPrimary)},zl={feedbackInputMinWidth:xo.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:xo.external(Oi.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xo.extend("--ft-reader-feedback-send-feedback-color","",Oi.colorOnPrimary),sendFeedbackBackgroundColor:xo.extend("--ft-reader-feedback-send-feedback-background-color","",Oi.colorPrimary),filledRatingColor:xo.extend("--ft-reader-feedback-filled-rating-color","",Oi.colorPrimary),emptyRatingColor:xo.extend("--ft-reader-feedback-empty-rating-color","",Oi.colorOnSurfaceMedium),mainTitleFontSize:xo.external(Us.fontSize,"Typography"),sectionTitleFontSize:xo.external(Ls.fontSize,"Typography"),starsBackgroundColor:xo.create("--ft-reader-feedback-stars-background-color","","COLOR",Oi.colorSurface)},Fl=ft`
511
+ `,lr];var ft={textColor:i.extend("--ft-switch-text-color","",A.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",A.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",A.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",A.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",A.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",A.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",It.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",A.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",A.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",A.colorPrimary)};var ce={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(A.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",A.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",A.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",A.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",A.colorOnSurfaceMedium),mainTitleFontSize:i.external(ze.fontSize,"Typography"),sectionTitleFontSize:i.external(We.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",A.colorSurface)},kc=P`
646
512
  .ft-reader-feedback {
647
513
  box-sizing: border-box;
648
514
  display: flex;
@@ -655,7 +521,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
655
521
  flex-direction: row;
656
522
  align-items: center;
657
523
  margin-left: -6px;
658
- ${wo(Il.backgroundColor,zl.starsBackgroundColor)}
524
+ ${C(rt.backgroundColor,ce.starsBackgroundColor)}
659
525
  }
660
526
 
661
527
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -668,14 +534,14 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
668
534
  }
669
535
 
670
536
  .ft-reader-feedback--rating {
671
- ${wo(Il.color,zl.emptyRatingColor)};
672
- ${wo(Il.rippleColor,zl.filledRatingColor)};
673
- ${wo(Tl.textColor,zl.emptyRatingColor)};
674
- ${wo(Tl.selectedTextColor,zl.filledRatingColor)};
537
+ ${C(rt.color,ce.emptyRatingColor)};
538
+ ${C(rt.rippleColor,ce.filledRatingColor)};
539
+ ${C(ft.textColor,ce.emptyRatingColor)};
540
+ ${C(ft.selectedTextColor,ce.filledRatingColor)};
675
541
  }
676
542
 
677
543
  .ft-reader-feedback--rating .ft-reader-feedback--active {
678
- ${wo(Il.color,zl.filledRatingColor)};
544
+ ${C(rt.color,ce.filledRatingColor)};
679
545
  }
680
546
 
681
547
  .ft-reader-feedback--feedback {
@@ -683,45 +549,41 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
683
549
  }
684
550
 
685
551
  .ft-reader-feedback--rating-date {
686
- color: ${zl.ratedDateColor};
552
+ color: ${ce.ratedDateColor};
687
553
  }
688
554
 
689
555
  .ft-reader-feedback--feedback ft-text-area {
690
- min-width: ${zl.feedbackInputMinWidth};
556
+ min-width: ${ce.feedbackInputMinWidth};
691
557
  }
692
558
 
693
559
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
694
- ${wo(Il.color,zl.sendFeedbackColor)};
695
- ${wo(Il.backgroundColor,zl.sendFeedbackBackgroundColor)};
560
+ ${C(rt.color,ce.sendFeedbackColor)};
561
+ ${C(rt.backgroundColor,ce.sendFeedbackBackgroundColor)};
696
562
  }
697
563
 
698
564
  [part="buttons-container"] {
699
565
  align-self: flex-end;
700
566
  }
701
- `
702
- /**
703
- * @license
704
- * Copyright 2020 Google LLC
705
- * SPDX-License-Identifier: BSD-3-Clause
706
- */,Dl=Symbol.for(""),Pl=t=>{if(t?.r===Dl)return t?._$litStatic$},Ml=t=>({_$litStatic$:t,r:Dl}),jl=new Map,Zl=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Pl(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=jl.get(t))&&(a.raw=a,jl.set(t,e=a)),o=s}return t(e,...o)})(M);var Hl;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Hl||(Hl={}));var Kl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gl extends Dr{constructor(){super(...arguments),this.variant=Hl.body1}render(){return this.element?Zl`
707
- <${Ml(this.element)}
567
+ `;var Mc=Symbol.for(""),tf=r=>{if(r?.r===Mc)return r?._$litStatic$},Ja=r=>({_$litStatic$:r,r:Mc});var Lc=new Map,Dc=r=>(t,...e)=>{let o=e.length,n,a,s=[],l=[],c,d=0,u=!1;for(;d<o;){for(c=t[d];d<o&&(a=e[d],(n=tf(a))!==void 0);)c+=n+t[++d],u=!0;d!==o&&l.push(a),s.push(c),d++}if(d===o&&s.push(t[o]),u){let h=s.join("$$lit$$");(t=Lc.get(h))===void 0&&(s.raw=s,Lc.set(h,t=s)),e=l}return r(t,...e)},Qa=Dc(_s),Cx=Dc(Ns);var hr;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(hr||(hr={}));var Uc=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ht=class extends W{constructor(){super(...arguments),this.variant=hr.body1}render(){return this.element?Qa`
568
+ <${Ja(this.element)}
569
+ part="text"
708
570
  class="ft-typography ft-typography--${this.variant}">
709
571
  <slot></slot>
710
- </${Ml(this.element)}>
711
- `:Zl`
712
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
713
- `}}Gl.styles=[fl,ul,pl,gl,yl,bl,ml,vl,xl,wl,Ol,...Sl],Kl([Oe()],Gl.prototype,"element",void 0),Kl([Oe()],Gl.prototype,"variant",void 0),go("ft-typography")(Gl);var Vl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ql extends Dr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new so(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new so(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
572
+ </${Ja(this.element)}>
573
+ `:Qa`
574
+ <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
575
+ `}};ht.styles=[vc,xc,Sc,Oc,Ur,wc,gi,Ec,Cc,Ac,Rc,..._c];Uc([g()],ht.prototype,"element",void 0);Uc([g()],ht.prototype,"variant",void 0);V("ft-typography")(ht);var Mt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},J=class extends W{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new et(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new et(10),this.moveRipple=t=>{var e,o;let{x:n,y:a}=this.getCoordinates(t),s=(o=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.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(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 $`
714
576
  <style>
715
577
  .ft-ripple .ft-ripple--effect {
716
578
  left: ${this.originX}px;
717
579
  top: ${this.originY}px;
718
580
  }
719
581
  </style>
720
- <div class="${Ze(t)}">
582
+ <div class="${Nt(t)}">
721
583
  <div class="ft-ripple--background"></div>
722
584
  <div class="ft-ripple--effect"></div>
723
585
  </div>
724
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ql.elementDefinitions={},ql.styles=Es,Vl([Oe({type:Boolean})],ql.prototype,"primary",void 0),Vl([Oe({type:Boolean})],ql.prototype,"secondary",void 0),Vl([Oe({type:Boolean})],ql.prototype,"unbounded",void 0),Vl([Oe({type:Boolean})],ql.prototype,"activated",void 0),Vl([Oe({type:Boolean})],ql.prototype,"selected",void 0),Vl([Oe({type:Boolean})],ql.prototype,"disabled",void 0),Vl([Se()],ql.prototype,"hovered",void 0),Vl([Se()],ql.prototype,"focused",void 0),Vl([Se()],ql.prototype,"pressed",void 0),Vl([Se()],ql.prototype,"rippling",void 0),Vl([Se()],ql.prototype,"originX",void 0),Vl([Se()],ql.prototype,"originY",void 0),Vl([$e(".ft-ripple")],ql.prototype,"ripple",void 0),Vl([$e(".ft-ripple--effect")],ql.prototype,"rippleEffect",void 0),go("ft-ripple")(ql);const Yl=xo.create("--ft-tooltip-distance","","SIZE","4px"),Jl=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Xl=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Ql=xo.create("--ft-tooltip-z-index","","NUMBER","100"),tc=xo.external(Oi.borderRadiusS,"Design system"),ec=xo.create("--ft-tooltip-max-width","","SIZE","150px"),oc=ft`
586
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((e=this.target)!==null&&e!==void 0?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>c=>{l.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(c)},o=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",o,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",o,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,o=t,n,a;return e.x!=null?{x:n,y:a}=e:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};J.elementDefinitions={};J.styles=gc;Mt([g({type:Boolean})],J.prototype,"primary",void 0);Mt([g({type:Boolean})],J.prototype,"secondary",void 0);Mt([g({type:Boolean})],J.prototype,"unbounded",void 0);Mt([g({type:Boolean})],J.prototype,"activated",void 0);Mt([g({type:Boolean})],J.prototype,"selected",void 0);Mt([g({type:Boolean})],J.prototype,"disabled",void 0);Mt([H()],J.prototype,"hovered",void 0);Mt([H()],J.prototype,"focused",void 0);Mt([H()],J.prototype,"pressed",void 0);Mt([H()],J.prototype,"rippling",void 0);Mt([H()],J.prototype,"originX",void 0);Mt([H()],J.prototype,"originY",void 0);Mt([G(".ft-ripple")],J.prototype,"ripple",void 0);Mt([G(".ft-ripple--effect")],J.prototype,"rippleEffect",void 0);V("ft-ripple")(J);var Br={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Bc=P`
725
587
  .ft-tooltip--container {
726
588
  display: block;
727
589
  }
@@ -736,21 +598,21 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
736
598
  box-sizing: border-box;
737
599
  overflow: hidden;
738
600
  width: max-content;
739
- max-width: ${ec};
601
+ max-width: ${Br.maxWidth};
740
602
  text-align: center;
741
- padding: ${Yl};
742
- z-index: ${Ql};
603
+ padding: ${Br.distance};
604
+ z-index: ${Br.zIndex};
743
605
  }
744
606
 
745
607
  .ft-tooltip--content {
746
608
  padding: 4px 8px;
747
- border-radius: ${tc};
748
- background-color: ${Xl};
749
- color: ${Jl};
609
+ border-radius: ${Br.borderRadiusS};
610
+ background-color: ${Br.backgroundColor};
611
+ color: ${Br.color};
750
612
  position: relative;
751
613
  word-break: break-word;
752
614
  }
753
- `;var ic,rc,nc,ac=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sc extends Dr{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
615
+ `;var Dt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},nt=class extends W{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 et,this.revealDebouncer=new et}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
754
616
  <div part="container"
755
617
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
756
618
  @mouseenter=${this.onHover}
@@ -768,12 +630,12 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
768
630
  </div>
769
631
  </div>
770
632
  </div>
771
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ir(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}sc.elementDefinitions={"ft-typography":Gl},sc.styles=oc,ac([Oe()],sc.prototype,"text",void 0),ac([Oe({type:Boolean})],sc.prototype,"manual",void 0),ac([Oe({type:Boolean})],sc.prototype,"inline",void 0),ac([Oe({type:Number})],sc.prototype,"delay",void 0),ac([Oe()],sc.prototype,"position",void 0),ac([Ie()],sc.prototype,"slotNodes",void 0),ac([$e(".ft-tooltip--container")],sc.prototype,"container",void 0),ac([$e(".ft-tooltip")],sc.prototype,"tooltip",void 0),ac([$e(".ft-tooltip--content")],sc.prototype,"tooltipContent",void 0),ac([Se()],sc.prototype,"visible",void 0),ac([Ce({passive:!0})],sc.prototype,"onTouch",null),ac([Ce({passive:!0})],sc.prototype,"onHover",null),ac([Ce({passive:!0})],sc.prototype,"onOut",null),ac([Ce({passive:!0})],sc.prototype,"onClick",null),go("ft-tooltip")(sc),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(ic||(ic={})),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;"}(rc||(rc={})),new Map([...["abw"].map((t=>[t,rc.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,rc.AUDIO])),...["avi"].map((t=>[t,rc.AVI])),...["chm","xhs"].map((t=>[t,rc.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,rc.CODE])),...["csv"].map((t=>[t,rc.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,rc.DITA])),...["epub"].map((t=>[t,rc.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,rc.EXCEL])),...["flac"].map((t=>[t,rc.FLAC])),...["gif"].map((t=>[t,rc.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,rc.GZIP])),...["html","htm","xhtml"].map((t=>[t,rc.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,rc.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,rc.JPEG])),...["json"].map((t=>[t,rc.JSON])),...["m4a","m4p"].map((t=>[t,rc.M4A])),...["mov","qt"].map((t=>[t,rc.MOV])),...["mp3"].map((t=>[t,rc.MP3])),...["mp4","m4v"].map((t=>[t,rc.MP4])),...["ogg","oga"].map((t=>[t,rc.OGG])),...["pdf","ps"].map((t=>[t,rc.PDF])),...["png"].map((t=>[t,rc.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,rc.POWERPOINT])),...["rar"].map((t=>[t,rc.RAR])),...["stp"].map((t=>[t,rc.STP])),...["txt","rtf","md","mdown"].map((t=>[t,rc.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,rc.VIDEO])),...["wav"].map((t=>[t,rc.WAV])),...["wma"].map((t=>[t,rc.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,rc.WORD])),...["xml","xsl","rdf"].map((t=>[t,rc.XML])),...["yaml","yml","x-yaml"].map((t=>[t,rc.YAML])),...["zip"].map((t=>[t,rc.ZIP]))]),rc.ABW,rc.AUDIO,rc.AVI,rc.CHM,rc.CODE,rc.CSV,rc.DITA,rc.EPUB,rc.EXCEL,rc.FLAC,rc.GIF,rc.GZIP,rc.HTML,rc.IMAGE,rc.JPEG,rc.JSON,rc.M4A,rc.MOV,rc.MP3,rc.MP4,rc.OGG,rc.PDF,rc.PNG,rc.POWERPOINT,rc.RAR,rc.STP,rc.TEXT,rc.UNKNOWN,rc.VIDEO,rc.WAV,rc.WMA,rc.WORD,rc.XML,rc.YAML,rc.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(nc||(nc={}));var lc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cc extends Dr{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(nc).includes(this.variant)?this.variant:nc.fluid_topics,e=t!==nc.material||!!this.value;return Jt`
633
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let 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";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",fo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};nt.elementDefinitions={"ft-typography":ht};nt.styles=Bc;Dt([g()],nt.prototype,"text",void 0);Dt([g({type:Boolean})],nt.prototype,"manual",void 0);Dt([g({type:Boolean})],nt.prototype,"inline",void 0);Dt([g({type:Number})],nt.prototype,"delay",void 0);Dt([g()],nt.prototype,"position",void 0);Dt([oo()],nt.prototype,"slotNodes",void 0);Dt([G(".ft-tooltip--container")],nt.prototype,"container",void 0);Dt([G(".ft-tooltip")],nt.prototype,"tooltip",void 0);Dt([G(".ft-tooltip--content")],nt.prototype,"tooltipContent",void 0);Dt([H()],nt.prototype,"visible",void 0);Dt([ye({passive:!0})],nt.prototype,"onTouch",null);Dt([ye({passive:!0})],nt.prototype,"onHover",null);Dt([ye({passive:!0})],nt.prototype,"onOut",null);Dt([ye({passive:!0})],nt.prototype,"onClick",null);V("ft-tooltip")(nt);var mr;(function(r){r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.STAR="&#xe94c;",r.STAR_PLAIN="&#xe900;",r.DESKTOP="&#xe95e;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.THIN_ARROW_UP="&#xe95c;",r.CONTEXTUAL="&#xe95b;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.UNSTRUCTURED_DOC="&#xe95a;",r.RESET="&#xe958;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.MY_COLLECTIONS="&#xe955;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_LIBRARY="&#xe959;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.FEEDBACK_PLAIN="&#xe951;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.SHORTCUT_MENU="&#xe946;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.ACCOUNT_SETTINGS="&#xe943;",r.ONLINE="&#xe941;",r.OFFLINE="&#xe816;",r.UPLOAD="&#xe940;",r.BOOK_PLAIN="&#xe93f;",r.SYNC="&#xe93d;",r.SHARED_PBK="&#xe931;",r.COLLECTIONS="&#xe92a;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.BOOKS="&#xe806;",r.LOCKER="&#xe93b;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SAVE="&#xe93a;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.FILTERS="&#xe935;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.STRIPE_ARROW_LEFT="&#xe933;",r.ATTACHMENTS="&#xe932;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.EXPORT="&#xe80f;",r.MENU="&#xe807;",r.TAG="&#xe93e;",r.TAG_PLAIN="&#xe942;",r.COPY_TO_CLIPBOARD="&#xe930;",r.COLUMNS="&#xe928;",r.ARTICLE="&#xe927;",r.CLOSE="&#xe909;",r.OCTAGON_XMARK="&#xe97d;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.LOGOUT="&#xe923;",r.SIGN_IN="&#xe922;",r.THIN_ARROW="&#xe921;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.INFO="&#xe919;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.SHARE="&#xe80f1;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.EXTLINK="&#xe814;",r.EXTLINK_LIGHT="&#xe978;",r.CALENDAR="&#xe815;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.TOPICS="&#xe901;",r.EYE="&#xf06e;",r.EYE_SLASH="&#xe970;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN_THEME="&#xe911;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.HOME="&#xe80b;",r.TRANSLATE="&#xe924;",r.USER="&#xe813;",r.ADMIN="&#xe90f;",r.ANALYTICS="&#xe929;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_USERS="&#xe912;",r.ADMIN_INTEGRATION="&#xe93c;",r.ADMIN_PORTAL="&#xe94b;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.EXPAND_WIDE="&#xe972;",r.X_MARK="&#xe971;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CONSUMER="&#xe97c;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;"})(mr||(mr={}));var R;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(R||(R={}));var g0=new Map([...["abw"].map(r=>[r,R.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(r=>[r,R.AUDIO]),...["avi"].map(r=>[r,R.AVI]),...["chm","xhs"].map(r=>[r,R.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(r=>[r,R.CODE]),...["csv"].map(r=>[r,R.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,R.DITA]),...["epub"].map(r=>[r,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,R.EXCEL]),...["flac"].map(r=>[r,R.FLAC]),...["gif"].map(r=>[r,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,R.GZIP]),...["html","htm","xhtml"].map(r=>[r,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,R.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,R.JPEG]),...["json"].map(r=>[r,R.JSON]),...["m4a","m4p"].map(r=>[r,R.M4A]),...["mov","qt"].map(r=>[r,R.MOV]),...["mp3"].map(r=>[r,R.MP3]),...["mp4","m4v"].map(r=>[r,R.MP4]),...["ogg","oga"].map(r=>[r,R.OGG]),...["pdf","ps"].map(r=>[r,R.PDF]),...["png"].map(r=>[r,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,R.POWERPOINT]),...["rar"].map(r=>[r,R.RAR]),...["stp"].map(r=>[r,R.STP]),...["txt","rtf","md","mdown"].map(r=>[r,R.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(r=>[r,R.VIDEO]),...["wav"].map(r=>[r,R.WAV]),...["wma"].map(r=>[r,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,R.WORD]),...["xml","xsl","rdf"].map(r=>[r,R.XML]),...["yaml","yml","x-yaml"].map(r=>[r,R.YAML]),...["zip"].map(r=>[r,R.ZIP])]);var y0={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Ut;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ut||(Ut={}));var yi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends W{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(Ut).includes(this.variant)?this.variant:Ut.fluid_topics,e=t!==Ut.material||!!this.value;return $`
772
634
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
773
- ${Je(this.resolvedIcon)}
635
+ ${un(this.resolvedIcon)}
774
636
  <slot ?hidden=${e}></slot>
775
637
  </i>
776
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case nc.file_format:this.resolvedIcon=null!==(t=rc[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case nc.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=ic[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}cc.elementDefinitions={},cc.styles=El,lc([Oe()],cc.prototype,"variant",void 0),lc([Oe()],cc.prototype,"value",void 0),lc([Se()],cc.prototype,"resolvedIcon",void 0),lc([$e("slot")],cc.prototype,"slottedContent",void 0),go("ft-icon")(cc);const dc={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",Oi.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",Oi.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},hc=ft`
638
+ `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ut.file_format:this.resolvedIcon=(t=R[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case Ut.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(e=mr[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};gt.elementDefinitions={};gt.styles=Tc;yi([g()],gt.prototype,"variant",void 0);yi([g()],gt.prototype,"value",void 0);yi([H()],gt.prototype,"resolvedIcon",void 0);yi([G("slot")],gt.prototype,"slottedContent",void 0);V("ft-icon")(gt);var vt={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",A.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",A.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Fc=P`
777
639
  .ft-switch-option {
778
640
  position: relative;
779
641
  display: inline-block;
@@ -787,20 +649,20 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
787
649
  }
788
650
 
789
651
  .ft-switch-option--content {
790
- --ft-switch-option-internal-line-height: calc(${Tl.fontSize} + 2px);
791
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Tl.iconSize});
652
+ --ft-switch-option-internal-line-height: calc(${ft.fontSize} + 2px);
653
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ft.iconSize});
792
654
 
793
655
  border-style: solid;
794
- border-color: ${Tl.borderColor};
795
- border-width: ${dc.borderWidthVertical} ${dc.borderWidthRight} ${dc.borderWidthVertical} ${dc.borderWidthLeft};
796
- border-radius: ${dc.borderRadiusLeft} ${dc.borderRadiusRight} ${dc.borderRadiusRight} ${dc.borderRadiusLeft};
656
+ border-color: ${ft.borderColor};
657
+ border-width: ${vt.borderWidthVertical} ${vt.borderWidthRight} ${vt.borderWidthVertical} ${vt.borderWidthLeft};
658
+ border-radius: ${vt.borderRadiusLeft} ${vt.borderRadiusRight} ${vt.borderRadiusRight} ${vt.borderRadiusLeft};
797
659
  display: flex;
798
660
  align-items: center;
799
661
  justify-content: center;
800
662
  overflow: hidden;
801
- ${wo($l.size,Tl.iconSize)};
663
+ ${C(St.size,ft.iconSize)};
802
664
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
803
- background-color: ${Tl.backgroundColor};
665
+ background-color: ${ft.backgroundColor};
804
666
  -webkit-mask-image: radial-gradient(white, black);
805
667
  }
806
668
 
@@ -809,28 +671,28 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
809
671
  }
810
672
 
811
673
  .ft-switch-option--selected .ft-switch-option--content:before {
812
- background-color: ${Tl.selectedBackgroundColor};
813
- border-radius: ${dc.borderRadiusLeft} ${dc.borderRadiusRight} ${dc.borderRadiusRight} ${dc.borderRadiusLeft};
674
+ background-color: ${ft.selectedBackgroundColor};
675
+ border-radius: ${vt.borderRadiusLeft} ${vt.borderRadiusRight} ${vt.borderRadiusRight} ${vt.borderRadiusLeft};
814
676
  position: absolute;
815
677
  inset: 0;
816
678
  content: "";
817
679
  z-index: 1;
818
- opacity: ${Oi.opacityPrimaryOnSurfaceSelected};
680
+ opacity: ${A.opacityPrimaryOnSurfaceSelected};
819
681
  }
820
682
 
821
683
  .ft-switch-option--label {
822
- color: ${Tl.textColor};
684
+ color: ${ft.textColor};
823
685
  overflow: hidden;
824
686
  white-space: nowrap;
825
687
  text-overflow: ellipsis;
826
688
  display: block;
827
689
  margin: 0 8px;
828
- ${wo(hl.fontSize,Tl.fontSize)};
829
- ${wo(hl.lineHeight,"var(--ft-switch-option-internal-content-height)")}
690
+ ${C(It.fontSize,ft.fontSize)};
691
+ ${C(It.lineHeight,"var(--ft-switch-option-internal-content-height)")}
830
692
  }
831
693
 
832
694
  .ft-switch-option--selected .ft-switch-option--label {
833
- color: ${Tl.selectedTextColor};
695
+ color: ${ft.selectedTextColor};
834
696
  }
835
697
 
836
698
  .ft-switch-option--label[hidden] {
@@ -838,7 +700,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
838
700
  }
839
701
 
840
702
  .ft-switch-option--ripple {
841
- ${wo(xs.color,Tl.rippleColor)};
703
+ ${C(F.color,ft.rippleColor)};
842
704
  }
843
705
 
844
706
  ft-icon, ft-ripple, ft-typography {
@@ -851,20 +713,20 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
851
713
 
852
714
  ft-icon {
853
715
  flex-shrink: 0;
854
- color: ${Tl.iconColor};
716
+ color: ${ft.iconColor};
855
717
  }
856
718
 
857
719
  .ft-switch-option--selected ft-icon {
858
- color: ${Tl.selectedTextColor};
720
+ color: ${ft.selectedTextColor};
859
721
  }
860
- `;var fc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class uc extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class pc extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class gc extends Dr{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new pc(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Jt`
861
- <label part="label" for="input" class=${Ze(t)}
722
+ `;var de=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ts=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},es=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},yt=class extends W{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new es(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip($`
723
+ <label part="label" for="input" class=${Nt(t)}
862
724
  @click=${this.onChange}>
863
725
  <div class="ft-switch-option--content">
864
726
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
865
727
  <ft-typography part="text"
866
728
  variant="button"
867
- class="ft-switch-option--label ${fs?"ft-safari-ellipsis-fix":""}"
729
+ class="ft-switch-option--label ${Oo?"ft-safari-ellipsis-fix":""}"
868
730
  ?hidden=${!this.hasTextContent()}>
869
731
  <slot @slotchange=${this.onSlotchange}></slot>
870
732
  </ft-typography>
@@ -873,29 +735,29 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
873
735
  </label>
874
736
  <input id="input" type="radio" class="ft-switch-option--input"
875
737
  .checked=${this.selected}>
876
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:Jt`
738
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:$`
877
739
  <ft-tooltip part="tooltip"
878
740
  text="${this.getLabel()}"
879
741
  position="${this.tooltipPosition}">
880
742
  ${t}
881
743
  </ft-tooltip>
882
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new uc(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Jt`
744
+ `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ts(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
883
745
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
884
- `:te}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}gc.elementDefinitions={"ft-ripple":ql,"ft-typography":Gl,"ft-tooltip":sc,"ft-icon":cc},gc.styles=[Xr,hc],fc([Oe()],gc.prototype,"value",void 0),fc([Oe()],gc.prototype,"icon",void 0),fc([Oe()],gc.prototype,"iconVariant",void 0),fc([Oe()],gc.prototype,"label",void 0),fc([Oe()],gc.prototype,"tooltipPosition",void 0),fc([Oe({type:Boolean,reflect:!0})],gc.prototype,"selected",void 0),fc([Oe({type:Boolean})],gc.prototype,"trailingIcon",void 0),fc([Oe({type:Boolean})],gc.prototype,"unselectable",void 0),fc([$e(".ft-switch-option--content slot")],gc.prototype,"slottedContent",void 0),fc([$e(".ft-switch-option--input")],gc.prototype,"input",void 0);var yc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bc extends CustomEvent{constructor(t){super("change",{detail:t})}}class mc extends Dr{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Jt`
885
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Ze(t)}">
746
+ `:B}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};yt.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-tooltip":nt,"ft-icon":gt};yt.styles=[cr,Fc];de([g()],yt.prototype,"value",void 0);de([g()],yt.prototype,"icon",void 0);de([g()],yt.prototype,"iconVariant",void 0);de([g()],yt.prototype,"label",void 0);de([g()],yt.prototype,"tooltipPosition",void 0);de([g({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0);de([g({type:Boolean})],yt.prototype,"trailingIcon",void 0);de([g({type:Boolean})],yt.prototype,"unselectable",void 0);de([G(".ft-switch-option--content slot")],yt.prototype,"slottedContent",void 0);de([G(".ft-switch-option--input")],yt.prototype,"input",void 0);var wo=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},rs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Wt=class extends W{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
747
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Nt(t)}">
886
748
  <slot @slotchange=${this.onSlotchange}
887
749
  @option-change=${this.onOptionChangeByScript}
888
750
  @option-change-by-user=${this.onOptionChangeByUser}
889
751
  ></slot>
890
752
  </div>
891
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof gc&&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 bc(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}))}}mc.elementDefinitions={},mc.styles=ft`
753
+ `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e!=null&&(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=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof yt&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.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 rs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Wt.elementDefinitions={};Wt.styles=P`
892
754
  :host {
893
755
  display: inline-block;
894
756
  }
895
757
 
896
758
  .ft-switch {
897
- border-radius: ${Tl.borderRadius};
898
- outline-color: ${Tl.outlineColor};
759
+ border-radius: ${ft.borderRadius};
760
+ outline-color: ${ft.outlineColor};
899
761
  }
900
762
 
901
763
  .ft-switch slot {
@@ -904,25 +766,25 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
904
766
  }
905
767
 
906
768
  .ft-switch slot::slotted(ft-switch-option) {
907
- ${wo(dc.borderRadiusLeft,"0")};
908
- ${wo(dc.borderRadiusRight,"0")};
909
- ${wo(dc.borderWidthLeft,"0")};
769
+ ${C(vt.borderRadiusLeft,"0")};
770
+ ${C(vt.borderRadiusRight,"0")};
771
+ ${C(vt.borderWidthLeft,"0")};
910
772
  }
911
773
 
912
774
  .ft-switch slot::slotted(ft-switch-option:first-child) {
913
- ${wo(dc.borderRadiusLeft,Tl.borderRadius)};
914
- ${wo(dc.borderWidthLeft,"1px")};
775
+ ${C(vt.borderRadiusLeft,ft.borderRadius)};
776
+ ${C(vt.borderWidthLeft,"1px")};
915
777
  }
916
778
 
917
779
  .ft-switch slot::slotted(ft-switch-option:last-child) {
918
- ${wo(dc.borderRadiusRight,Tl.borderRadius)};
780
+ ${C(vt.borderRadiusRight,ft.borderRadius)};
919
781
  }
920
782
 
921
783
  .ft-switch--dense slot::slotted(ft-switch-option) {
922
784
  --ft-switch-internal-vertical-padding: 2px;
923
785
  --ft-switch-internal-horizontal-padding: 4px;
924
786
  }
925
- `,yc([Oe({type:Boolean})],mc.prototype,"dense",void 0),yc([Oe({type:Boolean})],mc.prototype,"unselectable",void 0),yc([$e(".ft-switch slot")],mc.prototype,"slottedContent",void 0),yc([Se()],mc.prototype,"selectedOption",void 0),yc([$e(".ft-switch")],mc.prototype,"ftSwitchDiv",void 0),go("ft-switch")(mc),go("ft-switch-option")(gc);const vc=xo.external(Oi.colorOutline,"Design system"),xc=xo.external(Oi.colorOnSurfaceMedium,"Design system"),wc=ft`
787
+ `;wo([g({type:Boolean})],Wt.prototype,"dense",void 0);wo([g({type:Boolean})],Wt.prototype,"unselectable",void 0);wo([G(".ft-switch slot")],Wt.prototype,"slottedContent",void 0);wo([H()],Wt.prototype,"selectedOption",void 0);wo([G(".ft-switch")],Wt.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Wt);V("ft-switch-option")(yt);var zc={colorOutline:i.external(A.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(A.colorOnSurfaceMedium,"Design system")},Wc=P`
926
788
  :host {
927
789
  display: block;
928
790
  }
@@ -933,17 +795,17 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
933
795
 
934
796
  ft-icon {
935
797
  transform: rotate(-45deg);
936
- color: ${vc};
798
+ color: ${zc.colorOutline};
937
799
  }
938
800
 
939
801
  .ft-resizer--dragging ft-icon,
940
802
  .ft-resizer:hover ft-icon {
941
- color: ${xc};
803
+ color: ${zc.colorOnSurfaceMedium};
942
804
  }
943
- `;var Oc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sc extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Cc extends Dr{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=nc.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Jt`
805
+ `;var He=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},os=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},_t=class extends W{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ut.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 $`
944
806
  <style>
945
807
  .ft-resizer {
946
- cursor: ${ht(this.cursor)}
808
+ cursor: ${he(this.cursor)}
947
809
  }
948
810
  </style>
949
811
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -951,25 +813,25 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
951
813
  @touchstart=${this.initDragFromTouch}>
952
814
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
953
815
  </div>
954
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new Sc(o,i))}}Cc.elementDefinitions={"ft-icon":cc},Cc.styles=[Yr,wc],Oc([Oe({type:Number})],Cc.prototype,"initialWidth",void 0),Oc([Oe({type:Number})],Cc.prototype,"initialHeight",void 0),Oc([Oe()],Cc.prototype,"icon",void 0),Oc([Oe()],Cc.prototype,"iconVariant",void 0),Oc([Oe()],Cc.prototype,"cursor",void 0),Oc([Se()],Cc.prototype,"dragging",void 0),Oc([Ce({passive:!0})],Cc.prototype,"initDragFromMouse",null),Oc([Ce({passive:!0})],Cc.prototype,"initDragFromTouch",null),go("ft-resizer")(Cc);const Nc={fontSize:xo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:xo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:xo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:xo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:xo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:xo.extend("--ft-input-label-border-color","",Oi.colorOutline),textColor:xo.extend("--ft-input-label-text-color","",Oi.colorOnSurfaceMedium),disabledTextColor:xo.extend("--ft-input-label-disabled-text-color","",Oi.colorOnSurfaceDisabled),colorSurface:xo.external(Oi.colorSurface,"Design system"),borderRadiusS:xo.external(Oi.borderRadiusS,"Design system"),colorError:xo.external(Oi.colorError,"Design system")},$c=ft`
816
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new os(o,n))}};_t.elementDefinitions={"ft-icon":gt};_t.styles=[lr,Wc];He([g({type:Number})],_t.prototype,"initialWidth",void 0);He([g({type:Number})],_t.prototype,"initialHeight",void 0);He([g()],_t.prototype,"icon",void 0);He([g()],_t.prototype,"iconVariant",void 0);He([g()],_t.prototype,"cursor",void 0);He([H()],_t.prototype,"dragging",void 0);He([ye({passive:!0})],_t.prototype,"initDragFromMouse",null);He([ye({passive:!0})],_t.prototype,"initDragFromTouch",null);V("ft-resizer")(_t);var U={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",A.colorOutline),textColor:i.extend("--ft-input-label-text-color","",A.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",A.colorOnSurfaceDisabled),colorSurface:i.external(A.colorSurface,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system")},Hc=P`
955
817
  .ft-input-label {
956
818
  position: absolute;
957
819
  inset: 0;
958
820
  display: flex;
959
- background-color: ${Nc.colorSurface};
960
- border-radius: ${Nc.borderRadiusS} ${Nc.borderRadiusS} 0 0;
821
+ background-color: ${U.colorSurface};
822
+ border-radius: ${U.borderRadiusS} ${U.borderRadiusS} 0 0;
961
823
  }
962
824
 
963
825
  .ft-input-label--outlined {
964
- border-radius: ${Nc.borderRadiusS};
826
+ border-radius: ${U.borderRadiusS};
965
827
  }
966
828
 
967
829
  .ft-input-label {
968
- border-color: ${Nc.borderColor};
830
+ border-color: ${U.borderColor};
969
831
  }
970
832
 
971
833
  .ft-input-label.ft-input-label--in-error {
972
- border-color: ${Nc.colorError}
834
+ border-color: ${U.colorError}
973
835
  }
974
836
 
975
837
  .ft-input-label:before,
@@ -982,7 +844,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
982
844
  }
983
845
 
984
846
  .ft-input-label:before {
985
- width: calc(${Nc.horizontalSpacing} - 4px);
847
+ width: calc(${U.horizontalSpacing} - 4px);
986
848
  flex-shrink: 0;
987
849
  }
988
850
 
@@ -998,20 +860,20 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
998
860
  border-bottom-width: 1px;
999
861
  border-bottom-style: solid;
1000
862
  border-color: inherit;
1001
- color: ${Nc.textColor};
863
+ color: ${U.textColor};
1002
864
  transition: font-size 250ms, line-height 250ms, color 250ms;
1003
- max-width: calc(${Nc.labelMaxWidth} - 2 * (${Nc.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
865
+ max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1004
866
  text-overflow: ellipsis;
1005
- ${wo(Xs.fontSize,Nc.fontSize)};
1006
- ${wo(Xs.lineHeight,Nc.fontSize)};
867
+ ${C(Qt.fontSize,U.fontSize)};
868
+ ${C(Qt.lineHeight,U.fontSize)};
1007
869
  }
1008
870
 
1009
871
  .ft-input-label--in-error .ft-input-label--text {
1010
- color: ${Nc.colorError}
872
+ color: ${U.colorError}
1011
873
  }
1012
874
 
1013
875
  .ft-input-label--disabled .ft-input-label--text {
1014
- color: ${Nc.disabledTextColor};
876
+ color: ${U.disabledTextColor};
1015
877
  }
1016
878
 
1017
879
  .ft-input-label--hidden-text {
@@ -1028,19 +890,19 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1028
890
  overflow: hidden;
1029
891
  white-space: nowrap;
1030
892
  text-overflow: ellipsis;
1031
- padding: ${Nc.verticalSpacing} 4px;
1032
- margin: calc(${Nc.verticalSpacing} * -1) 0;
893
+ padding: ${U.verticalSpacing} 4px;
894
+ margin: calc(${U.verticalSpacing} * -1) 0;
1033
895
  max-width: 100%;
1034
896
  box-sizing: border-box;
1035
897
  }
1036
898
 
1037
899
  .ft-input-label--raised .ft-input-label--text {
1038
- ${wo(Xs.fontSize,Nc.raisedFontSize)};
1039
- ${wo(Xs.lineHeight,Nc.raisedFontSize)};
900
+ ${C(Qt.fontSize,U.raisedFontSize)};
901
+ ${C(Qt.lineHeight,U.raisedFontSize)};
1040
902
  }
1041
903
 
1042
904
  .ft-input-label--raised .ft-input-label--floating-text {
1043
- top: ${Nc.verticalSpacing};
905
+ top: ${U.verticalSpacing};
1044
906
  }
1045
907
 
1046
908
  .ft-input-label--outlined .ft-input-label--text,
@@ -1053,36 +915,36 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1053
915
  .ft-input-label--outlined:before {
1054
916
  border-left-width: 1px;
1055
917
  border-left-style: solid;
1056
- border-radius: ${Nc.borderRadiusS} 0 0 ${Nc.borderRadiusS};
918
+ border-radius: ${U.borderRadiusS} 0 0 ${U.borderRadiusS};
1057
919
  }
1058
920
 
1059
921
  .ft-input-label--outlined:after {
1060
922
  border-right-width: 1px;
1061
923
  border-right-style: solid;
1062
- border-radius: 0 ${Nc.borderRadiusS} ${Nc.borderRadiusS} 0;
924
+ border-radius: 0 ${U.borderRadiusS} ${U.borderRadiusS} 0;
1063
925
  }
1064
926
 
1065
927
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1066
928
  padding: 2px 4px;
1067
- z-index: ${Nc.raisedZIndex};
1068
- background-color: ${Nc.colorSurface};
1069
- border-radius: ${Nc.borderRadiusS};
929
+ z-index: ${U.raisedZIndex};
930
+ background-color: ${U.colorSurface};
931
+ border-radius: ${U.borderRadiusS};
1070
932
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1071
933
  }
1072
934
 
1073
935
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1074
936
  border-top: none;
1075
937
  }
1076
- `;var Ec=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class kc extends Dr{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Jt`
1077
- <div class="${Ze(t)}">
1078
- ${this.text?Jt`
938
+ `;var Eo=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Pt=class extends W{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let 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 $`
939
+ <div class="${Nt(t)}">
940
+ ${this.text?$`
1079
941
  <div class="ft-input-label--text ft-typography--caption">
1080
942
  <span class="ft-input-label--floating-text">${this.text}</span>
1081
943
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1082
944
  </div>
1083
945
  `:null}
1084
946
  </div>
1085
- `}}kc.elementDefinitions={},kc.styles=[ml,$c],Ec([Oe({type:String})],kc.prototype,"text",void 0),Ec([Oe({type:Boolean})],kc.prototype,"raised",void 0),Ec([Oe({type:Boolean})],kc.prototype,"outlined",void 0),Ec([Oe({type:Boolean})],kc.prototype,"disabled",void 0),Ec([Oe({type:Boolean})],kc.prototype,"error",void 0),go("ft-input-label")(kc);const Ic={fontSize:xo.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-area-helper-color","",Oi.colorOnSurfaceMedium),colorPrimary:xo.external(Oi.colorPrimary,"Design system"),colorOnSurface:xo.external(Oi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(Oi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(Oi.borderRadiusS,"Design system"),colorError:xo.external(Oi.colorError,"Design system")},Rc=ft`
947
+ `}};Pt.elementDefinitions={};Pt.styles=[gi,Hc];Eo([g({type:String})],Pt.prototype,"text",void 0);Eo([g({type:Boolean})],Pt.prototype,"raised",void 0);Eo([g({type:Boolean})],Pt.prototype,"outlined",void 0);Eo([g({type:Boolean})],Pt.prototype,"disabled",void 0);Eo([g({type:Boolean})],Pt.prototype,"error",void 0);V("ft-input-label")(Pt);var Q={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",A.colorOnSurfaceMedium),colorPrimary:i.external(A.colorPrimary,"Design system"),colorOnSurface:i.external(A.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(A.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system")},Vc=P`
1086
948
  *:focus {
1087
949
  outline: none;
1088
950
  }
@@ -1094,10 +956,10 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1094
956
  }
1095
957
 
1096
958
  ft-input-label {
1097
- ${wo(Nc.fontSize,Ic.fontSize)};
1098
- ${wo(Nc.raisedFontSize,Ic.labelSize)};
1099
- ${wo(Nc.verticalSpacing,Ic.verticalSpacing)};
1100
- ${wo(Nc.horizontalSpacing,Ic.horizontalSpacing)};
959
+ ${C(U.fontSize,Q.fontSize)};
960
+ ${C(U.raisedFontSize,Q.labelSize)};
961
+ ${C(U.verticalSpacing,Q.verticalSpacing)};
962
+ ${C(U.horizontalSpacing,Q.horizontalSpacing)};
1101
963
  }
1102
964
 
1103
965
  .ft-text-area--main-panel {
@@ -1115,8 +977,8 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1115
977
  }
1116
978
 
1117
979
  .ft-text-area--input-panel ft-ripple {
1118
- ${wo(xs.opacityContentOnSurfaceHover,"0.08")};
1119
- ${wo(xs.opacityContentOnSurfacePressed,"0.04")};
980
+ ${C(F.opacityContentOnSurfaceHover,"0.08")};
981
+ ${C(F.opacityContentOnSurfacePressed,"0.04")};
1120
982
  }
1121
983
 
1122
984
  .ft-text-area--input {
@@ -1128,12 +990,12 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1128
990
  align-self: stretch;
1129
991
  resize: none;
1130
992
 
1131
- ${wo(Hs.fontSize,Ic.fontSize)};
1132
- ${wo(Hs.lineHeight,Ic.fontSize)};
1133
- color: ${Ic.colorOnSurface};
993
+ ${C(qt.fontSize,Q.fontSize)};
994
+ ${C(qt.lineHeight,Q.fontSize)};
995
+ color: ${Q.colorOnSurface};
1134
996
 
1135
- padding: 0 ${Ic.horizontalSpacing};
1136
- margin: calc(${Ic.verticalSpacing} + ${Ic.labelSize} / 2) 0 ${Ic.verticalSpacing} 0;
997
+ padding: 0 ${Q.horizontalSpacing};
998
+ margin: calc(${Q.verticalSpacing} + ${Q.labelSize} / 2) 0 ${Q.verticalSpacing} 0;
1137
999
 
1138
1000
  border: none;
1139
1001
  background: none;
@@ -1142,7 +1004,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1142
1004
  }
1143
1005
 
1144
1006
  .ft-text-area--disabled .ft-text-area--input {
1145
- color: ${Ic.colorOnSurfaceDisabled};
1007
+ color: ${Q.colorOnSurfaceDisabled};
1146
1008
  }
1147
1009
 
1148
1010
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1150,59 +1012,59 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1150
1012
  }
1151
1013
 
1152
1014
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1153
- ${wo(Nc.borderColor,Ic.colorPrimary)};
1154
- ${wo(Nc.textColor,Ic.colorPrimary)};
1015
+ ${C(U.borderColor,Q.colorPrimary)};
1016
+ ${C(U.textColor,Q.colorPrimary)};
1155
1017
  }
1156
1018
 
1157
1019
  .ft-text-area--filled .ft-text-area--input-panel {
1158
- border-radius: ${Ic.borderRadiusS} ${Ic.borderRadiusS} 0 0;
1020
+ border-radius: ${Q.borderRadiusS} ${Q.borderRadiusS} 0 0;
1159
1021
  }
1160
1022
 
1161
1023
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1162
1024
  align-self: stretch;
1163
- margin-bottom: ${Ic.verticalSpacing};
1164
- margin-top: calc(${Ic.labelSize} + 2 * ${Ic.verticalSpacing});
1025
+ margin-bottom: ${Q.verticalSpacing};
1026
+ margin-top: calc(${Q.labelSize} + 2 * ${Q.verticalSpacing});
1165
1027
  }
1166
1028
 
1167
1029
  .ft-text-area--outlined .ft-text-area--input-panel {
1168
- border-radius: ${Ic.borderRadiusS};
1030
+ border-radius: ${Q.borderRadiusS};
1169
1031
  }
1170
1032
 
1171
1033
  .ft-text-area--helper-text {
1172
- padding: 0 12px 0 ${Ic.horizontalSpacing};
1173
- color: ${Ic.helperColor};
1034
+ padding: 0 12px 0 ${Q.horizontalSpacing};
1035
+ color: ${Q.helperColor};
1174
1036
  }
1175
1037
 
1176
1038
  .ft-text-area--in-error .ft-text-area--input,
1177
1039
  .ft-text-area--in-error .ft-text-area--helper-text {
1178
- color: ${Ic.colorError};
1040
+ color: ${Q.colorError};
1179
1041
  }
1180
1042
 
1181
1043
  ft-resizer {
1182
1044
  position: absolute;
1183
1045
  bottom: 0;
1184
1046
  }
1185
- `;var Uc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Lc extends(as(Dr,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Jt`
1047
+ `;var Ce=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},wt=class extends fr(W,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let 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 $`
1186
1048
  <style>
1187
1049
  .ft-text-area--main-panel {
1188
- height: calc(4 * ${Ic.verticalSpacing} + ${Ic.labelSize} + ${Ic.fontSize} + ${this.height}px);
1050
+ height: calc(4 * ${Q.verticalSpacing} + ${Q.labelSize} + ${Q.fontSize} + ${this.height}px);
1189
1051
  }
1190
1052
 
1191
1053
  ft-resizer {
1192
- right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1054
+ right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1193
1055
  }
1194
1056
  </style>
1195
- <div class="${Ze(t)}">
1057
+ <div class="${Nt(t)}">
1196
1058
  <div class="ft-text-area--main-panel">
1197
1059
  <ft-input-label text="${this.label}"
1198
1060
  ?disabled=${this.disabled}
1199
1061
  ?outlined=${this.outlined}
1200
- ?raised=${this.focused||""!=this.value}
1062
+ ?raised=${this.focused||this.value!=""}
1201
1063
  ?error=${this.error}
1202
1064
  ></ft-input-label>
1203
1065
  <div class="ft-text-area--input-panel"
1204
1066
  aria-label="${this.label}">
1205
- ${this.outlined?null:Jt`
1067
+ ${this.outlined?null:$`
1206
1068
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1207
1069
  `}
1208
1070
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1219,42 +1081,45 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1219
1081
  initialHeight="${this.height}"
1220
1082
  cursor="ns-resize"></ft-resizer>
1221
1083
  </div>
1222
- ${this.helper?Jt`
1084
+ ${this.helper?$`
1223
1085
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1224
1086
  ${this.helper}
1225
1087
  </ft-typography>`:void 0}
1226
1088
  </div>
1227
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Lc.elementDefinitions={"ft-input-label":kc,"ft-resizer":Cc,"ft-ripple":ql,"ft-typography":Gl},Lc.styles=[yl,Rc],Uc([Oe({type:String})],Lc.prototype,"label",void 0),Uc([Oe({reflect:!0})],Lc.prototype,"value",void 0),Uc([Oe({type:String})],Lc.prototype,"helper",void 0),Uc([Oe({type:Boolean})],Lc.prototype,"outlined",void 0),Uc([Oe({type:Boolean})],Lc.prototype,"disabled",void 0),Uc([Oe({type:Boolean})],Lc.prototype,"error",void 0),Uc([Oe({type:Number,reflect:!0})],Lc.prototype,"height",void 0),Uc([$e("textarea")],Lc.prototype,"textarea",void 0),Uc([Se()],Lc.prototype,"focused",void 0),go("ft-text-area")(Lc);class _c extends Dr{render(){return Jt`
1089
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};wt.elementDefinitions={"ft-input-label":Pt,"ft-resizer":_t,"ft-ripple":J,"ft-typography":ht};wt.styles=[Ur,Vc];Ce([g({type:String})],wt.prototype,"label",void 0);Ce([g({reflect:!0})],wt.prototype,"value",void 0);Ce([g({type:String})],wt.prototype,"helper",void 0);Ce([g({type:Boolean})],wt.prototype,"outlined",void 0);Ce([g({type:Boolean})],wt.prototype,"disabled",void 0);Ce([g({type:Boolean})],wt.prototype,"error",void 0);Ce([g({type:Number,reflect:!0})],wt.prototype,"height",void 0);Ce([G("textarea")],wt.prototype,"textarea",void 0);Ce([H()],wt.prototype,"focused",void 0);V("ft-text-area")(wt);var gr=class extends W{render(){return $`
1228
1090
  <div class="ft-loader">
1229
1091
  <div></div>
1230
1092
  <div></div>
1231
1093
  <div></div>
1232
1094
  <div></div>
1233
1095
  </div>
1234
- `}}_c.styles=Nl,go("ft-loader")(_c);var Ac=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bc extends(as(Dr,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(Jt`
1096
+ `}};gr.styles=Nc;V("ft-loader")(gr);var Ht=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends fr(W,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){return this.addTooltipIfNeeded($`
1235
1097
  <button part="button"
1236
- class="${Ze(this.buttonClasses)}"
1098
+ class="${Nt(this.buttonClasses)}"
1237
1099
  aria-label="${this.getLabel()}"
1238
1100
  ?disabled=${this.isDisabled()}>
1239
1101
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1240
1102
  <ft-typography part="label"
1241
1103
  variant=${this.typographyVariant}
1242
1104
  element="span"
1243
- class="ft-button--label ${fs?"ft-safari-ellipsis-fix":""}"
1105
+ class="ft-button--label ${Oo?"ft-safari-ellipsis-fix":""}"
1244
1106
  ?hidden=${!this.hasTextContent()}>
1245
1107
  <slot @slotchange=${this.onSlotchange}></slot>
1246
1108
  </ft-typography>
1247
1109
  ${this.resolveIcon()}
1248
1110
  </button>
1249
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Jt`
1111
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?$`
1250
1112
  <ft-tooltip part="tooltip"
1251
1113
  text="${this.getLabel()}"
1252
1114
  position="${this.tooltipPosition}">
1253
1115
  ${t}
1254
1116
  </ft-tooltip>
1255
- `:t}resolveIcon(){return this.loading?Jt`
1256
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Jt`
1257
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Bc.elementDefinitions={"ft-ripple":ql,"ft-tooltip":sc,"ft-typography":Gl,"ft-icon":cc,"ft-loader":_c},Ac([Oe({type:String,reflect:!0})],Bc.prototype,"role",void 0),Ac([Oe()],Bc.prototype,"type",void 0),Ac([Oe({type:Boolean})],Bc.prototype,"disabled",void 0),Ac([Oe()],Bc.prototype,"label",void 0),Ac([Oe()],Bc.prototype,"icon",void 0),Ac([Oe()],Bc.prototype,"iconVariant",void 0),Ac([Oe({type:Boolean})],Bc.prototype,"trailingIcon",void 0),Ac([Oe({type:Boolean})],Bc.prototype,"loading",void 0),Ac([Oe()],Bc.prototype,"tooltipPosition",void 0),Ac([Oe({type:Boolean})],Bc.prototype,"hideTooltip",void 0),Ac([Oe({type:Boolean})],Bc.prototype,"forceTooltip",void 0),Ac([$e(".ft-button")],Bc.prototype,"button",void 0),Ac([$e(".ft-button--label slot")],Bc.prototype,"slottedContent",void 0);var Wc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Tc extends Bc{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Tc.styles=[Xr,Wl],Wc([Oe({type:Boolean})],Tc.prototype,"primary",void 0),Wc([Oe({type:Boolean})],Tc.prototype,"outlined",void 0),Wc([Oe({type:Boolean})],Tc.prototype,"dense",void 0),Wc([Oe({type:Boolean})],Tc.prototype,"round",void 0);const zc=[ft`
1117
+ `:t}resolveIcon(){return this.loading?$`
1118
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?$`
1119
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1120
+ `:$`
1121
+ <slot part="icon" name="icon"></slot>
1122
+ `}focus(){var t;(t=this.button)===null||t===void 0||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(e=>this.unslotText(e)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};bt.elementDefinitions={"ft-ripple":J,"ft-tooltip":nt,"ft-typography":ht,"ft-icon":gt,"ft-loader":gr};Ht([g({type:String,reflect:!0})],bt.prototype,"role",void 0);Ht([g()],bt.prototype,"type",void 0);Ht([g({type:Boolean})],bt.prototype,"disabled",void 0);Ht([g()],bt.prototype,"label",void 0);Ht([g()],bt.prototype,"icon",void 0);Ht([g()],bt.prototype,"iconVariant",void 0);Ht([g({type:Boolean})],bt.prototype,"trailingIcon",void 0);Ht([g({type:Boolean})],bt.prototype,"loading",void 0);Ht([g()],bt.prototype,"tooltipPosition",void 0);Ht([g({type:Boolean})],bt.prototype,"hideTooltip",void 0);Ht([g({type:Boolean})],bt.prototype,"forceTooltip",void 0);Ht([G(".ft-button")],bt.prototype,"button",void 0);Ht([G(".ft-button--label slot")],bt.prototype,"slottedContent",void 0);var bi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},te=class extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};te.styles=[cr,$c];bi([g({type:Boolean})],te.prototype,"primary",void 0);bi([g({type:Boolean})],te.prototype,"outlined",void 0);bi([g({type:Boolean})],te.prototype,"dense",void 0);bi([g({type:Boolean})],te.prototype,"round",void 0);var jc=[P`
1258
1123
  :host {
1259
1124
  display: inline-block;
1260
1125
  max-width: 100%;
@@ -1304,7 +1169,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1304
1169
  }
1305
1170
 
1306
1171
  .ft-button:focus-visible {
1307
- outline-color: ${Jo.focusFocusRingColor};
1172
+ outline-color: ${I.focusFocusRingColor};
1308
1173
  outline-style: solid;
1309
1174
  }
1310
1175
 
@@ -1333,154 +1198,154 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1333
1198
  /** Primary styles **/
1334
1199
 
1335
1200
  .ft-button--primary {
1336
- ${wo(Cl.color,Jo.primaryIconColor)};
1201
+ ${C(Lt.color,I.primaryIconColor)};
1337
1202
 
1338
- ${wo(xs.color,Jo.primaryStateLayerColor)};
1339
- ${wo(xs.opacityContentOnSurfaceHover,Jo.primaryHoverStateLayerOpacity)};
1340
- ${wo(xs.opacityContentOnSurfaceFocused,Jo.primaryFocusStateLayerOpacity)};
1341
- ${wo(xs.opacityContentOnSurfaceSelected,Jo.primaryActiveStateLayerOpacity)};
1342
- ${wo(xs.opacityContentOnSurfacePressed,Jo.primaryActiveStateLayerOpacity)};
1203
+ ${C(F.color,I.primaryStateLayerColor)};
1204
+ ${C(F.opacityContentOnSurfaceHover,I.primaryHoverStateLayerOpacity)};
1205
+ ${C(F.opacityContentOnSurfaceFocused,I.primaryFocusStateLayerOpacity)};
1206
+ ${C(F.opacityContentOnSurfaceSelected,I.primaryActiveStateLayerOpacity)};
1207
+ ${C(F.opacityContentOnSurfacePressed,I.primaryActiveStateLayerOpacity)};
1343
1208
 
1344
- background-color: ${Jo.primaryBackgroundColor};
1345
- color: ${Jo.primaryColor};
1209
+ background-color: ${I.primaryBackgroundColor};
1210
+ color: ${I.primaryColor};
1346
1211
  border-style: none;
1347
1212
  }
1348
1213
 
1349
1214
  .ft-button--primary[disabled] {
1350
- opacity: ${Jo.primaryDisabledComponentOpacity};
1215
+ opacity: ${I.primaryDisabledComponentOpacity};
1351
1216
  }
1352
1217
 
1353
1218
  .ft-button--primary ft-icon {
1354
- color: ${Jo.primaryIconColor};
1219
+ color: ${I.primaryIconColor};
1355
1220
  }
1356
1221
 
1357
1222
  /** Secondary styles **/
1358
1223
 
1359
1224
  .ft-button--secondary {
1360
- ${wo(Cl.color,Jo.secondaryIconColor)};
1225
+ ${C(Lt.color,I.secondaryIconColor)};
1361
1226
 
1362
- ${wo(xs.color,Jo.secondaryStateLayerColor)};
1363
- ${wo(xs.opacityContentOnSurfaceHover,Jo.secondaryHoverStateLayerOpacity)};
1364
- ${wo(xs.opacityContentOnSurfaceFocused,Jo.secondaryFocusStateLayerOpacity)};
1365
- ${wo(xs.opacityContentOnSurfaceSelected,Jo.secondaryActiveStateLayerOpacity)};
1366
- ${wo(xs.opacityContentOnSurfacePressed,Jo.secondaryActiveStateLayerOpacity)};
1227
+ ${C(F.color,I.secondaryStateLayerColor)};
1228
+ ${C(F.opacityContentOnSurfaceHover,I.secondaryHoverStateLayerOpacity)};
1229
+ ${C(F.opacityContentOnSurfaceFocused,I.secondaryFocusStateLayerOpacity)};
1230
+ ${C(F.opacityContentOnSurfaceSelected,I.secondaryActiveStateLayerOpacity)};
1231
+ ${C(F.opacityContentOnSurfacePressed,I.secondaryActiveStateLayerOpacity)};
1367
1232
 
1368
- background-color: ${Jo.secondaryBackgroundColor};
1369
- color: ${Jo.secondaryColor};
1370
- border-color: ${Jo.secondaryBorderColor};
1233
+ background-color: ${I.secondaryBackgroundColor};
1234
+ color: ${I.secondaryColor};
1235
+ border-color: ${I.secondaryBorderColor};
1371
1236
  border-style: solid;
1372
1237
  }
1373
1238
 
1374
1239
  .ft-button--secondary[disabled] {
1375
- opacity: ${Jo.secondaryDisabledComponentOpacity};
1240
+ opacity: ${I.secondaryDisabledComponentOpacity};
1376
1241
  }
1377
1242
 
1378
1243
  .ft-button--secondary ft-icon {
1379
- color: ${Jo.secondaryIconColor};
1244
+ color: ${I.secondaryIconColor};
1380
1245
  }
1381
1246
 
1382
1247
  /** Tertiary styles **/
1383
1248
 
1384
1249
  .ft-button--tertiary {
1385
- ${wo(Cl.color,Jo.tertiaryIconColor)};
1250
+ ${C(Lt.color,I.tertiaryIconColor)};
1386
1251
 
1387
- ${wo(xs.color,Jo.tertiaryStateLayerColor)};
1388
- ${wo(xs.opacityContentOnSurfaceHover,Jo.tertiaryHoverStateLayerOpacity)};
1389
- ${wo(xs.opacityContentOnSurfaceFocused,Jo.tertiaryFocusStateLayerOpacity)};
1390
- ${wo(xs.opacityContentOnSurfaceSelected,Jo.tertiaryActiveStateLayerOpacity)};
1391
- ${wo(xs.opacityContentOnSurfacePressed,Jo.tertiaryActiveStateLayerOpacity)};
1252
+ ${C(F.color,I.tertiaryStateLayerColor)};
1253
+ ${C(F.opacityContentOnSurfaceHover,I.tertiaryHoverStateLayerOpacity)};
1254
+ ${C(F.opacityContentOnSurfaceFocused,I.tertiaryFocusStateLayerOpacity)};
1255
+ ${C(F.opacityContentOnSurfaceSelected,I.tertiaryActiveStateLayerOpacity)};
1256
+ ${C(F.opacityContentOnSurfacePressed,I.tertiaryActiveStateLayerOpacity)};
1392
1257
 
1393
- background-color: ${Jo.tertiaryBackgroundColor};
1394
- color: ${Jo.tertiaryColor};
1258
+ background-color: ${I.tertiaryBackgroundColor};
1259
+ color: ${I.tertiaryColor};
1395
1260
  border-style: none;
1396
1261
  }
1397
1262
 
1398
1263
  .ft-button--tertiary[disabled] {
1399
- opacity: ${Jo.tertiaryDisabledComponentOpacity};
1264
+ opacity: ${I.tertiaryDisabledComponentOpacity};
1400
1265
  }
1401
1266
 
1402
1267
  .ft-button--tertiary ft-icon {
1403
- color: ${Jo.tertiaryIconColor};
1268
+ color: ${I.tertiaryIconColor};
1404
1269
  }
1405
1270
 
1406
1271
  /** Neutral styles **/
1407
1272
 
1408
1273
  .ft-button--neutral {
1409
- ${wo(Cl.color,Jo.neutralIconColor)};
1274
+ ${C(Lt.color,I.neutralIconColor)};
1410
1275
 
1411
- ${wo(xs.backgroundColor,Jo.neutralStateLayerColor)};
1412
- ${wo(xs.opacityContentOnSurfaceHover,Jo.neutralHoverStateLayerOpacity)};
1413
- ${wo(xs.opacityContentOnSurfaceFocused,Jo.neutralFocusStateLayerOpacity)};
1414
- ${wo(xs.opacityContentOnSurfaceSelected,Jo.neutralActiveStateLayerOpacity)};
1415
- ${wo(xs.opacityContentOnSurfacePressed,Jo.neutralActiveStateLayerOpacity)};
1276
+ ${C(F.backgroundColor,I.neutralStateLayerColor)};
1277
+ ${C(F.opacityContentOnSurfaceHover,I.neutralHoverStateLayerOpacity)};
1278
+ ${C(F.opacityContentOnSurfaceFocused,I.neutralFocusStateLayerOpacity)};
1279
+ ${C(F.opacityContentOnSurfaceSelected,I.neutralActiveStateLayerOpacity)};
1280
+ ${C(F.opacityContentOnSurfacePressed,I.neutralActiveStateLayerOpacity)};
1416
1281
 
1417
- background-color: ${Jo.neutralBackgroundColor};
1418
- color: ${Jo.neutralColor};
1282
+ background-color: ${I.neutralBackgroundColor};
1283
+ color: ${I.neutralColor};
1419
1284
  border-style: none;
1420
1285
  }
1421
1286
 
1422
1287
  .ft-button--neutral[disabled] {
1423
- opacity: ${Jo.neutralDisabledComponentOpacity};
1288
+ opacity: ${I.neutralDisabledComponentOpacity};
1424
1289
  }
1425
1290
 
1426
1291
  .ft-button--neutral ft-icon {
1427
- color: ${Jo.neutralIconColor};
1292
+ color: ${I.neutralIconColor};
1428
1293
  }
1429
1294
 
1430
1295
  /** Large styles **/
1431
1296
 
1432
1297
  .ft-button--large {
1433
- ${wo($l.size,Jo.largeIconSize)};
1434
- ${wo(Cl.size,Jo.largeIconSize)};
1298
+ ${C(St.size,I.largeIconSize)};
1299
+ ${C(Lt.size,I.largeIconSize)};
1435
1300
 
1436
- height: ${Jo.largeHeight};
1437
- padding: 0 ${Jo.largeHorizontalPadding};
1438
- gap: ${Jo.largeGap};
1439
- border-radius: ${Jo.largeBorderRadius};
1440
- border-width: ${Jo.largeBorderWidth};
1301
+ height: ${I.largeHeight};
1302
+ padding: 0 ${I.largeHorizontalPadding};
1303
+ gap: ${I.largeGap};
1304
+ border-radius: ${I.largeBorderRadius};
1305
+ border-width: ${I.largeBorderWidth};
1441
1306
  }
1442
1307
 
1443
1308
  .ft-button--large:focus-visible {
1444
- outline-width: ${Jo.largeFocusOutlineWidth};
1445
- outline-offset: ${Jo.largeFocusOutlineOffset};
1309
+ outline-width: ${I.largeFocusOutlineWidth};
1310
+ outline-offset: ${I.largeFocusOutlineOffset};
1446
1311
  }
1447
1312
 
1448
1313
  .ft-button--large.ft-button--icon-only {
1449
- width: ${Jo.largeIconOnlyWidth};
1314
+ width: ${I.largeIconOnlyWidth};
1450
1315
  padding: unset;
1451
1316
  }
1452
1317
 
1453
1318
  /** Small styles **/
1454
1319
 
1455
1320
  .ft-button--small {
1456
- ${wo($l.size,Jo.smallIconSize)};
1457
- ${wo(Cl.size,Jo.smallIconSize)};
1321
+ ${C(St.size,I.smallIconSize)};
1322
+ ${C(Lt.size,I.smallIconSize)};
1458
1323
 
1459
- height: ${Jo.smallHeight};
1460
- padding: 0 ${Jo.smallHorizontalPadding};
1461
- gap: ${Jo.smallGap};
1462
- border-radius: ${Jo.smallBorderRadius};
1463
- border-width: ${Jo.smallBorderWidth};
1324
+ height: ${I.smallHeight};
1325
+ padding: 0 ${I.smallHorizontalPadding};
1326
+ gap: ${I.smallGap};
1327
+ border-radius: ${I.smallBorderRadius};
1328
+ border-width: ${I.smallBorderWidth};
1464
1329
  }
1465
1330
 
1466
1331
  .ft-button--small:focus-visible {
1467
- outline-width: ${Jo.smallFocusOutlineWidth};
1468
- outline-offset: ${Jo.smallFocusOutlineOffset};
1332
+ outline-width: ${I.smallFocusOutlineWidth};
1333
+ outline-offset: ${I.smallFocusOutlineOffset};
1469
1334
  }
1470
1335
 
1471
1336
  .ft-button--small.ft-button--icon-only {
1472
- width: ${Jo.smallIconOnlyWidth};
1337
+ width: ${I.smallIconOnlyWidth};
1473
1338
  padding: unset;
1474
1339
  }
1475
- `,Yr];var Fc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Dc extends Bc{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Hl.caption1medium:Hl.body2medium}}Dc.styles=[Xr,zc],Fc([Oe({type:Boolean})],Dc.prototype,"primary",void 0),Fc([Oe({type:Boolean})],Dc.prototype,"secondary",void 0),Fc([Oe({type:Boolean})],Dc.prototype,"tertiary",void 0),Fc([Oe({type:Boolean})],Dc.prototype,"neutral",void 0),Fc([Oe({type:Boolean})],Dc.prototype,"small",void 0),go("ft-button")(Tc),go("ftds-button")(Dc);const Pc=ft`
1476
- `,Mc=ft`
1477
- `,jc=os.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class Zc{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=jc.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static await(t){return new Promise((e=>{let o=Zc.get(t);if(o)e(o);else{const i=jc.subscribe((()=>{o=Zc.get(t),o&&(i(),e(o))}))}}))}}class Hc{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new io,this.cache=t?i.commonCache:new io}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Zc.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Zc.await()}clearCache(){this.cache.clearAll()}}var Kc;const Gc=Symbol("clearAfterUnitTest");class Vc extends Hc{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kc]=()=>{this.defaultMessages={},this.cache=new io,this.listeners={}},this.currentUiLocale=jc.getState().uiLocale,jc.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=jc.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};uo(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new en(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>co(0).then((()=>t())).catch((()=>null)))))}}Kc=Gc,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Vc{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Vc{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const qc=window.FluidTopicsI18nService,Yc=window.FluidTopicsCustomI18nService;var Jc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xc extends Dr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Zc.get(),this.messageContexts=[],this.cache=new io,this.cleanSessionDebouncer=new so}render(){return Jt`
1340
+ `,lr];var Co=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},pe=class extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?hr.caption1medium:hr.body2medium}};pe.styles=[cr,jc];Co([g({type:Boolean})],pe.prototype,"primary",void 0);Co([g({type:Boolean})],pe.prototype,"secondary",void 0);Co([g({type:Boolean})],pe.prototype,"tertiary",void 0);Co([g({type:Boolean})],pe.prototype,"neutral",void 0);Co([g({type:Boolean})],pe.prototype,"small",void 0);V("ft-button")(te);V("ftds-button")(pe);var Kc=P`
1341
+ `;var Gc=P`
1342
+ `;var ef="ft-app-info",rf={},M=we.get({name:ef,reducers:rf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var yr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:o}=M.getState(),n=t??o;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let o=r.get(t);if(o)e(o);else{let n=M.subscribe(()=>{o=r.get(t),o&&(n(),e(o))})}})}};var ue=class{constructor(t=!0,e){var o;this.overrideApi=e;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ie,this.cache=t?n.commonCache:new ie}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:yr.get()}get awaitApi(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:yr.await()}clearCache(){this.cache.clearAll()}};var Zc,of=Symbol("clearAfterUnitTest"),vi=class extends ue{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zc]=()=>{this.defaultMessages={},this.cache=new ie,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...e};jt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let l=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new go((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},l).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>Qo(0).then(()=>e()).catch(()=>null)))}};Zc=of;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Fr=window.FluidTopicsI18nService,qc=window.FluidTopicsCustomI18nService;var $t=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>yr.get(),this.messageContexts=[],this.cache=new ie,this.cleanSessionDebouncer=new et}render(){return $`
1478
1343
  <slot></slot>
1479
- `}update(t){super.update(t),t.has("baseUrl")&&(jc.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&jc.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&jc.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&jc.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&jc.actions.noCustom(this.noCustom),t.has("editorMode")&&jc.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&jc.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&jc.actions.session(this.session),t.has("availableUiLocales")&&jc.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>qc.addContext(t))),t.has("openExternalDocumentInNewTab")&&jc.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&jc.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&jc.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Xc.elementDefinitions={},Xc.styles=Mc,Jc([Oe()],Xc.prototype,"baseUrl",void 0),Jc([Oe()],Xc.prototype,"apiIntegrationIdentifier",void 0),Jc([Oe()],Xc.prototype,"uiLocale",void 0),Jc([yo(null)],Xc.prototype,"availableUiLocales",void 0),Jc([yo(null)],Xc.prototype,"metadataConfiguration",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"editorMode",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"noCustom",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"openExternalDocumentInNewTab",void 0),Jc([Oe({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Xc.prototype,"noCustomComponent",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"withManualResources",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"navigatorOnline",void 0),Jc([Oe({type:Boolean})],Xc.prototype,"forcedOffline",void 0),Jc([Oe({type:Object})],Xc.prototype,"apiProvider",void 0),Jc([yo([])],Xc.prototype,"messageContexts",void 0),Jc([yo(void 0)],Xc.prototype,"session",void 0);class Qc extends Hc{async listMySearches(){let t=jc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class td extends Hc{async listMyBookmarks(){let t=jc.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const ed=os.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const od=new class{constructor(){this.currentSession=jc.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new td,this.savedSearchesService=new Qc,jc.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=jc.getState();uo(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ed.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ed.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();ed.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;ed.actions.bookmarks(e)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,e=!1){jc.commands.add(t,e)}consumeCommand(t){return jc.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){Vr(t,e)}},go("ft-app-context")(Xc);var id=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const rd=Symbol("i18nAttributes"),nd=Symbol("i18nProperties"),ad=Symbol("i18nUnsubs");function sd(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Yc:qc}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[rd])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[nd])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[rd])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[nd])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[nd])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[rd])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ad].has(t)||this[ad].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ad].forEach((t=>t())),this[ad].clear()}}return e=ad,id([Oe({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ld extends(sd(Dr)){}class cd extends(sd(pn)){}var dd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hd extends cd{constructor(){super(),this.editorMode=!1,this.addStore(jc)}render(){return this.key&&this.context?Jt`
1344
+ `}update(t){super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Fr.addContext(e)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};mt.elementDefinitions={};mt.styles=Gc;$t([g()],mt.prototype,"baseUrl",void 0);$t([g()],mt.prototype,"apiIntegrationIdentifier",void 0);$t([g()],mt.prototype,"uiLocale",void 0);$t([ne(null)],mt.prototype,"availableUiLocales",void 0);$t([ne(null)],mt.prototype,"metadataConfiguration",void 0);$t([g({type:Boolean})],mt.prototype,"editorMode",void 0);$t([g({type:Boolean})],mt.prototype,"noCustom",void 0);$t([g({type:Boolean})],mt.prototype,"openExternalDocumentInNewTab",void 0);$t([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],mt.prototype,"noCustomComponent",void 0);$t([g({type:Boolean})],mt.prototype,"withManualResources",void 0);$t([g({type:Boolean})],mt.prototype,"navigatorOnline",void 0);$t([g({type:Boolean})],mt.prototype,"forcedOffline",void 0);$t([g({type:Object})],mt.prototype,"apiProvider",void 0);$t([ne([])],mt.prototype,"messageContexts",void 0);$t([ne(void 0)],mt.prototype,"session",void 0);var xi=class extends ue{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Si=class extends ue{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var nf="ft-user-assets",Oi=we.get({name:nf,initialState:{savedSearches:void 0,bookmarks:void 0}}),is=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Si,this.savedSearchesService=new xi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();jt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Oi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oi.actions.bookmarks(e)}}},Yc=new is;var ns=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ns;var as=class{highlightHtml(t,e){fa(t,e)}};window.FluidTopicsHighlightHtmlService=new as;V("ft-app-context")(mt);var af=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ss=Symbol("i18nAttributes"),br=Symbol("i18nProperties"),Ao=Symbol("i18nUnsubs");function Ve(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?qc:Fr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[ss])===null||a===void 0||a.forEach((l,c)=>{var d;let u=this.getI18nAttributeValue(c);((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,u,l)}),(s=this[br])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[ss])===null||a===void 0||a.forEach((l,c)=>{let d=this.getI18nAttributeValue(c);d?.context&&d.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(c,d,l))}),(s=this[br])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[br])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[ss])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[Ao].has(n)||this[Ao].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{})}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Ao].forEach(n=>n()),this[Ao].clear()}}return t=Ao,af([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var Xc=class extends Ve(W){},wi=class extends Ve(Kt){};var Ro=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ee=class extends wi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
1480
1345
  <span class="ft-i18n">
1481
1346
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1482
1347
  </span>
1483
- `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}hd.elementDefinitions={},hd.styles=Pc,dd([rn()],hd.prototype,"editorMode",void 0),dd([Oe()],hd.prototype,"context",void 0),dd([Oe()],hd.prototype,"key",void 0),dd([yo([])],hd.prototype,"args",void 0),dd([Oe()],hd.prototype,"defaultMessage",void 0);class fd{static build(t){return new fd(t)}static fromGwt(t){return new fd(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>qc.resolveMessage(this.name,e,...t)})}}const ud=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[nd]=null!==(n=o[nd])&&void 0!==n?n:new Map,o[nd].set(i,a)};go("ft-i18n")(hd);const pd=fd.build("integratedFeedbackComponent"),gd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},yd={fontSize:xo.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-field-helper-color","",Oi.colorOnSurfaceMedium),colorPrimary:xo.external(Oi.colorPrimary,"Design system"),colorOnSurface:xo.external(Oi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(Oi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(Oi.borderRadiusS,"Design system"),colorError:xo.external(Oi.colorError,"Design system"),prefixColor:xo.extend("--ft-text-field-prefix-color","",Oi.colorOnSurfaceMedium),iconColor:xo.extend("--ft-text-field-icon-color","",Oi.colorOnSurfaceMedium),floatingZIndex:xo.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:xo.external(Oi.colorSurface,"Design system"),colorOutline:xo.external(Oi.colorOutline,"Design system"),elevation02:xo.external(Oi.elevation02,"Design system"),suggestSize:xo.create("--ft-text-field-suggest-size","","SIZE","300px")},bd=ft`
1348
+ `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(o=>t.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ee.elementDefinitions={};ee.styles=Kc;Ro([ct()],ee.prototype,"editorMode",void 0);Ro([g()],ee.prototype,"context",void 0);Ro([g()],ee.prototype,"key",void 0);Ro([ne([])],ee.prototype,"args",void 0);Ro([g()],ee.prototype,"defaultMessage",void 0);var je=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,o)=>{let n=o;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,o)=>(...n)=>Fr.resolveMessage(this.name,o,...n)})}};var Ei=(r,t)=>(e,o)=>{var n,a;e.constructor.createProperty(o,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};e[br]=(a=e[br])!==null&&a!==void 0?a:new Map,e[br].set(o,s)};V("ft-i18n")(ee);var Z=je.build("integratedFeedbackComponent"),Jc={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Qc=r=>r??lt;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",A.colorOnSurfaceMedium),colorPrimary:i.external(A.colorPrimary,"Design system"),colorOnSurface:i.external(A.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(A.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",A.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",A.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(A.colorSurface,"Design system"),colorOutline:i.external(A.colorOutline,"Design system"),elevation02:i.external(A.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},td=P`
1484
1349
  *:focus {
1485
1350
  outline: none;
1486
1351
  }
@@ -1493,16 +1358,16 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1493
1358
  }
1494
1359
 
1495
1360
  ft-input-label {
1496
- ${wo(Nc.fontSize,yd.fontSize)};
1497
- ${wo(Nc.raisedFontSize,yd.labelSize)};
1498
- ${wo(Nc.verticalSpacing,yd.verticalSpacing)};
1499
- ${wo(Nc.horizontalSpacing,yd.horizontalSpacing)};
1361
+ ${C(U.fontSize,j.fontSize)};
1362
+ ${C(U.raisedFontSize,j.labelSize)};
1363
+ ${C(U.verticalSpacing,j.verticalSpacing)};
1364
+ ${C(U.horizontalSpacing,j.horizontalSpacing)};
1500
1365
  }
1501
1366
 
1502
1367
  .ft-text-field--main-panel {
1503
1368
  position: relative;
1504
1369
  display: flex;
1505
- height: calc(4 * ${yd.verticalSpacing} + ${yd.labelSize} + ${yd.fontSize});
1370
+ height: calc(4 * ${j.verticalSpacing} + ${j.labelSize} + ${j.fontSize});
1506
1371
  }
1507
1372
 
1508
1373
  .ft-text-field--input-panel {
@@ -1511,24 +1376,24 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1511
1376
  display: flex;
1512
1377
  align-items: center;
1513
1378
  overflow: hidden;
1514
- padding: 0 ${yd.horizontalSpacing};
1379
+ padding: 0 ${j.horizontalSpacing};
1515
1380
 
1516
- ${wo(Hs.fontSize,yd.fontSize)};
1517
- ${wo(Hs.lineHeight,yd.fontSize)};
1381
+ ${C(qt.fontSize,j.fontSize)};
1382
+ ${C(qt.lineHeight,j.fontSize)};
1518
1383
  }
1519
1384
 
1520
1385
  .ft-text-field--input-panel ft-ripple {
1521
- ${wo(xs.opacityContentOnSurfaceHover,"0.08")};
1522
- ${wo(xs.opacityContentOnSurfacePressed,"0.04")};
1386
+ ${C(F.opacityContentOnSurfaceHover,"0.08")};
1387
+ ${C(F.opacityContentOnSurfacePressed,"0.04")};
1523
1388
  }
1524
1389
 
1525
1390
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1526
1391
  align-items: flex-end;
1527
- padding: 0 ${yd.horizontalSpacing} ${yd.verticalSpacing} ${yd.horizontalSpacing};
1392
+ padding: 0 ${j.horizontalSpacing} ${j.verticalSpacing} ${j.horizontalSpacing};
1528
1393
  }
1529
1394
 
1530
1395
  .ft-text-field--prefix {
1531
- color: ${yd.prefixColor};
1396
+ color: ${j.prefixColor};
1532
1397
  margin-right: 2px;
1533
1398
  flex-shrink: 1;
1534
1399
  overflow: hidden;
@@ -1547,15 +1412,15 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1547
1412
  flex-shrink: 1;
1548
1413
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1549
1414
 
1550
- color: ${yd.colorOnSurface};
1551
- padding: calc(2 * ${yd.verticalSpacing}) 0;
1415
+ color: ${j.colorOnSurface};
1416
+ padding: calc(2 * ${j.verticalSpacing}) 0;
1552
1417
  border: none;
1553
1418
  background: none;
1554
1419
  }
1555
1420
 
1556
1421
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1557
1422
  padding-bottom: 0;
1558
- padding-top: calc(${yd.labelSize} + 2 * ${yd.verticalSpacing});
1423
+ padding-top: calc(${j.labelSize} + 2 * ${j.verticalSpacing});
1559
1424
  }
1560
1425
 
1561
1426
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1564,37 +1429,37 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1564
1429
  }
1565
1430
 
1566
1431
  .ft-text-field--disabled .ft-text-field--input {
1567
- color: ${yd.colorOnSurfaceDisabled};
1432
+ color: ${j.colorOnSurfaceDisabled};
1568
1433
  }
1569
1434
 
1570
1435
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1571
- ${wo(Nc.borderColor,yd.colorPrimary)};
1572
- ${wo(Nc.textColor,yd.colorPrimary)};
1436
+ ${C(U.borderColor,j.colorPrimary)};
1437
+ ${C(U.textColor,j.colorPrimary)};
1573
1438
  }
1574
1439
 
1575
1440
  .ft-text-field--filled .ft-text-field--input-panel {
1576
- border-radius: ${yd.borderRadiusS} ${yd.borderRadiusS} 0 0;
1441
+ border-radius: ${j.borderRadiusS} ${j.borderRadiusS} 0 0;
1577
1442
  }
1578
1443
 
1579
1444
  .ft-text-field--outlined .ft-text-field--input-panel {
1580
- border-radius: ${yd.borderRadiusS};
1445
+ border-radius: ${j.borderRadiusS};
1581
1446
  }
1582
1447
 
1583
1448
  .ft-text-field--helper-text {
1584
- padding: 0 12px 0 ${yd.horizontalSpacing};
1585
- color: ${yd.helperColor};
1449
+ padding: 0 12px 0 ${j.horizontalSpacing};
1450
+ color: ${j.helperColor};
1586
1451
  }
1587
1452
 
1588
1453
  .ft-text-field--in-error .ft-text-field--input,
1589
1454
  .ft-text-field--in-error .ft-text-field--helper-text,
1590
1455
  .ft-text-field--in-error .ft-text-field--prefix {
1591
- color: ${yd.colorError};
1456
+ color: ${j.colorError};
1592
1457
  }
1593
1458
 
1594
1459
  .ft-text-field--icon {
1595
1460
  align-self: center;
1596
1461
  margin-left: 8px;
1597
- color: ${yd.iconColor};
1462
+ color: ${j.iconColor};
1598
1463
  }
1599
1464
 
1600
1465
  .ft-text-field--container {
@@ -1605,13 +1470,13 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1605
1470
  display: none;
1606
1471
  flex-direction: column;
1607
1472
  position: absolute;
1608
- z-index: ${yd.floatingZIndex};
1609
- background: ${yd.colorSurface};
1610
- border: 1px solid ${yd.colorOutline};
1611
- border-radius: 0 0 ${yd.borderRadiusS} ${yd.borderRadiusS};
1612
- box-shadow: ${yd.elevation02};
1473
+ z-index: ${j.floatingZIndex};
1474
+ background: ${j.colorSurface};
1475
+ border: 1px solid ${j.colorOutline};
1476
+ border-radius: 0 0 ${j.borderRadiusS} ${j.borderRadiusS};
1477
+ box-shadow: ${j.elevation02};
1613
1478
  outline: none;
1614
- max-height: ${yd.suggestSize};
1479
+ max-height: ${j.suggestSize};
1615
1480
  overflow-y: auto;
1616
1481
  }
1617
1482
 
@@ -1624,33 +1489,33 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1624
1489
  }
1625
1490
 
1626
1491
  .ft-text-field--with-icon {
1627
- ${wo(Nc.labelMaxWidth,`calc(100% - ${$l.size} - ${Nc.horizontalSpacing})`)};
1492
+ ${C(U.labelMaxWidth,`calc(100% - ${St.size} - ${U.horizontalSpacing})`)};
1628
1493
  }
1629
1494
 
1630
1495
  .ft-text-field--with-password ft-icon:hover {
1631
1496
  cursor: pointer;
1632
1497
  }
1633
- `;var md=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vd extends(as(Dr,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ic.EYE_SLASH,this.passwordRevealedIcon=ic.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Jt`
1634
- <div class="${Ze(t)}">
1498
+ `;var at=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},q=class extends fr(W,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=mr.EYE_SLASH,this.passwordRevealedIcon=mr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||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 $`
1499
+ <div class="${Nt(t)}">
1635
1500
  <div class="ft-text-field--main-panel"
1636
1501
  @keydown=${this.handleKeyboardNavigation}
1637
1502
  @focusout=${this.onMainPanelBlur}>
1638
1503
  <ft-input-label text="${this.label}"
1639
1504
  ?disabled=${this.disabled}
1640
1505
  ?outlined=${this.outlined}
1641
- ?raised=${this.focused||""!=this.value}
1506
+ ?raised=${this.focused||this.value!=""}
1642
1507
  ?error=${this.error}></ft-input-label>
1643
1508
  <div class="ft-text-field--input-panel">
1644
- ${this.outlined?te:Jt`
1509
+ ${this.outlined?B:$`
1645
1510
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1646
1511
  `}
1647
- ${this.prefix?Jt`
1512
+ ${this.prefix?$`
1648
1513
  <ft-typography class="ft-text-field--prefix" variant="body1">
1649
1514
  ${this.prefix}
1650
1515
  </ft-typography>
1651
- `:te}
1516
+ `:B}
1652
1517
  <input type=${this.password&&this.hidePassword?"password":"text"}
1653
- maxlength=${(t=>t??Z)(this.maxLength||void 0)}
1518
+ maxlength=${Qc(this.maxLength||void 0)}
1654
1519
  aria-label="${this.label}"
1655
1520
  class="ft-typography--body1 ft-text-field--input"
1656
1521
  part="input"
@@ -1666,23 +1531,23 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1666
1531
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1667
1532
  </div>
1668
1533
  </div>
1669
- ${this.helper?Jt`
1534
+ ${this.helper?$`
1670
1535
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1671
1536
  ${this.helper}
1672
1537
  </ft-typography>
1673
- `:te}
1538
+ `:B}
1674
1539
  </div>
1675
- `}renderPasswordIcon(){return Jt`
1540
+ `}renderPasswordIcon(){return $`
1676
1541
  <ft-icon class="ft-text-field--icon"
1677
1542
  .variant=${this.iconVariant}
1678
1543
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1679
1544
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1680
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?Jt`
1545
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?$`
1681
1546
  <ft-icon class="ft-text-field--icon"
1682
1547
  .variant=${this.iconVariant}
1683
1548
  .value=${this.icon}
1684
- @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1685
- `:te}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Ir(this.mainPanel,this.suggestionsContainer,"bottom").then((({x:t,y:e})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${e}px`})))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}vd.elementDefinitions={"ft-input-label":kc,"ft-ripple":ql,"ft-typography":Gl,"ft-icon":cc},vd.styles=[yl,bd],md([Oe()],vd.prototype,"label",void 0),md([Oe({noAccessor:!0})],vd.prototype,"value",null),md([Se()],vd.prototype,"dispatchedValue",void 0),md([Oe()],vd.prototype,"helper",void 0),md([Oe({type:Boolean})],vd.prototype,"outlined",void 0),md([Oe({type:Boolean})],vd.prototype,"disabled",void 0),md([Oe({type:Boolean})],vd.prototype,"error",void 0),md([Oe({type:Boolean})],vd.prototype,"fixedMenuPosition",void 0),md([Oe()],vd.prototype,"prefix",void 0),md([Oe()],vd.prototype,"icon",void 0),md([Oe()],vd.prototype,"passwordHiddenIcon",void 0),md([Oe()],vd.prototype,"passwordRevealedIcon",void 0),md([Oe()],vd.prototype,"iconVariant",void 0),md([Oe({type:Boolean})],vd.prototype,"filterSuggestions",void 0),md([Oe({type:Number})],vd.prototype,"maxLength",void 0),md([Oe({type:Boolean})],vd.prototype,"password",void 0),md([Se()],vd.prototype,"focused",void 0),md([Se()],vd.prototype,"hidePassword",void 0),md([Se()],vd.prototype,"hideSuggestions",void 0),md([Se()],vd.prototype,"visibleSuggestions",void 0),md([$e(".ft-text-field--main-panel")],vd.prototype,"mainPanel",void 0),md([$e(".ft-text-field--input")],vd.prototype,"input",void 0),md([$e(".ft-text-field--suggestions")],vd.prototype,"suggestionsContainer",void 0),md([ke({selector:"ft-text-field-suggestion"})],vd.prototype,"suggestions",void 0);const xd=ft`
1549
+ @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1550
+ `:B}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",fo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:o})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let o=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};q.elementDefinitions={"ft-input-label":Pt,"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};q.styles=[Ur,td];at([g()],q.prototype,"label",void 0);at([g({noAccessor:!0})],q.prototype,"value",null);at([H()],q.prototype,"dispatchedValue",void 0);at([g()],q.prototype,"helper",void 0);at([g({type:Boolean})],q.prototype,"outlined",void 0);at([g({type:Boolean})],q.prototype,"disabled",void 0);at([g({type:Boolean})],q.prototype,"error",void 0);at([g({type:Boolean})],q.prototype,"fixedMenuPosition",void 0);at([g()],q.prototype,"prefix",void 0);at([g()],q.prototype,"icon",void 0);at([g()],q.prototype,"passwordHiddenIcon",void 0);at([g()],q.prototype,"passwordRevealedIcon",void 0);at([g()],q.prototype,"iconVariant",void 0);at([g({type:Boolean})],q.prototype,"filterSuggestions",void 0);at([g({type:Number})],q.prototype,"maxLength",void 0);at([g({type:Boolean})],q.prototype,"password",void 0);at([H()],q.prototype,"focused",void 0);at([H()],q.prototype,"hidePassword",void 0);at([H()],q.prototype,"hideSuggestions",void 0);at([H()],q.prototype,"visibleSuggestions",void 0);at([G(".ft-text-field--main-panel")],q.prototype,"mainPanel",void 0);at([G(".ft-text-field--input")],q.prototype,"input",void 0);at([G(".ft-text-field--suggestions")],q.prototype,"suggestionsContainer",void 0);at([an({selector:"ft-text-field-suggestion"})],q.prototype,"suggestions",void 0);var ed=P`
1686
1551
  .ft-text-field-suggestion {
1687
1552
  position: relative;
1688
1553
  padding: 8px 16px;
@@ -1707,7 +1572,7 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1707
1572
  slot {
1708
1573
  pointer-events: none;
1709
1574
  }
1710
- `;var wd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Od extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Sd extends Dr{render(){return Jt`
1575
+ `;var cs=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ls=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Ae=class extends W{render(){return $`
1711
1576
  <div class="ft-text-field-suggestion"
1712
1577
  tabindex="-1"
1713
1578
  @keydown=${this.onKeyDown}
@@ -1719,17 +1584,17 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1719
1584
  <slot></slot>
1720
1585
  </ft-typography>
1721
1586
  </div>
1722
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Od(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Sd.elementDefinitions={"ft-ripple":ql,"ft-typography":Gl,"ft-icon":cc},Sd.styles=xd,wd([Oe()],Sd.prototype,"value",void 0),wd([$e(".ft-text-field-suggestion")],Sd.prototype,"container",void 0),wd([Ie()],Sd.prototype,"assignedNodes",void 0),go("ft-text-field")(vd),go("ft-text-field-suggestion")(Sd);class Cd{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Nd{convertPaginatedToc(t){return new Cd(t).build()}}var $d,Ed,kd,Id,Rd,Ud,Ld,_d,Ad,Bd,Wd,Td,zd,Fd,Dd,Pd,Md,jd,Zd;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=d(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),p.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},u.call(g.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}($d||($d={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ed||(Ed={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(kd||(kd={})),function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"}(Id||(Id={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Rd||(Rd={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Ud||(Ud={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Ld||(Ld={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(_d||(_d={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ad||(Ad={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Bd||(Bd={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Wd||(Wd={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Td||(Td={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zd||(zd={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Fd||(Fd={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Dd||(Dd={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Pd||(Pd={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Md||(Md={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(jd||(jd={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Zd||(Zd={}));const Hd={[jd.PERSONAL_BOOK_SHARE_USER]:[jd.PERSONAL_BOOK_USER],[jd.HTML_EXPORT_USER]:[jd.PERSONAL_BOOK_USER],[jd.PDF_EXPORT_USER]:[jd.PERSONAL_BOOK_USER],[jd.KHUB_ADMIN]:[jd.CONTENT_PUBLISHER],[jd.ADMIN]:[jd.KHUB_ADMIN,jd.USERS_ADMIN,jd.PORTAL_ADMIN],[jd.DEVELOPER]:[jd.BETA_USER,jd.DEBUG_USER]};function Kd(t,e){return t===e||(Hd[t]??[]).some((t=>Kd(t,e)))}function Gd(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Kd(t,e)))}class Vd extends Hc{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Gd(null!==(e=null===(t=jc.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=jc.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case ps.FEEDBACK:return Gd(null!=e?e:[],jd.FEEDBACK_USER);case ps.RATING:return Gd(null!=e?e:[],jd.RATING_USER)&&null!=o&&o!==_d.NO_RATING;case ps.PRINT:return Gd(null!=e?e:[],jd.PRINT_USER);case ps.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case ps.COLLECTIONS:return Gd(null!=e?e:[],jd.COLLECTION_USER);case ps.PERSONAL_BOOKS:return Gd(null!=e?e:[],jd.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class qd extends Vd{static async build(t){return new qd(new Nd,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Yd{static build(t,e){return new Yd((t=>os.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:qd.build)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new so(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return ho((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,i,r;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Qe||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0?null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.updateClusteringHelper()})):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),r=null!==(e=null===(t=jc.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[];return new no(o,i,this.metadataForSwitchToRelatives,r)}}async navigateToRelativeTopicIfFound(t){var e,o,i;const r=await ho((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(i=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===i?void 0:i[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}}const Jd=ft`
1723
- `;class Xd extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Qd extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class th extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class eh extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class oh extends Event{constructor(){super("ft-reader-map-not-found")}}class ih extends Event{constructor(){super("ft-reader-map-unauthorized")}}class rh extends Event{constructor(){super("ft-reader-map-forbidden")}}class nh extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var ah=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sh extends pn{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new so(5),this.navigationDebouncer=new so(10),this.mapLoadedEventDebouncer=new so(50),this.addStore(jc)}render(){return Jt`
1587
+ `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new ls(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())}};Ae.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};Ae.styles=ed;cs([g()],Ae.prototype,"value",void 0);cs([G(".ft-text-field-suggestion")],Ae.prototype,"container",void 0);cs([oo()],Ae.prototype,"assignedNodes",void 0);V("ft-text-field")(q);V("ft-text-field-suggestion")(Ae);var rd=r=>we.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var ds=class{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,e,o):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:o,children:[]};this.register(d);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,d.tocId);return d.children=[...u,...h],[d]})}convertSectionNodes(t,e,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},u=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}},Ci=class{convertPaginatedToc(t){return new ds(t).build()}};var FC=Pd(id(),1);var nd;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(nd||(nd={}));var ad;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ad||(ad={}));var sd;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(sd||(sd={}));var ld;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ld||(ld={}));var cd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(cd||(cd={}));var dd;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(dd||(dd={}));var pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(pd||(pd={}));var Re;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Re||(Re={}));var ud;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ud||(ud={}));var fd;(function(r){r.ASC="ASC",r.DESC="DESC"})(fd||(fd={}));var hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(hd||(hd={}));var md;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(md||(md={}));var gd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(gd||(gd={}));var yd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(yd||(yd={}));var bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(bd||(bd={}));var vd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(vd||(vd={}));var xd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(xd||(xd={}));var st;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(st||(st={}));var Sd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Sd||(Sd={}));var sf={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER]};function Od(r,t){return r===t||(sf[r]??[]).some(e=>Od(e,t))}function vr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Od(o,t))}var Ai=class extends ue{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(e)))),this.cache.register("ratingSummary",()=>{var t,e;return vr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){let n=this.getNavigationData(t,e,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,o){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],d=c?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var o;return e?{type:e.topics.type,rating:(o=e.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Zt.FEEDBACK:return vr(e??[],st.FEEDBACK_USER);case Zt.RATING:return vr(e??[],st.RATING_USER)&&o!=null&&o!==Re.NO_RATING;case Zt.PRINT:return vr(e??[],st.PRINT_USER);case Zt.BOOKMARK:return!!e?.sessionAuthenticated;case Zt.COLLECTIONS:return vr(e??[],st.COLLECTION_USER);case Zt.PERSONAL_BOOKS:return vr(e??[],st.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ri=class r extends Ai{static async build(t){return new r(new Ci,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var _i=class r{static build(t,e){return new r(rd(t.trim()||"context"),e??Ri.build)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new et(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return no(()=>this.service)}async navigateToTopic(t,e,o){let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof ir)&&this.errorHandler(s)}}fetchRelatives(){var t,e,o;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new io(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;let a=await no(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(o=(e=c?.results)===null||e===void 0?void 0:e[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var wd=P`
1588
+ `;var Ni=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Ti=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ii=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Pi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},$i=class extends Event{constructor(){super("ft-reader-map-not-found")}},ki=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Li=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Mi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Vt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},lf=r=>t=>+(t??"NaN")>0?+t:r,Ot=class extends Kt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new et(5),this.navigationDebouncer=new et(10),this.mapLoadedEventDebouncer=new et(50),this.addStore(M)}render(){return $`
1724
1589
  ${this.importStyleIfNeeded()}
1725
1590
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1726
- `}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?te:Jt`
1591
+ `}importStyleIfNeeded(){var t,e;let o=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!o||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?B:$`
1727
1592
  <style>
1728
1593
  @import "${o}"
1729
1594
  </style>
1730
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Yd.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new th(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Qd(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new nh),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new ih):403===e.status?this.dispatchEvent(new rh):404===e.status?this.dispatchEvent(new oh):this.dispatchEvent(new eh(t))}reloadBookmarks(){od.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Xd(this.map,this.toc))}))}}var lh;sh.styles=Jd,ah([rn({store:jc.name})],sh.prototype,"baseUrl",void 0),ah([Oe()],sh.prototype,"mapId",void 0),ah([Oe()],sh.prototype,"tocId",void 0),ah([Oe()],sh.prototype,"section",void 0),ah([Oe()],sh.prototype,"topicPivot",void 0),ah([Oe()],sh.prototype,"searchInDocumentQuery",void 0),ah([Oe({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:lh}})],sh.prototype,"page",void 0),ah([rn({store:"reader"})],sh.prototype,"map",void 0),ah([rn({store:"reader"})],sh.prototype,"toc",void 0),ah([rn({store:"reader"})],sh.prototype,"visibleTopics",void 0),ah([rn({store:"reader"})],sh.prototype,"currentPage",void 0),ah([rn({store:"reader"})],sh.prototype,"scrollTarget",void 0),ah([Oe({attribute:!1})],sh.prototype,"readerServiceProvider",void 0),go("ft-reader-context")(sh);class ch extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class dh extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class hh extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class fh extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class uh extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var ph=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gh extends(sd(ms)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(pd,gd)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ps.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ps.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,e;const o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof o?fo(o):o}render(){return this.canAccessFeedback||this.canAccessRating?Jt`
1595
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=_i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.head.append(o)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Ii(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Ti(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Mi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new ki):e.status===403?this.dispatchEvent(new Li):e.status===404?this.dispatchEvent(new $i):this.dispatchEvent(new Pi(t))}reloadBookmarks(){Yc.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc))})}};Ot.styles=wd;Vt([ct({store:M.name})],Ot.prototype,"baseUrl",void 0);Vt([g()],Ot.prototype,"mapId",void 0);Vt([g()],Ot.prototype,"tocId",void 0);Vt([g()],Ot.prototype,"section",void 0);Vt([g()],Ot.prototype,"topicPivot",void 0);Vt([g()],Ot.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:lf()}})],Ot.prototype,"page",void 0);Vt([ct({store:"reader"})],Ot.prototype,"map",void 0);Vt([ct({store:"reader"})],Ot.prototype,"toc",void 0);Vt([ct({store:"reader"})],Ot.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],Ot.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],Ot.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],Ot.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(Ot);var Di=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Ui=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Fi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},zi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var xt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},tt=class extends Ve(Fe){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Z,Jc)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Zt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Zt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,e;let o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof o=="string"?ti(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
1731
1596
  <div class="ft-reader-feedback">
1732
- ${this.hideTitle?te:Jt`
1597
+ ${this.hideTitle?B:$`
1733
1598
  <ft-typography variant="title" part="main-title">
1734
1599
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1735
1600
  </ft-typography>
@@ -1737,105 +1602,113 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1737
1602
  ${this.renderRatingSection()}
1738
1603
  ${this.renderFeedbackSection()}
1739
1604
  </div>
1740
- `:te}renderRatingSection(){return this.canAccessRating?Jt`
1605
+ `}renderRatingSection(){return this.canAccessRating?$`
1741
1606
  <div class="ft-reader-feedback--rating" part="rating-container">
1742
1607
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1743
- ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1608
+ ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1744
1609
  </ft-typography>
1745
1610
  ${this.renderRating()}
1746
1611
  <ft-typography variant="caption" class="ft-reader-feedback--rating-date" part="rating-date">
1747
1612
  ${this.renderRatingDate()}
1748
1613
  </ft-typography>
1749
1614
  </div>
1750
- `:te}renderRatingDate(){const t=this.ratingDate;if(null==t)return pd.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return pd.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?pd.messages.ratedToday():pd.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return Jt`
1615
+ `:B}renderRatingDate(){let t=this.ratingDate;if(t==null)return Z.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return Z.messages.ratedNow();let e=new Date().toLocaleDateString(),o=t.toLocaleDateString();return e===o?Z.messages.ratedToday():Z.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1751
1616
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1752
- ${Me(new Array(5),((t,e)=>e),((t,e)=>{let o="STARS"===this.ratingType&&this.ratingValue>e;const i=e+1;return Jt`
1753
- <ft-button round part="rating-stars-${i}"
1754
- label="${pd.messages.starsRating(i)}"
1617
+ ${ln(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return $`
1618
+ <ft-button round part="rating-stars-${c}"
1619
+ label="${Z.messages.starsRating(c)}"
1755
1620
  tooltipPosition="top"
1756
1621
  .iconVariant=${this.iconVariant}
1757
- icon="${o?this.filledStarIcon:this.emptyStarIcon}"
1758
- class="ft-reader-feedback--${o?"active":"inactive"}"
1759
- @click=${()=>this.rate(this.ratingValue===i?void 0:i)}
1622
+ icon="${l?this.filledStarIcon:this.emptyStarIcon}"
1623
+ class="ft-reader-feedback--${l?"active":"inactive"}"
1624
+ @click=${()=>this.rate(this.ratingValue===c?void 0:c)}
1760
1625
  ></ft-button>
1761
- `}))}
1626
+ `})}
1762
1627
  </div>
1763
- `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return Jt`
1628
+ `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return $`
1764
1629
  <ft-switch unselectable
1765
- @change=${t=>this.rate(t.detail)}
1630
+ @change=${a=>this.rate(a.detail)}
1766
1631
  part="rating rating-like">
1767
1632
  <ft-switch-option .value=${1}
1768
1633
  ?selected=${e}
1769
1634
  .iconVariant=${this.iconVariant}
1770
1635
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1771
- ${pd.messages.like()}
1636
+ ${Z.messages.like()}
1772
1637
  </ft-switch-option>
1773
1638
  <ft-switch-option .value=${0}
1774
1639
  ?selected=${t}
1775
1640
  .iconVariant=${this.iconVariant}
1776
1641
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1777
- ${pd.messages.dislike()}
1642
+ ${Z.messages.dislike()}
1778
1643
  </ft-switch-option>
1779
1644
  </ft-switch>
1780
- `;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,i="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return Jt`
1645
+ `;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return $`
1781
1646
  <ft-switch unselectable
1782
- @change=${t=>this.rate(t.detail)}
1647
+ @change=${a=>this.rate(a.detail)}
1783
1648
  part="rating rating-dichotomous">
1784
1649
  <ft-switch-option .value=${1}
1785
- ?selected=${i}>
1786
- ${pd.messages.dichotomousYes()}
1650
+ ?selected=${n}>
1651
+ ${Z.messages.dichotomousYes()}
1787
1652
  </ft-switch-option>
1788
1653
  <ft-switch-option .value=${0}
1789
1654
  ?selected=${o}>
1790
- ${pd.messages.dichotomousNo()}
1655
+ ${Z.messages.dichotomousNo()}
1791
1656
  </ft-switch-option>
1792
1657
  </ft-switch>
1793
- `}return te}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,o,i,r;if(this.canAccessFeedback){const n=this.feedbackMailLinkBuilder(this.feedbackMessage);let a=Jt`
1658
+ `}return B}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1794
1659
  <ft-button primary
1795
1660
  type="submit" name="submit"
1796
1661
  class="ft-reader-feedback--send-feedback"
1797
1662
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1798
1663
  part="send-feedback">
1799
- ${pd.messages.okButton()}
1664
+ ${Z.messages.okButton()}
1800
1665
  </ft-button>
1801
- `;n&&(a=Jt`
1802
- <a class="ft-reader-feedback--feedback-link" href="${n}">
1803
- ${a}
1666
+ `;s&&(l=$`
1667
+ <a class="ft-reader-feedback--feedback-link" href="${s}">
1668
+ ${l}
1804
1669
  </a>
1805
- `);let s=this.withMoreOptionsButton&&((null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics)||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))?Jt`
1670
+ `);let c=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1806
1671
  <ft-button outlined
1807
1672
  type="button" name="more-options"
1808
1673
  class="ft-reader-feedback--more-options"
1809
1674
  @click="${this.onOpenMoreDetails}"
1810
1675
  part="more-options">
1811
- ${pd.messages.moreOptionsButton()}
1676
+ ${Z.messages.moreOptionsButton()}
1812
1677
  </ft-button>
1813
- `:te;return Jt`
1678
+ `:B;return $`
1814
1679
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1815
- @submit="${t=>this.onFormSubmitEvent(t,!!n)}">
1680
+ @submit="${d=>this.onFormSubmitEvent(d,!!s)}">
1816
1681
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1817
1682
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1818
1683
  </ft-typography>
1819
- ${null==(null===(i=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===i?void 0:i.userId)&&(null===(r=this.configuration)||void 0===r?void 0:r.mailsSentByFluidTopicsForUnauthenticatedUsers)?Jt`
1684
+ ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1820
1685
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1821
1686
  class="ft-reader-feedback--from-input"
1822
- label=${pd.messages.feedbackfromEmail()}
1823
- @change=${t=>this.from=t.detail.trim()}
1687
+ label=${Z.messages.feedbackfromEmail()}
1688
+ @change=${d=>this.from=d.detail.trim()}
1824
1689
  ?error=${this.from&&!this.validFromEmail()}
1825
- helper=${this.from&&!this.validFromEmail()?pd.messages.feedbackfromEmailInvalid():""}
1690
+ helper=${this.from&&!this.validFromEmail()?Z.messages.feedbackfromEmailInvalid():""}
1826
1691
  />
1827
- `:te}
1692
+ `:B}
1828
1693
  <ft-text-area outlined
1829
1694
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1830
- label="${pd.messages.feedbackInputLabel()}"
1831
- @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1695
+ label="${Z.messages.feedbackInputLabel()}"
1696
+ @live-change=${d=>this.feedbackMessage=d.detail.trim()}
1832
1697
  ></ft-text-area>
1833
1698
  <div part="buttons-container">
1834
- ${s}
1835
- ${a}
1699
+ ${c}
1700
+ ${l}
1836
1701
  </div>
1837
1702
  </form>
1838
- `}return te}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new ch({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}gh.elementDefinitions={"ft-button":Tc,"ft-typography":Gl,"ft-switch":mc,"ft-switch-option":gc,"ft-text-area":Lc,"ft-text-field":vd},gh.styles=Fl,ph([Oe({type:Boolean})],gh.prototype,"editorMode",void 0),ph([Oe({type:Boolean})],gh.prototype,"hideTitle",void 0),ph([Oe({type:Boolean})],gh.prototype,"withMoreOptionsButton",void 0),ph([Oe({type:Boolean})],gh.prototype,"ratingAllowed",void 0),ph([Oe({attribute:!1})],gh.prototype,"i18nProperties",void 0),ph([Oe({attribute:!1})],gh.prototype,"ratingSummary",void 0),ph([Oe({attribute:!1})],gh.prototype,"session",void 0),ph([$e(".ft-reader-feedback--feedback-input")],gh.prototype,"feedbackInput",void 0),ph([Se()],gh.prototype,"from",void 0),ph([Se()],gh.prototype,"feedbackMessage",void 0),ph([Oe()],gh.prototype,"iconVariant",void 0),ph([Oe()],gh.prototype,"emptyStarIcon",void 0),ph([Oe()],gh.prototype,"filledStarIcon",void 0),ph([Oe()],gh.prototype,"emptyLikeIcon",void 0),ph([Oe()],gh.prototype,"filledLikeIcon",void 0),ph([Oe()],gh.prototype,"emptyDislikeIcon",void 0),ph([Oe()],gh.prototype,"filledDislikeIcon",void 0),ph([rn({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],gh.prototype,"configuration",void 0),ph([Oe()],gh.prototype,"feedbackMailLinkBuilder",void 0);const yh=fd.fromGwt("server");class bh{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${yh.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const mh=fd.build("inDesignerFeedbackComponent"),vh={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var xh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wh extends(sd(ms)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=nc.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 bh,this.i18nProperties={feedbackMainTitle:pd.properties.mapFeedbackMainTitle(),ratingSectionTitle:pd.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:pd.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:pd.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(jc)}render(){return Jt`
1703
+ `}return B}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Di({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};tt.elementDefinitions={"ft-button":te,"ft-typography":ht,"ft-switch":Wt,"ft-switch-option":yt,"ft-text-area":wt,"ft-text-field":q};tt.styles=kc;xt([g({type:Boolean})],tt.prototype,"editorMode",void 0);xt([g({type:Boolean})],tt.prototype,"hideTitle",void 0);xt([g({type:Boolean})],tt.prototype,"withMoreOptionsButton",void 0);xt([g({type:Boolean})],tt.prototype,"ratingAllowed",void 0);xt([g({attribute:!1})],tt.prototype,"i18nProperties",void 0);xt([g({attribute:!1})],tt.prototype,"ratingSummary",void 0);xt([g({attribute:!1})],tt.prototype,"session",void 0);xt([G(".ft-reader-feedback--feedback-input")],tt.prototype,"feedbackInput",void 0);xt([H()],tt.prototype,"from",void 0);xt([H()],tt.prototype,"feedbackMessage",void 0);xt([g()],tt.prototype,"iconVariant",void 0);xt([g()],tt.prototype,"emptyStarIcon",void 0);xt([g()],tt.prototype,"filledStarIcon",void 0);xt([g()],tt.prototype,"emptyLikeIcon",void 0);xt([g()],tt.prototype,"filledLikeIcon",void 0);xt([g()],tt.prototype,"emptyDislikeIcon",void 0);xt([g()],tt.prototype,"filledDislikeIcon",void 0);xt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],tt.prototype,"configuration",void 0);xt([g()],tt.prototype,"feedbackMailLinkBuilder",void 0);var zr=je.fromGwt("server");var Wr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(o=>t.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var t,e;let o=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1704
+ ${this.bodyMetadata}
1705
+ ${this.url}
1706
+ _________________________________________________________________
1707
+
1708
+ ${t??""}
1709
+
1710
+ _________________________________________________________________
1711
+ ${zr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${o}&body=${n}`}};var Ke=je.build("inDesignerFeedbackComponent"),Wi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Et=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},dt=class extends Ve(Fe){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ut.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 Wr,this.i18nProperties={feedbackMainTitle:Z.properties.mapFeedbackMainTitle(),ratingSectionTitle:Z.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Z.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Z.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new et(100),this.sendRatingDebouncer=new et(500),this.addStore(M)}render(){return $`
1839
1712
  <ft-reader-feedback
1840
1713
  ratingAllowed
1841
1714
  .i18nProperties=${this.i18nProperties}
@@ -1857,10 +1730,10 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1857
1730
  @mailer-feedback=${this.onMailerFeedbackSent}
1858
1731
  @open-more-options=${this.openMoreOptions}
1859
1732
  ></ft-reader-feedback>
1860
- `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(mh,vh),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Ci({type:"error",message:pd.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:mh.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ci({type:"info",message:mh.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ci({type:"info",message:pd.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ci({type:"error",message:pd.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new uh)}openMoreOptions(){var t,e,o;this.dispatchEvent(new hh({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||_d.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}wh.elementDefinitions={"ft-reader-feedback":gh},xh([rn({store:jc.name})],wh.prototype,"session",void 0),xh([rn({store:"reader"})],wh.prototype,"map",void 0),xh([rn({store:jc.name})],wh.prototype,"editorMode",void 0),xh([rn({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],wh.prototype,"configuration",void 0),xh([Se()],wh.prototype,"ratingSummary",void 0),xh([Oe({type:Boolean})],wh.prototype,"hideTitle",void 0),xh([Oe({type:Boolean})],wh.prototype,"withMoreOptionsButton",void 0),xh([Oe()],wh.prototype,"iconVariant",void 0),xh([Oe()],wh.prototype,"emptyStarIcon",void 0),xh([Oe()],wh.prototype,"filledStarIcon",void 0),xh([Oe()],wh.prototype,"emptyLikeIcon",void 0),xh([Oe()],wh.prototype,"filledLikeIcon",void 0),xh([Oe()],wh.prototype,"emptyDislikeIcon",void 0),xh([Oe()],wh.prototype,"filledDislikeIcon",void 0),xh([$e("ft-reader-feedback")],wh.prototype,"readerFeedback",void 0),xh([ud(yh.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],wh.prototype,"mailSubject",void 0),xh([nn({eventName:"rating-changed"})],wh.prototype,"fetchRatingSummary",null);var Oh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sh extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Ch=Symbol("registerInterval");class Nh extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ch]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Ch]):this.dispatchEvent(new Sh)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ch,Oh([Se()],o.prototype,"tocNode",void 0),Oh([Se()],o.prototype,"disableContextInteractions",void 0),o}(ms)){}var $h=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Eh extends(sd(Nh)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=nc.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 bh,this.i18nProperties={feedbackMainTitle:pd.properties.topicFeedbackMainTitle(),ratingSectionTitle:pd.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:pd.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:pd.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(jc)}render(){var t;return Jt`
1733
+ `}update(t){var e,o,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,Wi),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,o,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:Z.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zi)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Bi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Re.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};dt.elementDefinitions={"ft-reader-feedback":tt};Et([ct({store:M.name})],dt.prototype,"session",void 0);Et([ct({store:"reader"})],dt.prototype,"map",void 0);Et([ct({store:M.name})],dt.prototype,"editorMode",void 0);Et([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],dt.prototype,"configuration",void 0);Et([H()],dt.prototype,"ratingSummary",void 0);Et([g({type:Boolean})],dt.prototype,"hideTitle",void 0);Et([g({type:Boolean})],dt.prototype,"withMoreOptionsButton",void 0);Et([g()],dt.prototype,"iconVariant",void 0);Et([g()],dt.prototype,"emptyStarIcon",void 0);Et([g()],dt.prototype,"filledStarIcon",void 0);Et([g()],dt.prototype,"emptyLikeIcon",void 0);Et([g()],dt.prototype,"filledLikeIcon",void 0);Et([g()],dt.prototype,"emptyDislikeIcon",void 0);Et([g()],dt.prototype,"filledDislikeIcon",void 0);Et([G("ft-reader-feedback")],dt.prototype,"readerFeedback",void 0);Et([Ei(zr.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],dt.prototype,"mailSubject",void 0);Et([yo({eventName:"rating-changed"})],dt.prototype,"fetchRatingSummary",null);var Ed=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},us=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ps=Symbol("registerInterval");function cf(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[ps]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ps]):this.dispatchEvent(new us)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ps,Ed([H()],e.prototype,"tocNode",void 0),Ed([H()],e.prototype,"disableContextInteractions",void 0),e}var Hi=class extends cf(Fe){};var Ct=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},pt=class extends Ve(Hi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ut.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 Wr,this.i18nProperties={feedbackMainTitle:Z.properties.topicFeedbackMainTitle(),ratingSectionTitle:Z.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Z.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Z.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new et(100),this.sendRatingDebouncer=new et(500),this.addStore(M)}render(){var t;return $`
1861
1734
  <ft-reader-feedback
1862
1735
  .i18nProperties=${this.i18nProperties}
1863
- ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
1736
+ ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
1864
1737
  .editorMode=${this.editorMode}
1865
1738
  ?hideTitle=${this.hideTitle}
1866
1739
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1873,10 +1746,216 @@ function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=$
1873
1746
  .filledLikeIcon=${this.filledLikeIcon}
1874
1747
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1875
1748
  .filledDislikeIcon=${this.filledDislikeIcon}
1876
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1749
+ .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1877
1750
  @rate=${this.rate}
1878
1751
  @send-feedback=${this.sendFeedback}
1879
1752
  @mailer-feedback=${this.onMailerFeedbackSent}
1880
1753
  @open-more-options=${this.openMoreOptions}
1881
1754
  ></ft-reader-feedback>
1882
- `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(mh,vh),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new Ci({type:"error",message:pd.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:mh.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ci({type:"info",message:pd.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ci({type:"info",message:mh.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ci({type:"error",message:pd.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new fh(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new dh({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:_d.NO_RATING)||_d.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}Eh.elementDefinitions={"ft-reader-feedback":gh},$h([rn({store:jc.name})],Eh.prototype,"session",void 0),$h([rn({store:"reader"})],Eh.prototype,"map",void 0),$h([rn({store:jc.name})],Eh.prototype,"editorMode",void 0),$h([rn({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Eh.prototype,"configuration",void 0),$h([Se()],Eh.prototype,"ratingSummary",void 0),$h([Oe({type:Boolean})],Eh.prototype,"hideTitle",void 0),$h([Oe({type:Boolean})],Eh.prototype,"withMoreOptionsButton",void 0),$h([Oe()],Eh.prototype,"iconVariant",void 0),$h([Oe()],Eh.prototype,"emptyStarIcon",void 0),$h([Oe()],Eh.prototype,"filledStarIcon",void 0),$h([Oe()],Eh.prototype,"emptyLikeIcon",void 0),$h([Oe()],Eh.prototype,"filledLikeIcon",void 0),$h([Oe()],Eh.prototype,"emptyDislikeIcon",void 0),$h([Oe()],Eh.prototype,"filledDislikeIcon",void 0),$h([$e("ft-reader-feedback")],Eh.prototype,"readerFeedback",void 0),$h([ud(yh.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],Eh.prototype,"mailSubject",void 0),$h([nn({eventName:"rating-changed"})],Eh.prototype,"fetchRatingSummary",null),go("ft-reader-map-feedback")(wh),go("ft-reader-topic-feedback")(Eh),t.FtReaderFeedbackCssVariables=zl,t.FtReaderMapFeedback=wh,t.FtReaderTopicFeedback=Eh,t.styles=Fl}({});
1755
+ `}update(t){var e,o,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,Wi),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((o=this.service)===null||o===void 0?void 0:o.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:Z.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Fi(t))}openMoreOptions(){var t,e,o,n,a,s,l,c;this.dispatchEvent(new Ui({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((o=this.map)===null||o===void 0?void 0:o.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Re.NO_RATING)||Re.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};pt.elementDefinitions={"ft-reader-feedback":tt};Ct([ct({store:M.name})],pt.prototype,"session",void 0);Ct([ct({store:"reader"})],pt.prototype,"map",void 0);Ct([ct({store:M.name})],pt.prototype,"editorMode",void 0);Ct([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],pt.prototype,"configuration",void 0);Ct([H()],pt.prototype,"ratingSummary",void 0);Ct([g({type:Boolean})],pt.prototype,"hideTitle",void 0);Ct([g({type:Boolean})],pt.prototype,"withMoreOptionsButton",void 0);Ct([g()],pt.prototype,"iconVariant",void 0);Ct([g()],pt.prototype,"emptyStarIcon",void 0);Ct([g()],pt.prototype,"filledStarIcon",void 0);Ct([g()],pt.prototype,"emptyLikeIcon",void 0);Ct([g()],pt.prototype,"filledLikeIcon",void 0);Ct([g()],pt.prototype,"emptyDislikeIcon",void 0);Ct([g()],pt.prototype,"filledDislikeIcon",void 0);Ct([G("ft-reader-feedback")],pt.prototype,"readerFeedback",void 0);Ct([Ei(zr.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],pt.prototype,"mailSubject",void 0);Ct([yo({eventName:"rating-changed"})],pt.prototype,"fetchRatingSummary",null);V("ft-reader-map-feedback")(dt);V("ft-reader-topic-feedback")(pt);})();
1756
+ /*! Bundled license information:
1757
+
1758
+ @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
1759
+ (**
1760
+ * @license
1761
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
1762
+ * This code may only be used under the BSD style license found at
1763
+ * http://polymer.github.io/LICENSE.txt
1764
+ * The complete set of authors may be found at
1765
+ * http://polymer.github.io/AUTHORS.txt
1766
+ * The complete set of contributors may be found at
1767
+ * http://polymer.github.io/CONTRIBUTORS.txt
1768
+ * Code distributed by Google as part of the polymer project is also
1769
+ * subject to an additional IP rights grant found at
1770
+ * http://polymer.github.io/PATENTS.txt
1771
+ *)
1772
+
1773
+ @lit/reactive-element/css-tag.js:
1774
+ (**
1775
+ * @license
1776
+ * Copyright 2019 Google LLC
1777
+ * SPDX-License-Identifier: BSD-3-Clause
1778
+ *)
1779
+
1780
+ @lit/reactive-element/reactive-element.js:
1781
+ (**
1782
+ * @license
1783
+ * Copyright 2017 Google LLC
1784
+ * SPDX-License-Identifier: BSD-3-Clause
1785
+ *)
1786
+
1787
+ lit-html/lit-html.js:
1788
+ (**
1789
+ * @license
1790
+ * Copyright 2017 Google LLC
1791
+ * SPDX-License-Identifier: BSD-3-Clause
1792
+ *)
1793
+
1794
+ @lit/reactive-element/css-tag.js:
1795
+ (**
1796
+ * @license
1797
+ * Copyright 2019 Google LLC
1798
+ * SPDX-License-Identifier: BSD-3-Clause
1799
+ *)
1800
+
1801
+ @lit/reactive-element/reactive-element.js:
1802
+ (**
1803
+ * @license
1804
+ * Copyright 2017 Google LLC
1805
+ * SPDX-License-Identifier: BSD-3-Clause
1806
+ *)
1807
+
1808
+ lit-html/lit-html.js:
1809
+ (**
1810
+ * @license
1811
+ * Copyright 2017 Google LLC
1812
+ * SPDX-License-Identifier: BSD-3-Clause
1813
+ *)
1814
+
1815
+ lit-element/lit-element.js:
1816
+ (**
1817
+ * @license
1818
+ * Copyright 2017 Google LLC
1819
+ * SPDX-License-Identifier: BSD-3-Clause
1820
+ *)
1821
+
1822
+ lit-html/is-server.js:
1823
+ (**
1824
+ * @license
1825
+ * Copyright 2022 Google LLC
1826
+ * SPDX-License-Identifier: BSD-3-Clause
1827
+ *)
1828
+
1829
+ @lit/reactive-element/decorators/custom-element.js:
1830
+ (**
1831
+ * @license
1832
+ * Copyright 2017 Google LLC
1833
+ * SPDX-License-Identifier: BSD-3-Clause
1834
+ *)
1835
+
1836
+ @lit/reactive-element/decorators/property.js:
1837
+ (**
1838
+ * @license
1839
+ * Copyright 2017 Google LLC
1840
+ * SPDX-License-Identifier: BSD-3-Clause
1841
+ *)
1842
+
1843
+ @lit/reactive-element/decorators/state.js:
1844
+ (**
1845
+ * @license
1846
+ * Copyright 2017 Google LLC
1847
+ * SPDX-License-Identifier: BSD-3-Clause
1848
+ *)
1849
+
1850
+ @lit/reactive-element/decorators/event-options.js:
1851
+ (**
1852
+ * @license
1853
+ * Copyright 2017 Google LLC
1854
+ * SPDX-License-Identifier: BSD-3-Clause
1855
+ *)
1856
+
1857
+ @lit/reactive-element/decorators/base.js:
1858
+ (**
1859
+ * @license
1860
+ * Copyright 2017 Google LLC
1861
+ * SPDX-License-Identifier: BSD-3-Clause
1862
+ *)
1863
+
1864
+ @lit/reactive-element/decorators/query.js:
1865
+ (**
1866
+ * @license
1867
+ * Copyright 2017 Google LLC
1868
+ * SPDX-License-Identifier: BSD-3-Clause
1869
+ *)
1870
+
1871
+ @lit/reactive-element/decorators/query-all.js:
1872
+ (**
1873
+ * @license
1874
+ * Copyright 2017 Google LLC
1875
+ * SPDX-License-Identifier: BSD-3-Clause
1876
+ *)
1877
+
1878
+ @lit/reactive-element/decorators/query-async.js:
1879
+ (**
1880
+ * @license
1881
+ * Copyright 2017 Google LLC
1882
+ * SPDX-License-Identifier: BSD-3-Clause
1883
+ *)
1884
+
1885
+ @lit/reactive-element/decorators/query-assigned-elements.js:
1886
+ (**
1887
+ * @license
1888
+ * Copyright 2021 Google LLC
1889
+ * SPDX-License-Identifier: BSD-3-Clause
1890
+ *)
1891
+
1892
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
1893
+ (**
1894
+ * @license
1895
+ * Copyright 2017 Google LLC
1896
+ * SPDX-License-Identifier: BSD-3-Clause
1897
+ *)
1898
+
1899
+ lit-html/directive.js:
1900
+ (**
1901
+ * @license
1902
+ * Copyright 2017 Google LLC
1903
+ * SPDX-License-Identifier: BSD-3-Clause
1904
+ *)
1905
+
1906
+ lit-html/directive-helpers.js:
1907
+ (**
1908
+ * @license
1909
+ * Copyright 2020 Google LLC
1910
+ * SPDX-License-Identifier: BSD-3-Clause
1911
+ *)
1912
+
1913
+ lit-html/directives/repeat.js:
1914
+ (**
1915
+ * @license
1916
+ * Copyright 2017 Google LLC
1917
+ * SPDX-License-Identifier: BSD-3-Clause
1918
+ *)
1919
+
1920
+ lit-html/directives/class-map.js:
1921
+ (**
1922
+ * @license
1923
+ * Copyright 2018 Google LLC
1924
+ * SPDX-License-Identifier: BSD-3-Clause
1925
+ *)
1926
+
1927
+ lit-html/directives/style-map.js:
1928
+ (**
1929
+ * @license
1930
+ * Copyright 2018 Google LLC
1931
+ * SPDX-License-Identifier: BSD-3-Clause
1932
+ *)
1933
+
1934
+ lit-html/directives/unsafe-html.js:
1935
+ (**
1936
+ * @license
1937
+ * Copyright 2017 Google LLC
1938
+ * SPDX-License-Identifier: BSD-3-Clause
1939
+ *)
1940
+
1941
+ @lit/reactive-element/css-tag.js:
1942
+ (**
1943
+ * @license
1944
+ * Copyright 2019 Google LLC
1945
+ * SPDX-License-Identifier: BSD-3-Clause
1946
+ *)
1947
+
1948
+ lit-html/static.js:
1949
+ (**
1950
+ * @license
1951
+ * Copyright 2020 Google LLC
1952
+ * SPDX-License-Identifier: BSD-3-Clause
1953
+ *)
1954
+
1955
+ lit-html/directives/if-defined.js:
1956
+ (**
1957
+ * @license
1958
+ * Copyright 2018 Google LLC
1959
+ * SPDX-License-Identifier: BSD-3-Clause
1960
+ *)
1961
+ */