@fluid-topics/ft-reader-search-in-document 2.1.0 → 2.1.2

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,11 +1,11 @@
1
- "use strict";(()=>{var v0=Object.defineProperty;var u=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var q=(r,e)=>{for(var t in e)v0(r,t,{get:e[t],enumerable:!0})};var mp=u(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=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(E,C){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let L=C.prototype.attributeChangedCallback,D=new Set(C.observedAttributes||[]);y(C,D,L);let X={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:L,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(E,X),this._definitionsByClass.set(C,X);let _e=t.call(o,E);_e||(_e=g(E),e.call(o,E,_e)),this===window.customElements&&(s.set(C,X),X.standInClass=_e);let se=this._awaitingUpgrade.get(E);if(se){this._awaitingUpgrade.delete(E);for(let j of se)a.delete(j),v(j,X,!0)}let z=this._whenDefinedPromises.get(E);return z!==void 0&&(z.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){_.push(this),o.upgrade.apply(o,arguments),_.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let L=this._whenDefinedPromises.get(E);return L===void 0&&(L={},L.promise=new Promise(D=>L.resolve=D),this._whenDefinedPromises.set(E,L)),L.promise}_upgradeWhenDefined(E,C,L){let D=this._awaitingUpgrade.get(C);D||this._awaitingUpgrade.set(C,D=new Set),L?D.add(E):D.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let L=s.get(this.constructor);if(!L)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],L.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,L),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,m=E=>{let C=E.getRootNode();if(!f(C)){let L=_[_.length-1];if(L instanceof CustomElementRegistry)return L;C=L.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},g=E=>class{static get formAssociated(){return!0}constructor(){let L=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(L,HTMLElement.prototype);let D=m(L)||window.customElements,X=D._getDefinition(E);return X?v(L,X):a.set(L,D),L}connectedCallback(){let L=n.get(this);L?L.connectedCallback&&L.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let L=n.get(this);L?L.disconnectedCallback&&L.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let L=n.get(this);L&&L.formAssociated&&L?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let L=n.get(this);L?.formAssociated&&L?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let L=n.get(this);L?.formAssociated&&L?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let L=n.get(this);L?.formAssociated&&L?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,L)=>{if(C.size===0||L===void 0)return;let D=E.prototype.setAttribute;D&&(E.prototype.setAttribute=function(se,z){let j=se.toLowerCase();if(C.has(j)){let ae=this.getAttribute(j);D.call(this,j,z),L.call(this,j,ae,z)}else D.call(this,j,z)});let X=E.prototype.removeAttribute;X&&(E.prototype.removeAttribute=function(se){let z=se.toLowerCase();if(C.has(z)){let j=this.getAttribute(z);X.call(this,z),L.call(this,z,j,null)}else X.call(this,z)});let _e=E.prototype.toggleAttribute;_e&&(E.prototype.toggleAttribute=function(se,z){let j=se.toLowerCase();if(C.has(j)){let ae=this.getAttribute(j);_e.call(this,j,z);let Ne=this.getAttribute(j);L.call(this,j,ae,Ne)}else _e.call(this,j,z)})},x=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):x(C)},v=(E,C,L=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{x(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(D=>{E.hasAttribute(D)&&C.attributeChangedCallback.call(E,D,null,E.getAttribute(D))}),L&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let _=[document],P=(E,C,L=void 0)=>{let D=(L?Object.getPrototypeOf(L):E.prototype)[C];E.prototype[C]=function(){_.push(this);let X=D.apply(L||this,arguments);return X!==void 0&&l.set(X,this),_.pop(),X}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let $=(E,C)=>{let L=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...L,set(D){_.push(this),L.set.call(this,D),_.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,L=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...se){let z=C.call(this,...se);return E.set(z,this),z},L.forEach(se=>{let z=window.ElementInternals.prototype,j=z[se];z[se]=function(...ae){let Ne=E.get(this);if(n.get(Ne).formAssociated===!0)return j?.call(this,...ae);throw new DOMException(`Failed to execute ${j} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(z){super(...z),this._elements=z}get value(){return this._elements.find(z=>z.checked===!0)?.value||""}}class X{constructor(z){let j=new Map;z.forEach((ae,Ne)=>{let Os=ae.getAttribute("name"),hp=j.get(Os)||[];this[+Ne]=ae,hp.push(ae),j.set(Os,hp)}),this.length=z.length,j.forEach((ae,Ne)=>{ae&&(ae.length===1?this[Ne]=ae[0]:this[Ne]=new D(ae))})}namedItem(z){return this[z]}}let _e=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let se=_e.get.call(this,[]),z=[];for(let j of se){let ae=n.get(j);(!ae||ae.formAssociated===!0)&&z.push(j)}return new X(z)}})}}});var gp=u(()=>{"use strict";mp();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},n):console.info(t,o,n,s)}}}});var Un,Ui,Es,yp,zo,eo,A,zi,zn,Hn=u(()=>{Un=globalThis,Ui=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Es=Symbol(),yp=new WeakMap,zo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Es)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ui&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=yp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&yp.set(t,e))}return e}toString(){return this.cssText}},eo=r=>new zo(typeof r=="string"?r:r+"",void 0,Es),A=(r,...e)=>{let t=r.length===1?r[0]:e.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 zo(t,r,Es)},zi=(r,e)=>{if(Ui)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let o=document.createElement("style"),n=Un.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zn=Ui?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var x0,S0,C0,O0,E0,w0,Vn,bp,A0,R0,Hi,Ho,Vi,vp,Rt,Vo=u(()=>{Hn();Hn();({is:x0,defineProperty:S0,getOwnPropertyDescriptor:C0,getOwnPropertyNames:O0,getOwnPropertySymbols:E0,getPrototypeOf:w0}=Object),Vn=globalThis,bp=Vn.trustedTypes,A0=bp?bp.emptyScript:"",R0=Vn.reactiveElementPolyfillSupport,Hi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?A0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Vi=(r,e)=>!x0(r,e),vp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Vi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;Rt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=vp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&S0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=C0(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??vp}static _$Ei(){if(this.hasOwnProperty(Hi("elementProperties")))return;let e=w0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hi("properties"))){let t=this.properties,o=[...O0(t),...E0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ho).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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:Ho;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??Vi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!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){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[Hi("elementProperties")]=new Map,Rt[Hi("finalized")]=new Map,R0?.({ReactiveElement:Rt}),(Vn.reactiveElementVersions??=[]).push("2.1.0")});function Lp(r,e){if(!ks(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return xp!==void 0?xp.createHTML(e):e}function io(r,e,t=r,o){if(e===$e)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=io(r,n._$AS(r,e.values),n,o)),e}var As,Wn,xp,Rs,mr,Ls,L0,oo,ji,Gi,ks,Ap,ws,Wi,Sp,Cp,to,Op,Ep,Rp,Ts,b,_s,Is,$e,k,wp,ro,kp,Ki,jn,Wo,no,Gn,Kn,qn,Zn,Ps,k0,Ns,Lt=u(()=>{As=globalThis,Wn=As.trustedTypes,xp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Rs="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ls="?"+mr,L0=`<${Ls}>`,oo=document,ji=()=>oo.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",ks=Array.isArray,Ap=r=>ks(r)||typeof r?.[Symbol.iterator]=="function",ws=`[
2
- \f\r]`,Wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Sp=/-->/g,Cp=/>/g,to=RegExp(`>|${ws}(?:([^\\s"'>=/]+)(${ws}*=${ws}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Op=/'/g,Ep=/"/g,Rp=/^(?:script|style|textarea|title)$/i,Ts=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),b=Ts(1),_s=Ts(2),Is=Ts(3),$e=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),wp=new WeakMap,ro=oo.createTreeWalker(oo,129);kp=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,m,g=-1,y=0;for(;y<d.length&&(s.lastIndex=y,m=s.exec(d),m!==null);)y=s.lastIndex,s===Wi?m[1]==="!--"?s=Sp:m[1]!==void 0?s=Cp:m[2]!==void 0?(Rp.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=to):m[3]!==void 0&&(s=to):s===to?m[0]===">"?(s=n??Wi,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?to:m[3]==='"'?Ep:Op):s===Ep||s===Op?s=to:s===Sp||s===Cp?s=Wi:(s=to,n=void 0);let x=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+L0:g>=0?(o.push(f),d.slice(0,g)+Rs+d.slice(g)+mr+x):d+mr+(g===-2?l:x)}return[Lp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ki=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,m]=kp(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Rs)){let y=m[s++],x=n.getAttribute(g).split(mr),v=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:v[2],strings:x,ctor:v[1]==="."?Gn:v[1]==="?"?Kn:v[1]==="@"?qn:no}),n.removeAttribute(g)}else g.startsWith(mr)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(Rp.test(n.tagName)){let g=n.textContent.split(mr),y=g.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let x=0;x<y;x++)n.append(g[x],ji()),ro.nextNode(),d.push({type:2,index:++a});n.append(g[y],ji())}}}else if(n.nodeType===8)if(n.data===Ls)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(mr,g+1))!==-1;)d.push({type:7,index:a}),g+=mr.length-1}a++}}static createElement(e,t){let o=oo.createElement("template");return o.innerHTML=e,o}};jn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??oo).importNode(t,!0);ro.currentNode=n;let a=ro.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Wo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Zn(a,this,e)),this._$AV.push(f),d=o[++l]}s!==d?.index&&(a=ro.nextNode(),s++)}return ro.currentNode=oo,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Wo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=io(this,e,t),Gi(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==$e&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(oo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(Lp(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new jn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=wp.get(e.strings);return t===void 0&&wp.set(e.strings,t=new Ki(e)),t}k(e){ks(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.O(ji()),this.O(ji()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},no=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,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=k}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!Gi(e)||e!==this._$AH&&e!==$e,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=io(this,l[o+d],t,d),f===$e&&(f=this._$AH[d]),s||=!Gi(f)||f!==this._$AH[d],f===k?e=k:e!==k&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gn=class extends no{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},qn=class extends no{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=io(this,e,t,0)??k)===$e)return;let o=this._$AH,n=e===k&&o!==k||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zn=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){io(this,e)}},Ps={M:Rs,P:mr,A:Ls,C:1,L:kp,R:jn,D:Ap,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},k0=As.litHtmlPolyfillSupport;k0?.(Ki,Wo),(As.litHtmlVersions??=[]).push("3.3.0");Ns=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Wo(e.insertBefore(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var $s,kt,T0,Tp,Ds=u(()=>{Vo();Vo();Lt();Lt();$s=globalThis,kt=class extends Rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ns(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $e}};kt._$litElement$=!0,kt.finalized=!0,$s.litElementHydrateSupport?.({LitElement:kt});T0=$s.litElementPolyfillSupport;T0?.({LitElement:kt});Tp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};($s.litElementVersions??=[]).push("4.2.0")});var FO,_p=u(()=>{FO=!1});var Ms={};q(Ms,{CSSResult:()=>zo,LitElement:()=>kt,ReactiveElement:()=>Rt,_$LE:()=>Tp,_$LH:()=>Ps,adoptStyles:()=>zi,css:()=>A,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>FO,mathml:()=>Is,noChange:()=>$e,notEqual:()=>Vi,nothing:()=>k,render:()=>Ns,supportsAdoptingStyleSheets:()=>Ui,svg:()=>_s,unsafeCSS:()=>eo});var T=u(()=>{Vo();Lt();Ds();_p()});var _0,Ip=u(()=>{_0=r=>(e,t)=>{t!==void 0?t.addInitializer((()=>{customElements.define(r,e)})):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Pp(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var I0,Pp,Fs=u(()=>{Vo();I0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Vi},Pp=(r=I0,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var Np=u(()=>{Fs();});function P0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var $p=u(()=>{});var zt,jo=u(()=>{zt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function B(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return zt(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return zt(t,o,{get(){return a(this)}})}}var Dp=u(()=>{jo();});function Bs(r){return(e,t)=>zt(e,t,{get(){return(this.renderRoot??(N0??=document.createDocumentFragment())).querySelectorAll(r)}})}var N0,Mp=u(()=>{jo();});function $0(r){return(e,t)=>zt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Fp=u(()=>{jo();});function Us(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}var Bp=u(()=>{jo();});function zs(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Up=u(()=>{jo();});var Hs={};q(Hs,{customElement:()=>_0,eventOptions:()=>P0,property:()=>h,query:()=>B,queryAll:()=>Bs,queryAssignedElements:()=>Us,queryAssignedNodes:()=>zs,queryAsync:()=>$0,standardProperty:()=>Pp,state:()=>I});var G=u(()=>{Ip();Fs();Np();$p();Dp();Mp();Fp();Bp();Up()});var Qt,mt,Tt,ao=u(()=>{Qt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mt=r=>(...e)=>({_$litDirective$:r,values:e}),Tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var D0,Hp,zp,Go,kr,M0,Vp,Wp,Yn,Vs=u(()=>{Lt();({I:D0}=Ps),Hp=r=>r.strings===void 0,zp=()=>document.createComment(""),Go=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(zp(),n),s=o.insertBefore(zp(),n);t=new D0(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;o.insertBefore(d,n),d=f}}}return t},kr=(r,e,t=r)=>(r._$AI(e,t),r),M0={},Vp=(r,e=M0)=>r._$AH=e,Wp=r=>r._$AH,Yn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}}});var jp,ve,Gp=u(()=>{Lt();ao();Vs();jp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ve=mt(class extends Tt{constructor(r){if(super(r),r.type!==Qt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let n=Wp(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,m,g=0,y=n.length-1,x=0,v=a.length-1;for(;g<=y&&x<=v;)if(n[g]===null)g++;else if(n[y]===null)y--;else if(l[g]===s[x])d[x]=kr(n[g],a[x]),g++,x++;else if(l[y]===s[v])d[v]=kr(n[y],a[v]),y--,v--;else if(l[g]===s[v])d[v]=kr(n[g],a[v]),Go(r,d[v+1],n[g]),g++,v--;else if(l[y]===s[x])d[x]=kr(n[y],a[x]),Go(r,n[g],n[y]),y--,x++;else if(f===void 0&&(f=jp(s,x,v),m=jp(l,g,y)),f.has(l[g]))if(f.has(l[y])){let w=m.get(s[x]),_=w!==void 0?n[w]:null;if(_===null){let P=Go(r,n[g]);kr(P,a[x]),d[x]=P}else d[x]=kr(_,a[x]),Go(r,n[g],_),n[w]=null;x++}else Yn(n[y]),y--;else Yn(n[g]),g++;for(;x<=v;){let w=Go(r,d[v+1]);kr(w,a[x]),d[x++]=w}for(;g<=y;){let w=n[g++];w!==null&&Yn(w)}return this.ut=s,Vp(r,d),$e}})});var Ws={};q(Ws,{repeat:()=>ve});var Ht=u(()=>{Gp()});var he,Kp=u(()=>{Lt();ao();he=mt(class extends Tt{constructor(r){if(super(r),r.type!==Qt.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((e=>r[e])).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return $e}})});var js={};q(js,{classMap:()=>he});var et=u(()=>{Kp()});var qp,F0,B0,Zp=u(()=>{Lt();ao();qp="important",F0=" !"+qp,B0=mt(class extends Tt{constructor(r){if(super(r),r.type!==Qt.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(((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(F0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?qp:""):t[o]=n}}return $e}})});var Gs={};q(Gs,{styleMap:()=>B0});var Yp=u(()=>{Zp()});var Ko,so,Qp=u(()=>{Lt();ao();Ko=class extends Tt{constructor(e){if(super(e),this.it=k,e.type!==Qt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===$e)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Ko.directiveName="unsafeHTML",Ko.resultType=1;so=mt(Ko)});var Ks={};q(Ks,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var qi=u(()=>{Qp()});var qs={};q(qs,{CancelablePromise:()=>Qn,CanceledPromiseError:()=>Xt,cancelable:()=>qo});var Xt,Qn,qo,Xn=u(()=>{"use strict";Xt=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Qn=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new Xt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Xt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qo=r=>new Qn((e,t)=>r.then(e).catch(t))});var Zs={};q(Zs,{customElement:()=>Zi,dateProperty:()=>z0,isNumber:()=>Xp,jsonProperty:()=>de,numberProperty:()=>_t,optionalNumberProperty:()=>U0});function de(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return gt(r);try{return JSON.parse(t)}catch{return gt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:yt,...e??{}})}function U0(r){return _t(r)}function _t(r){return h({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let n=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Xp(e)?gr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Xp(r){return!isNaN(parseFloat(r))}function z0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var Zi,lo=u(()=>{"use strict";G();tt();Zi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var el={};q(el,{applyMixinOnce:()=>Oe,customElements:()=>U,dateReviver:()=>V0,deepCopy:()=>gt,deepEqual:()=>De,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>H0,flatDeep:()=>bt,forEachDeep:()=>Jp,getComposedPathTo:()=>Xs,hasChanged:()=>yt,ignoreComposingEvents:()=>_r,last:()=>Qs,minmax:()=>gr,parseDate:()=>tf,randomId:()=>Js,someDeep:()=>ef,unslotText:()=>Zo,waitFor:()=>Tr,waitUntil:()=>Yi});async function Yi(r,e=10,t=2e4){await Tr(async()=>await r()||void 0,e,t)}async function Tr(r,e=10,t=2e4){let o=await r(),n=performance.now(),a=n;for(;o==null&&(!t||a-n<t);)await Jn(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function bt(r,e){return r.flatMap(t=>[t,...bt(e(t),e)])}function Jp(r,e,t){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=t(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function ef(r,e,t){let o=!1;return Jp(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function H0(r,e,t){return!ef(r,e,(o,n,a,s)=>!t(o,n,a,s))}function V0(...r){return(e,t)=>r.includes(e)?tf(t):t}function tf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function W0(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!De(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!De(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(r);if(t=a.length,t!==n(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!De(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function De(r,e){try{return W0(r,e)}catch{return!1}}function yt(r,e){return!De(r,e)}function Ys(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function gr(r,e,t){return Math.min(Math.max(r,e),t)}function Qs(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Xs(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function gt(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Js(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Oe(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let n=e(o);return n[r]=!0,n}}function _r(){return function(r,e,t){let o=t.value;t.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function U(r){for(let[e,t]of Object.entries(r))Zi(e)(t)}var Jn,tt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var ol={};q(ol,{FtNotificationEvent:()=>Qi,PostResizeEvent:()=>rl,PreResizeEvent:()=>tl,WithEventBus:()=>yr,withEventBus:()=>ea});var Qi,tl,rl,ea,yr,Yo=u(()=>{"use strict";tt();Qi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},tl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},rl=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=Oe(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,n){this.eventBus.addEventListener(t,o,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,n){this.eventBus.removeEventListener(t,o,n)}}}),yr=class extends ea(Object){}});var il={};q(il,{CacheRegistry:()=>Jt,ClearCacheEvent:()=>Xi});var Xi,Jt,nl=u(()=>{"use strict";Xn();Yo();Xi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Jt=class extends yr{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Xi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Xi([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var sl={};q(sl,{accessBreadcrumb:()=>j0,accessResult:()=>It,accessResultId:()=>ta,accessResultUrl:()=>al});function It(r){var e,t,o,n;return(n=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&n!==void 0?n:r?.htmlPackagePage}function ta(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.contentId}function al(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.viewerUrl}function j0(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}var ra=u(()=>{"use strict"});var dl={};q(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,ul=u(()=>{"use strict";ra();cl=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,t,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let n=(o=(t=It(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ll(l)),s.push(ll(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(g=>r.extractResultMetadata({result:g,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(g=>g??{key:e,label:f,value:void 0,displayValue:o}).filter(g=>g.value!=d?.value).filter((g,y,x)=>x.findIndex(v=>v.value===g.value)===y).map(g=>({result:this.findBestResultForMetadataValue(e,g.value),metadata:g})).sort((g,y)=>this.compareMetadata(g.metadata.value,y.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}}});var pl={};q(pl,{Debouncer:()=>ne});var ne,oa=u(()=>{"use strict";ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>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}}});function R(r,e){return Ir(`${r.name}: ${e}`)}var Ir,i,J=u(()=>{T();Ir=r=>typeof r=="string"?eo(r):r,i=class{static create(e,t,o,n){let a=l=>Ir(l??n),s=A`var(${Ir(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${Ir(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=A`var(${Ir(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${Ir(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),n=A`var(${Ir(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>A`var(${Ir(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,rf,of,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,bf,G0,K0,re=u(()=>{J();c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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)")},rf={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},of={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},nf={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},af={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},sf={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},lf={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},cf={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},df={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},uf={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},pf={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},ff={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},hf={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},mf={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},gf={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},yf={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},bf={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},G0={display:rf,"title-1":of,"title-2":nf,"title-3":af,"body-1-regular":sf,"body-1-medium":lf,"body-1-semibold":cf,"body-2-regular":df,"body-2-medium":uf,"body-2-medium-underline":pf,"body-2-semibold":ff,"caption-1-medium":hf,"caption-1-semibold":mf,"caption-2-medium":gf,"caption-2-semibold":yf,"caption-2-bold":bf},K0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,ue=u(()=>{J();re();p={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var q0,vf=u(()=>{J();re();ue();q0={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)}});var Z0,xf=u(()=>{J();re();ue();Z0={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")}});var Y0,Sf=u(()=>{J();re();ue();Y0={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)}});var Q0,Cf=u(()=>{J();re();ue();Q0={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)}});var X0,Of=u(()=>{J();re();ue();X0={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var J0,Ef=u(()=>{J();re();ue();J0={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var eS,wf=u(()=>{J();re();ue();eS={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var tS,Af=u(()=>{J();re();ue();tS={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)}});var rS,Rf=u(()=>{J();re();ue();rS={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)}});var oS,Lf=u(()=>{J();re();ue();oS={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var iS,kf=u(()=>{J();re();ue();iS={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)}});var nS,Tf=u(()=>{J();re();ue();nS={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",p.contentActionPrimary)}});var aS,_f=u(()=>{J();re();ue();aS={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)}});var sS,If=u(()=>{J();re();ue();sS={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var lS,Pf=u(()=>{J();re();ue();lS={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var cS,Nf=u(()=>{J();re();cS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var dS,$f=u(()=>{J();re();ue();dS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var uS,Df=u(()=>{J();re();ue();uS={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var pS,Mf=u(()=>{J();re();ue();pS={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing)}});var fS,Ff=u(()=>{J();re();ue();fS={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var hS,Bf=u(()=>{J();re();ue();hS={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var mS,Uf=u(()=>{J();re();ue();mS={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)}});var gS,zf=u(()=>{J();re();ue();gS={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)}});var yS,Hf=u(()=>{J();re();ue();yS={backgroundColor:i.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)}});var bS,Vf=u(()=>{J();re();ue();bS={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var vS,Wf=u(()=>{J();re();ue();vS={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var xS,jf=u(()=>{J();re();xS={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var SS,Gf=u(()=>{J();re();SS={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var CS,Kf=u(()=>{J();re();ue();CS={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")}});var OS,qf=u(()=>{J();re();ue();OS={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:i.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)}});var ES,Zf=u(()=>{J();re();ue();ES={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var wS,Yf=u(()=>{J();re();ue();wS={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)}});var AS,Qf=u(()=>{J();re();ue();AS={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)}});var RS,Xf=u(()=>{J();re();RS={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Jf=u(()=>{re();ue();vf();xf();Sf();Cf();Of();Ef();wf();Af();Rf();Lf();kf();Tf();_f();If();Pf();Nf();$f();Df();Mf();Ff();Bf();Uf();zf();Hf();Vf();Wf();jf();Gf();Kf();qf();Zf();Yf();Qf();Xf()});function fl(r){return`ftds--family-${r}`}function hl(r){return`ftds--size-${r}`}var Ji,en,eh=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ji||(Ji={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(en||(en={}))});var Qo=u(()=>{J();Jf();eh()});var ml={};q(ml,{DesignSystemFamily:()=>Ji,DesignSystemSize:()=>en,FtCssVariableFactory:()=>i,badge:()=>nS,banner:()=>iS,button:()=>q0,card:()=>Z0,chart:()=>xS,checkbox:()=>Q0,chip:()=>tS,chipChoice:()=>eS,chipGroup:()=>rS,collapsible:()=>bS,combobox:()=>gS,dateRangePicker:()=>RS,drawer:()=>uS,floatingMenu:()=>mS,foundation:()=>c,link:()=>oS,modal:()=>dS,notice:()=>CS,notification:()=>ES,pageDesigner:()=>SS,pageFooter:()=>lS,pageHeader:()=>sS,pageLayout:()=>cS,popover:()=>yS,radio:()=>X0,reorderableList:()=>AS,resolveFamilyClass:()=>fl,resolveSizeClass:()=>hl,semantic:()=>p,setVariable:()=>R,switch_:()=>vS,table:()=>J0,tabs:()=>pS,textArea:()=>hS,textInput:()=>fS,titleBreadcrumb:()=>aS,toggle:()=>OS,tooltip:()=>wS,treeList:()=>Y0,typographies:()=>G0,typographyBody1Medium:()=>lf,typographyBody1Regular:()=>sf,typographyBody1Semibold:()=>cf,typographyBody2Medium:()=>uf,typographyBody2MediumUnderline:()=>pf,typographyBody2Regular:()=>df,typographyBody2Semibold:()=>ff,typographyCaption1Medium:()=>hf,typographyCaption1Semibold:()=>mf,typographyCaption2Bold:()=>bf,typographyCaption2Medium:()=>gf,typographyCaption2Semibold:()=>yf,typographyDisplay:()=>rf,typographyTitle1:()=>of,typographyTitle2:()=>nf,typographyTitle3:()=>af,typographyVariants:()=>K0});var ia=u(()=>{"use strict";Qo()});var gl={};q(gl,{designSystemVariables:()=>S});var S,yl=u(()=>{"use strict";ia();S={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)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),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","","SHADOW","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","","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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),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 bl={};q(bl,{DynamicImporter:()=>na,dynamicImporter:()=>LS});var na,LS,vl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},LS=new na});function Cl(r,e,t){return lt(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function Pr(r){return r.split("-")[0]}function er(r){return r.split("-")[1]}function Ol(r){return r==="x"?"y":"x"}function El(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function wl(r){return Ol(Jo(r))}function oh(r,e,t){t===void 0&&(t=!1);let o=er(r),n=wl(r),a=El(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=xl(s)),[s,xl(s)]}function ih(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function xl(r){let e=Pr(r);return kS[e]+r.slice(e.length)}function TS(r){return{top:0,right:0,bottom:0,left:0,...r}}function nh(r){return typeof r!="number"?TS(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var rh,th,Sl,co,lt,tn,Vt,kS,aa=u(()=>{rh=["top","right","bottom","left"],th=["start","end"],Sl=rh.reduce((r,e)=>r.concat(e,e+"-"+th[0],e+"-"+th[1]),[]),co=Math.min,lt=Math.max,tn=Math.round,Vt=r=>({x:r,y:r}),kS={left:"right",right:"left",bottom:"top",top:"bottom"}});function ah(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=wl(e),l=El(s),d=Pr(e),f=a==="y",m=o.x+o.width/2-n.width/2,g=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,x;switch(d){case"top":x={x:m,y:o.y-n.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:g};break;case"left":x={x:o.x-n.width,y:g};break;default:x={x:o.x,y:o.y}}switch(er(e)){case"start":x[s]-=y*(t&&f?-1:1);break;case"end":x[s]+=y*(t&&f?-1:1);break}return x}async function sh(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=Xo(e,r),v=nh(x),_=l[y?g==="floating"?"reference":"floating":g],P=uo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:m,strategy:d})),$=g==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},L=uo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:E,strategy:d}):$);return{top:(P.top-L.top+v.top)/C.y,bottom:(L.bottom-P.bottom+v.bottom)/C.y,left:(P.left-L.left+v.left)/C.x,right:(L.right-P.right+v.right)/C.x}}function IS(r,e,t){return(r?[...t.filter(n=>er(n)===r),...t.filter(n=>er(n)!==r)]:t.filter(n=>Pr(n)===n)).filter(n=>r?er(n)===r||(e?ih(n)!==n:!1):!0)}async function NS(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Pr(t),l=er(t),d=Jo(t)==="y",f=PS.has(s)?-1:1,m=a&&d?-1:1,g=Xo(e,r),{mainAxis:y,crossAxis:x,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),d?{x:x*m,y:y*f}:{x:y*f,y:x*m}}var _S,lh,ch,PS,dh,uh,ph,fh=u(()=>{aa();aa();_S=50,lh=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:sh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:m,y:g}=ah(f,o,d),y=o,x=0,v={};for(let w=0;w<a.length;w++){let _=a[w];if(!_)continue;let{name:P,fn:$}=_,{x:E,y:C,data:L,reset:D}=await $({x:m,y:g,initialPlacement:o,placement:y,strategy:n,middlewareData:v,rects:f,platform:l,elements:{reference:r,floating:e}});m=E??m,g=C??g,v[P]={...v[P],...L},D&&x<_S&&(x++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(f=D.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):D.rects),{x:m,y:g}=ah(f,y,d)),w=-1)}return{x:m,y:g,placement:y,strategy:n,middlewareData:v}};ch=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Sl,autoAlignment:x=!0,...v}=Xo(r,e),w=g!==void 0||y===Sl?IS(g||null,x,y):y,_=await d.detectOverflow(e,v),P=((t=s.autoPlacement)==null?void 0:t.index)||0,$=w[P];if($==null)return{};let E=oh($,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==$)return{reset:{placement:w[0]}};let C=[_[Pr($)],_[E[0]],_[E[1]]],L=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],D=w[P+1];if(D)return{data:{index:P+1,overflows:L},reset:{placement:D}};let X=L.map(z=>{let j=er(z.placement);return[z.placement,j&&m?z.overflows.slice(0,2).reduce((ae,Ne)=>ae+Ne,0):z.overflows[0],z.overflows]}).sort((z,j)=>z[1]-j[1]),se=((n=X.filter(z=>z[2].slice(0,er(z[0])?2:3).every(j=>j<=0))[0])==null?void 0:n[0])||X[0][0];return se!==l?{data:{index:P+1,overflows:L},reset:{placement:se}}:{}}}},PS=new Set(["left","top"]);dh=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await NS(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},uh=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:$,y:E}=P;return{x:$,y:E}}},...f}=Xo(r,e),m={x:t,y:o},g=await a.detectOverflow(e,f),y=Jo(Pr(n)),x=Ol(y),v=m[x],w=m[y];if(s){let P=x==="y"?"top":"left",$=x==="y"?"bottom":"right",E=v+g[P],C=v-g[$];v=Cl(E,v,C)}if(l){let P=y==="y"?"top":"left",$=y==="y"?"bottom":"right",E=w+g[P],C=w-g[$];w=Cl(E,w,C)}let _=d.fn({...e,[x]:v,[y]:w});return{..._,data:{x:_.x-t,y:_.y-o,enabled:{[x]:s,[y]:l}}}}}},ph=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=Xo(r,e),m=await s.detectOverflow(e,f),g=Pr(n),y=er(n),x=Jo(n)==="y",{width:v,height:w}=a.floating,_,P;g==="top"||g==="bottom"?(_=g,P=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(P=g,_=y==="end"?"top":"bottom");let $=w-m.top-m.bottom,E=v-m.left-m.right,C=co(w-m[_],$),L=co(v-m[P],E),D=!e.middlewareData.shift,X=C,_e=L;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(_e=E),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(X=$),D&&!y){let z=lt(m.left,0),j=lt(m.right,0),ae=lt(m.top,0),Ne=lt(m.bottom,0);x?_e=v-2*(z!==0||j!==0?z+j:lt(m.left,m.right)):X=w-2*(ae!==0||Ne!==0?ae+Ne:lt(m.top,m.bottom))}await d({...e,availableWidth:_e,availableHeight:X});let se=await s.getDimensions(l.floating);return v!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(r){return mh(r)?(r.nodeName||"").toLowerCase():"#document"}function ct(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function tr(r){var e;return(e=(mh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function mh(r){return la()?r instanceof Node||r instanceof ct(r).Node:!1}function Pt(r){return la()?r instanceof Element||r instanceof ct(r).Element:!1}function rr(r){return la()?r instanceof HTMLElement||r instanceof ct(r).HTMLElement:!1}function hh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ct(r).ShadowRoot}function ei(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Nt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function gh(r){return/^(table|td|th)$/.test(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ti(r){let e=Pt(r)?Nt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||$S.test(e.willChange||"")||DS.test(e.contain||"")}function yh(r){let e=br(r);for(;rr(e)&&!ho(e);){if(ti(e))return e;if(rn(e))return null;e=br(e)}return null}function ca(){return Al==null&&(Al=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Al}function ho(r){return/^(html|body|#document)$/.test(fo(r))}function Nt(r){return ct(r).getComputedStyle(r)}function on(r){return Pt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function br(r){if(fo(r)==="html")return r;let e=r.assignedSlot||r.parentNode||hh(r)&&r.host||tr(r);return hh(e)?e.host:e}function bh(r){let e=br(r);return ho(e)?r.ownerDocument?r.ownerDocument.body:r.body:rr(e)&&ei(e)?e:bh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=bh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=ct(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&t?sa(l):[])}else return e.concat(n,sa(n,[],t))}function da(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}var $S,DS,po,Al,Rl=u(()=>{$S=/transform|translate|scale|rotate|perspective|filter/,DS=/paint|layout|strict|content/,po=r=>!!r&&r!=="none"});function Ch(r){let e=Nt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=rr(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=tn(t)!==a||tn(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Oh(r){return Pt(r)?r:r.contextElement}function ri(r){let e=Oh(r);if(!rr(e))return Vt(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Ch(e),s=(a?tn(t.width):t.width)/o,l=(a?tn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Eh(r){let e=ct(r);return!ca()||!e.visualViewport?MS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function FS(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ct(r)?!1:e}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Oh(r),s=Vt(1);e&&(o?Pt(o)&&(s=ri(o)):s=ri(r));let l=FS(a,t,o)?Eh(a):Vt(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let y=ct(a),x=o&&Pt(o)?ct(o):o,v=y,w=da(v);for(;w&&o&&x!==v;){let _=ri(w),P=w.getBoundingClientRect(),$=Nt(w),E=P.left+(w.clientLeft+parseFloat($.paddingLeft))*_.x,C=P.top+(w.clientTop+parseFloat($.paddingTop))*_.y;d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=E,f+=C,v=ct(w),w=da(v)}}return uo({width:m,height:g,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(tr(r)).left+t}function wh(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-ua(r,t),n=t.top+e.scrollTop;return{x:o,y:n}}function BS(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=tr(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=Vt(1),m=Vt(0),g=rr(o);if((g||!g&&!a)&&((fo(o)!=="body"||ei(s))&&(d=on(o)),g)){let x=nn(o);f=ri(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}let y=s&&!g&&!a?wh(s,d):Vt(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:t.y*f.y-d.scrollTop*f.y+m.y+y.y}}function US(r){return Array.from(r.getClientRects())}function zS(r){let e=tr(r),t=on(r),o=r.ownerDocument.body,n=lt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=lt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+ua(r),l=-t.scrollTop;return Nt(o).direction==="rtl"&&(s+=lt(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function HS(r,e){let t=ct(r),o=tr(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let m=ca();(!m||m&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let f=ua(o);if(f<=0){let m=o.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(o.clientWidth-g.clientWidth-x);v<=vh&&(a-=v)}else f<=vh&&(a+=f);return{width:a,height:s,x:l,y:d}}function VS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=rr(r)?ri(r):Vt(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:s,height:l,x:d,y:f}}function xh(r,e,t){let o;if(e==="viewport")o=HS(r,t);else if(e==="document")o=zS(tr(r));else if(Pt(e))o=VS(e,t);else{let n=Eh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return uo(o)}function Ah(r,e){let t=br(r);return t===e||!Pt(t)||ho(t)?!1:Nt(t).position==="fixed"||Ah(t,e)}function WS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Pt(l)&&fo(l)!=="body"),n=null,a=Nt(r).position==="fixed",s=a?br(r):r;for(;Pt(s)&&!ho(s);){let l=Nt(s),d=ti(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ei(s)&&!d&&Ah(r,s))?o=o.filter(m=>m!==s):n=l,s=br(s)}return e.set(r,o),o}function jS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:WS(e,this._c):[].concat(t),o],l=xh(e,s[0],n),d=l.top,f=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=xh(e,s[y],n);d=lt(x.top,d),f=co(x.right,f),m=co(x.bottom,m),g=lt(x.left,g)}return{width:f-g,height:m-d,x:g,y:d}}function GS(r){let{width:e,height:t}=Ch(r);return{width:e,height:t}}function KS(r,e,t){let o=rr(e),n=tr(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Vt(0);function f(){d.x=ua(n)}if(o||!o&&!a)if((fo(e)!=="body"||ei(n))&&(l=on(e)),o){let x=nn(e,!0,a,e);d.x=x.x+e.clientLeft,d.y=x.y+e.clientTop}else n&&f();a&&!o&&n&&f();let m=n&&!o&&!a?wh(n,l):Vt(0),g=s.left+l.scrollLeft-d.x-m.x,y=s.top+l.scrollTop-d.y-m.y;return{x:g,y,width:s.width,height:s.height}}function Ll(r){return Nt(r).position==="static"}function Sh(r,e){if(!rr(r)||Nt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return tr(r)===t&&(t=t.ownerDocument.body),t}function Rh(r,e){let t=ct(r);if(rn(r))return t;if(!rr(r)){let n=br(r);for(;n&&!ho(n);){if(Pt(n)&&!Ll(n))return n;n=br(n)}return t}let o=Sh(r,e);for(;o&&gh(o)&&Ll(o);)o=Sh(o,e);return o&&ho(o)&&Ll(o)&&!ti(o)?t:o||yh(r)||t}function ZS(r){return Nt(r).direction==="rtl"}var MS,vh,qS,oi,Lh,kl,kh,Th,Tl,_h=u(()=>{fh();aa();Rl();MS=Vt(0);vh=25;qS=async function(r){let e=this.getOffsetParent||Rh,t=this.getDimensions,o=await t(r.floating);return{reference:KS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};oi={convertOffsetParentRelativeRectToViewportRelativeRect:BS,getDocumentElement:tr,getClippingRect:jS,getOffsetParent:Rh,getElementRects:qS,getClientRects:US,getDimensions:GS,getScale:ri,isElement:Pt,isRTL:ZS},Lh=dh,kl=ch,kh=uh,Th=ph,Tl=(r,e,t)=>{let o=new Map,n={platform:oi,...t},a={...n.platform,_c:o};return lh(r,e,{...n,platform:a})}});function Il(r){return YS(r)}function _l(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function YS(r){for(let e=r;e;e=_l(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=_l(r);e;e=_l(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ti(t)||e.tagName==="BODY"))return e}return null}var Ih=u(()=>{Rl()});var $l={};q($l,{computeOffsetAutoPosition:()=>Nl,computeOffsetPosition:()=>Pl});async function Pl(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Tl(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,Il)},middleware:[kh({crossAxis:!0}),kl({allowedPlacements:[o.placement]})]})}async function Nl(r,e,t,o,n,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,n=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,Tl(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,Il)},middleware:[Lh(s??4),kl({allowedPlacements:o}),Th({apply({availableHeight:f,availableWidth:m,elements:g}){typeof a=="string"&&(a=`var(${a})`),a?g.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:g.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?g.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:g.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var pa=u(()=>{"use strict";_h();Ih()});var Dl={};q(Dl,{isSlotEmptyOrWithoutContent:()=>an});var an,Ml=u(()=>{"use strict";an=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0});var Fl={};q(Fl,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";T();Hn();lo();sn=class extends kt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return zi(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Zi(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}}});var Ul={};q(Ul,{shadowQuerySelector:()=>Bl,shadowQuerySelectorAll:()=>QS});function Bl(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function QS(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ha=u(()=>{"use strict"});var zl={};q(zl,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>F});var ii,Dh,Ph,Nh,Mh,$h,mo,F,ln=u(()=>{"use strict";G();lo();oa();fa();ha();ii=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ph=Symbol("constructorPrototype"),Nh=Symbol("constructorName"),Mh=Symbol("exportpartsDebouncer"),$h=Symbol("dynamicDependenciesLoaded"),mo=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};mo.eventName="exportparts-updated";F=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dh]=new ne(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[Mh].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)})},this[Nh]=this.constructor.name,this[Ph]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nh]&&Object.setPrototypeOf(this,this[Ph])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[$h]||(t[$h]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(mo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(mo.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new mo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];t=Bl(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var t,o,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let x=(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(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],w=[...x,...v].filter(d).map(_=>_.trim());for(let _ of w)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>f.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Dh=Mh;ii([h()],F.prototype,"exportpartsPrefix",void 0);ii([de([])],F.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],F.prototype,"exportparts",void 0);ii([h()],F.prototype,"customStylesheet",void 0);ii([h()],F.prototype,"elementToFocus",void 0);ii([I()],F.prototype,"useAdoptedStyleSheets",void 0)});var Vl={};q(Vl,{FtdsBase:()=>Hl,toFtdsBase:()=>Bh});var Fh,Bh,Hl,Wl=u(()=>{"use strict";ln();G();Qo();tt();Fh=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Bh=Oe(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=en.medium,this.family=Ji.neutral}getDesignSystemBaseClasses(){return{[fl(this.family)]:!0,[hl(this.size)]:!0}}}return Fh([h()],e.prototype,"size",void 0),Fh([h()],e.prototype,"family",void 0),e}),Hl=class extends Bh(F){}});var Uh={};var jl=u(()=>{"use strict"});var go,zh=u(()=>{go=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,m=>{t(f)&&(l++,o(m)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,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(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,m,g=()=>({prevNode:m,node:f}=this.getIteratorNode(s),f);for(;g();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,m,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,x=>d.push(x),n)}),d.push(f);d.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var cn,Hh=u(()=>{zh();cn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new go(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=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 e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.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,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return go.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),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(e,t,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,m=(o>s.end?s.end:o)-s.start,g=e.value.substr(0,s.start),y=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,m),e.value=g+y,e.nodes.forEach((x,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=m),e.nodes[v].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!o(f[s],d))continue;let m=f.index;if(s!==0)for(let g=1;g<s;g++)m+=f[g].length;d=this.wrapRangeInTextNode(d,m,m+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let g=1;g<s;g++)f+=d[g].length;let m=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,m,g=>o(d[s],g),(g,y)=>{e.lastIndex=y,n(g)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:m,valid:g}=this.checkWhitespaceRanges(l,s,a.value);g&&this.wrapRangeInMappedTextNode(a,f,m,y=>t(y,l,a.value.substring(f,m),d),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let m=new RegExp(this.createRegExp(f),`gm${l}`),g=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(y,x)=>this.opt.filter(x,f,o,g),y=>{g++,o++,this.opt.each(y)},()=>{g===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(o):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=go.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function Gl(r){let e=new cn(r);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}var Vh=u(()=>{Hh()});var ql={};q(ql,{highlightHtml:()=>Kl,highlightHtmlColorCssVariable:()=>Wh,highlightHtmlStyles:()=>JS});function Kl(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new XS(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=(f=>{for(let m in t.attributes)f.setAttribute(m,t.attributes[m])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var XS,Wh,JS,Zl=u(()=>{"use strict";T();Qo();Vh();XS=Gl,Wh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),JS=A`
1
+ "use strict";(()=>{var x0=Object.defineProperty;var u=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var q=(r,e)=>{for(var t in e)x0(r,t,{get:e[t],enumerable:!0})};var gp=u(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=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(E,C){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let L=C.prototype.attributeChangedCallback,D=new Set(C.observedAttributes||[]);y(C,D,L);let X={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:L,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(E,X),this._definitionsByClass.set(C,X);let _e=t.call(o,E);_e||(_e=g(E),e.call(o,E,_e)),this===window.customElements&&(s.set(C,X),X.standInClass=_e);let se=this._awaitingUpgrade.get(E);if(se){this._awaitingUpgrade.delete(E);for(let G of se)a.delete(G),v(G,X,!0)}let z=this._whenDefinedPromises.get(E);return z!==void 0&&(z.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){_.push(this),o.upgrade.apply(o,arguments),_.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let L=this._whenDefinedPromises.get(E);return L===void 0&&(L={},L.promise=new Promise(D=>L.resolve=D),this._whenDefinedPromises.set(E,L)),L.promise}_upgradeWhenDefined(E,C,L){let D=this._awaitingUpgrade.get(C);D||this._awaitingUpgrade.set(C,D=new Set),L?D.add(E):D.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let L=s.get(this.constructor);if(!L)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],L.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,L),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,m=E=>{let C=E.getRootNode();if(!f(C)){let L=_[_.length-1];if(L instanceof CustomElementRegistry)return L;C=L.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},g=E=>class{static get formAssociated(){return!0}constructor(){let L=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(L,HTMLElement.prototype);let D=m(L)||window.customElements,X=D._getDefinition(E);return X?v(L,X):a.set(L,D),L}connectedCallback(){let L=n.get(this);L?L.connectedCallback&&L.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let L=n.get(this);L?L.disconnectedCallback&&L.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let L=n.get(this);L&&L.formAssociated&&L?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let L=n.get(this);L?.formAssociated&&L?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let L=n.get(this);L?.formAssociated&&L?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let L=n.get(this);L?.formAssociated&&L?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,L)=>{if(C.size===0||L===void 0)return;let D=E.prototype.setAttribute;D&&(E.prototype.setAttribute=function(se,z){let G=se.toLowerCase();if(C.has(G)){let ae=this.getAttribute(G);D.call(this,G,z),L.call(this,G,ae,z)}else D.call(this,G,z)});let X=E.prototype.removeAttribute;X&&(E.prototype.removeAttribute=function(se){let z=se.toLowerCase();if(C.has(z)){let G=this.getAttribute(z);X.call(this,z),L.call(this,z,G,null)}else X.call(this,z)});let _e=E.prototype.toggleAttribute;_e&&(E.prototype.toggleAttribute=function(se,z){let G=se.toLowerCase();if(C.has(G)){let ae=this.getAttribute(G);_e.call(this,G,z);let $e=this.getAttribute(G);L.call(this,G,ae,$e)}else _e.call(this,G,z)})},x=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):x(C)},v=(E,C,L=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{x(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(D=>{E.hasAttribute(D)&&C.attributeChangedCallback.call(E,D,null,E.getAttribute(D))}),L&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let _=[document],P=(E,C,L=void 0)=>{let D=(L?Object.getPrototypeOf(L):E.prototype)[C];E.prototype[C]=function(){_.push(this);let X=D.apply(L||this,arguments);return X!==void 0&&l.set(X,this),_.pop(),X}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let $=(E,C)=>{let L=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...L,set(D){_.push(this),L.set.call(this,D),_.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,L=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...se){let z=C.call(this,...se);return E.set(z,this),z},L.forEach(se=>{let z=window.ElementInternals.prototype,G=z[se];z[se]=function(...ae){let $e=E.get(this);if(n.get($e).formAssociated===!0)return G?.call(this,...ae);throw new DOMException(`Failed to execute ${G} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(z){super(...z),this._elements=z}get value(){return this._elements.find(z=>z.checked===!0)?.value||""}}class X{constructor(z){let G=new Map;z.forEach((ae,$e)=>{let Es=ae.getAttribute("name"),mp=G.get(Es)||[];this[+$e]=ae,mp.push(ae),G.set(Es,mp)}),this.length=z.length,G.forEach((ae,$e)=>{ae&&(ae.length===1?this[$e]=ae[0]:this[$e]=new D(ae))})}namedItem(z){return this[z]}}let _e=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let se=_e.get.call(this,[]),z=[];for(let G of se){let ae=n.get(G);(!ae||ae.formAssociated===!0)&&z.push(G)}return new X(z)}})}}});var yp=u(()=>{"use strict";gp();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},n):console.info(t,o,n,s)}}}});var Un,Ui,ws,bp,zo,eo,R,zi,zn,Hn=u(()=>{Un=globalThis,Ui=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),bp=new WeakMap,zo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ws)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ui&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=bp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&bp.set(t,e))}return e}toString(){return this.cssText}},eo=r=>new zo(typeof r=="string"?r:r+"",void 0,ws),R=(r,...e)=>{let t=r.length===1?r[0]:e.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 zo(t,r,ws)},zi=(r,e)=>{if(Ui)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let o=document.createElement("style"),n=Un.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zn=Ui?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var S0,C0,O0,E0,w0,R0,Vn,vp,A0,L0,Hi,Ho,Vi,xp,At,Vo=u(()=>{Hn();Hn();({is:S0,defineProperty:C0,getOwnPropertyDescriptor:O0,getOwnPropertyNames:E0,getOwnPropertySymbols:w0,getPrototypeOf:R0}=Object),Vn=globalThis,vp=Vn.trustedTypes,A0=vp?vp.emptyScript:"",L0=Vn.reactiveElementPolyfillSupport,Hi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?A0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Vi=(r,e)=>!S0(r,e),xp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Vi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;At=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=xp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&C0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=O0(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xp}static _$Ei(){if(this.hasOwnProperty(Hi("elementProperties")))return;let e=R0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hi("properties"))){let t=this.properties,o=[...E0(t),...w0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ho).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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:Ho;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??Vi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!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){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};At.elementStyles=[],At.shadowRootOptions={mode:"open"},At[Hi("elementProperties")]=new Map,At[Hi("finalized")]=new Map,L0?.({ReactiveElement:At}),(Vn.reactiveElementVersions??=[]).push("2.1.0")});function kp(r,e){if(!Ts(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sp!==void 0?Sp.createHTML(e):e}function io(r,e,t=r,o){if(e===De)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=io(r,n._$AS(r,e.values),n,o)),e}var As,Wn,Sp,Ls,mr,ks,k0,oo,ji,Gi,Ts,Ap,Rs,Wi,Cp,Op,to,Ep,wp,Lp,_s,b,Is,Ps,De,k,Rp,ro,Tp,Ki,jn,Wo,no,Gn,Kn,qn,Zn,Ns,T0,$s,Lt=u(()=>{As=globalThis,Wn=As.trustedTypes,Sp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ls="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+mr,k0=`<${ks}>`,oo=document,ji=()=>oo.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",Ts=Array.isArray,Ap=r=>Ts(r)||typeof r?.[Symbol.iterator]=="function",Rs=`[
2
+ \f\r]`,Wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cp=/-->/g,Op=/>/g,to=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ep=/'/g,wp=/"/g,Lp=/^(?:script|style|textarea|title)$/i,_s=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),b=_s(1),Is=_s(2),Ps=_s(3),De=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Rp=new WeakMap,ro=oo.createTreeWalker(oo,129);Tp=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,m,g=-1,y=0;for(;y<d.length&&(s.lastIndex=y,m=s.exec(d),m!==null);)y=s.lastIndex,s===Wi?m[1]==="!--"?s=Cp:m[1]!==void 0?s=Op:m[2]!==void 0?(Lp.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=to):m[3]!==void 0&&(s=to):s===to?m[0]===">"?(s=n??Wi,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?to:m[3]==='"'?wp:Ep):s===wp||s===Ep?s=to:s===Cp||s===Op?s=Wi:(s=to,n=void 0);let x=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+k0:g>=0?(o.push(f),d.slice(0,g)+Ls+d.slice(g)+mr+x):d+mr+(g===-2?l:x)}return[kp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ki=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,m]=Tp(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Ls)){let y=m[s++],x=n.getAttribute(g).split(mr),v=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:v[2],strings:x,ctor:v[1]==="."?Gn:v[1]==="?"?Kn:v[1]==="@"?qn:no}),n.removeAttribute(g)}else g.startsWith(mr)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(Lp.test(n.tagName)){let g=n.textContent.split(mr),y=g.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let x=0;x<y;x++)n.append(g[x],ji()),ro.nextNode(),d.push({type:2,index:++a});n.append(g[y],ji())}}}else if(n.nodeType===8)if(n.data===ks)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(mr,g+1))!==-1;)d.push({type:7,index:a}),g+=mr.length-1}a++}}static createElement(e,t){let o=oo.createElement("template");return o.innerHTML=e,o}};jn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??oo).importNode(t,!0);ro.currentNode=n;let a=ro.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Wo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Zn(a,this,e)),this._$AV.push(f),d=o[++l]}s!==d?.index&&(a=ro.nextNode(),s++)}return ro.currentNode=oo,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Wo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=io(this,e,t),Gi(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==De&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(oo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(kp(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new jn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Rp.get(e.strings);return t===void 0&&Rp.set(e.strings,t=new Ki(e)),t}k(e){Ts(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.O(ji()),this.O(ji()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},no=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,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=k}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!Gi(e)||e!==this._$AH&&e!==De,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=io(this,l[o+d],t,d),f===De&&(f=this._$AH[d]),s||=!Gi(f)||f!==this._$AH[d],f===k?e=k:e!==k&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gn=class extends no{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},qn=class extends no{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=io(this,e,t,0)??k)===De)return;let o=this._$AH,n=e===k&&o!==k||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zn=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){io(this,e)}},Ns={M:Ls,P:mr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},T0=As.litHtmlPolyfillSupport;T0?.(Ki,Wo),(As.litHtmlVersions??=[]).push("3.3.0");$s=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Wo(e.insertBefore(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,kt,_0,_p,Ms=u(()=>{Vo();Vo();Lt();Lt();Ds=globalThis,kt=class extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$s(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return De}};kt._$litElement$=!0,kt.finalized=!0,Ds.litElementHydrateSupport?.({LitElement:kt});_0=Ds.litElementPolyfillSupport;_0?.({LitElement:kt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.0")});var HO,Ip=u(()=>{HO=!1});var Fs={};q(Fs,{CSSResult:()=>zo,LitElement:()=>kt,ReactiveElement:()=>At,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>zi,css:()=>R,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>HO,mathml:()=>Ps,noChange:()=>De,notEqual:()=>Vi,nothing:()=>k,render:()=>$s,supportsAdoptingStyleSheets:()=>Ui,svg:()=>Is,unsafeCSS:()=>eo});var T=u(()=>{Vo();Lt();Ms();Ip()});var I0,Pp=u(()=>{I0=r=>(e,t)=>{t!==void 0?t.addInitializer((()=>{customElements.define(r,e)})):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Np(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var P0,Np,Bs=u(()=>{Vo();P0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Vi},Np=(r=P0,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var $p=u(()=>{Bs();});function N0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var zt,jo=u(()=>{zt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function B(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return zt(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return zt(t,o,{get(){return a(this)}})}}var Mp=u(()=>{jo();});function Us(r){return(e,t)=>zt(e,t,{get(){return(this.renderRoot??($0??=document.createDocumentFragment())).querySelectorAll(r)}})}var $0,Fp=u(()=>{jo();});function D0(r){return(e,t)=>zt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Bp=u(()=>{jo();});function zs(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}var Up=u(()=>{jo();});function Hs(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var zp=u(()=>{jo();});var Vs={};q(Vs,{customElement:()=>I0,eventOptions:()=>N0,property:()=>h,query:()=>B,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>D0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Xt,mt,Tt,ao=u(()=>{Xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mt=r=>(...e)=>({_$litDirective$:r,values:e}),Tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var M0,Vp,Hp,Go,Tr,F0,Wp,jp,Qn,Ws=u(()=>{Lt();({I:M0}=Ns),Vp=r=>r.strings===void 0,Hp=()=>document.createComment(""),Go=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Hp(),n),s=o.insertBefore(Hp(),n);t=new M0(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;o.insertBefore(d,n),d=f}}}return t},Tr=(r,e,t=r)=>(r._$AI(e,t),r),F0={},Wp=(r,e=F0)=>r._$AH=e,jp=r=>r._$AH,Qn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}}});var Gp,ge,Kp=u(()=>{Lt();ao();Ws();Gp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ge=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let n=jp(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,m,g=0,y=n.length-1,x=0,v=a.length-1;for(;g<=y&&x<=v;)if(n[g]===null)g++;else if(n[y]===null)y--;else if(l[g]===s[x])d[x]=Tr(n[g],a[x]),g++,x++;else if(l[y]===s[v])d[v]=Tr(n[y],a[v]),y--,v--;else if(l[g]===s[v])d[v]=Tr(n[g],a[v]),Go(r,d[v+1],n[g]),g++,v--;else if(l[y]===s[x])d[x]=Tr(n[y],a[x]),Go(r,n[g],n[y]),y--,x++;else if(f===void 0&&(f=Gp(s,x,v),m=Gp(l,g,y)),f.has(l[g]))if(f.has(l[y])){let w=m.get(s[x]),_=w!==void 0?n[w]:null;if(_===null){let P=Go(r,n[g]);Tr(P,a[x]),d[x]=P}else d[x]=Tr(_,a[x]),Go(r,n[g],_),n[w]=null;x++}else Qn(n[y]),y--;else Qn(n[g]),g++;for(;x<=v;){let w=Go(r,d[v+1]);Tr(w,a[x]),d[x++]=w}for(;g<=y;){let w=n[g++];w!==null&&Qn(w)}return this.ut=s,Wp(r,d),De}})});var js={};q(js,{repeat:()=>ge});var Ht=u(()=>{Kp()});var me,qp=u(()=>{Lt();ao();me=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.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((e=>r[e])).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return De}})});var Gs={};q(Gs,{classMap:()=>me});var tt=u(()=>{qp()});var Zp,B0,U0,Qp=u(()=>{Lt();ao();Zp="important",B0=" !"+Zp,U0=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.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(((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(B0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Zp:""):t[o]=n}}return De}})});var Ks={};q(Ks,{styleMap:()=>U0});var Yp=u(()=>{Qp()});var Ko,so,Xp=u(()=>{Lt();ao();Ko=class extends Tt{constructor(e){if(super(e),this.it=k,e.type!==Xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===De)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Ko.directiveName="unsafeHTML",Ko.resultType=1;so=mt(Ko)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var qi=u(()=>{Xp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Jt,cancelable:()=>qo});var Jt,Yn,qo,Xn=u(()=>{"use strict";Jt=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Yn=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new Jt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Jt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qo=r=>new Yn((e,t)=>r.then(e).catch(t))});var Qs={};q(Qs,{customElement:()=>Zi,dateProperty:()=>H0,isNumber:()=>Jp,jsonProperty:()=>de,numberProperty:()=>_t,optionalNumberProperty:()=>z0});function de(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return gt(r);try{return JSON.parse(t)}catch{return gt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:yt,...e??{}})}function z0(r){return _t(r)}function _t(r){return h({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let n=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Jp(e)?gr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Jp(r){return!isNaN(parseFloat(r))}function H0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var Zi,lo=u(()=>{"use strict";K();rt();Zi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var tl={};q(tl,{applyMixinOnce:()=>Ee,customElements:()=>U,dateReviver:()=>W0,deepCopy:()=>gt,deepEqual:()=>Me,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>V0,flatDeep:()=>bt,forEachDeep:()=>ef,getComposedPathTo:()=>Js,hasChanged:()=>yt,ignoreComposingEvents:()=>Ir,last:()=>Xs,minmax:()=>gr,parseDate:()=>rf,randomId:()=>el,someDeep:()=>tf,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Qi});async function Qi(r,e=10,t=2e4){await _r(async()=>await r()||void 0,e,t)}async function _r(r,e=10,t=2e4){let o=await r(),n=performance.now(),a=n;for(;o==null&&(!t||a-n<t);)await Jn(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function bt(r,e){return r.flatMap(t=>[t,...bt(e(t),e)])}function ef(r,e,t){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=t(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function tf(r,e,t){let o=!1;return ef(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function V0(r,e,t){return!tf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function W0(...r){return(e,t)=>r.includes(e)?rf(t):t}function rf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function j0(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Me(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Me(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(r);if(t=a.length,t!==n(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!Me(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Me(r,e){try{return j0(r,e)}catch{return!1}}function yt(r,e){return!Me(r,e)}function Ys(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function gr(r,e,t){return Math.min(Math.max(r,e),t)}function Xs(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Js(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function gt(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function el(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ee(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let n=e(o);return n[r]=!0,n}}function Ir(){return function(r,e,t){let o=t.value;t.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function U(r){for(let[e,t]of Object.entries(r))Zi(e)(t)}var Jn,rt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var il={};q(il,{FtNotificationEvent:()=>Yi,PostResizeEvent:()=>ol,PreResizeEvent:()=>rl,WithEventBus:()=>yr,withEventBus:()=>ea});var Yi,rl,ol,ea,yr,Qo=u(()=>{"use strict";rt();Yi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},rl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ol=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=Ee(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,n){this.eventBus.addEventListener(t,o,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,n){this.eventBus.removeEventListener(t,o,n)}}}),yr=class extends ea(Object){}});var nl={};q(nl,{CacheRegistry:()=>er,ClearCacheEvent:()=>Xi});var Xi,er,al=u(()=>{"use strict";Xn();Qo();Xi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},er=class extends yr{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Xi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Xi([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var ll={};q(ll,{accessBreadcrumb:()=>G0,accessResult:()=>It,accessResultId:()=>ta,accessResultUrl:()=>sl});function It(r){var e,t,o,n;return(n=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&n!==void 0?n:r?.htmlPackagePage}function ta(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.contentId}function sl(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.viewerUrl}function G0(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}var ra=u(()=>{"use strict"});var ul={};q(ul,{ClusteringHelper:()=>dl,formatHierarchicalValues:()=>cl});function cl(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var dl,pl=u(()=>{"use strict";ra();dl=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,t,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let n=(o=(t=It(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(cl(l)),s.push(cl(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(g=>r.extractResultMetadata({result:g,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(g=>g??{key:e,label:f,value:void 0,displayValue:o}).filter(g=>g.value!=d?.value).filter((g,y,x)=>x.findIndex(v=>v.value===g.value)===y).map(g=>({result:this.findBestResultForMetadataValue(e,g.value),metadata:g})).sort((g,y)=>this.compareMetadata(g.metadata.value,y.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}}});var fl={};q(fl,{Debouncer:()=>ne});var ne,oa=u(()=>{"use strict";ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>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}}});function A(r,e){return Pr(`${r.name}: ${e}`)}var Pr,i,J=u(()=>{T();Pr=r=>typeof r=="string"?eo(r):r,i=class{static create(e,t,o,n){let a=l=>Pr(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),n=R`var(${Pr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>R`var(${Pr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,of,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,bf,vf,K0,q0,re=u(()=>{J();c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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)")},of={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},nf={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},af={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},sf={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},lf={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},cf={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},df={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},uf={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},pf={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},ff={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},hf={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},mf={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},gf={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},yf={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},bf={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},vf={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},K0={display:of,"title-1":nf,"title-2":af,"title-3":sf,"body-1-regular":lf,"body-1-medium":cf,"body-1-semibold":df,"body-2-regular":uf,"body-2-medium":pf,"body-2-medium-underline":ff,"body-2-semibold":hf,"caption-1-medium":mf,"caption-1-semibold":gf,"caption-2-medium":yf,"caption-2-semibold":bf,"caption-2-bold":vf},q0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,ue=u(()=>{J();re();p={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var Z0,xf=u(()=>{J();re();ue();Z0={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)}});var Q0,Sf=u(()=>{J();re();ue();Q0={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")}});var Y0,Cf=u(()=>{J();re();ue();Y0={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)}});var X0,Of=u(()=>{J();re();ue();X0={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)}});var J0,Ef=u(()=>{J();re();ue();J0={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var eS,wf=u(()=>{J();re();ue();eS={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var tS,Rf=u(()=>{J();re();ue();tS={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var rS,Af=u(()=>{J();re();ue();rS={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)}});var oS,Lf=u(()=>{J();re();ue();oS={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)}});var iS,kf=u(()=>{J();re();ue();iS={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var nS,Tf=u(()=>{J();re();ue();nS={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)}});var aS,_f=u(()=>{J();re();ue();aS={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",p.contentActionPrimary)}});var sS,If=u(()=>{J();re();ue();sS={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)}});var lS,Pf=u(()=>{J();re();ue();lS={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var cS,Nf=u(()=>{J();re();ue();cS={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var dS,$f=u(()=>{J();re();dS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var uS,Df=u(()=>{J();re();ue();uS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var pS,Mf=u(()=>{J();re();ue();pS={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var fS,Ff=u(()=>{J();re();ue();fS={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing)}});var hS,Bf=u(()=>{J();re();ue();hS={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var mS,Uf=u(()=>{J();re();ue();mS={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var gS,zf=u(()=>{J();re();ue();gS={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)}});var yS,Hf=u(()=>{J();re();ue();yS={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)}});var bS,Vf=u(()=>{J();re();ue();bS={backgroundColor:i.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)}});var vS,Wf=u(()=>{J();re();ue();vS={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var xS,jf=u(()=>{J();re();ue();xS={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var SS,Gf=u(()=>{J();re();SS={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var CS,Kf=u(()=>{J();re();CS={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var OS,qf=u(()=>{J();re();ue();OS={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")}});var ES,Zf=u(()=>{J();re();ue();ES={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:i.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)}});var wS,Qf=u(()=>{J();re();ue();wS={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var RS,Yf=u(()=>{J();re();ue();RS={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)}});var AS,Xf=u(()=>{J();re();ue();AS={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)}});var LS,Jf=u(()=>{J();re();LS={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var eh=u(()=>{re();ue();xf();Sf();Cf();Of();Ef();wf();Rf();Af();Lf();kf();Tf();_f();If();Pf();Nf();$f();Df();Mf();Ff();Bf();Uf();zf();Hf();Vf();Wf();jf();Gf();Kf();qf();Zf();Qf();Yf();Xf();Jf()});function hl(r){return`ftds--family-${r}`}function ml(r){return`ftds--size-${r}`}var Ji,en,th=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ji||(Ji={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(en||(en={}))});var Yo=u(()=>{J();eh();th()});var gl={};q(gl,{DesignSystemFamily:()=>Ji,DesignSystemSize:()=>en,FtCssVariableFactory:()=>i,badge:()=>aS,banner:()=>nS,button:()=>Z0,card:()=>Q0,chart:()=>SS,checkbox:()=>X0,chip:()=>rS,chipChoice:()=>tS,chipGroup:()=>oS,collapsible:()=>vS,combobox:()=>yS,dateRangePicker:()=>LS,drawer:()=>pS,floatingMenu:()=>gS,foundation:()=>c,link:()=>iS,modal:()=>uS,notice:()=>OS,notification:()=>wS,pageDesigner:()=>CS,pageFooter:()=>cS,pageHeader:()=>lS,pageLayout:()=>dS,popover:()=>bS,radio:()=>J0,reorderableList:()=>AS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>A,switch_:()=>xS,table:()=>eS,tabs:()=>fS,textArea:()=>mS,textInput:()=>hS,titleBreadcrumb:()=>sS,toggle:()=>ES,tooltip:()=>RS,treeList:()=>Y0,typographies:()=>K0,typographyBody1Medium:()=>cf,typographyBody1Regular:()=>lf,typographyBody1Semibold:()=>df,typographyBody2Medium:()=>pf,typographyBody2MediumUnderline:()=>ff,typographyBody2Regular:()=>uf,typographyBody2Semibold:()=>hf,typographyCaption1Medium:()=>mf,typographyCaption1Semibold:()=>gf,typographyCaption2Bold:()=>vf,typographyCaption2Medium:()=>yf,typographyCaption2Semibold:()=>bf,typographyDisplay:()=>of,typographyTitle1:()=>nf,typographyTitle2:()=>af,typographyTitle3:()=>sf,typographyVariants:()=>q0});var ia=u(()=>{"use strict";Yo()});var yl={};q(yl,{designSystemVariables:()=>S});var S,bl=u(()=>{"use strict";ia();S={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)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),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","","SHADOW","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","","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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),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 vl={};q(vl,{DynamicImporter:()=>na,dynamicImporter:()=>kS});var na,kS,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},kS=new na});function Ol(r,e,t){return ct(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function Nr(r){return r.split("-")[0]}function tr(r){return r.split("-")[1]}function El(r){return r==="x"?"y":"x"}function wl(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Rl(r){return El(Jo(r))}function ih(r,e,t){t===void 0&&(t=!1);let o=tr(r),n=Rl(r),a=wl(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Sl(s)),[s,Sl(s)]}function nh(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function Sl(r){let e=Nr(r);return TS[e]+r.slice(e.length)}function _S(r){return{top:0,right:0,bottom:0,left:0,...r}}function ah(r){return typeof r!="number"?_S(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var oh,rh,Cl,co,ct,tn,Vt,TS,aa=u(()=>{oh=["top","right","bottom","left"],rh=["start","end"],Cl=oh.reduce((r,e)=>r.concat(e,e+"-"+rh[0],e+"-"+rh[1]),[]),co=Math.min,ct=Math.max,tn=Math.round,Vt=r=>({x:r,y:r}),TS={left:"right",right:"left",bottom:"top",top:"bottom"}});function sh(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=Rl(e),l=wl(s),d=Nr(e),f=a==="y",m=o.x+o.width/2-n.width/2,g=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,x;switch(d){case"top":x={x:m,y:o.y-n.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:g};break;case"left":x={x:o.x-n.width,y:g};break;default:x={x:o.x,y:o.y}}switch(tr(e)){case"start":x[s]-=y*(t&&f?-1:1);break;case"end":x[s]+=y*(t&&f?-1:1);break}return x}async function lh(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=Xo(e,r),v=ah(x),_=l[y?g==="floating"?"reference":"floating":g],P=uo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:m,strategy:d})),$=g==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},L=uo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:E,strategy:d}):$);return{top:(P.top-L.top+v.top)/C.y,bottom:(L.bottom-P.bottom+v.bottom)/C.y,left:(P.left-L.left+v.left)/C.x,right:(L.right-P.right+v.right)/C.x}}function PS(r,e,t){return(r?[...t.filter(n=>tr(n)===r),...t.filter(n=>tr(n)!==r)]:t.filter(n=>Nr(n)===n)).filter(n=>r?tr(n)===r||(e?nh(n)!==n:!1):!0)}async function $S(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Nr(t),l=tr(t),d=Jo(t)==="y",f=NS.has(s)?-1:1,m=a&&d?-1:1,g=Xo(e,r),{mainAxis:y,crossAxis:x,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),d?{x:x*m,y:y*f}:{x:y*f,y:x*m}}var IS,ch,dh,NS,uh,ph,fh,hh=u(()=>{aa();aa();IS=50,ch=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:lh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:m,y:g}=sh(f,o,d),y=o,x=0,v={};for(let w=0;w<a.length;w++){let _=a[w];if(!_)continue;let{name:P,fn:$}=_,{x:E,y:C,data:L,reset:D}=await $({x:m,y:g,initialPlacement:o,placement:y,strategy:n,middlewareData:v,rects:f,platform:l,elements:{reference:r,floating:e}});m=E??m,g=C??g,v[P]={...v[P],...L},D&&x<IS&&(x++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(f=D.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):D.rects),{x:m,y:g}=sh(f,y,d)),w=-1)}return{x:m,y:g,placement:y,strategy:n,middlewareData:v}};dh=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Cl,autoAlignment:x=!0,...v}=Xo(r,e),w=g!==void 0||y===Cl?PS(g||null,x,y):y,_=await d.detectOverflow(e,v),P=((t=s.autoPlacement)==null?void 0:t.index)||0,$=w[P];if($==null)return{};let E=ih($,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==$)return{reset:{placement:w[0]}};let C=[_[Nr($)],_[E[0]],_[E[1]]],L=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],D=w[P+1];if(D)return{data:{index:P+1,overflows:L},reset:{placement:D}};let X=L.map(z=>{let G=tr(z.placement);return[z.placement,G&&m?z.overflows.slice(0,2).reduce((ae,$e)=>ae+$e,0):z.overflows[0],z.overflows]}).sort((z,G)=>z[1]-G[1]),se=((n=X.filter(z=>z[2].slice(0,tr(z[0])?2:3).every(G=>G<=0))[0])==null?void 0:n[0])||X[0][0];return se!==l?{data:{index:P+1,overflows:L},reset:{placement:se}}:{}}}},NS=new Set(["left","top"]);uh=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await $S(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ph=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:$,y:E}=P;return{x:$,y:E}}},...f}=Xo(r,e),m={x:t,y:o},g=await a.detectOverflow(e,f),y=Jo(Nr(n)),x=El(y),v=m[x],w=m[y];if(s){let P=x==="y"?"top":"left",$=x==="y"?"bottom":"right",E=v+g[P],C=v-g[$];v=Ol(E,v,C)}if(l){let P=y==="y"?"top":"left",$=y==="y"?"bottom":"right",E=w+g[P],C=w-g[$];w=Ol(E,w,C)}let _=d.fn({...e,[x]:v,[y]:w});return{..._,data:{x:_.x-t,y:_.y-o,enabled:{[x]:s,[y]:l}}}}}},fh=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=Xo(r,e),m=await s.detectOverflow(e,f),g=Nr(n),y=tr(n),x=Jo(n)==="y",{width:v,height:w}=a.floating,_,P;g==="top"||g==="bottom"?(_=g,P=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(P=g,_=y==="end"?"top":"bottom");let $=w-m.top-m.bottom,E=v-m.left-m.right,C=co(w-m[_],$),L=co(v-m[P],E),D=!e.middlewareData.shift,X=C,_e=L;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(_e=E),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(X=$),D&&!y){let z=ct(m.left,0),G=ct(m.right,0),ae=ct(m.top,0),$e=ct(m.bottom,0);x?_e=v-2*(z!==0||G!==0?z+G:ct(m.left,m.right)):X=w-2*(ae!==0||$e!==0?ae+$e:ct(m.top,m.bottom))}await d({...e,availableWidth:_e,availableHeight:X});let se=await s.getDimensions(l.floating);return v!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(r){return gh(r)?(r.nodeName||"").toLowerCase():"#document"}function dt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function rr(r){var e;return(e=(gh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function gh(r){return la()?r instanceof Node||r instanceof dt(r).Node:!1}function Pt(r){return la()?r instanceof Element||r instanceof dt(r).Element:!1}function or(r){return la()?r instanceof HTMLElement||r instanceof dt(r).HTMLElement:!1}function mh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof dt(r).ShadowRoot}function ei(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Nt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function yh(r){return/^(table|td|th)$/.test(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ti(r){let e=Pt(r)?Nt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||DS.test(e.willChange||"")||MS.test(e.contain||"")}function bh(r){let e=br(r);for(;or(e)&&!ho(e);){if(ti(e))return e;if(rn(e))return null;e=br(e)}return null}function ca(){return Al==null&&(Al=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Al}function ho(r){return/^(html|body|#document)$/.test(fo(r))}function Nt(r){return dt(r).getComputedStyle(r)}function on(r){return Pt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function br(r){if(fo(r)==="html")return r;let e=r.assignedSlot||r.parentNode||mh(r)&&r.host||rr(r);return mh(e)?e.host:e}function vh(r){let e=br(r);return ho(e)?r.ownerDocument?r.ownerDocument.body:r.body:or(e)&&ei(e)?e:vh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=vh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=dt(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&t?sa(l):[])}else return e.concat(n,sa(n,[],t))}function da(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}var DS,MS,po,Al,Ll=u(()=>{DS=/transform|translate|scale|rotate|perspective|filter/,MS=/paint|layout|strict|content/,po=r=>!!r&&r!=="none"});function Oh(r){let e=Nt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=or(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=tn(t)!==a||tn(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Eh(r){return Pt(r)?r:r.contextElement}function ri(r){let e=Eh(r);if(!or(e))return Vt(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Oh(e),s=(a?tn(t.width):t.width)/o,l=(a?tn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function wh(r){let e=dt(r);return!ca()||!e.visualViewport?FS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function BS(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==dt(r)?!1:e}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Eh(r),s=Vt(1);e&&(o?Pt(o)&&(s=ri(o)):s=ri(r));let l=BS(a,t,o)?wh(a):Vt(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let y=dt(a),x=o&&Pt(o)?dt(o):o,v=y,w=da(v);for(;w&&o&&x!==v;){let _=ri(w),P=w.getBoundingClientRect(),$=Nt(w),E=P.left+(w.clientLeft+parseFloat($.paddingLeft))*_.x,C=P.top+(w.clientTop+parseFloat($.paddingTop))*_.y;d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=E,f+=C,v=dt(w),w=da(v)}}return uo({width:m,height:g,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(rr(r)).left+t}function Rh(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-ua(r,t),n=t.top+e.scrollTop;return{x:o,y:n}}function US(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=rr(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=Vt(1),m=Vt(0),g=or(o);if((g||!g&&!a)&&((fo(o)!=="body"||ei(s))&&(d=on(o)),g)){let x=nn(o);f=ri(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}let y=s&&!g&&!a?Rh(s,d):Vt(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:t.y*f.y-d.scrollTop*f.y+m.y+y.y}}function zS(r){return Array.from(r.getClientRects())}function HS(r){let e=rr(r),t=on(r),o=r.ownerDocument.body,n=ct(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=ct(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+ua(r),l=-t.scrollTop;return Nt(o).direction==="rtl"&&(s+=ct(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function VS(r,e){let t=dt(r),o=rr(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let m=ca();(!m||m&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let f=ua(o);if(f<=0){let m=o.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(o.clientWidth-g.clientWidth-x);v<=xh&&(a-=v)}else f<=xh&&(a+=f);return{width:a,height:s,x:l,y:d}}function WS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=or(r)?ri(r):Vt(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:s,height:l,x:d,y:f}}function Sh(r,e,t){let o;if(e==="viewport")o=VS(r,t);else if(e==="document")o=HS(rr(r));else if(Pt(e))o=WS(e,t);else{let n=wh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return uo(o)}function Ah(r,e){let t=br(r);return t===e||!Pt(t)||ho(t)?!1:Nt(t).position==="fixed"||Ah(t,e)}function jS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Pt(l)&&fo(l)!=="body"),n=null,a=Nt(r).position==="fixed",s=a?br(r):r;for(;Pt(s)&&!ho(s);){let l=Nt(s),d=ti(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ei(s)&&!d&&Ah(r,s))?o=o.filter(m=>m!==s):n=l,s=br(s)}return e.set(r,o),o}function GS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:jS(e,this._c):[].concat(t),o],l=Sh(e,s[0],n),d=l.top,f=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=Sh(e,s[y],n);d=ct(x.top,d),f=co(x.right,f),m=co(x.bottom,m),g=ct(x.left,g)}return{width:f-g,height:m-d,x:g,y:d}}function KS(r){let{width:e,height:t}=Oh(r);return{width:e,height:t}}function qS(r,e,t){let o=or(e),n=rr(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Vt(0);function f(){d.x=ua(n)}if(o||!o&&!a)if((fo(e)!=="body"||ei(n))&&(l=on(e)),o){let x=nn(e,!0,a,e);d.x=x.x+e.clientLeft,d.y=x.y+e.clientTop}else n&&f();a&&!o&&n&&f();let m=n&&!o&&!a?Rh(n,l):Vt(0),g=s.left+l.scrollLeft-d.x-m.x,y=s.top+l.scrollTop-d.y-m.y;return{x:g,y,width:s.width,height:s.height}}function kl(r){return Nt(r).position==="static"}function Ch(r,e){if(!or(r)||Nt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return rr(r)===t&&(t=t.ownerDocument.body),t}function Lh(r,e){let t=dt(r);if(rn(r))return t;if(!or(r)){let n=br(r);for(;n&&!ho(n);){if(Pt(n)&&!kl(n))return n;n=br(n)}return t}let o=Ch(r,e);for(;o&&yh(o)&&kl(o);)o=Ch(o,e);return o&&ho(o)&&kl(o)&&!ti(o)?t:o||bh(r)||t}function QS(r){return Nt(r).direction==="rtl"}var FS,xh,ZS,oi,kh,Tl,Th,_h,_l,Ih=u(()=>{hh();aa();Ll();FS=Vt(0);xh=25;ZS=async function(r){let e=this.getOffsetParent||Lh,t=this.getDimensions,o=await t(r.floating);return{reference:qS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};oi={convertOffsetParentRelativeRectToViewportRelativeRect:US,getDocumentElement:rr,getClippingRect:GS,getOffsetParent:Lh,getElementRects:ZS,getClientRects:zS,getDimensions:KS,getScale:ri,isElement:Pt,isRTL:QS},kh=uh,Tl=dh,Th=ph,_h=fh,_l=(r,e,t)=>{let o=new Map,n={platform:oi,...t},a={...n.platform,_c:o};return ch(r,e,{...n,platform:a})}});function Pl(r){return YS(r)}function Il(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function YS(r){for(let e=r;e;e=Il(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Il(r);e;e=Il(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ti(t)||e.tagName==="BODY"))return e}return null}var Ph=u(()=>{Ll()});var Dl={};q(Dl,{computeOffsetAutoPosition:()=>$l,computeOffsetPosition:()=>Nl});async function Nl(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},_l(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,Pl)},middleware:[Th({crossAxis:!0}),Tl({allowedPlacements:[o.placement]})]})}async function $l(r,e,t,o,n,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,n=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,_l(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,Pl)},middleware:[kh(s??4),Tl({allowedPlacements:o}),_h({apply({availableHeight:f,availableWidth:m,elements:g}){typeof a=="string"&&(a=`var(${a})`),a?g.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:g.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?g.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:g.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var pa=u(()=>{"use strict";Ih();Ph()});var Ml={};q(Ml,{isSlotEmptyOrWithoutContent:()=>an});var an,Fl=u(()=>{"use strict";an=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0});var Bl={};q(Bl,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";T();Hn();lo();sn=class extends kt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return zi(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Zi(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}}});var zl={};q(zl,{shadowQuerySelector:()=>Ul,shadowQuerySelectorAll:()=>XS});function Ul(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function XS(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ha=u(()=>{"use strict"});var Hl={};q(Hl,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>F});var ii,Mh,Nh,$h,Fh,Dh,mo,F,ln=u(()=>{"use strict";K();lo();oa();fa();ha();ii=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Nh=Symbol("constructorPrototype"),$h=Symbol("constructorName"),Fh=Symbol("exportpartsDebouncer"),Dh=Symbol("dynamicDependenciesLoaded"),mo=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};mo.eventName="exportparts-updated";F=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Mh]=new ne(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[Fh].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)})},this[$h]=this.constructor.name,this[Nh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$h]&&Object.setPrototypeOf(this,this[Nh])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Dh]||(t[Dh]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(mo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(mo.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new mo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];t=Ul(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var t,o,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let x=(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(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],w=[...x,...v].filter(d).map(_=>_.trim());for(let _ of w)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>f.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Mh=Fh;ii([h()],F.prototype,"exportpartsPrefix",void 0);ii([de([])],F.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],F.prototype,"exportparts",void 0);ii([h()],F.prototype,"customStylesheet",void 0);ii([h()],F.prototype,"elementToFocus",void 0);ii([I()],F.prototype,"useAdoptedStyleSheets",void 0)});var Wl={};q(Wl,{FtdsBase:()=>Vl,toFtdsBase:()=>Uh});var Bh,Uh,Vl,jl=u(()=>{"use strict";ln();K();Yo();rt();Bh=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Uh=Ee(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=en.medium,this.family=Ji.neutral}getDesignSystemBaseClasses(){return{[hl(this.family)]:!0,[ml(this.size)]:!0}}}return Bh([h()],e.prototype,"size",void 0),Bh([h()],e.prototype,"family",void 0),e}),Vl=class extends Uh(F){}});var zh={};var Gl=u(()=>{"use strict"});var go,Hh=u(()=>{go=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,m=>{t(f)&&(l++,o(m)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,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(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,m,g=()=>({prevNode:m,node:f}=this.getIteratorNode(s),f);for(;g();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,m,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,x=>d.push(x),n)}),d.push(f);d.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var cn,Vh=u(()=>{Hh();cn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new go(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=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 e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.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,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return go.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),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(e,t,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,m=(o>s.end?s.end:o)-s.start,g=e.value.substr(0,s.start),y=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,m),e.value=g+y,e.nodes.forEach((x,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=m),e.nodes[v].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!o(f[s],d))continue;let m=f.index;if(s!==0)for(let g=1;g<s;g++)m+=f[g].length;d=this.wrapRangeInTextNode(d,m,m+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let g=1;g<s;g++)f+=d[g].length;let m=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,m,g=>o(d[s],g),(g,y)=>{e.lastIndex=y,n(g)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:m,valid:g}=this.checkWhitespaceRanges(l,s,a.value);g&&this.wrapRangeInMappedTextNode(a,f,m,y=>t(y,l,a.value.substring(f,m),d),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let m=new RegExp(this.createRegExp(f),`gm${l}`),g=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(y,x)=>this.opt.filter(x,f,o,g),y=>{g++,o++,this.opt.each(y)},()=>{g===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(o):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=go.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function Kl(r){let e=new cn(r);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}var Wh=u(()=>{Vh()});var Zl={};q(Zl,{highlightHtml:()=>ql,highlightHtmlColorCssVariable:()=>jh,highlightHtmlStyles:()=>eC});function ql(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new JS(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=(f=>{for(let m in t.attributes)f.setAttribute(m,t.attributes[m])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var JS,jh,eC,Ql=u(()=>{"use strict";T();Yo();Wh();JS=Kl,jh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),eC=R`
5
5
  .highlight-html-match {
6
- background: ${Wh};
6
+ background: ${jh};
7
7
  }
8
- `});var Ql={};q(Ql,{noTextInputDefaultClearButton:()=>bo,noTextSelect:()=>yo,safariEllipsisFix:()=>Yl,wordWrap:()=>dn});var yo,dn,Yl,bo,Xl=u(()=>{"use strict";T();yo=A`
8
+ `});var Xl={};q(Xl,{noTextInputDefaultClearButton:()=>bo,noTextSelect:()=>yo,safariEllipsisFix:()=>Yl,wordWrap:()=>dn});var yo,dn,Yl,bo,Jl=u(()=>{"use strict";T();yo=R`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,dn=A`
17
+ `,dn=R`
18
18
  .ft-word-wrap {
19
19
  white-space: normal;
20
20
  word-wrap: break-word;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,Yl=A`
29
+ `,Yl=R`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,bo=A`
40
+ `,bo=R`
41
41
  input::-webkit-search-cancel-button,
42
42
  input::-webkit-search-decoration,
43
43
  input::-webkit-search-results-button,
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `});var jh={};var Jl=u(()=>{"use strict"});var ec={};q(ec,{ParametrizedLabelResolver:()=>Nr});var Nr,tc=u(()=>{"use strict";Nr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}}});var eC,pe,tC,Gh=u(()=>{"use strict";tt();G();eC=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:yt,attribute:!1,...e};h(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},tC=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)}});var un,rc=u(()=>{"use strict";un=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ni(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ma=u(()=>{"use strict"});var pn,$r,vo,Kh,vt,qh=u(()=>{"use strict";ln();ma();tt();pn=Symbol("internalReduxEventsUnsubscribers"),$r=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),Kh=Oe(Symbol("withRedux"),function(r){var e,t,o;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[vo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[vo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[vo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[vo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[vo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[$r].has(s.store):this[$r].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[$r].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ni(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,m)=>{if(typeof this[m]=="function"&&(!f.store||l.name===f.store)){let g=y=>this[m](y);l.addEventListener(f.eventName,g),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[$r].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[$r].has(s)&&this[$r].get(s)(),this[$r].delete(s),(l=this[pn].get(s))===null||l===void 0||l.forEach(d=>d()),this[pn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=$r,t=vo,o=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),vt=class extends Kh(F){}});function $t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vr(r){return!!r&&!!r[Ce]}function Wt(r){var e;return!!r&&((function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===cC})(r)||Array.isArray(r)||!!r[tm]||!!(!((e=r.constructor)===null||e===void 0)&&e[tm])||uc(r)||pc(r))}function xo(r,e,t){t===void 0&&(t=!1),li(r)===0?(t?Object.keys:si)(r).forEach((function(o){t&&typeof o=="symbol"||e(o,r[o],r)})):r.forEach((function(o,n){return e(n,o,r)}))}function li(r){var e=r[Ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:uc(r)?2:pc(r)?3:0}function ai(r,e){return li(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function rC(r,e){return li(r)===2?r.get(e):r[e]}function rm(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function om(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function uc(r){return sC&&r instanceof Map}function pc(r){return lC&&r instanceof Set}function Dr(r){return r.o||r.t}function fc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=am(r);delete e[Ce];for(var t=si(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function hc(r,e){return e===void 0&&(e=!1),mc(r)||vr(r)||!Wt(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=oC),Object.freeze(r),e&&xo(r,(function(t,o){return hc(o,!0)}),!0)),r}function oC(){$t(2)}function mc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function or(r){var e=dc[r];return e||$t(18,r),e}function iC(r,e){dc[r]||(dc[r]=e)}function sc(){return hn}function oc(r,e){e&&(or("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){lc(r),r.p.forEach(nC),r.p=null}function lc(r){r===hn&&(hn=r.l)}function Zh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function nC(r){var e=r[Ce];e.i===0||e.i===1?e.j():e.g=!0}function ic(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||or("ES5").S(e,r,o),o?(t[Ce].P&&(ga(e),$t(4)),Wt(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&or("Patches").M(t[Ce].t,r,e.u,e.s)):r=ya(e,t,[]),ga(e),e.u&&e.v(e.u,e.s),r!==nm?r:void 0}function ya(r,e,t){if(mc(e))return e;var o=e[Ce];if(!o)return xo(e,(function(l,d){return Yh(r,o,e,l,d,t)}),!0),e;if(o.A!==r)return e;if(!o.P)return ba(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=fc(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),xo(a,(function(l,d){return Yh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&or("Patches").N(o,t,r.u,r.s)}return o.o}function Yh(r,e,t,o,n,a,s){if(vr(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(rm(t,o,l),!vr(l))return;r.m=!1}else s&&t.add(n);if(Wt(n)&&!mc(n)){if(!r.h.D&&r._<1)return;ya(r,n),e&&e.A.l||ba(r,n)}}function ba(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&hc(e,t)}function nc(r,e){var t=r[Ce];return(t?Dr(t):r)[e]}function Qh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Mr(r){r.P||(r.P=!0,r.l&&Mr(r.l))}function ac(r){r.o||(r.o=fc(r.t))}function cc(r,e,t){var o=uc(e)?or("MapSet").F(e,t):pc(e)?or("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:sc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=mn;s&&(d=[l],f=fn);var m=Proxy.revocable(d,f),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y})(e,t):or("ES5").J(e,t);return(t?t.A:sc()).p.push(o),o}function aC(r){return vr(r)||$t(22,r),(function e(t){if(!Wt(t))return t;var o,n=t[Ce],a=li(t);if(n){if(!n.P&&(n.i<4||!or("ES5").K(n)))return n.t;n.I=!0,o=Xh(t,a),n.I=!1}else o=Xh(t,a);return xo(o,(function(s,l){n&&rC(n.t,s)===l||rm(o,s,e(l))})),a===3?new Set(o):o})(r)}function Xh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return fc(r)}function im(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ce];return mn.get(f,s)},set:function(f){var m=this[Ce];mn.set(m,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ce];if(!d.P)switch(d.i){case 5:o(d)&&Mr(d);break;case 4:t(d)&&Mr(d)}}}function t(s){for(var l=s.t,d=s.k,f=si(d),m=f.length-1;m>=0;m--){var g=f[m];if(g!==Ce){var y=l[g];if(y===void 0&&!ai(l,g))return!0;var x=d[g],v=x&&x[Ce];if(v?v.t!==y:!om(x,y))return!0}}var w=!!l[Ce];return f.length!==si(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&$t(3,JSON.stringify(Dr(s)))}var a={};iC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,r(v,!0));return x}var w=am(y);delete w[Ce];for(var _=si(w),P=0;P<_.length;P++){var $=_[P];w[$]=r($,g||!!w[$].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),m={i:d?5:4,A:l?l.A:sc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ce,{value:m,writable:!0}),f},S:function(s,l,d){d?vr(l)&&l[Ce].A===s&&e(s.p):(s.u&&(function f(m){if(m&&typeof m=="object"){var g=m[Ce];if(g){var y=g.t,x=g.k,v=g.R,w=g.i;if(w===4)xo(x,(function(C){C!==Ce&&(y[C]!==void 0||ai(y,C)?v[C]||f(x[C]):(v[C]=!0,Mr(g)))})),xo(y,(function(C){x[C]!==void 0||ai(x,C)||(v[C]=!1,Mr(g))}));else if(w===5){if(o(g)&&(Mr(g),v.length=!0),x.length<y.length)for(var _=x.length;_<y.length;_++)v[_]=!1;else for(var P=y.length;P<x.length;P++)v[P]=!0;for(var $=Math.min(x.length,y.length),E=0;E<$;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&f(x[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var Jh,hn,gc,sC,lC,em,nm,tm,Ce,cC,si,am,dc,mn,fn,dC,xt,uC,uk,pk,fk,hk,mk,gk,va,xa=u(()=>{gc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sC=typeof Map<"u",lC=typeof Set<"u",em=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",nm=gc?Symbol.for("immer-nothing"):((Jh={})["immer-nothing"]=!0,Jh),tm=gc?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=gc?Symbol.for("immer-state"):"__$immer_state",cC=""+Object.prototype.constructor,si=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,am=Object.getOwnPropertyDescriptors||function(r){var e={};return si(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},dc={},mn={get:function(r,e){if(e===Ce)return r;var t=Dr(r);if(!ai(t,e))return(function(n,a,s){var l,d=Qh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(r,t,e);var o=t[e];return r.I||!Wt(o)?o:o===nc(r.t,e)?(ac(r),r.o[e]=cc(r.A.h,o,r)):o},has:function(r,e){return e in Dr(r)},ownKeys:function(r){return Reflect.ownKeys(Dr(r))},set:function(r,e,t){var o=Qh(Dr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=nc(Dr(r),e),a=n?.[Ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(om(t,n)&&(t!==void 0||ai(r.t,e)))return!0;ac(r),Mr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return nc(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,ac(r),Mr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Dr(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){$t(12)}},fn={};xo(mn,(function(r,e){fn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),fn.deleteProperty=function(r,e){return fn.set.call(this,r,e,void 0)},fn.set=function(r,e,t){return mn.set.call(this,r[0],e,t,r[0])};dC=(function(){function r(t){var o=this;this.O=em,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var _=this;w===void 0&&(w=l);for(var P=arguments.length,$=Array(P>1?P-1:0),E=1;E<P;E++)$[E-1]=arguments[E];return d.produce(w,(function(C){var L;return(L=a).call.apply(L,[_,C].concat($))}))}}var f;if(typeof a!="function"&&$t(6),s!==void 0&&typeof s!="function"&&$t(7),Wt(n)){var m=Zh(o),g=cc(o,n,void 0),y=!0;try{f=a(g),y=!1}finally{y?ga(m):lc(m)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return oc(m,s),ic(w,m)}),(function(w){throw ga(m),w})):(oc(m,s),ic(f,m))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===nm&&(f=void 0),o.D&&hc(f,!0),s){var x=[],v=[];or("Patches").M(n,f,x,v),s(x,v)}return f}$t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return o.produceWithPatches(f,(function(x){return n.apply(void 0,[x].concat(g))}))};var s,l,d=o.produce(n,a,(function(f,m){s=f,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,s,l]})):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Wt(t)||$t(8),vr(t)&&(t=aC(t));var o=Zh(this),n=cc(this,t,void 0);return n[Ce].C=!0,lc(o),n},e.finishDraft=function(t,o){var n=t&&t[Ce],a=n.A;return oc(a,o),ic(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!em&&$t(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=or("Patches").$;return vr(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),xt=new dC,uC=xt.produce,uk=xt.produceWithPatches.bind(xt),pk=xt.setAutoFreeze.bind(xt),fk=xt.setUseProxies.bind(xt),hk=xt.applyPatches.bind(xt),mk=xt.createDraft.bind(xt),gk=xt.finishDraft.bind(xt),va=uC});function So(r){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(r)}var yc=u(()=>{});function sm(r,e){if(So(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(So(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var lm=u(()=>{yc()});function cm(r){var e=sm(r,"string");return So(e)=="symbol"?e:e+""}var dm=u(()=>{yc();lm()});function um(r,e,t){return(e=cm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var pm=u(()=>{dm()});function fm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function bc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fm(Object(t),!0).forEach(function(o){um(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fm(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var hm=u(()=>{pm()});function Ke(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. "}function pC(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function xc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ke(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ke(1));return t(xc)(r,e)}if(typeof r!="function")throw new Error(Ke(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(Ke(3));return a}function g(w){if(typeof w!="function")throw new Error(Ke(4));if(d)throw new Error(Ke(5));var _=!0;return f(),l.push(w),function(){if(_){if(d)throw new Error(Ke(6));_=!1,f();var $=l.indexOf(w);l.splice($,1),s=null}}}function y(w){if(!pC(w))throw new Error(Ke(7));if(typeof w.type>"u")throw new Error(Ke(8));if(d)throw new Error(Ke(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var _=s=l,P=0;P<_.length;P++){var $=_[P];$()}return w}function x(w){if(typeof w!="function")throw new Error(Ke(10));n=w,y({type:Sa.REPLACE})}function v(){var w,_=g;return w={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(Ke(11));function E(){$.next&&$.next(m())}E();var C=_(E);return{unsubscribe:C}}},w[mm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:g,getState:m,replaceReducer:x},o[mm]=v,o}function fC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(Ke(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ke(13))})}function gm(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{fC(t)}catch(d){l=d}return function(f,m){if(f===void 0&&(f={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<a.length;v++){var w=a[v],_=t[w],P=f[w],$=_(P,m);if(typeof $>"u"){var E=m&&m.type;throw new Error(Ke(14))}x[w]=$,y=y||$!==P}return y=y||a.length!==Object.keys(f).length,y?x:f}}function ci(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function ym(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ke(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=ci.apply(void 0,l)(n.dispatch),bc(bc({},n),{},{dispatch:a})}}}var mm,vc,Sa,Ca=u(()=>{hm();mm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),vc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+vc(),REPLACE:"@@redux/REPLACE"+vc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vc()}}});function bm(r){var e=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 e}var vm,Sc,xm=u(()=>{vm=bm();vm.withExtraArgument=bm;Sc=vm});function CC(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Br(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Fr(Fr({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function wc(r){return Wt(r)?va(r,function(){}):r}function wC(r){return typeof r=="boolean"}function AC(){return function(e){return RC(e)}}function RC(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=r.actionCreatorCheck,d=l===void 0?!0:l,f=new OC;if(t&&(wC(t)?f.push(Sc):f.push(Sc.withExtraArgument(t.extraArgument))),0){if(n)var m;if(s)var g;if(d)var y}return f}function Am(r){var e=AC(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,m=f===void 0?void 0:f,g=t.enhancers,y=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(CC(n))x=gm(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(e),!Oc&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oc&&v.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=ym.apply(void 0,v),_=ci;d&&(_=SC(Fr({trace:!Oc},typeof d=="object"&&d)));var P=new EC(w),$=P;Array.isArray(y)?$=di([w],y):typeof y=="function"&&($=y(P));var E=_.apply(void 0,$);return xc(x,m,E)}function Rm(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function LC(r){return typeof r=="function"}function kC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Rm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(LC(r))d=function(){return wc(r())};else{var f=wc(r);d=function(){return f}}function m(g,y){g===void 0&&(g=d());var x=di([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,w){if(w)if(vr(v)){var _=v,P=w(_,y);return P===void 0?v:P}else{if(Wt(v))return va(v,function($){return w($,y)});var P=w(v,y);if(P===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return v},g)}return m.getInitialState=d,m}function TC(r,e){return r+"/"+e}function Lm(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:wc(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var g=o[m],y=TC(e,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,a[m]=x,s[y]=x,l[m]=v?Br(y,v):Br(y)});function d(){var m=typeof r.extraReducers=="function"?Rm(r.extraReducers):[r.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,w=m[2],_=w===void 0?void 0:w,P=Fr(Fr({},y),s);return kC(t,function($){for(var E in P)$.addCase(E,P[E]);for(var C=0,L=v;C<L.length;C++){var D=L[C];$.addMatcher(D.matcher,D.reducer)}_&&$.addDefaultCase(_)})}var f;return{name:e,reducer:function(m,g){return f||(f=d()),f(m,g)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function $C(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function DC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var wm,hC,di,mC,gC,yC,Sm,bC,vC,Cm,Fr,Cc,xC,SC,Nk,OC,EC,Oc,_C,IC,PC,Ec,Om,NC,Fk,km,Tm,_m,Bk,Uk,zk,Hk,Ac,Vk,Wk,jk,Em,Gk,MC,Kk,Im=u(()=>{xa();Ca();Ca();Ca();xm();xa();xa();wm=(function(){var r=function(e,t){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(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}})(),hC=function(r,e){var t={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(f){return function(m){return d([f,m])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(m){f=[6,m],n=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},di=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},mC=Object.defineProperty,gC=Object.defineProperties,yC=Object.getOwnPropertyDescriptors,Sm=Object.getOwnPropertySymbols,bC=Object.prototype.hasOwnProperty,vC=Object.prototype.propertyIsEnumerable,Cm=function(r,e,t){return e in r?mC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Fr=function(r,e){for(var t in e||(e={}))bC.call(e,t)&&Cm(r,t,e[t]);if(Sm)for(var o=0,n=Sm(e);o<n.length;o++){var t=n[o];vC.call(e,t)&&Cm(r,t,e[t])}return r},Cc=function(r,e){return gC(r,yC(e))},xC=function(r,e,t){return new Promise(function(o,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},SC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ci:ci.apply(null,arguments)},Nk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};OC=(function(r){wm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array),EC=(function(r){wm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array);Oc=!0;_C="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",IC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=_C[Math.random()*64|0];return e},PC=["name","message","stack","code"],Ec=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Om=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),NC=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=PC;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Fk=(function(){function r(e,t,o){var n=Br(e+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Cc(Fr({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Br(e+"/pending",function(m,g,y){return{payload:void 0,meta:Cc(Fr({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Br(e+"/rejected",function(m,g,y,x,v){return{payload:x,error:(o&&o.serializeError||NC)(m||"Rejected"),meta:Cc(Fr({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function f(m){return function(g,y,x){var v=o?.idGenerator?o.idGenerator(m):IC(),w=new d,_,P=!1;function $(C){_=C,w.abort()}var E=(function(){return xC(this,null,function(){var C,L,D,X,_e,se,z;return hC(this,function(j){switch(j.label){case 0:return j.trys.push([0,4,,5]),X=(C=o?.condition)==null?void 0:C.call(o,m,{getState:y,extra:x}),DC(X)?[4,X]:[3,2];case 1:X=j.sent(),j.label=2;case 2:if(X===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,_e=new Promise(function(ae,Ne){return w.signal.addEventListener("abort",function(){return Ne({name:"AbortError",message:_||"Aborted"})})}),g(a(v,m,(L=o?.getPendingMeta)==null?void 0:L.call(o,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([_e,Promise.resolve(t(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:w.signal,abort:$,rejectWithValue:function(ae,Ne){return new Ec(ae,Ne)},fulfillWithValue:function(ae,Ne){return new Om(ae,Ne)}})).then(function(ae){if(ae instanceof Ec)throw ae;return ae instanceof Om?n(ae.payload,v,m,ae.meta):n(ae,v,m)})])];case 3:return D=j.sent(),[3,5];case 4:return se=j.sent(),D=se instanceof Ec?s(null,v,m,se.payload,se.meta):s(se,v,m),[3,5];case 5:return z=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,z||g(D),[2,D]}})})})();return Object.assign(E,{abort:$,requestId:v,arg:m,unwrap:function(){return E.then($C)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();km="listener",Tm="completed",_m="cancelled",Bk="task-"+_m,Uk="task-"+Tm,zk=km+"-"+_m,Hk=km+"-"+Tm,Ac="listenerMiddleware",Vk=Br(Ac+"/add"),Wk=Br(Ac+"/removeAll"),jk=Br(Ac+"/remove"),Gk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Em||(Em=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},MC=function(r){return function(e){setTimeout(e,r)}},Kk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:MC(10);im()});function FC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var xr,Pm=u(()=>{"use strict";Im();ma();rc();Yo();tt();window.ftReduxStores||(window.ftReduxStores={});xr=class r extends yr{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ni(a))return a;if(n==null)return;let s=Lm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Am({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let m=gt(s.getInitialState());for(let g of f.keeping)m[g]=(d??m)[g];return m}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new un;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...m)=>{let g=f(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new Oa(r,e,t).watch()}var Oa,Nm=u(()=>{"use strict";tt();Oa=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);yt(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Co,$m=u(()=>{"use strict";Co=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}}});var Rc={};q(Rc,{FtCommandQueue:()=>un,FtLitElementRedux:()=>vt,FtReduxStore:()=>xr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>FC,isFtReduxStore:()=>ni,redux:()=>pe,reduxEventListener:()=>tC,reduxReactive:()=>eC,watch:()=>ui,withRedux:()=>Kh});var Ea=u(()=>{"use strict";Gh();rc();qh();Pm();ma();Nm();$m()});var _c={};q(_c,{scrollHelper:()=>Tc});var Lc,wa,kc,Tc,Ic=u(()=>{"use strict";tt();wa=new Map,kc=class{lock(e,t){if(t){let o=wa.get(t);if(o==null||o===e)return wa.set(t,e),t}}release(e,t){t&&wa.get(t)===e&&wa.delete(t)}findFirstScrollableParent(e){var t;let o,n;for(let a of Xs(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(t=o??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=gr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Lc=window.FluidTopicsScrollHelper)!==null&&Lc!==void 0?Lc:new kc;Tc=window.FluidTopicsScrollHelper});var Pc=u(()=>{});var Dm,Mm,Fm,Ur,Bm,Um,zm,Oo,Hm,Vm,Wm,jm,Gm,Km,qm,Zm,zr,Ym,Qm,Eo,rg,Xm,Aa,Jm,pi,og,ir,fi,eg,Ie,Dt,tg,Nc=u(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Dm||(Dm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Mm||(Mm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Fm||(Fm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ur||(Ur={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Bm||(Bm={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Um||(Um={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(zm||(zm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Oo||(Oo={}));(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Hm||(Hm={}));(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"})(Vm||(Vm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(Wm||(Wm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(jm||(jm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Gm||(Gm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Km||(Km={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(qm||(qm={}));(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"})(Zm||(Zm={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(zr||(zr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Ym||(Ym={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Qm||(Qm={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));rg=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Xm||(Xm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Aa||(Aa={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Jm||(Jm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));og=r=>Object.keys(pi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ir||(ir={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fi||(fi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(eg||(eg={}));(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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Dt||(Dt={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(tg||(tg={}))});var ig,ng,ag,sg,lg,cg,dg,ug,pg,fg,hg,mg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ig||(ig={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(ng||(ng={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SUMMARY="SUMMARY",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.OTHER="OTHER"})(ag||(ag={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(sg||(sg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(lg||(lg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(cg||(cg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(dg||(dg={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(ug||(ug={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(pg||(pg={}));(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(fg||(fg={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hg||(hg={}))});var gg=u(()=>{Nc();mg()});function yg(r,e){return r===e||(BC[r]??[]).some(t=>yg(t,e))}function bg(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>yg(o,e))}var BC,vg=u(()=>{Nc();BC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var xg=u(()=>{});var Hr=u(()=>{Pc();gg();vg();xg();Pc()});var $c={};q($c,{SearchPlaceConverter:()=>Vr,SearchPlaceQueryParams:()=>oe,isSearchPlaceQueryParams:()=>Cg,serializeRequest:()=>zC});function UC(r){return`"${r}"`}function Sg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function zC(r,e){return new Vr(r).serialize(e)}function Cg(r){return HC.has(r)}var oe,HC,Vr,Dc=u(()=>{"use strict";Hr();tt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(oe||(oe={}));HC=new Set(Object.values(oe));Vr=class{constructor(e,t=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var o,n,a,s,l,d,f,m,g,y,x;let v=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&v.append(oe.LOCALE,e.contentLocale):v.append(oe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&v.append(oe.QUERY,e.query);let w=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(C=>C.valueFilter&&!C.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let C=w.map(L=>{var D,X;let _e=((X=(D=L.valueFilter)===null||D===void 0?void 0:D.values)!==null&&X!==void 0?X:[]).map(se=>this.escapeFilters(se)).map(se=>UC(Sg(se))).join("_");return`${L.key}~${_e}`}).join("*");v.append(oe.VALUE_FILTERS,C)}let _=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let C=_.map(L=>{var D;return`${L.key}~${(D=L.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(oe.DATE_FILTERS,C)}let P=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(L=>{var D,X;return`${L.key}~${(D=L.rangeFilter)===null||D===void 0?void 0:D.from}_${(X=L.rangeFilter)===null||X===void 0?void 0:X.to}`}).join("*");v.append(oe.RANGE_FILTERS,C)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(oe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(oe.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(oe.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((y=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&v.append(oe.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(oe.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let C in $)v.append(C,$[C]);let E=new Array;return v.forEach((C,L)=>{E.push(this.encodeQueryString(L)+"="+this.encodeQueryString(C))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let d=new URLSearchParams(e),f=d.get(oe.LOCALE)==="all"?void 0:d.get(oe.LOCALE),m=((t=d.get(oe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=(o=d.get(oe.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(oe.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=d.get(oe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(oe.KEYWORD_MATCH),w=v?v.toUpperCase()===zr.MANDATORY?zr.MANDATORY:zr.OPTIONAL:void 0,_={};for(let P of d.keys())Cg(P)||(_[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(oe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:rg(m)?m:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:gr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:_}}parseCompatFilters(e){var t,o,n,a,s,l;let d=[];return e.has(oe.FILTERS)&&(d=this.parseValueFilters((t=e.get(oe.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(oe.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(oe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(oe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(oe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(oe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Sg).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:pi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(og(e))return[{key:"ft:lastEdition",dateFilter:{type:pi[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let t=new URL(e);return[oe.LOCALE,oe.FILTERS,oe.VALUE_FILTERS,oe.DATE_FILTERS,oe.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(oe.LOCALE),t!==void 0&&o.searchParams.append(oe.LOCALE,t),o.toString()}}});var Bc={};q(Bc,{toFtFormComponent:()=>Fc});var Mc,Fc,Uc=u(()=>{"use strict";tt();Mc=Symbol("elementInternals"),Fc=Oe(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Mc].form}constructor(...o){super(o),this[Mc]=this.attachInternals()}setFormValue(o){this[Mc].setFormValue(o)}}return e})});var zc={};q(zc,{DateFormatter:()=>wo});var wo,Ra=u(()=>{"use strict";wo=class{static format(e,t,o,n,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,t,o,n,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}}});var Vc={};q(Vc,{ALL_KEYS_VALUE:()=>Hc,SameWindowStorageEvent:()=>hi});var Hc,hi,Wc=u(()=>{"use strict";Hc="__all__",hi=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Hc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new hi(Hc))}})});var Gc={};q(Gc,{FocusMainContentEvent:()=>jc});var jc,Kc=u(()=>{"use strict";jc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Og={};function VC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function WC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var qc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",VC);document.addEventListener("click",WC)});var mi,Zc=u(()=>{"use strict";T();mi=A`
47
+ `});var Gh={};var ec=u(()=>{"use strict"});var tc={};q(tc,{ParametrizedLabelResolver:()=>$r});var $r,rc=u(()=>{"use strict";$r=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}}});var tC,pe,rC,Kh=u(()=>{"use strict";rt();K();tC=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:yt,attribute:!1,...e};h(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},rC=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)}});var un,oc=u(()=>{"use strict";un=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ni(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ma=u(()=>{"use strict"});var pn,Dr,vo,qh,vt,Zh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),Dr=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),qh=Ee(Symbol("withRedux"),function(r){var e,t,o;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[vo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[vo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[vo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[vo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[vo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Dr].has(s.store):this[Dr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Dr].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ni(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,m)=>{if(typeof this[m]=="function"&&(!f.store||l.name===f.store)){let g=y=>this[m](y);l.addEventListener(f.eventName,g),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Dr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Dr].has(s)&&this[Dr].get(s)(),this[Dr].delete(s),(l=this[pn].get(s))===null||l===void 0||l.forEach(d=>d()),this[pn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Dr,t=vo,o=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),vt=class extends qh(F){}});function $t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vr(r){return!!r&&!!r[Ce]}function Wt(r){var e;return!!r&&((function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===dC})(r)||Array.isArray(r)||!!r[rm]||!!(!((e=r.constructor)===null||e===void 0)&&e[rm])||pc(r)||fc(r))}function xo(r,e,t){t===void 0&&(t=!1),li(r)===0?(t?Object.keys:si)(r).forEach((function(o){t&&typeof o=="symbol"||e(o,r[o],r)})):r.forEach((function(o,n){return e(n,o,r)}))}function li(r){var e=r[Ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:pc(r)?2:fc(r)?3:0}function ai(r,e){return li(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function oC(r,e){return li(r)===2?r.get(e):r[e]}function om(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function im(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function pc(r){return lC&&r instanceof Map}function fc(r){return cC&&r instanceof Set}function Mr(r){return r.o||r.t}function hc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=sm(r);delete e[Ce];for(var t=si(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function mc(r,e){return e===void 0&&(e=!1),gc(r)||vr(r)||!Wt(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=iC),Object.freeze(r),e&&xo(r,(function(t,o){return mc(o,!0)}),!0)),r}function iC(){$t(2)}function gc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ir(r){var e=uc[r];return e||$t(18,r),e}function nC(r,e){uc[r]||(uc[r]=e)}function lc(){return hn}function ic(r,e){e&&(ir("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){cc(r),r.p.forEach(aC),r.p=null}function cc(r){r===hn&&(hn=r.l)}function Qh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function aC(r){var e=r[Ce];e.i===0||e.i===1?e.j():e.g=!0}function nc(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||ir("ES5").S(e,r,o),o?(t[Ce].P&&(ga(e),$t(4)),Wt(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&ir("Patches").M(t[Ce].t,r,e.u,e.s)):r=ya(e,t,[]),ga(e),e.u&&e.v(e.u,e.s),r!==am?r:void 0}function ya(r,e,t){if(gc(e))return e;var o=e[Ce];if(!o)return xo(e,(function(l,d){return Yh(r,o,e,l,d,t)}),!0),e;if(o.A!==r)return e;if(!o.P)return ba(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=hc(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),xo(a,(function(l,d){return Yh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&ir("Patches").N(o,t,r.u,r.s)}return o.o}function Yh(r,e,t,o,n,a,s){if(vr(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(om(t,o,l),!vr(l))return;r.m=!1}else s&&t.add(n);if(Wt(n)&&!gc(n)){if(!r.h.D&&r._<1)return;ya(r,n),e&&e.A.l||ba(r,n)}}function ba(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&mc(e,t)}function ac(r,e){var t=r[Ce];return(t?Mr(t):r)[e]}function Xh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Fr(r){r.P||(r.P=!0,r.l&&Fr(r.l))}function sc(r){r.o||(r.o=hc(r.t))}function dc(r,e,t){var o=pc(e)?ir("MapSet").F(e,t):fc(e)?ir("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:lc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=mn;s&&(d=[l],f=fn);var m=Proxy.revocable(d,f),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y})(e,t):ir("ES5").J(e,t);return(t?t.A:lc()).p.push(o),o}function sC(r){return vr(r)||$t(22,r),(function e(t){if(!Wt(t))return t;var o,n=t[Ce],a=li(t);if(n){if(!n.P&&(n.i<4||!ir("ES5").K(n)))return n.t;n.I=!0,o=Jh(t,a),n.I=!1}else o=Jh(t,a);return xo(o,(function(s,l){n&&oC(n.t,s)===l||om(o,s,e(l))})),a===3?new Set(o):o})(r)}function Jh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return hc(r)}function nm(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ce];return mn.get(f,s)},set:function(f){var m=this[Ce];mn.set(m,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ce];if(!d.P)switch(d.i){case 5:o(d)&&Fr(d);break;case 4:t(d)&&Fr(d)}}}function t(s){for(var l=s.t,d=s.k,f=si(d),m=f.length-1;m>=0;m--){var g=f[m];if(g!==Ce){var y=l[g];if(y===void 0&&!ai(l,g))return!0;var x=d[g],v=x&&x[Ce];if(v?v.t!==y:!im(x,y))return!0}}var w=!!l[Ce];return f.length!==si(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&$t(3,JSON.stringify(Mr(s)))}var a={};nC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,r(v,!0));return x}var w=sm(y);delete w[Ce];for(var _=si(w),P=0;P<_.length;P++){var $=_[P];w[$]=r($,g||!!w[$].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),m={i:d?5:4,A:l?l.A:lc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ce,{value:m,writable:!0}),f},S:function(s,l,d){d?vr(l)&&l[Ce].A===s&&e(s.p):(s.u&&(function f(m){if(m&&typeof m=="object"){var g=m[Ce];if(g){var y=g.t,x=g.k,v=g.R,w=g.i;if(w===4)xo(x,(function(C){C!==Ce&&(y[C]!==void 0||ai(y,C)?v[C]||f(x[C]):(v[C]=!0,Fr(g)))})),xo(y,(function(C){x[C]!==void 0||ai(x,C)||(v[C]=!1,Fr(g))}));else if(w===5){if(o(g)&&(Fr(g),v.length=!0),x.length<y.length)for(var _=x.length;_<y.length;_++)v[_]=!1;else for(var P=y.length;P<x.length;P++)v[P]=!0;for(var $=Math.min(x.length,y.length),E=0;E<$;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&f(x[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var em,hn,yc,lC,cC,tm,am,rm,Ce,dC,si,sm,uc,mn,fn,uC,xt,pC,mk,gk,yk,bk,vk,xk,va,xa=u(()=>{yc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lC=typeof Map<"u",cC=typeof Set<"u",tm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",am=yc?Symbol.for("immer-nothing"):((em={})["immer-nothing"]=!0,em),rm=yc?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=yc?Symbol.for("immer-state"):"__$immer_state",dC=""+Object.prototype.constructor,si=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,sm=Object.getOwnPropertyDescriptors||function(r){var e={};return si(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},uc={},mn={get:function(r,e){if(e===Ce)return r;var t=Mr(r);if(!ai(t,e))return(function(n,a,s){var l,d=Xh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(r,t,e);var o=t[e];return r.I||!Wt(o)?o:o===ac(r.t,e)?(sc(r),r.o[e]=dc(r.A.h,o,r)):o},has:function(r,e){return e in Mr(r)},ownKeys:function(r){return Reflect.ownKeys(Mr(r))},set:function(r,e,t){var o=Xh(Mr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=ac(Mr(r),e),a=n?.[Ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(im(t,n)&&(t!==void 0||ai(r.t,e)))return!0;sc(r),Fr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,sc(r),Fr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Mr(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){$t(12)}},fn={};xo(mn,(function(r,e){fn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),fn.deleteProperty=function(r,e){return fn.set.call(this,r,e,void 0)},fn.set=function(r,e,t){return mn.set.call(this,r[0],e,t,r[0])};uC=(function(){function r(t){var o=this;this.O=tm,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var _=this;w===void 0&&(w=l);for(var P=arguments.length,$=Array(P>1?P-1:0),E=1;E<P;E++)$[E-1]=arguments[E];return d.produce(w,(function(C){var L;return(L=a).call.apply(L,[_,C].concat($))}))}}var f;if(typeof a!="function"&&$t(6),s!==void 0&&typeof s!="function"&&$t(7),Wt(n)){var m=Qh(o),g=dc(o,n,void 0),y=!0;try{f=a(g),y=!1}finally{y?ga(m):cc(m)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return ic(m,s),nc(w,m)}),(function(w){throw ga(m),w})):(ic(m,s),nc(f,m))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===am&&(f=void 0),o.D&&mc(f,!0),s){var x=[],v=[];ir("Patches").M(n,f,x,v),s(x,v)}return f}$t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return o.produceWithPatches(f,(function(x){return n.apply(void 0,[x].concat(g))}))};var s,l,d=o.produce(n,a,(function(f,m){s=f,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,s,l]})):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Wt(t)||$t(8),vr(t)&&(t=sC(t));var o=Qh(this),n=dc(this,t,void 0);return n[Ce].C=!0,cc(o),n},e.finishDraft=function(t,o){var n=t&&t[Ce],a=n.A;return ic(a,o),nc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!tm&&$t(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=ir("Patches").$;return vr(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),xt=new uC,pC=xt.produce,mk=xt.produceWithPatches.bind(xt),gk=xt.setAutoFreeze.bind(xt),yk=xt.setUseProxies.bind(xt),bk=xt.applyPatches.bind(xt),vk=xt.createDraft.bind(xt),xk=xt.finishDraft.bind(xt),va=pC});function So(r){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(r)}var bc=u(()=>{});function lm(r,e){if(So(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(So(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var cm=u(()=>{bc()});function dm(r){var e=lm(r,"string");return So(e)=="symbol"?e:e+""}var um=u(()=>{bc();cm()});function pm(r,e,t){return(e=dm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var fm=u(()=>{um()});function hm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function vc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(t),!0).forEach(function(o){pm(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hm(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var mm=u(()=>{fm()});function qe(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. "}function fC(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Sc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(qe(1));return t(Sc)(r,e)}if(typeof r!="function")throw new Error(qe(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(qe(3));return a}function g(w){if(typeof w!="function")throw new Error(qe(4));if(d)throw new Error(qe(5));var _=!0;return f(),l.push(w),function(){if(_){if(d)throw new Error(qe(6));_=!1,f();var $=l.indexOf(w);l.splice($,1),s=null}}}function y(w){if(!fC(w))throw new Error(qe(7));if(typeof w.type>"u")throw new Error(qe(8));if(d)throw new Error(qe(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var _=s=l,P=0;P<_.length;P++){var $=_[P];$()}return w}function x(w){if(typeof w!="function")throw new Error(qe(10));n=w,y({type:Sa.REPLACE})}function v(){var w,_=g;return w={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(qe(11));function E(){$.next&&$.next(m())}E();var C=_(E);return{unsubscribe:C}}},w[gm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:g,getState:m,replaceReducer:x},o[gm]=v,o}function hC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(qe(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function ym(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{hC(t)}catch(d){l=d}return function(f,m){if(f===void 0&&(f={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<a.length;v++){var w=a[v],_=t[w],P=f[w],$=_(P,m);if(typeof $>"u"){var E=m&&m.type;throw new Error(qe(14))}x[w]=$,y=y||$!==P}return y=y||a.length!==Object.keys(f).length,y?x:f}}function ci(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function bm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(qe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=ci.apply(void 0,l)(n.dispatch),vc(vc({},n),{},{dispatch:a})}}}var gm,xc,Sa,Ca=u(()=>{mm();gm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),xc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+xc(),REPLACE:"@@redux/REPLACE"+xc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xc()}}});function vm(r){var e=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 e}var xm,Cc,Sm=u(()=>{xm=vm();xm.withExtraArgument=vm;Cc=xm});function OC(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Ur(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Br(Br({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Rc(r){return Wt(r)?va(r,function(){}):r}function RC(r){return typeof r=="boolean"}function AC(){return function(e){return LC(e)}}function LC(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=r.actionCreatorCheck,d=l===void 0?!0:l,f=new EC;if(t&&(RC(t)?f.push(Cc):f.push(Cc.withExtraArgument(t.extraArgument))),0){if(n)var m;if(s)var g;if(d)var y}return f}function Am(r){var e=AC(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,m=f===void 0?void 0:f,g=t.enhancers,y=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(OC(n))x=ym(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(e),!Ec&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ec&&v.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=bm.apply(void 0,v),_=ci;d&&(_=CC(Br({trace:!Ec},typeof d=="object"&&d)));var P=new wC(w),$=P;Array.isArray(y)?$=di([w],y):typeof y=="function"&&($=y(P));var E=_.apply(void 0,$);return Sc(x,m,E)}function Lm(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function kC(r){return typeof r=="function"}function TC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Lm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(kC(r))d=function(){return Rc(r())};else{var f=Rc(r);d=function(){return f}}function m(g,y){g===void 0&&(g=d());var x=di([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,w){if(w)if(vr(v)){var _=v,P=w(_,y);return P===void 0?v:P}else{if(Wt(v))return va(v,function($){return w($,y)});var P=w(v,y);if(P===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return v},g)}return m.getInitialState=d,m}function _C(r,e){return r+"/"+e}function km(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Rc(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var g=o[m],y=_C(e,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,a[m]=x,s[y]=x,l[m]=v?Ur(y,v):Ur(y)});function d(){var m=typeof r.extraReducers=="function"?Lm(r.extraReducers):[r.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,w=m[2],_=w===void 0?void 0:w,P=Br(Br({},y),s);return TC(t,function($){for(var E in P)$.addCase(E,P[E]);for(var C=0,L=v;C<L.length;C++){var D=L[C];$.addMatcher(D.matcher,D.reducer)}_&&$.addDefaultCase(_)})}var f;return{name:e,reducer:function(m,g){return f||(f=d()),f(m,g)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function DC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function MC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Rm,mC,di,gC,yC,bC,Cm,vC,xC,Om,Br,Oc,SC,CC,Fk,EC,wC,Ec,IC,PC,NC,wc,Em,$C,Hk,Tm,_m,Im,Vk,Wk,jk,Gk,Ac,Kk,qk,Zk,wm,Qk,FC,Yk,Pm=u(()=>{xa();Ca();Ca();Ca();Sm();xa();xa();Rm=(function(){var r=function(e,t){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(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}})(),mC=function(r,e){var t={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(f){return function(m){return d([f,m])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(m){f=[6,m],n=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},di=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},gC=Object.defineProperty,yC=Object.defineProperties,bC=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,vC=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable,Om=function(r,e,t){return e in r?gC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Br=function(r,e){for(var t in e||(e={}))vC.call(e,t)&&Om(r,t,e[t]);if(Cm)for(var o=0,n=Cm(e);o<n.length;o++){var t=n[o];xC.call(e,t)&&Om(r,t,e[t])}return r},Oc=function(r,e){return yC(r,bC(e))},SC=function(r,e,t){return new Promise(function(o,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},CC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ci:ci.apply(null,arguments)},Fk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};EC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array),wC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array);Ec=!0;IC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",PC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=IC[Math.random()*64|0];return e},NC=["name","message","stack","code"],wc=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Em=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),$C=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=NC;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Hk=(function(){function r(e,t,o){var n=Ur(e+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Oc(Br({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Ur(e+"/pending",function(m,g,y){return{payload:void 0,meta:Oc(Br({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Ur(e+"/rejected",function(m,g,y,x,v){return{payload:x,error:(o&&o.serializeError||$C)(m||"Rejected"),meta:Oc(Br({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function f(m){return function(g,y,x){var v=o?.idGenerator?o.idGenerator(m):PC(),w=new d,_,P=!1;function $(C){_=C,w.abort()}var E=(function(){return SC(this,null,function(){var C,L,D,X,_e,se,z;return mC(this,function(G){switch(G.label){case 0:return G.trys.push([0,4,,5]),X=(C=o?.condition)==null?void 0:C.call(o,m,{getState:y,extra:x}),MC(X)?[4,X]:[3,2];case 1:X=G.sent(),G.label=2;case 2:if(X===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,_e=new Promise(function(ae,$e){return w.signal.addEventListener("abort",function(){return $e({name:"AbortError",message:_||"Aborted"})})}),g(a(v,m,(L=o?.getPendingMeta)==null?void 0:L.call(o,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([_e,Promise.resolve(t(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:w.signal,abort:$,rejectWithValue:function(ae,$e){return new wc(ae,$e)},fulfillWithValue:function(ae,$e){return new Em(ae,$e)}})).then(function(ae){if(ae instanceof wc)throw ae;return ae instanceof Em?n(ae.payload,v,m,ae.meta):n(ae,v,m)})])];case 3:return D=G.sent(),[3,5];case 4:return se=G.sent(),D=se instanceof wc?s(null,v,m,se.payload,se.meta):s(se,v,m),[3,5];case 5:return z=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,z||g(D),[2,D]}})})})();return Object.assign(E,{abort:$,requestId:v,arg:m,unwrap:function(){return E.then(DC)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();Tm="listener",_m="completed",Im="cancelled",Vk="task-"+Im,Wk="task-"+_m,jk=Tm+"-"+Im,Gk=Tm+"-"+_m,Ac="listenerMiddleware",Kk=Ur(Ac+"/add"),qk=Ur(Ac+"/removeAll"),Zk=Ur(Ac+"/remove"),Qk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(wm||(wm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},FC=function(r){return function(e){setTimeout(e,r)}},Yk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FC(10);nm()});function BC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var xr,Nm=u(()=>{"use strict";Pm();ma();oc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});xr=class r extends yr{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ni(a))return a;if(n==null)return;let s=km({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Am({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let m=gt(s.getInitialState());for(let g of f.keeping)m[g]=(d??m)[g];return m}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new un;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...m)=>{let g=f(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new Oa(r,e,t).watch()}var Oa,$m=u(()=>{"use strict";rt();Oa=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);yt(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Co,Dm=u(()=>{"use strict";Co=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}}});var Lc={};q(Lc,{FtCommandQueue:()=>un,FtLitElementRedux:()=>vt,FtReduxStore:()=>xr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>BC,isFtReduxStore:()=>ni,redux:()=>pe,reduxEventListener:()=>rC,reduxReactive:()=>tC,watch:()=>ui,withRedux:()=>qh});var Ea=u(()=>{"use strict";Kh();oc();Zh();Nm();ma();$m();Dm()});var Ic={};q(Ic,{scrollHelper:()=>_c});var kc,wa,Tc,_c,Pc=u(()=>{"use strict";rt();wa=new Map,Tc=class{lock(e,t){if(t){let o=wa.get(t);if(o==null||o===e)return wa.set(t,e),t}}release(e,t){t&&wa.get(t)===e&&wa.delete(t)}findFirstScrollableParent(e){var t;let o,n;for(let a of Js(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(t=o??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=gr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(kc=window.FluidTopicsScrollHelper)!==null&&kc!==void 0?kc:new Tc;_c=window.FluidTopicsScrollHelper});var Nc=u(()=>{});var Mm,Fm,Bm,zr,Um,zm,Hm,Oo,Vm,Wm,jm,Gm,Km,qm,Zm,Qm,Hr,Ym,Xm,Eo,og,Jm,Ra,eg,pi,ig,nr,fi,tg,Ie,Dt,rg,$c=u(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Mm||(Mm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Fm||(Fm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Bm||(Bm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(zr||(zr={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Um||(Um={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(zm||(zm={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Hm||(Hm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Oo||(Oo={}));(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Vm||(Vm={}));(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"})(Wm||(Wm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(jm||(jm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Gm||(Gm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Km||(Km={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(qm||(qm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Zm||(Zm={}));(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"})(Qm||(Qm={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(Hr||(Hr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Ym||(Ym={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Xm||(Xm={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));og=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Jm||(Jm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ra||(Ra={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(eg||(eg={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));ig=r=>Object.keys(pi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fi||(fi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tg||(tg={}));(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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Dt||(Dt={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(rg||(rg={}))});var ng,ag,sg,lg,cg,dg,ug,pg,fg,hg,mg,gg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ng||(ng={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(ag||(ag={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SUMMARY="SUMMARY",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.OTHER="OTHER"})(sg||(sg={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(lg||(lg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(cg||(cg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(dg||(dg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ug||(ug={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(pg||(pg={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(fg||(fg={}));(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(hg||(hg={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mg||(mg={}))});var yg=u(()=>{$c();gg()});function bg(r,e){return r===e||(UC[r]??[]).some(t=>bg(t,e))}function vg(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>bg(o,e))}var UC,xg=u(()=>{$c();UC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var Sg=u(()=>{});var Vr=u(()=>{Nc();yg();xg();Sg();Nc()});var Dc={};q(Dc,{SearchPlaceConverter:()=>Wr,SearchPlaceQueryParams:()=>oe,isSearchPlaceQueryParams:()=>Og,serializeRequest:()=>HC});function zC(r){return`"${r}"`}function Cg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function HC(r,e){return new Wr(r).serialize(e)}function Og(r){return VC.has(r)}var oe,VC,Wr,Mc=u(()=>{"use strict";Vr();rt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(oe||(oe={}));VC=new Set(Object.values(oe));Wr=class{constructor(e,t=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var o,n,a,s,l,d,f,m,g,y,x;let v=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&v.append(oe.LOCALE,e.contentLocale):v.append(oe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&v.append(oe.QUERY,e.query);let w=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(C=>C.valueFilter&&!C.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let C=w.map(L=>{var D,X;let _e=((X=(D=L.valueFilter)===null||D===void 0?void 0:D.values)!==null&&X!==void 0?X:[]).map(se=>this.escapeFilters(se)).map(se=>zC(Cg(se))).join("_");return`${L.key}~${_e}`}).join("*");v.append(oe.VALUE_FILTERS,C)}let _=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let C=_.map(L=>{var D;return`${L.key}~${(D=L.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(oe.DATE_FILTERS,C)}let P=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(L=>{var D,X;return`${L.key}~${(D=L.rangeFilter)===null||D===void 0?void 0:D.from}_${(X=L.rangeFilter)===null||X===void 0?void 0:X.to}`}).join("*");v.append(oe.RANGE_FILTERS,C)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(oe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(oe.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(oe.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((y=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&v.append(oe.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(oe.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let C in $)v.append(C,$[C]);let E=new Array;return v.forEach((C,L)=>{E.push(this.encodeQueryString(L)+"="+this.encodeQueryString(C))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let d=new URLSearchParams(e),f=d.get(oe.LOCALE)==="all"?void 0:d.get(oe.LOCALE),m=((t=d.get(oe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=(o=d.get(oe.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(oe.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=d.get(oe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(oe.KEYWORD_MATCH),w=v?v.toUpperCase()===Hr.MANDATORY?Hr.MANDATORY:Hr.OPTIONAL:void 0,_={};for(let P of d.keys())Og(P)||(_[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(oe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:og(m)?m:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:gr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:_}}parseCompatFilters(e){var t,o,n,a,s,l;let d=[];return e.has(oe.FILTERS)&&(d=this.parseValueFilters((t=e.get(oe.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(oe.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(oe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(oe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(oe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(oe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Cg).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:pi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(ig(e))return[{key:"ft:lastEdition",dateFilter:{type:pi[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let t=new URL(e);return[oe.LOCALE,oe.FILTERS,oe.VALUE_FILTERS,oe.DATE_FILTERS,oe.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(oe.LOCALE),t!==void 0&&o.searchParams.append(oe.LOCALE,t),o.toString()}}});var Uc={};q(Uc,{toFtFormComponent:()=>Bc});var Fc,Bc,zc=u(()=>{"use strict";rt();Fc=Symbol("elementInternals"),Bc=Ee(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Fc].form}constructor(...o){super(o),this[Fc]=this.attachInternals()}setFormValue(o){this[Fc].setFormValue(o)}}return e})});var Hc={};q(Hc,{DateFormatter:()=>wo});var wo,Aa=u(()=>{"use strict";wo=class{static format(e,t,o,n,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,t,o,n,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}}});var Wc={};q(Wc,{ALL_KEYS_VALUE:()=>Vc,SameWindowStorageEvent:()=>hi});var Vc,hi,jc=u(()=>{"use strict";Vc="__all__",hi=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Vc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new hi(Vc))}})});var Kc={};q(Kc,{FocusMainContentEvent:()=>Gc});var Gc,qc=u(()=>{"use strict";Gc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Eg={};function WC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function jC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var Zc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",WC);document.addEventListener("click",jC)});var mi,Qc=u(()=>{"use strict";T();mi=R`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,20 +68,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `});var Yc={};q(Yc,{withAriaNotification:()=>gn});var jC,gn,Qc=u(()=>{"use strict";tt();Yo();jC={checkVisibility:!0},gn=Oe(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...jC,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Qi({type:"aria",message:o})))},20)}}return e})});var Xc={};q(Xc,{withConditionalVisibility:()=>GC});function GC(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Eg([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Eg([I()],e.prototype,"isVisible",void 0),e}var Eg,Jc=u(()=>{"use strict";G();Eg=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a}});function ed(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}var td=u(()=>{"use strict"});function Ao(r,e,t){return r?e(r):t?.(r)}var wg=u(()=>{});var La=u(()=>{wg()});var ze,Ro,Lo,rd,KT,Ag=u(()=>{"use strict";td();G();Ht();La();T();tt();ze=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Ro||(Ro={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Lo||(Lo={}));rd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},KT=Oe(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ro.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Lo.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ro.blur||this.validateOn===Ro.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Lo.default&&this.validateOn===Ro.blurWithStatusResolutionOnInput||this.validateOn===Ro.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=ed(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=ed(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new rd(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
71
+ `});var Yc={};q(Yc,{withAriaNotification:()=>gn});var GC,gn,Xc=u(()=>{"use strict";rt();Qo();GC={checkVisibility:!0},gn=Ee(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...GC,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Yi({type:"aria",message:o})))},20)}}return e})});var Jc={};q(Jc,{withConditionalVisibility:()=>KC});function KC(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return wg([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),wg([I()],e.prototype,"isVisible",void 0),e}var wg,ed=u(()=>{"use strict";K();wg=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a}});function td(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}var rd=u(()=>{"use strict"});function Ro(r,e,t){return r?e(r):t?.(r)}var Rg=u(()=>{});var La=u(()=>{Rg()});var ze,Ao,Lo,od,YT,Ag=u(()=>{"use strict";rd();K();Ht();La();T();rt();ze=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Ao||(Ao={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Lo||(Lo={}));od=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},YT=Ee(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ao.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Lo.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ao.blur||this.validateOn===Ao.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Lo.default&&this.validateOn===Ao.blurWithStatusResolutionOnInput||this.validateOn===Ao.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=td(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=td(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new od(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
72
72
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
73
73
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
74
- ${ve(this.errorMessages,o=>b`
74
+ ${ge(this.errorMessages,o=>b`
75
75
  <li>${o}</li>
76
76
  `)}
77
- ${ve(this.warningMessages,o=>b`
77
+ ${ge(this.warningMessages,o=>b`
78
78
  <li>${o}</li>
79
79
  `)}
80
- ${Ao(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
80
+ ${Ro(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Lo.error:this.warningMessages.length?Lo.warning:Lo.default}}return ze([h()],e.prototype,"warningRules",void 0),ze([h()],e.prototype,"errorRules",void 0),ze([h()],e.prototype,"validateOn",void 0),ze([h({type:Boolean})],e.prototype,"validateAtRender",void 0),ze([h()],e.prototype,"label",void 0),ze([h({type:Boolean})],e.prototype,"hideLabel",void 0),ze([h()],e.prototype,"name",void 0),ze([h({type:Boolean})],e.prototype,"disabled",void 0),ze([h()],e.prototype,"helperText",void 0),ze([h()],e.prototype,"forceStatus",void 0),ze([h({reflect:!0})],e.prototype,"value",void 0),ze([I()],e.prototype,"errorMessages",void 0),ze([I()],e.prototype,"warningMessages",void 0),ze([I()],e.prototype,"status",void 0),ze([I()],e.prototype,"focused",void 0),ze([I()],e.prototype,"additionalWarningRules",void 0),ze([I()],e.prototype,"additionalErrorRules",void 0),e})});var Rg=u(()=>{"use strict";Ag();td()});function KC(r){this._$AN!==void 0?(ka(this),this._$AM=r,Lg(this)):this._$AM=r}function qC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,Lg,ZC,gi,kg=u(()=>{Vs();ao();ao();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},Lg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),ZC(e)}};ZC=r=>{r.type==Qt.CHILD&&(r._$AP??=qC,r._$AQ??=KC)},gi=class extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),Lg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(Hp(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var od=u(()=>{kg()});var Tg=u(()=>{Vo();Lt();Ds()});var id,u_,_g=u(()=>{"use strict";T();od();Tg();id=class extends gi{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return $e}update(e){return this.part=e,this.ensureFocusTrap(e.element),$e}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Rt&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},u_=mt(id)});var Ig,YC,nd,m_,Pg=u(()=>{"use strict";od();T();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Ig||(Ig={}));YC={sm:640,md:768,lg:1024,xl:1280},nd=class extends gi{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,n]){return this.lastArgs=[t,o,n],this.render(t,o,n)}render(e,t,o){let n=this.resolveThreshold(e),a=o??(()=>k);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:YC[e]}},m_=mt(nd)});var Ng=u(()=>{"use strict";_g();Pg()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new ad({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,QC([de({})],t.prototype,"configuredAnalyticsActions",void 0),t}var QC,ad,$g=u(()=>{"use strict";lo();QC=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ad=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var sd,ld,cd,dd,ko,bn,O=u(()=>{"use strict";gp();T();G();Ht();et();Yp();qi();nl();Xn();ul();oa();lo();yl();vl();Yo();pa();Ml();ia();Wl();ln();jl();tt();Zl();Xl();Jl();tc();Ea();fa();Ic();ha();Dc();Uc();Ra();Qo();Wc();Kc();qc();Zc();ra();Qc();Jc();Kc();qc();nl();Xn();ul();Ra();oa();lo();yl();vl();Yo();pa();Ic();Ml();ia();Wl();Uc();ln();Qc();Jc();jl();tt();Zl();Xl();Jl();tc();Ea();Wc();fa();ha();Dc();Zc();Rg();Ng();ra();Qo();$g();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((cd=(ld=(sd=window.safari)===null||sd===void 0?void 0:sd.pushNotification)===null||ld===void 0?void 0:ld.toString())!==null&&cd!==void 0?cd:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(dd=window.ftGlobals)!==null&&dd!==void 0?dd:{lit:Ms,litDecorators:Hs,litRepeat:Ws,litClassMap:js,litStyleMap:Gs,litUnsafeHTML:Ks,wcUtils:{...il,...qs,...dl,...zc,...pl,...Zs,...gl,...ol,...$l,...Gc,...Og,..._c,...Dl,...ml,...Vl,...Bc,...zl,...Yc,...Xc,...Uh,...el,...ql,...bl,...Ql,...mi,...jh,...ec,...Rc,...Vc,...Fl,...Ul,...$c,...sl,isSafari:ko,isTouchScreen:bn,setVariable:R}}});var Dg,le,Mg,Fg,Bg,Ug,zg,Sr=u(()=>{"use strict";T();O();Dg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Dg,backgroundColor:i.extend("--ft-ripple-background-color","",Dg),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Mg=i.extend("--ft-ripple-color","",S.colorPrimary),Fg={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg)},Bg=i.extend("--ft-ripple-color","",S.colorSecondary),Ug={color:Bg,backgroundColor:i.extend("--ft-ripple-background-color","",Bg)},zg=A`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Lo.error:this.warningMessages.length?Lo.warning:Lo.default}}return ze([h()],e.prototype,"warningRules",void 0),ze([h()],e.prototype,"errorRules",void 0),ze([h()],e.prototype,"validateOn",void 0),ze([h({type:Boolean})],e.prototype,"validateAtRender",void 0),ze([h()],e.prototype,"label",void 0),ze([h({type:Boolean})],e.prototype,"hideLabel",void 0),ze([h()],e.prototype,"name",void 0),ze([h({type:Boolean})],e.prototype,"disabled",void 0),ze([h()],e.prototype,"helperText",void 0),ze([h()],e.prototype,"forceStatus",void 0),ze([h({reflect:!0})],e.prototype,"value",void 0),ze([I()],e.prototype,"errorMessages",void 0),ze([I()],e.prototype,"warningMessages",void 0),ze([I()],e.prototype,"status",void 0),ze([I()],e.prototype,"focused",void 0),ze([I()],e.prototype,"additionalWarningRules",void 0),ze([I()],e.prototype,"additionalErrorRules",void 0),e})});var Lg=u(()=>{"use strict";Ag();rd()});function qC(r){this._$AN!==void 0?(ka(this),this._$AM=r,kg(this)):this._$AM=r}function ZC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,kg,QC,gi,Tg=u(()=>{Ws();ao();ao();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},kg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),QC(e)}};QC=r=>{r.type==Xt.CHILD&&(r._$AP??=ZC,r._$AQ??=qC)},gi=class extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),kg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(Vp(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var id=u(()=>{Tg()});var _g=u(()=>{Vo();Lt();Ms()});var nd,m_,Ig=u(()=>{"use strict";T();id();_g();nd=class extends gi{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return De}update(e){return this.part=e,this.ensureFocusTrap(e.element),De}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof At&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},m_=mt(nd)});var Pg,YC,ad,v_,Ng=u(()=>{"use strict";id();T();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Pg||(Pg={}));YC={sm:640,md:768,lg:1024,xl:1280},ad=class extends gi{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,n]){return this.lastArgs=[t,o,n],this.render(t,o,n)}render(e,t,o){let n=this.resolveThreshold(e),a=o??(()=>k);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:YC[e]}},v_=mt(ad)});var $g=u(()=>{"use strict";Ig();Ng()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new sd({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,XC([de({})],t.prototype,"configuredAnalyticsActions",void 0),t}var XC,sd,Dg=u(()=>{"use strict";lo();XC=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},sd=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var ld,cd,dd,ud,ko,bn,O=u(()=>{"use strict";yp();T();K();Ht();tt();Yp();qi();al();Xn();pl();oa();lo();bl();xl();Qo();pa();Fl();ia();jl();ln();Gl();rt();Ql();Jl();ec();rc();Ea();fa();Pc();ha();Mc();zc();Aa();Yo();jc();qc();Zc();Qc();ra();Xc();ed();qc();Zc();al();Xn();pl();Aa();oa();lo();bl();xl();Qo();pa();Pc();Fl();ia();jl();zc();ln();Xc();ed();Gl();rt();Ql();Jl();ec();rc();Ea();jc();fa();ha();Mc();Qc();Lg();$g();ra();Yo();Dg();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((dd=(cd=(ld=window.safari)===null||ld===void 0?void 0:ld.pushNotification)===null||cd===void 0?void 0:cd.toString())!==null&&dd!==void 0?dd:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ud=window.ftGlobals)!==null&&ud!==void 0?ud:{lit:Fs,litDecorators:Vs,litRepeat:js,litClassMap:Gs,litStyleMap:Ks,litUnsafeHTML:qs,wcUtils:{...nl,...Zs,...ul,...Hc,...fl,...Qs,...yl,...il,...Dl,...Kc,...Eg,...Ic,...Ml,...gl,...Wl,...Uc,...Hl,...Yc,...Jc,...zh,...tl,...Zl,...vl,...Xl,...mi,...Gh,...tc,...Lc,...Wc,...Bl,...zl,...Dc,...ll,isSafari:ko,isTouchScreen:bn,setVariable:A}}});var Mg,le,Fg,Bg,Ug,zg,Hg,Sr=u(()=>{"use strict";T();O();Mg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Fg=i.extend("--ft-ripple-color","",S.colorPrimary),Bg={color:Fg,backgroundColor:i.extend("--ft-ripple-background-color","",Fg)},Ug=i.extend("--ft-ripple-color","",S.colorSecondary),zg={color:Ug,backgroundColor:i.extend("--ft-ripple-background-color","",Ug)},Hg=R`
85
85
  :host {
86
86
  display: contents;
87
87
  }
@@ -136,19 +136,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
139
- background-color: ${Ug.backgroundColor};
139
+ background-color: ${zg.backgroundColor};
140
140
  }
141
141
 
142
142
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
143
- background-color: ${Ug.color};
143
+ background-color: ${zg.color};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
147
- background-color: ${Fg.backgroundColor};
147
+ background-color: ${Bg.backgroundColor};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
151
- background-color: ${Fg.color};
151
+ background-color: ${Bg.color};
152
152
  }
153
153
 
154
154
  .ft-ripple .ft-ripple--background {
@@ -193,18 +193,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
193
193
  opacity: ${le.opacityContentOnSurfacePressed};
194
194
  transform: translate(-50%, -50%) scale(1);
195
195
  }
196
- `});var dt,Z,ud=u(()=>{"use strict";T();G();et();O();Sr();dt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Z=class extends F{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 ne(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ne(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 b`
196
+ `});var ut,Z,pd=u(()=>{"use strict";T();K();tt();O();Sr();ut=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Z=class extends F{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 ne(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ne(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 b`
197
197
  <style>
198
198
  .ft-ripple .ft-ripple--effect {
199
199
  left: ${this.originX}px;
200
200
  top: ${this.originY}px;
201
201
  }
202
202
  </style>
203
- <div class="${he(e)}">
203
+ <div class="${me(e)}">
204
204
  <div class="ft-ripple--background"></div>
205
205
  <div class="ft-ripple--effect"></div>
206
206
  </div>
207
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.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 e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=zg;dt([h({type:Boolean})],Z.prototype,"primary",void 0);dt([h({type:Boolean})],Z.prototype,"secondary",void 0);dt([h({type:Boolean})],Z.prototype,"unbounded",void 0);dt([h({type:Boolean})],Z.prototype,"activated",void 0);dt([h({type:Boolean})],Z.prototype,"selected",void 0);dt([h({type:Boolean})],Z.prototype,"disabled",void 0);dt([I()],Z.prototype,"hovered",void 0);dt([I()],Z.prototype,"focused",void 0);dt([I()],Z.prototype,"pressed",void 0);dt([I()],Z.prototype,"rippling",void 0);dt([I()],Z.prototype,"originX",void 0);dt([I()],Z.prototype,"originY",void 0);dt([B(".ft-ripple")],Z.prototype,"ripple",void 0);dt([B(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Vg=u(()=>{"use strict"});var Wg,jg=u(()=>{"use strict";ud();Wg={"ft-ripple":Z}});var Gg=u(()=>{"use strict";O();jg();U(Wg)});var rt=u(()=>{"use strict";ud();Sr();Vg();Gg()});var qg,XC,pd,Kg,fd,hd,II,PI,Zg=u(()=>{Lt();qg=Symbol.for(""),XC=r=>{if(r?.r===qg)return r?._$litStatic$},pd=r=>({_$litStatic$:r,r:qg}),Kg=new Map,fd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,m=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=XC(a))!==void 0);)d+=n+e[++f],m=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),m){let g=s.join("$$lit$$");(e=Kg.get(g))===void 0&&(s.raw=s,Kg.set(g,e=s)),t=l}return r(e,...t)},hd=fd(b),II=fd(_s),PI=fd(Is)});var Yg=u(()=>{Zg()});var me,_a=u(()=>{"use strict";(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"})(me||(me={}))});var Qg,Or,M,yi,bi,vi,xi,Cr,Me,St,Si,Ci,nr,Xg,Jg,ey,ty,ry,Wr,jr,oy,iy,ny,ay,jt=u(()=>{"use strict";T();O();Qg=i.extend("--ft-typography-font-family","",S.titleFont),Or=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:Or,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")},yi={fontFamily:i.extend("--ft-typography-title-font-family","",Qg),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Qg),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Cr={fontFamily:i.extend("--ft-typography-body1-font-family","",Or),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Me={fontFamily:i.extend("--ft-typography-body2-font-family","",Or),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},St={fontFamily:i.extend("--ft-typography-caption-font-family","",Or),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Or),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Or),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},nr={fontFamily:i.extend("--ft-typography-button-font-family","",Or),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Xg=A`
207
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.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 e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Hg;ut([h({type:Boolean})],Z.prototype,"primary",void 0);ut([h({type:Boolean})],Z.prototype,"secondary",void 0);ut([h({type:Boolean})],Z.prototype,"unbounded",void 0);ut([h({type:Boolean})],Z.prototype,"activated",void 0);ut([h({type:Boolean})],Z.prototype,"selected",void 0);ut([h({type:Boolean})],Z.prototype,"disabled",void 0);ut([I()],Z.prototype,"hovered",void 0);ut([I()],Z.prototype,"focused",void 0);ut([I()],Z.prototype,"pressed",void 0);ut([I()],Z.prototype,"rippling",void 0);ut([I()],Z.prototype,"originX",void 0);ut([I()],Z.prototype,"originY",void 0);ut([B(".ft-ripple")],Z.prototype,"ripple",void 0);ut([B(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Wg=u(()=>{"use strict"});var jg,Gg=u(()=>{"use strict";pd();jg={"ft-ripple":Z}});var Kg=u(()=>{"use strict";O();Gg();U(jg)});var ot=u(()=>{"use strict";pd();Sr();Wg();Kg()});var Zg,JC,fd,qg,hd,md,DI,MI,Qg=u(()=>{Lt();Zg=Symbol.for(""),JC=r=>{if(r?.r===Zg)return r?._$litStatic$},fd=r=>({_$litStatic$:r,r:Zg}),qg=new Map,hd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,m=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=JC(a))!==void 0);)d+=n+e[++f],m=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),m){let g=s.join("$$lit$$");(e=qg.get(g))===void 0&&(s.raw=s,qg.set(g,e=s)),t=l}return r(e,...t)},md=hd(b),DI=hd(Is),MI=hd(Ps)});var Yg=u(()=>{Qg()});var fe,_a=u(()=>{"use strict";(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"})(fe||(fe={}))});var Xg,Or,M,yi,bi,vi,xi,Cr,Fe,St,Si,Ci,ar,Jg,ey,ty,ry,oy,jr,Gr,iy,ny,ay,sy,jt=u(()=>{"use strict";T();O();Xg=i.extend("--ft-typography-font-family","",S.titleFont),Or=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:Or,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")},yi={fontFamily:i.extend("--ft-typography-title-font-family","",Xg),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Xg),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Cr={fontFamily:i.extend("--ft-typography-body1-font-family","",Or),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Fe={fontFamily:i.extend("--ft-typography-body2-font-family","",Or),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},St={fontFamily:i.extend("--ft-typography-caption-font-family","",Or),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Or),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Or),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},ar={fontFamily:i.extend("--ft-typography-button-font-family","",Or),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Jg=R`
208
208
  .ft-typography--title {
209
209
  font-family: ${yi.fontFamily};
210
210
  font-size: ${yi.fontSize};
@@ -213,7 +213,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
213
213
  line-height: ${yi.lineHeight};
214
214
  text-transform: ${yi.textTransform};
215
215
  }
216
- `,Jg=A`
216
+ `,ey=R`
217
217
  .ft-typography--title-dense {
218
218
  font-family: ${bi.fontFamily};
219
219
  font-size: ${bi.fontSize};
@@ -222,7 +222,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
222
222
  line-height: ${bi.lineHeight};
223
223
  text-transform: ${bi.textTransform};
224
224
  }
225
- `,ey=A`
225
+ `,ty=R`
226
226
  .ft-typography--subtitle1 {
227
227
  font-family: ${vi.fontFamily};
228
228
  font-size: ${vi.fontSize};
@@ -231,7 +231,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
231
231
  line-height: ${vi.lineHeight};
232
232
  text-transform: ${vi.textTransform};
233
233
  }
234
- `,ty=A`
234
+ `,ry=R`
235
235
  .ft-typography--subtitle2 {
236
236
  font-family: ${xi.fontFamily};
237
237
  font-size: ${xi.fontSize};
@@ -241,7 +241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
241
241
  text-transform: ${xi.textTransform};
242
242
  }
243
243
 
244
- `,ry=A`
244
+ `,oy=R`
245
245
  .ft-typography--body1 {
246
246
  font-family: ${Cr.fontFamily};
247
247
  font-size: ${Cr.fontSize};
@@ -250,16 +250,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
250
250
  line-height: ${Cr.lineHeight};
251
251
  text-transform: ${Cr.textTransform};
252
252
  }
253
- `,Wr=A`
253
+ `,jr=R`
254
254
  .ft-typography--body2 {
255
- font-family: ${Me.fontFamily};
256
- font-size: ${Me.fontSize};
257
- font-weight: ${Me.fontWeight};
258
- letter-spacing: ${Me.letterSpacing};
259
- line-height: ${Me.lineHeight};
260
- text-transform: ${Me.textTransform};
261
- }
262
- `,jr=A`
255
+ font-family: ${Fe.fontFamily};
256
+ font-size: ${Fe.fontSize};
257
+ font-weight: ${Fe.fontWeight};
258
+ letter-spacing: ${Fe.letterSpacing};
259
+ line-height: ${Fe.lineHeight};
260
+ text-transform: ${Fe.textTransform};
261
+ }
262
+ `,Gr=R`
263
263
  .ft-typography--caption {
264
264
  font-family: ${St.fontFamily};
265
265
  font-size: ${St.fontSize};
@@ -268,7 +268,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
268
268
  line-height: ${St.lineHeight};
269
269
  text-transform: ${St.textTransform};
270
270
  }
271
- `,oy=A`
271
+ `,iy=R`
272
272
  .ft-typography--breadcrumb {
273
273
  font-family: ${Si.fontFamily};
274
274
  font-size: ${Si.fontSize};
@@ -277,7 +277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
277
277
  line-height: ${Si.lineHeight};
278
278
  text-transform: ${Si.textTransform};
279
279
  }
280
- `,iy=A`
280
+ `,ny=R`
281
281
  .ft-typography--overline {
282
282
  font-family: ${Ci.fontFamily};
283
283
  font-size: ${Ci.fontSize};
@@ -286,28 +286,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
286
286
  line-height: ${Ci.lineHeight};
287
287
  text-transform: ${Ci.textTransform};
288
288
  }
289
- `,ny=A`
289
+ `,ay=R`
290
290
  .ft-typography--button {
291
- font-family: ${nr.fontFamily};
292
- font-size: ${nr.fontSize};
293
- font-weight: ${nr.fontWeight};
294
- letter-spacing: ${nr.letterSpacing};
295
- line-height: ${nr.lineHeight};
296
- text-transform: ${nr.textTransform};
297
- }
298
- `,ay=A`
291
+ font-family: ${ar.fontFamily};
292
+ font-size: ${ar.fontSize};
293
+ font-weight: ${ar.fontWeight};
294
+ letter-spacing: ${ar.letterSpacing};
295
+ line-height: ${ar.lineHeight};
296
+ text-transform: ${ar.textTransform};
297
+ }
298
+ `,sy=R`
299
299
  .ft-typography {
300
300
  vertical-align: inherit;
301
301
  }
302
- `});var sy,ie,md=u(()=>{"use strict";Yg();G();O();_a();jt();sy=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ie=class extends F{constructor(){super(...arguments),this.variant=me.body1}render(){return this.element?hd`
303
- <${pd(this.element)}
302
+ `});var ly,ie,gd=u(()=>{"use strict";Yg();K();O();_a();jt();ly=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ie=class extends F{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?md`
303
+ <${fd(this.element)}
304
304
  part="text"
305
305
  class="ft-typography ft-typography--${this.variant}">
306
306
  <slot></slot>
307
- </${pd(this.element)}>
308
- `:hd`
307
+ </${fd(this.element)}>
308
+ `:md`
309
309
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
310
- `}};ie.styles=[Xg,Jg,ey,ty,ry,Wr,jr,oy,iy,ny,ay];sy([h()],ie.prototype,"element",void 0);sy([h()],ie.prototype,"variant",void 0)});var ly,cy=u(()=>{"use strict";md();ly={"ft-typography":ie}});var dy=u(()=>{"use strict";O();cy();U(ly)});var ke=u(()=>{"use strict";md();jt();_a();dy()});var vn,uy,gd=u(()=>{"use strict";T();O();vn={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"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},uy=A`
310
+ `}};ie.styles=[Jg,ey,ty,ry,oy,jr,Gr,iy,ny,ay,sy];ly([h()],ie.prototype,"element",void 0);ly([h()],ie.prototype,"variant",void 0)});var cy,dy=u(()=>{"use strict";gd();cy={"ft-typography":ie}});var uy=u(()=>{"use strict";O();dy();U(cy)});var ke=u(()=>{"use strict";gd();jt();_a();uy()});var vn,py,yd=u(()=>{"use strict";T();O();vn={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"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},py=R`
311
311
  .ft-tooltip--container {
312
312
  display: block;
313
313
  }
@@ -338,15 +338,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
338
338
  position: relative;
339
339
  word-break: break-word;
340
340
  }
341
- `});var JC,Oi,xn,eO,H,qe=u(()=>{"use strict";O();JC="ft-app-info",Oi=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Oi.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";eO={session:(r,e)=>{De(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Oi(e.payload)),0))}},H=xr.get({name:JC,reducers:eO,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ia,pP,py=u(()=>{"use strict";G();Ea();Ra();qe();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},pP=Oe(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([pe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([pe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var To,yd=u(()=>{"use strict";qe();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Ei,bd=u(()=>{"use strict";yd();Ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:To.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):To.await()}}});var Ze,Gr=u(()=>{"use strict";O();bd();Ze=class extends Ei{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new Jt,this.cache=e?n.commonCache:new Jt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}}});var Pa,vd=u(()=>{"use strict";qe();Hr();Gr();Pa=class extends Ze{async listMySearches(){let{session:e}=H.getState();return bg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,xd=u(()=>{"use strict";qe();Gr();Na=class extends Ze{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,fy=u(()=>{"use strict";qe();Gr();$a=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,hy=u(()=>{"use strict";Gr();qe();Da=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var tO,rO,yy,Sd,Cd,my,gy,ot,Od,Ed,Ma=u(()=>{"use strict";Hr();O();vd();xd();qe();fy();hy();tO="ft-user-assets",rO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Dt).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:n}=e.payload;Cd(r,t,[...Sd(r,t),n]),my(r,t,1,o),gy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Cd(r,t,Sd(r,t).map(n=>n.id===o.id?o:n)),gy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Cd(r,t,Sd(r,t).filter(a=>a.id!==n)),my(r,t,-1,o)}},yy={[Dt.SEARCHES]:"savedSearches",[Dt.BOOKMARKS]:"bookmarks",[Dt.BOOKS]:void 0,[Dt.COLLECTIONS]:void 0},Sd=(r,e)=>{var t;let o=yy[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Cd=(r,e,t)=>{let o=yy[e];o&&(r[o]=t)},my=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Dt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},gy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},ot=xr.get({name:tO,reducers:rO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Dt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Od=class{constructor(e=new $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();De((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ot.actions.clearAssetCount(),ot.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ot.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ot.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&ot.getState().assetCounts.allAsset[e]!==t.count&&ot.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&ot.getState().assetCounts.bookmarkByMap[e]!==t.count&&ot.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(ot.getState().assetCounts.bookmarkByMap).length!==0;e===Dt.BOOKMARKS&&t&&ot.actions.clearBookmarkCountByMap(),ot.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ot.actions.bookmarks(t)}}},Ed=new Od;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ed)});var by=u(()=>{"use strict";Hr();Ma()});var wd,vy=u(()=>{"use strict";qe();wd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wd});var xy,wi,oO,Fa,Ai,Ba,Sy=u(()=>{"use strict";qe();O();Gr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},oO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xy]=()=>{this.defaultMessages={},this.cache=new Jt,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};De(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Nr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof Xt)&&t&&console.error(n)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};xy=oO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ai=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Ad,Cy=u(()=>{"use strict";O();Ad=class{highlightHtml(e,t,o){Kl(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Ad});var Rd,Oy=u(()=>{"use strict";O();qe();Rd=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return wo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Rd});var Er,Ld=u(()=>{"use strict";O();qe();Er=class{static get(e,t){var o,n;let a=H.getState(),{lang:s,region:l}=(n=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Vr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ua,Ey=u(()=>{"use strict";Gr();Ua=class extends Ze{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var kd,wy=u(()=>{"use strict";Ld();kd=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new kd});var _o,Ay=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var Td,Ry,Ly=u(()=>{"use strict";Td=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ry=new Td});var za,ky=u(()=>{"use strict";O();Ay();Ly();za=class r extends yr{static build(){return new r(window.history,Ry,()=>window.location,!1)}constructor(e,t,o,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),De(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _o(this.currentItem())),0)}installProxies(){let e=t=>(o,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(_o.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_o.eventName,e)}currentItem(){return gt(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return gt(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}}});var Ty=u(()=>{"use strict";ky();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var _y=u(()=>{"use strict";qe()});var Ha=u(()=>{"use strict";xd();yd();vy();Sy();Gr();Cy();vd();Oy();Ld();Ey();wy();Ty();_y()});var Iy,_d=u(()=>{"use strict";T();Iy=A`
342
- `});var Py=u(()=>{"use strict"});function Ny(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var $y=u(()=>{"use strict";qe()});var Va,Dy=u(()=>{"use strict";bd();Va=class extends Ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Id,Sn,Pd=u(()=>{"use strict";O();qe();$y();Ha();Dy();Id=class r extends Co{static build(e){return new r(H,e)}constructor(e,t){super(),this.store=e,this.cache=new Jt,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ne,this.reloadDebouncer=new ne(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oi.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>Ny(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,o,n,a,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((o=this.localesConfiguration.allLanguagesAllowed)!==null&&o!==void 0?o:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((a=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(t)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Sn=Id.build()});var Io,Cn=u(()=>{Io=class extends Event{constructor(e,t,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=n??!1}}});var My=u(()=>{});var Nd=u(()=>{Cn();});var Fy=u(()=>{});var $d=u(()=>{Cn();Fy();});var On,By=u(()=>{Cn();On=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Io(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(t);a===void 0&&n.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var Uy=u(()=>{$d();});var zy=u(()=>{Nd();});var Hy=u(()=>{Cn();My();Nd();$d();By();Uy();zy()});var Ye,Re,Dd=u(()=>{"use strict";T();G();O();_d();Ha();Pd();Hy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Re=class extends vt{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sn,this.contextRoot=new On}render(){return b`
341
+ `});var eO,Oi,xn,tO,H,Ze=u(()=>{"use strict";O();eO="ft-app-info",Oi=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Oi.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";tO={session:(r,e)=>{Me(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Oi(e.payload)),0))}},H=xr.get({name:eO,reducers:tO,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ia,gP,fy=u(()=>{"use strict";K();Ea();Aa();Ze();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gP=Ee(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([pe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([pe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var To,bd=u(()=>{"use strict";Ze();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Ei,vd=u(()=>{"use strict";bd();Ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:To.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):To.await()}}});var Qe,Kr=u(()=>{"use strict";O();vd();Qe=class extends Ei{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new er,this.cache=e?n.commonCache:new er}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}}});var Pa,xd=u(()=>{"use strict";Ze();Vr();Kr();Pa=class extends Qe{async listMySearches(){let{session:e}=H.getState();return vg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,Sd=u(()=>{"use strict";Ze();Kr();Na=class extends Qe{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,hy=u(()=>{"use strict";Ze();Kr();$a=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,my=u(()=>{"use strict";Kr();Ze();Da=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var rO,oO,by,Cd,Od,gy,yy,it,Ed,wd,Ma=u(()=>{"use strict";Vr();O();xd();Sd();Ze();hy();my();rO="ft-user-assets",oO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Dt).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:n}=e.payload;Od(r,t,[...Cd(r,t),n]),gy(r,t,1,o),yy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Od(r,t,Cd(r,t).map(n=>n.id===o.id?o:n)),yy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Od(r,t,Cd(r,t).filter(a=>a.id!==n)),gy(r,t,-1,o)}},by={[Dt.SEARCHES]:"savedSearches",[Dt.BOOKMARKS]:"bookmarks",[Dt.BOOKS]:void 0,[Dt.COLLECTIONS]:void 0},Cd=(r,e)=>{var t;let o=by[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Od=(r,e,t)=>{let o=by[e];o&&(r[o]=t)},gy=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Dt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},yy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},it=xr.get({name:rO,reducers:oO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Dt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ed=class{constructor(e=new $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();Me((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),it.actions.clearAssetCount(),it.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),it.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),it.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();it.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();it.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&it.getState().assetCounts.allAsset[e]!==t.count&&it.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&it.getState().assetCounts.bookmarkByMap[e]!==t.count&&it.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(it.getState().assetCounts.bookmarkByMap).length!==0;e===Dt.BOOKMARKS&&t&&it.actions.clearBookmarkCountByMap(),it.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;it.actions.bookmarks(t)}}},wd=new Ed;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd)});var vy=u(()=>{"use strict";Vr();Ma()});var Rd,xy=u(()=>{"use strict";Ze();Rd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Rd});var Sy,wi,iO,Fa,Ri,Ba,Cy=u(()=>{"use strict";Ze();O();Kr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},iO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sy]=()=>{this.defaultMessages={},this.cache=new er,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Me(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new $r((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof Jt)&&t&&console.error(n)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};Sy=iO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ri=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Ad,Oy=u(()=>{"use strict";O();Ad=class{highlightHtml(e,t,o){ql(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Ad});var Ld,Ey=u(()=>{"use strict";O();Ze();Ld=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return wo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ld});var Er,kd=u(()=>{"use strict";O();Ze();Er=class{static get(e,t){var o,n;let a=H.getState(),{lang:s,region:l}=(n=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Wr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ua,wy=u(()=>{"use strict";Kr();Ua=class extends Qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var Td,Ry=u(()=>{"use strict";kd();Td=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Td});var _o,Ay=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var _d,Ly,ky=u(()=>{"use strict";_d=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ly=new _d});var za,Ty=u(()=>{"use strict";O();Ay();ky();za=class r extends yr{static build(){return new r(window.history,Ly,()=>window.location,!1)}constructor(e,t,o,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Me(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _o(this.currentItem())),0)}installProxies(){let e=t=>(o,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(_o.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_o.eventName,e)}currentItem(){return gt(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return gt(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}}});var _y=u(()=>{"use strict";Ty();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var Iy=u(()=>{"use strict";Ze()});var Ha=u(()=>{"use strict";Sd();bd();xy();Cy();Kr();Oy();xd();Ey();kd();wy();Ry();_y();Iy()});var Py,Id=u(()=>{"use strict";T();Py=R`
342
+ `});var Ny=u(()=>{"use strict"});function $y(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Dy=u(()=>{"use strict";Ze()});var Va,My=u(()=>{"use strict";vd();Va=class extends Ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Pd,Sn,Nd=u(()=>{"use strict";O();Ze();Dy();Ha();My();Pd=class r extends Co{static build(e){return new r(H,e)}constructor(e,t){super(),this.store=e,this.cache=new er,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ne,this.reloadDebouncer=new ne(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oi.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>$y(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,o,n,a,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((o=this.localesConfiguration.allLanguagesAllowed)!==null&&o!==void 0?o:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((a=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(t)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Sn=Pd.build()});var Io,Cn=u(()=>{Io=class extends Event{constructor(e,t,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=n??!1}}});var Fy=u(()=>{});var $d=u(()=>{Cn();});var By=u(()=>{});var Dd=u(()=>{Cn();By();});var On,Uy=u(()=>{Cn();On=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Io(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(t);a===void 0&&n.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var zy=u(()=>{Dd();});var Hy=u(()=>{$d();});var Vy=u(()=>{Cn();Fy();$d();Dd();Uy();zy();Hy()});var Ye,Le,Md=u(()=>{"use strict";T();K();O();Id();Ha();Nd();Vy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends vt{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sn,this.contextRoot=new On}render(){return b`
343
343
  <slot></slot>
344
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Ai.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Re.elementDefinitions={};Re.styles=Iy;Ye([h()],Re.prototype,"baseUrl",void 0);Ye([h()],Re.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],Re.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],Re.prototype,"uiLocale",void 0);Ye([de(null)],Re.prototype,"availableUiLocales",void 0);Ye([de(null)],Re.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],Re.prototype,"editorMode",void 0);Ye([h({type:Boolean})],Re.prototype,"noCustom",void 0);Ye([h({type:Boolean})],Re.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Re.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],Re.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],Re.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],Re.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],Re.prototype,"authenticationRequired",void 0);Ye([de([])],Re.prototype,"messageContexts",void 0);Ye([de(void 0)],Re.prototype,"session",void 0)});var Vy,Wy=u(()=>{"use strict";Dd();Vy={"ft-app-context":Re}});var jy=u(()=>{"use strict";O();Wy();U(Vy)});var Gt=u(()=>{"use strict";py();qe();Ma();by();Ha();_d();Py();Dd();Pd();jy()});var Md,Ri,Wa=u(()=>{"use strict";Md=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[t,o]=e.split(".");return{context:t,key:o,custom:t!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ri=new Md});var aO,wn,Gy,Ky,ja,En,ut,Ga,Ka,An=u(()=>{"use strict";O();Gt();G();Wa();aO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wn=Symbol("i18nAttributes"),Gy=Symbol("i18nListAttributes"),Ky=Symbol("i18nProperties"),ja=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),ut=Oe(Symbol("withI18n"),function(r){var e,t;class o extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:Ai}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:m,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=m??(g?g(this):[]);return this.getI18nService(f).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ri.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(m,g,y)=>y?.context&&y.key&&a(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[wn])===null||s===void 0||s.forEach((m,g)=>d[g]=f(m,g,d[g])),(l=this[Gy])===null||l===void 0||l.forEach((m,g)=>{var y;return d[g]=(y=d[g])===null||y===void 0?void 0:y.map(x=>f(m,g,x))})}updateI18nProperties(a){var s;(s=this[Ky])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,aO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends ut(F){},Ka=class extends ut(vt){}});var Fd,sO,qy=u(()=>{"use strict";Wa();Fd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ri.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},sO=new Fd});var Li,qa=u(()=>{"use strict";An();O();Wa();qy();Li=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:yt,converter:Ri,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var ar,Zy=u(()=>{"use strict";Gt();ar=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Ai}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Yy=u(()=>{"use strict";An()});var Qy,Bd=u(()=>{"use strict";T();Qy=A`
345
- `});var Xy=u(()=>{"use strict"});var Rn,Kt,Ud=u(()=>{"use strict";T();G();O();Bd();An();Gt();Rn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Kt=class extends Ka{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":k:b`
344
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Ri.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Le.elementDefinitions={};Le.styles=Py;Ye([h()],Le.prototype,"baseUrl",void 0);Ye([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],Le.prototype,"uiLocale",void 0);Ye([de(null)],Le.prototype,"availableUiLocales",void 0);Ye([de(null)],Le.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ye([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ye([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ye([de([])],Le.prototype,"messageContexts",void 0);Ye([de(void 0)],Le.prototype,"session",void 0)});var Wy,jy=u(()=>{"use strict";Md();Wy={"ft-app-context":Le}});var Gy=u(()=>{"use strict";O();jy();U(Wy)});var Gt=u(()=>{"use strict";fy();Ze();Ma();vy();Ha();Id();Ny();Md();Nd();Gy()});var Fd,Ai,Wa=u(()=>{"use strict";Fd=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[t,o]=e.split(".");return{context:t,key:o,custom:t!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ai=new Fd});var sO,wn,Ky,qy,ja,En,pt,Ga,Ka,Rn=u(()=>{"use strict";O();Gt();K();Wa();sO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wn=Symbol("i18nAttributes"),Ky=Symbol("i18nListAttributes"),qy=Symbol("i18nProperties"),ja=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),pt=Ee(Symbol("withI18n"),function(r){var e,t;class o extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:Ri}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:m,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=m??(g?g(this):[]);return this.getI18nService(f).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ai.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(m,g,y)=>y?.context&&y.key&&a(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[wn])===null||s===void 0||s.forEach((m,g)=>d[g]=f(m,g,d[g])),(l=this[Ky])===null||l===void 0||l.forEach((m,g)=>{var y;return d[g]=(y=d[g])===null||y===void 0?void 0:y.map(x=>f(m,g,x))})}updateI18nProperties(a){var s;(s=this[qy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,sO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends pt(F){},Ka=class extends pt(vt){}});var Bd,lO,Zy=u(()=>{"use strict";Wa();Bd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ai.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lO=new Bd});var Li,qa=u(()=>{"use strict";Rn();O();Wa();Zy();Li=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:yt,converter:Ai,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var sr,Qy=u(()=>{"use strict";Gt();sr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Ri}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Yy=u(()=>{"use strict";Rn()});var Xy,Ud=u(()=>{"use strict";T();Xy=R`
345
+ `});var Jy=u(()=>{"use strict"});var An,Kt,zd=u(()=>{"use strict";T();K();O();Ud();Rn();Gt();An=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Kt=class extends Ka{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":k:b`
346
346
  <span class="ft-i18n">
347
347
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
348
348
  </span>
349
- `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};Kt.elementDefinitions={};Kt.styles=Qy;Rn([pe()],Kt.prototype,"editorMode",void 0);Rn([h()],Kt.prototype,"context",void 0);Rn([h()],Kt.prototype,"key",void 0);Rn([de([])],Kt.prototype,"args",void 0);Rn([h()],Kt.prototype,"defaultMessage",void 0)});var Jy,eb=u(()=>{"use strict";Ud();Jy={"ft-i18n":Kt}});var tb=u(()=>{"use strict";O();eb();U(Jy)});var Mt=u(()=>{"use strict";Zy();An();Yy();Bd();Xy();Ud();tb()});var qt,Te,zd=u(()=>{"use strict";T();G();O();ke();gd();pa();qa();Mt();qt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Te=class extends Ga{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ne,this.revealDebouncer=new ne,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut(t)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,t;return b`
349
+ `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};Kt.elementDefinitions={};Kt.styles=Xy;An([pe()],Kt.prototype,"editorMode",void 0);An([h()],Kt.prototype,"context",void 0);An([h()],Kt.prototype,"key",void 0);An([de([])],Kt.prototype,"args",void 0);An([h()],Kt.prototype,"defaultMessage",void 0)});var eb,tb=u(()=>{"use strict";zd();eb={"ft-i18n":Kt}});var rb=u(()=>{"use strict";O();tb();U(eb)});var Mt=u(()=>{"use strict";Qy();Rn();Yy();Ud();Jy();zd();rb()});var qt,Te,Hd=u(()=>{"use strict";T();K();O();ke();yd();pa();qa();Mt();qt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Te=class extends Ga{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ne,this.revealDebouncer=new ne,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut(t)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,t;return b`
350
350
  <div part="container"
351
351
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
352
352
  <slot part="slot"></slot>
@@ -355,13 +355,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
355
355
  popover="manual">
356
356
  <div part="tooltip-content" class="ft-tooltip--content">
357
357
  <slot name="text"></slot>
358
- <ft-typography variant="${me.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
358
+ <ft-typography variant="${fe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
359
359
  ${(t=this.text)===null||t===void 0?void 0:t.message}
360
360
  </ft-typography>
361
361
  </div>
362
362
  </div>
363
363
  </div>
364
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var t,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(t=this.tooltip)===null||t===void 0||t.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(t),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Pl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${t}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ys(e,this.ignoreMatchingElements,this.eventsTarget)}};Te.elementDefinitions={"ft-typography":ie};Te.styles=uy;qt([Li()],Te.prototype,"text",void 0);qt([h({type:Boolean})],Te.prototype,"manual",void 0);qt([h({type:Boolean})],Te.prototype,"inline",void 0);qt([_t()],Te.prototype,"delay",void 0);qt([h()],Te.prototype,"position",void 0);qt([de([])],Te.prototype,"ignoreMatchingElements",void 0);qt([zs()],Te.prototype,"slotNodes",void 0);qt([B(".ft-tooltip--container")],Te.prototype,"container",void 0);qt([B(".ft-tooltip")],Te.prototype,"tooltip",void 0);qt([B(".ft-tooltip--content")],Te.prototype,"tooltipContent",void 0);qt([I()],Te.prototype,"visible",void 0)});var rb=u(()=>{"use strict"});var ob,ib=u(()=>{"use strict";zd();ob={"ft-tooltip":Te}});var nb=u(()=>{"use strict";O();ib();U(ob)});var Hd=u(()=>{"use strict";zd();gd();rb();nb()});var it,ab,ki=u(()=>{"use strict";T();O();it={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")},ab=[A`
364
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var t,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(t=this.tooltip)===null||t===void 0||t.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(t),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Nl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${t}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ys(e,this.ignoreMatchingElements,this.eventsTarget)}};Te.elementDefinitions={"ft-typography":ie};Te.styles=py;qt([Li()],Te.prototype,"text",void 0);qt([h({type:Boolean})],Te.prototype,"manual",void 0);qt([h({type:Boolean})],Te.prototype,"inline",void 0);qt([_t()],Te.prototype,"delay",void 0);qt([h()],Te.prototype,"position",void 0);qt([de([])],Te.prototype,"ignoreMatchingElements",void 0);qt([Hs()],Te.prototype,"slotNodes",void 0);qt([B(".ft-tooltip--container")],Te.prototype,"container",void 0);qt([B(".ft-tooltip")],Te.prototype,"tooltip",void 0);qt([B(".ft-tooltip--content")],Te.prototype,"tooltipContent",void 0);qt([I()],Te.prototype,"visible",void 0)});var ob=u(()=>{"use strict"});var ib,nb=u(()=>{"use strict";Hd();ib={"ft-tooltip":Te}});var ab=u(()=>{"use strict";O();nb();U(ib)});var Vd=u(()=>{"use strict";Hd();yd();ob();ab()});var nt,sb,ki=u(()=>{"use strict";T();O();nt={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")},sb=[R`
365
365
  :host, i.ft-icon {
366
366
  display: inline-flex;
367
367
  align-items: center;
@@ -370,14 +370,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
370
370
  }
371
371
 
372
372
  :host {
373
- width: ${it.size};
374
- height: ${it.size};
373
+ width: ${nt.size};
374
+ height: ${nt.size};
375
375
  }
376
376
 
377
377
  i.ft-icon {
378
378
  width: 100%;
379
379
  height: 100%;
380
- font-size: ${it.size};
380
+ font-size: ${nt.size};
381
381
  line-height: 1;
382
382
  font-weight: normal;
383
383
  text-transform: none;
@@ -388,33 +388,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
388
388
  text-rendering: auto;
389
389
  -webkit-font-smoothing: antialiased;
390
390
  -moz-osx-font-smoothing: grayscale;
391
- vertical-align: ${it.verticalAlign};
391
+ vertical-align: ${nt.verticalAlign};
392
392
  }
393
393
 
394
394
  i.ft-icon.ft-icon--fluid-topics {
395
- font-family: ${it.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
395
+ font-family: ${nt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
396
396
 
397
397
  /* Ugly fix because font is broken */
398
- font-size: calc(0.75 * ${it.size});
399
- line-height: ${it.size};
398
+ font-size: calc(0.75 * ${nt.size});
399
+ line-height: ${nt.size};
400
400
  position: relative;
401
401
  top: -4%;
402
402
  justify-content: center;
403
403
  }
404
404
 
405
405
  .ft-icon--file-format {
406
- font-family: ${it.fileFormatFontFamily}, ft-mime, sans-serif;
406
+ font-family: ${nt.fileFormatFontFamily}, ft-mime, sans-serif;
407
407
  }
408
408
 
409
409
  .ft-icon--material {
410
- font-family: ${it.materialFontFamily}, "Material Icons", sans-serif;
410
+ font-family: ${nt.materialFontFamily}, "Material Icons", sans-serif;
411
411
  }
412
- `,yo]});var pt,Vd=u(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(pt||(pt={}))});function Za(r,e){var t,o,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=lO.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(o=Wd.get(l))!==null&&o!==void 0?o:Wd.get(e))!==null&&n!==void 0?n:Wd.get(s))!==null&&a!==void 0?a:N.UNKNOWN}var Fe,N,Wd,lO,K$,jd=u(()=>{"use strict";(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",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.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",r.PAPER_PLANE_SLASH="&#xe9a1;",r.COMPRESS="&#xe9a2;",r.EXPAND="&#xe9a3;",r.ARROW_ROTATE_LEFT="&#xe9a4;",r.MOBILE_SMALL="&#xe9a5;",r.SPARKLES="&#xe9a6;",r.HAND_SOLID="&#xe9a7;",r.CLOCK_SOLID="&#xe9a8;",r.CONTEXT_MENU_CURSOR="&#xe9a9;",r.LANGUAGE_SLASH="&#xe9aa;",r.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",r.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",r.BOOKMARK_SLASH="&#xe9ad;",r.CIRCLE_PAUSE="&#xe9ae;",r.CIRCLE_PLAY="&#xe9af;",r.CIRCLE_STOP_PLAIN="&#xe9b0;",r.CIRCLE_ARROW_DOWN="&#xe9b1;",r.SHARE_NODES="&#xe9b2;",r.BELL="&#xe9b3;",r.BELL_SLASH="&#xe9b4;",r.FILE="&#xe9b5;",r.HAND="&#xe9b6;",r.SQUARE_INFO_SOLID="&#xe9b7;",r.FILE_CODE="&#xe9b8;",r.BOX_CODE="&#xe9b9;",r.TOPICS_SOLID="&#xe9ba;",r.PHOTO_FILM="&#xe9bb;",r.HYPHEN_SOLID="&#xe9bc;",r.CROSSHAIRS="&#xe9bd;",r.PERSON_CHALKBOARD="&#xe9be;",r.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",r.BOOK_OPEN_COVER="&#xe9c0;",r.LIGHTBULB="&#xe9c1;",r.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",r.CHART_LINE_USER="&#xe9c3;",r.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Fe||(Fe={}));(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;"})(N||(N={}));Wd=new Map([...["abw"].map(r=>[r,N.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,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.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,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.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,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.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,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]),lO=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);K$={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"}});var Ln,xe,Gd=u(()=>{"use strict";T();G();O();qi();jd();ki();Vd();Ln=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xe=class extends F{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=k}render(){let e=this.variant&&Object.values(pt).includes(this.variant)?this.variant:pt.fluid_topics,t=e!==pt.material||!!this.value;return b`
412
+ `,yo]});var at,Wd=u(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(at||(at={}))});function Za(r,e){var t,o,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=cO.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(o=jd.get(l))!==null&&o!==void 0?o:jd.get(e))!==null&&n!==void 0?n:jd.get(s))!==null&&a!==void 0?a:N.UNKNOWN}var Pe,N,jd,cO,Y$,Gd=u(()=>{"use strict";(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",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.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",r.PAPER_PLANE_SLASH="&#xe9a1;",r.COMPRESS="&#xe9a2;",r.EXPAND="&#xe9a3;",r.ARROW_ROTATE_LEFT="&#xe9a4;",r.MOBILE_SMALL="&#xe9a5;",r.SPARKLES="&#xe9a6;",r.HAND_SOLID="&#xe9a7;",r.CLOCK_SOLID="&#xe9a8;",r.CONTEXT_MENU_CURSOR="&#xe9a9;",r.LANGUAGE_SLASH="&#xe9aa;",r.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",r.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",r.BOOKMARK_SLASH="&#xe9ad;",r.CIRCLE_PAUSE="&#xe9ae;",r.CIRCLE_PLAY="&#xe9af;",r.CIRCLE_STOP_PLAIN="&#xe9b0;",r.CIRCLE_ARROW_DOWN="&#xe9b1;",r.SHARE_NODES="&#xe9b2;",r.BELL="&#xe9b3;",r.BELL_SLASH="&#xe9b4;",r.FILE="&#xe9b5;",r.HAND="&#xe9b6;",r.SQUARE_INFO_SOLID="&#xe9b7;",r.FILE_CODE="&#xe9b8;",r.BOX_CODE="&#xe9b9;",r.TOPICS_SOLID="&#xe9ba;",r.PHOTO_FILM="&#xe9bb;",r.HYPHEN_SOLID="&#xe9bc;",r.CROSSHAIRS="&#xe9bd;",r.PERSON_CHALKBOARD="&#xe9be;",r.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",r.BOOK_OPEN_COVER="&#xe9c0;",r.LIGHTBULB="&#xe9c1;",r.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",r.CHART_LINE_USER="&#xe9c3;",r.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Pe||(Pe={}));(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;"})(N||(N={}));jd=new Map([...["abw"].map(r=>[r,N.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,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.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,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.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,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.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,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]),cO=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Y$={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"}});var Ln,xe,Kd=u(()=>{"use strict";T();K();O();qi();Gd();ki();Wd();Ln=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xe=class extends F{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=k}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,t=e!==at.material||!!this.value;return b`
413
413
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
414
414
  ${so(this.resolvedIcon)}
415
415
  <slot ?hidden=${t}></slot>
416
416
  </i>
417
- `}getTextContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.getTextContent();switch(this.variant){case pt.file_format:this.resolvedIcon=(e=N[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case pt.material:this.resolvedIcon=this.value||k;break;default:this.resolvedIcon=(t=Fe[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=ab;Ln([h()],xe.prototype,"variant",void 0);Ln([h()],xe.prototype,"value",void 0);Ln([h({reflect:!0,attribute:"aria-hidden"})],xe.prototype,"ariaHidden",void 0);Ln([I()],xe.prototype,"resolvedIcon",void 0);Ln([B("slot")],xe.prototype,"slottedContent",void 0)});var sb,lb=u(()=>{"use strict";Gd();sb={"ft-icon":xe}});var cb=u(()=>{"use strict";O();lb();U(sb)});var wr=u(()=>{"use strict";ki();Vd();Gd();jd();cb()});var Po,db,Ya=u(()=>{"use strict";T();O();Po={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},db=A`
417
+ `}getTextContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.getTextContent();switch(this.variant){case at.file_format:this.resolvedIcon=(e=N[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case at.material:this.resolvedIcon=this.value||k;break;default:this.resolvedIcon=(t=Pe[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=sb;Ln([h()],xe.prototype,"variant",void 0);Ln([h()],xe.prototype,"value",void 0);Ln([h({reflect:!0,attribute:"aria-hidden"})],xe.prototype,"ariaHidden",void 0);Ln([I()],xe.prototype,"resolvedIcon",void 0);Ln([B("slot")],xe.prototype,"slottedContent",void 0)});var lb,cb=u(()=>{"use strict";Kd();lb={"ft-icon":xe}});var db=u(()=>{"use strict";O();cb();U(lb)});var wr=u(()=>{"use strict";ki();Wd();Kd();Gd();db()});var Po,ub,Qa=u(()=>{"use strict";T();O();Po={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},ub=R`
418
418
  :host {
419
419
  line-height: 0;
420
420
  }
@@ -483,14 +483,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
483
483
  transform: translate(calc(0.35 * ${Po.size}), 0);
484
484
  }
485
485
  }
486
- `});var ub=u(()=>{"use strict"});var No,Kd=u(()=>{"use strict";T();O();Ya();No=class extends F{render(){return b`
486
+ `});var pb=u(()=>{"use strict"});var No,qd=u(()=>{"use strict";T();O();Qa();No=class extends F{render(){return b`
487
487
  <div class="ft-loader">
488
488
  <div></div>
489
489
  <div></div>
490
490
  <div></div>
491
491
  <div></div>
492
492
  </div>
493
- `}};No.styles=db});var pb,fb=u(()=>{"use strict";Kd();pb={"ft-loader":No}});var hb=u(()=>{"use strict";O();fb();U(pb)});var mb=u(()=>{"use strict";Ya();ub();Kd();hb()});var Kr,gb=u(()=>{Lt();Kr=r=>r??k});var Qa=u(()=>{gb()});var yb,Y,bb,qd,sr,vb,$o=u(()=>{"use strict";T();O();Sr();jt();Ya();ki();yb=i.extend("--ft-button-color","",S.colorPrimary),Y={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:yb,fontSize:i.extend("--ft-button-font-size","",nr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",yb),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(S.colorOpacityDisabled,"Design system")},bb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),qd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:bb,rippleColor:i.extend("--ft-button-primary-ripple-color","",bb)},sr={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.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")},vb=A`
493
+ `}};No.styles=ub});var fb,hb=u(()=>{"use strict";qd();fb={"ft-loader":No}});var mb=u(()=>{"use strict";O();hb();U(fb)});var gb=u(()=>{"use strict";Qa();pb();qd();mb()});var qr,yb=u(()=>{Lt();qr=r=>r??k});var Ya=u(()=>{yb()});var bb,Q,vb,Zd,lr,xb,$o=u(()=>{"use strict";T();O();Sr();jt();Qa();ki();bb=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:bb,fontSize:i.extend("--ft-button-font-size","",ar.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",bb),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(S.colorOpacityDisabled,"Design system")},vb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Zd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:vb,rippleColor:i.extend("--ft-button-primary-ripple-color","",vb)},lr={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.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")},xb=R`
494
494
  :host {
495
495
  display: inline-block;
496
496
  max-width: 100%;
@@ -501,7 +501,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
501
501
  box-shadow: 0px 0px 0px transparent;
502
502
  border: 0px solid transparent;
503
503
  text-shadow: 0px 0px 0px transparent;
504
- font-size: ${Y.fontSize};
504
+ font-size: ${Q.fontSize};
505
505
  text-decoration: none;
506
506
  }
507
507
 
@@ -531,31 +531,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
531
531
  border: none;
532
532
  pointer-events: auto;
533
533
 
534
- --button-internal-line-height: max(calc(${Y.fontSize} + 2px), ${Y.iconSize});
535
- --button-internal-color: ${Y.color};
536
- ${R(it.size,Y.iconSize)};
537
- ${R(le.color,Y.rippleColor)};
534
+ --button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
535
+ --button-internal-color: ${Q.color};
536
+ ${A(nt.size,Q.iconSize)};
537
+ ${A(le.color,Q.rippleColor)};
538
538
 
539
- border-radius: ${Y.borderRadius};
540
- padding: ${Y.verticalPadding} ${Y.horizontalPadding};
541
- background-color: ${Y.backgroundColor};
539
+ border-radius: ${Q.borderRadius};
540
+ padding: ${Q.verticalPadding} ${Q.horizontalPadding};
541
+ background-color: ${Q.backgroundColor};
542
542
  color: var(--button-internal-color);
543
543
  -webkit-mask-image: radial-gradient(white, black);
544
544
  }
545
545
 
546
546
  .ft-button.ft-button--outlined {
547
547
  border: 1px solid var(--button-internal-color);
548
- padding: calc(${Y.verticalPadding} - 1px) calc(${Y.horizontalPadding} - 1px);
548
+ padding: calc(${Q.verticalPadding} - 1px) calc(${Q.horizontalPadding} - 1px);
549
549
  }
550
550
 
551
551
  .ft-button.ft-button--dense {
552
- padding: ${sr.verticalPadding} ${sr.horizontalPadding};
553
- border-radius: ${sr.borderRadius};
554
- gap: ${sr.iconPadding};
552
+ padding: ${lr.verticalPadding} ${lr.horizontalPadding};
553
+ border-radius: ${lr.borderRadius};
554
+ gap: ${lr.iconPadding};
555
555
  }
556
556
 
557
557
  .ft-button.ft-button--dense.ft-button--outlined {
558
- padding: calc(${sr.verticalPadding} - 1px) calc(${sr.horizontalPadding} - 1px);
558
+ padding: calc(${lr.verticalPadding} - 1px) calc(${lr.horizontalPadding} - 1px);
559
559
  }
560
560
 
561
561
  .ft-button:not([disabled]):hover {
@@ -563,22 +563,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
563
563
  }
564
564
 
565
565
  .ft-button--round {
566
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Y.verticalPadding});
566
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Q.verticalPadding});
567
567
  }
568
568
 
569
569
  .ft-button--round.ft-button--dense {
570
- border-radius: calc(var(--button-internal-line-height) / 2 + ${sr.verticalPadding});
570
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${lr.verticalPadding});
571
571
  }
572
572
 
573
573
  .ft-button[disabled] {
574
574
  filter: grayscale(1);
575
- opacity: ${Y.opacityDisabled};
575
+ opacity: ${Q.opacityDisabled};
576
576
  }
577
577
 
578
578
  .ft-button.ft-button--primary {
579
- background-color: ${qd.backgroundColor};
580
- --button-internal-color: ${qd.color};
581
- ${R(le.color,qd.rippleColor)};
579
+ background-color: ${Zd.backgroundColor};
580
+ --button-internal-color: ${Zd.color};
581
+ ${A(le.color,Zd.rippleColor)};
582
582
  }
583
583
 
584
584
  .ft-button:focus {
@@ -591,13 +591,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
591
591
  white-space: nowrap;
592
592
  text-overflow: ellipsis;
593
593
  display: block;
594
- margin: 0 ${Y.iconPadding};
595
- ${R(nr.fontSize,"1em")};
596
- ${R(nr.lineHeight,"var(--button-internal-line-height)")};
594
+ margin: 0 ${Q.iconPadding};
595
+ ${A(ar.fontSize,"1em")};
596
+ ${A(ar.lineHeight,"var(--button-internal-line-height)")};
597
597
  }
598
598
 
599
599
  .ft-button--dense .ft-button--label {
600
- margin: 0 ${sr.iconPadding};
600
+ margin: 0 ${lr.iconPadding};
601
601
  }
602
602
 
603
603
  .ft-button--label[hidden] {
@@ -610,13 +610,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
610
610
  }
611
611
 
612
612
  .ft-button--label[hidden] + [part="icon"] {
613
- margin: 0 calc(${Y.horizontalPadding} * -1);
614
- padding: 0 ${Y.verticalPadding};
613
+ margin: 0 calc(${Q.horizontalPadding} * -1);
614
+ padding: 0 ${Q.verticalPadding};
615
615
  }
616
616
 
617
617
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
618
- margin: 0 calc(${sr.horizontalPadding} * -1);
619
- padding: 0 ${sr.verticalPadding};
618
+ margin: 0 calc(${lr.horizontalPadding} * -1);
619
+ padding: 0 ${lr.verticalPadding};
620
620
  }
621
621
 
622
622
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -624,16 +624,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
624
624
  }
625
625
 
626
626
  ft-loader {
627
- ${R(Po.size,Y.iconSize)};
628
- ${R(Po.color,"var(--button-internal-color)")};
627
+ ${A(Po.size,Q.iconSize)};
628
+ ${A(Po.color,"var(--button-internal-color)")};
629
629
  }
630
- `});var Ee,K,Zd=u(()=>{"use strict";O();rt();Hd();wr();mb();T();et();G();Qa();ke();$o();Ee=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},K=class extends Fc(F){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,o;let n=b`
630
+ `});var we,W,Qd=u(()=>{"use strict";O();ot();Vd();wr();gb();T();tt();K();Ya();ke();$o();we=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},W=class extends Bc(F){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,o;let n=b`
631
631
  <ft-ripple part="ripple"
632
632
  ?disabled=${this.isDisabled()}
633
633
  ?activated=${this.activated}
634
634
  ></ft-ripple>
635
635
  <ft-typography part="label"
636
- variant="${me.button}"
636
+ variant="${fe.button}"
637
637
  element="span"
638
638
  class="ft-button--label ${ko?"ft-safari-ellipsis-fix":""}"
639
639
  ?hidden=${!this.hasTextContent()}>
@@ -644,17 +644,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
644
644
  <a href="${a}"
645
645
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
646
646
  part="button"
647
- class="${he(this.buttonClasses)}"
647
+ class="${me(this.buttonClasses)}"
648
648
  aria-label="${(t=this.ariaLabel)!==null&&t!==void 0?t:this.getLabel()}"
649
649
  ?disabled=${this.isDisabled()}>
650
650
  ${n}
651
651
  </a>
652
652
  `:b`
653
653
  <button part="button"
654
- class="${he(this.buttonClasses)}"
654
+ class="${me(this.buttonClasses)}"
655
655
  aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
656
- aria-haspopup="${Kr(this.ariaHasPopup)}"
657
- aria-pressed="${Kr(this.ariaPressed)}"
656
+ aria-haspopup="${qr(this.ariaHasPopup)}"
657
+ aria-pressed="${qr(this.ariaPressed)}"
658
658
  ?disabled=${this.isDisabled()}>
659
659
  ${n}
660
660
  </button>
@@ -669,11 +669,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
669
669
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
670
670
  `:b`
671
671
  <slot part="icon" name="icon"></slot>
672
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,t){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};K.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Te,"ft-icon":xe,"ft-loader":No,"ft-typography":ie};K.styles=[Yl,vb,yo];Ee([h({type:Boolean})],K.prototype,"primary",void 0);Ee([h({type:Boolean})],K.prototype,"outlined",void 0);Ee([h({type:Boolean})],K.prototype,"dense",void 0);Ee([h({type:Boolean})],K.prototype,"round",void 0);Ee([h({type:Boolean})],K.prototype,"disabled",void 0);Ee([h()],K.prototype,"icon",void 0);Ee([h()],K.prototype,"iconVariant",void 0);Ee([h({type:Boolean})],K.prototype,"trailingIcon",void 0);Ee([h()],K.prototype,"label",void 0);Ee([h()],K.prototype,"type",void 0);Ee([h()],K.prototype,"href",void 0);Ee([h()],K.prototype,"target",void 0);Ee([h({type:Boolean})],K.prototype,"loading",void 0);Ee([h({attribute:"aria-label"})],K.prototype,"ariaLabel",void 0);Ee([h()],K.prototype,"ariaHasPopup",void 0);Ee([h({attribute:"aria-pressed"})],K.prototype,"ariaPressed",void 0);Ee([h()],K.prototype,"tooltipPosition",void 0);Ee([h({type:Boolean})],K.prototype,"hideTooltip",void 0);Ee([h({type:Boolean})],K.prototype,"forceTooltip",void 0);Ee([h({type:Boolean})],K.prototype,"activated",void 0);Ee([B(".ft-button")],K.prototype,"button",void 0);Ee([B(".ft-button--label slot")],K.prototype,"slottedContent",void 0);Ee([B("[part=tooltip]")],K.prototype,"tooltip",void 0)});var xb=u(()=>{"use strict"});var Sb,Cb=u(()=>{"use strict";Zd();Sb={"ft-button":K}});var Ob=u(()=>{"use strict";O();Cb();U(Sb)});var lr=u(()=>{"use strict";Zd();$o();xb();Ob()});var ge,Yd,kn=u(()=>{"use strict";T();O();lr();ge={height:i.create("--ft-search-input-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:i.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:i.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:i.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:i.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:i.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:i.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:i.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:i.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:i.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},Yd=A`
672
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,t){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Te,"ft-icon":xe,"ft-loader":No,"ft-typography":ie};W.styles=[Yl,xb,yo];we([h({type:Boolean})],W.prototype,"primary",void 0);we([h({type:Boolean})],W.prototype,"outlined",void 0);we([h({type:Boolean})],W.prototype,"dense",void 0);we([h({type:Boolean})],W.prototype,"round",void 0);we([h({type:Boolean})],W.prototype,"disabled",void 0);we([h()],W.prototype,"icon",void 0);we([h()],W.prototype,"iconVariant",void 0);we([h({type:Boolean})],W.prototype,"trailingIcon",void 0);we([h()],W.prototype,"label",void 0);we([h()],W.prototype,"type",void 0);we([h()],W.prototype,"href",void 0);we([h()],W.prototype,"target",void 0);we([h({type:Boolean})],W.prototype,"loading",void 0);we([h({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);we([h()],W.prototype,"ariaHasPopup",void 0);we([h({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);we([h()],W.prototype,"tooltipPosition",void 0);we([h({type:Boolean})],W.prototype,"hideTooltip",void 0);we([h({type:Boolean})],W.prototype,"forceTooltip",void 0);we([h({type:Boolean})],W.prototype,"activated",void 0);we([B(".ft-button")],W.prototype,"button",void 0);we([B(".ft-button--label slot")],W.prototype,"slottedContent",void 0);we([B("[part=tooltip]")],W.prototype,"tooltip",void 0)});var Sb=u(()=>{"use strict"});var Cb,Ob=u(()=>{"use strict";Qd();Cb={"ft-button":W}});var Eb=u(()=>{"use strict";O();Ob();U(Cb)});var Zt=u(()=>{"use strict";Qd();$o();Sb();Eb()});var ye,Yd,kn=u(()=>{"use strict";T();O();Zt();ye={height:i.create("--ft-search-input-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:i.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:i.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:i.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:i.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:i.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:i.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:i.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:i.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:i.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},Yd=R`
673
673
  * {
674
674
  box-sizing: border-box;
675
- ${R(Y.color,ge.buttonColor)};
676
- ${R(Y.rippleColor,ge.buttonRippleColor)};
675
+ ${A(Q.color,ye.buttonColor)};
676
+ ${A(Q.rippleColor,ye.buttonRippleColor)};
677
677
  }
678
678
 
679
679
  .ft-search-input {
@@ -681,11 +681,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
681
681
  display: flex;
682
682
  flex-direction: row;
683
683
  align-items: center;
684
- height: ${ge.height};
684
+ height: ${ye.height};
685
685
 
686
- background: ${ge.colorSurface};
687
- border: 1px solid ${ge.colorOutline};
688
- border-radius: ${ge.borderRadius};
686
+ background: ${ye.colorSurface};
687
+ border: 1px solid ${ye.colorOutline};
688
+ border-radius: ${ye.borderRadius};
689
689
  }
690
690
 
691
691
  .ft-search-input--input-container {
@@ -700,11 +700,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
700
700
  width: 100%;
701
701
  display: grid;
702
702
  padding: 0 8px;
703
- border-radius: ${ge.borderRadius};
703
+ border-radius: ${ye.borderRadius};
704
704
  }
705
705
 
706
706
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
707
- outline: 2px solid ${ge.focusOutlineColor};
707
+ outline: 2px solid ${ye.focusOutlineColor};
708
708
  }
709
709
 
710
710
  .ft-search-input--input {
@@ -712,12 +712,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
712
712
  width: 100%;
713
713
  border: none;
714
714
  background-color: transparent;
715
- color: ${ge.colorOnSurface};
715
+ color: ${ye.colorOnSurface};
716
716
  outline: none;
717
717
  }
718
718
 
719
719
  .ft-search-input--input::placeholder {
720
- color: ${ge.colorOnSurfaceMedium};
720
+ color: ${ye.colorOnSurfaceMedium};
721
721
  }
722
722
 
723
723
  .ft-search-input--actions {
@@ -731,7 +731,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
731
731
  .ft-search-input > ft-button,
732
732
  .ft-search-input--actions ft-button {
733
733
  flex-shrink: 0;
734
- ${R(Y.backgroundColor,"transparent")};
734
+ ${A(Q.backgroundColor,"transparent")};
735
735
  }
736
736
 
737
737
  .ft-search-input .ft-search-input--launch-search,
@@ -741,14 +741,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
741
741
 
742
742
  .ft-search-input--separator {
743
743
  height: 20px;
744
- border-right: 1px solid ${ge.colorOutline};
744
+ border-right: 1px solid ${ye.colorOutline};
745
745
  }
746
- `});var Xa,Qd,Ja=u(()=>{"use strict";T();O();Xa={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Qd=A`
746
+ `});var Xa,Xd,Ja=u(()=>{"use strict";T();O();Xa={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Xd=R`
747
747
  .kwicmatch {
748
748
  font-weight: 700;
749
749
  background-color: ${Xa.highlightBackgroundColor};
750
750
  }
751
- `});var es,Xd,ts=u(()=>{"use strict";T();O();es={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Xd=A`
751
+ `});var es,Jd,ts=u(()=>{"use strict";T();O();es={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Jd=R`
752
752
  .kwicmatch {
753
753
  font-weight: 700;
754
754
  background-color: ${es.highlightBackgroundColor};
@@ -762,11 +762,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
762
762
  a:focus {
763
763
  outline: revert;
764
764
  }
765
- `});function Lb(r){var e;return((e=It(r))===null||e===void 0?void 0:e.openMode)===Aa.EXTERNAL}function os(r){return Lb(r)?It(r).originUrl:al(r)}function kb(r,e){return Kr(e&&Lb(r)?"_blank":void 0)}var tu=u(()=>{"use strict";Hr();Qa();O()});var _i,Ii,is,ns,as,Tn,_n=u(()=>{"use strict";_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Ii=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},is=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o}})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var uO,ou,iu=u(()=>{"use strict";T();uO={},ou=A`
766
- `});var _b=u(()=>{"use strict"});var Zt,Pi=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}))});var pO,Ib,Pb=u(()=>{"use strict";O();pO={setRequest:(r,e)=>{r.request=e.payload}},Ib=r=>xr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:pO})});var ss,Nb=u(()=>{"use strict";Gt();ss=class extends Ze{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var $b,Db,Ni,nu=u(()=>{"use strict";Pi();O();Pb();Hr();Nb();_n();Gt();$b=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Db=r=>r.request.keywordMatch==zr.MANDATORY,Ni=class r extends Co{static build(e,t){return new r(Ib(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Zt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.localesDebouncer=new ne(10),this.searchDebouncer=new ne(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=o=>({...o.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new ne(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=o=>{var n;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(n=o.request.sort)!==null&&n!==void 0?n:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch}},this.service=t??new ss,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}updateSearchRequest(e,t=!1){let o=gt(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let n=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let s=l=>n.some(d=>d.lang==l);s(e)||(e=s(a)?a:n[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((o=Sn.localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:gr(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let n=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...n},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...n},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Eo.TITLE_ONLY,scope:fi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Eo.EVERYWHERE,scope:fi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return $b(this.store.getState())}get keywordMatch(){return Db(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(Zt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=qo(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((a=e.paging.perPage)!==null&&a!==void 0?a:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof Xt||(console.error(l),(s=this.errorHandler)===null||s===void 0||s.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length!=0&&e.input.length<3)return;this.cancelableSuggest=qo(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof Xt)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Mb,su,Fb,au,fO,hO,Ft,Do=u(()=>{"use strict";O();G();Pi();nu();Mb=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},su=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Fb=Symbol("registerInterval"),au=Symbol("registerAttempts"),fO=40,hO=Oe(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[au]=0,this.tryToRegisterToContext(),this[Fb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[au]>fO?window.clearInterval(this[Fb]):(this[au]++,this.dispatchEvent(new su))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Mb([I()],e.prototype,"stateManager",void 0),Mb([I({hasChanged:yt})],e.prototype,"neededSearchRequests",void 0),e}),Ft=class extends hO(vt){}});function In(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Pn(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var lu=u(()=>{"use strict"});var ls,Bb=u(()=>{"use strict";O();Hr();Gt();lu();ls=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,n])=>{if(!this.canSendEvent()||!o)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,n):this.sendDocumentSearchEvent(a,o,n)},this.eventsService=t??new Ua,this.resultsWatcher=ui(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:In(e.metadataFilters),facets:e.metadataFilters.map(a=>Pn(a))}};this.eventsService.sendKhubSearchEvent(n)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==ir.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==ir.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case ir.MAP:return{id:e.map.mapId,title:e.map.title,type:Ur.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ur.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ur.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ur.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ur.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=It(e))===null||t===void 0?void 0:t.originUrl}}});var Be,ye,cu=u(()=>{"use strict";T();G();O();iu();Do();Gt();Ma();Bb();_n();Be=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ye=class extends vt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ni.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ls(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(H)}render(){return b`
765
+ `});function kb(r){var e;return((e=It(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function os(r){return kb(r)?It(r).originUrl:sl(r)}function Tb(r,e){return qr(e&&kb(r)?"_blank":void 0)}var ru=u(()=>{"use strict";Vr();Ya();O()});var _i,Ii,is,ns,as,Tn,_n=u(()=>{"use strict";_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Ii=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},is=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o}})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var pO,iu,nu=u(()=>{"use strict";T();pO={},iu=R`
766
+ `});var Ib=u(()=>{"use strict"});var Qt,Pi=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Qt||(Qt={}))});var fO,Pb,Nb=u(()=>{"use strict";O();fO={setRequest:(r,e)=>{r.request=e.payload}},Pb=r=>xr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:fO})});var ss,$b=u(()=>{"use strict";Gt();ss=class extends Qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var Db,Mb,ls,hO,Ni,au=u(()=>{"use strict";Pi();O();Nb();Vr();$b();_n();Gt();Db=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Mb=r=>r.request.keywordMatch==Hr.MANDATORY,ls="ft-recent-queries",hO=20,Ni=class r extends Co{static build(e,t){return new r(Pb(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Qt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===ls&&this.loadRecentQueries()},this.localesDebouncer=new ne(10),this.searchDebouncer=new ne(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=o=>({...o.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new ne(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=o=>{var n;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(n=o.request.sort)!==null&&n!==void 0?n:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch}},this.service=t??new ss,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}updateSearchRequest(e,t=!1){let o=gt(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let n=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let s=l=>n.some(d=>d.lang==l);s(e)||(e=s(a)?a:n[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((o=Sn.localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:gr(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let n=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...n},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...n},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Eo.TITLE_ONLY,scope:fi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Eo.EVERYWHERE,scope:fi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Db(this.store.getState())}get keywordMatch(){return Mb(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(ls))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.store.getState().recentQueries.filter(n=>n.toLowerCase()!==t).slice(0,hO-1);o.unshift(e),this.setRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.store.getState().recentQueries,n=o.filter(a=>a.toLowerCase()!==t);o.length!==n.length&&this.setRecentQueries(n)}setRecentQueries(e){let t=JSON.stringify(e);window.localStorage.setItem(ls,t),window.dispatchEvent(new StorageEvent("storage",{key:ls,newValue:t,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(Qt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=qo(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((a=e.paging.perPage)!==null&&a!==void 0?a:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof Jt||(console.error(l),(s=this.errorHandler)===null||s===void 0||s.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=qo(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof Jt)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Fb,lu,Bb,su,mO,gO,Ft,Do=u(()=>{"use strict";O();K();Pi();au();Fb=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lu=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Bb=Symbol("registerInterval"),su=Symbol("registerAttempts"),mO=40,gO=Ee(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[su]=0,this.tryToRegisterToContext(),this[Bb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[su]>mO?window.clearInterval(this[Bb]):(this[su]++,this.dispatchEvent(new lu))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Fb([I()],e.prototype,"stateManager",void 0),Fb([I({hasChanged:yt})],e.prototype,"neededSearchRequests",void 0),e}),Ft=class extends gO(vt){}});function In(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Pn(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var cu=u(()=>{"use strict"});var cs,Ub=u(()=>{"use strict";O();Vr();Gt();cu();cs=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,n])=>{if(!this.canSendEvent()||!o)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,n):this.sendDocumentSearchEvent(a,o,n)},this.eventsService=t??new Ua,this.resultsWatcher=ui(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:In(e.metadataFilters),facets:e.metadataFilters.map(a=>Pn(a))}};this.eventsService.sendKhubSearchEvent(n)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==nr.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==nr.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case nr.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=It(e))===null||t===void 0?void 0:t.originUrl}}});var Be,be,du=u(()=>{"use strict";T();K();O();nu();Do();Gt();Ma();Ub();_n();Be=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},be=class extends vt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ni.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new cs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(H)}render(){return b`
767
767
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
768
768
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
769
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){Ed.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};ye.elementDefinitions={};ye.styles=ou;Be([pe({store:H.name})],ye.prototype,"session",void 0);Be([h()],ye.prototype,"query",void 0);Be([h()],ye.prototype,"contentLocale",void 0);Be([_t()],ye.prototype,"pageSize",void 0);Be([h({type:Boolean})],ye.prototype,"searchInDocumentTitlesOnly",void 0);Be([h()],ye.prototype,"keywordMatch",void 0);Be([h()],ye.prototype,"scope",void 0);Be([h()],ye.prototype,"virtualField",void 0);Be([h({type:Boolean})],ye.prototype,"ignoreEmptyQuery",void 0);Be([pe({store:H.name})],ye.prototype,"openExternalDocumentInNewTab",void 0);Be([de([])],ye.prototype,"filters",void 0);Be([h()],ye.prototype,"sortId",void 0);Be([de([])],ye.prototype,"sort",void 0);Be([de({})],ye.prototype,"otherQueryParams",void 0);Be([pe({store:"search"})],ye.prototype,"request",void 0);Be([pe({store:"search"})],ye.prototype,"paging",void 0);Be([pe({store:"search",selector:r=>r.spellcheck})],ye.prototype,"spellcheckAutocorrect",void 0);Be([pe({store:H.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],ye.prototype,"_appIntegrationInfoReady",void 0);Be([h({attribute:!1})],ye.prototype,"searchServiceProvider",void 0)});var Ub,zb=u(()=>{"use strict";cu();Ub={"ft-search-context":ye}});var Hb=u(()=>{"use strict";O();zb();U(Ub)});var Vb={};q(Vb,{FtSearchContext:()=>ye,FtSearchContextCssVariables:()=>uO,FtSearchStateManager:()=>Ni,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Db,searchInDocumentTitlesOnlySelector:()=>$b,styles:()=>ou});var Wb=u(()=>{"use strict";iu();_b();cu();nu();lu();Hb()});var jb=u(()=>{"use strict"});var qr,du=u(()=>{"use strict";Mt();qr=ar.build("designedSearchInput")});var Bt,uu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Bt||(Bt={}))});var Gb,pu=u(()=>{"use strict";T();Gb=A`
769
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){wd.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};be.elementDefinitions={};be.styles=iu;Be([pe({store:H.name})],be.prototype,"session",void 0);Be([h()],be.prototype,"query",void 0);Be([h()],be.prototype,"contentLocale",void 0);Be([_t()],be.prototype,"pageSize",void 0);Be([h({type:Boolean})],be.prototype,"searchInDocumentTitlesOnly",void 0);Be([h()],be.prototype,"keywordMatch",void 0);Be([h()],be.prototype,"scope",void 0);Be([h()],be.prototype,"virtualField",void 0);Be([h({type:Boolean})],be.prototype,"ignoreEmptyQuery",void 0);Be([pe({store:H.name})],be.prototype,"openExternalDocumentInNewTab",void 0);Be([de([])],be.prototype,"filters",void 0);Be([h()],be.prototype,"sortId",void 0);Be([de([])],be.prototype,"sort",void 0);Be([de({})],be.prototype,"otherQueryParams",void 0);Be([pe({store:"search"})],be.prototype,"request",void 0);Be([pe({store:"search"})],be.prototype,"paging",void 0);Be([pe({store:"search",selector:r=>r.spellcheck})],be.prototype,"spellcheckAutocorrect",void 0);Be([pe({store:H.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],be.prototype,"_appIntegrationInfoReady",void 0);Be([h({attribute:!1})],be.prototype,"searchServiceProvider",void 0)});var zb,Hb=u(()=>{"use strict";du();zb={"ft-search-context":be}});var Vb=u(()=>{"use strict";O();Hb();U(zb)});var Wb={};q(Wb,{FtSearchContext:()=>be,FtSearchContextCssVariables:()=>pO,FtSearchStateManager:()=>Ni,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Mb,searchInDocumentTitlesOnlySelector:()=>Db,styles:()=>iu});var jb=u(()=>{"use strict";nu();Ib();du();au();cu();Vb()});var Gb=u(()=>{"use strict"});var Rr,uu=u(()=>{"use strict";Mt();Rr=sr.build("designedSearchInput")});var Bt,pu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Bt||(Bt={}))});var Kb,fu=u(()=>{"use strict";T();Kb=R`
770
770
  .ft-size-watcher--pixel {
771
771
  width: 0;
772
772
  height: 0;
@@ -785,11 +785,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
785
785
  .ft-size-watcher--local .ft-size-watcher--watcher {
786
786
  width: 100%;
787
787
  }
788
- `});var Nn,fu,Ct,hu=u(()=>{"use strict";T();G();O();uu();pu();Nn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},fu=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},Ct=class extends F{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Bt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ne}render(){return b`
788
+ `});var Nn,hu,Ct,mu=u(()=>{"use strict";T();K();O();pu();fu();Nn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},hu=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},Ct=class extends F{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Bt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ne}render(){return b`
789
789
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
790
790
  <div class="ft-size-watcher--watcher"></div>
791
791
  </div>
792
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Bt.S:this.size<976?this.category=Bt.M:this.size<1024?this.category=Bt.L:this.size<1440?this.category=Bt.XL:this.category=Bt.XXL,this.dispatchEvent(new fu(this.size,this.category)))},this.debounceTimeout)}};Ct.elementDefinitions={};Ct.styles=Gb;Nn([h({type:Number})],Ct.prototype,"debounceTimeout",void 0);Nn([h({type:Boolean})],Ct.prototype,"local",void 0);Nn([h({type:Number,reflect:!0})],Ct.prototype,"size",void 0);Nn([h({type:String,reflect:!0})],Ct.prototype,"category",void 0);Nn([B(".ft-size-watcher--watcher")],Ct.prototype,"watcher",void 0)});var Kb,qb=u(()=>{"use strict";hu();Kb={"ft-size-watcher":Ct}});var Zb=u(()=>{"use strict";O();qb();U(Kb)});var Yb=u(()=>{"use strict";hu();pu();uu();Zb()});function cs(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Qb(r){return cs(r).split("|").pop()}function Xb(r){return cs(r).split("|").join(" > ")}function Jb(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Jb(t,r.selected)),value:r.value}}function ev(r){return bt(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function mu(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Jb(e,!1))}}function tv(r){return bt(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var gu=u(()=>{"use strict";O()});var $n,rv,yu=u(()=>{"use strict";T();O();$o();jt();$n={buttonMoreColor:i.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:i.external(S.borderRadiusM,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),fontFamily:i.external(Me.fontFamily,"Body2 typography"),fontSize:i.external(Me.fontSize,"Body2 typography"),fontWeight:i.external(Me.fontWeight,"Body2 typography"),letterSpacing:i.external(Me.letterSpacing,"Body2 typography"),lineHeight:i.external(Me.lineHeight,"Body2 typography"),textTransform:i.external(Me.textTransform,"Body2 typography")},rv=A`
792
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Bt.S:this.size<976?this.category=Bt.M:this.size<1024?this.category=Bt.L:this.size<1440?this.category=Bt.XL:this.category=Bt.XXL,this.dispatchEvent(new hu(this.size,this.category)))},this.debounceTimeout)}};Ct.elementDefinitions={};Ct.styles=Kb;Nn([h({type:Number})],Ct.prototype,"debounceTimeout",void 0);Nn([h({type:Boolean})],Ct.prototype,"local",void 0);Nn([h({type:Number,reflect:!0})],Ct.prototype,"size",void 0);Nn([h({type:String,reflect:!0})],Ct.prototype,"category",void 0);Nn([B(".ft-size-watcher--watcher")],Ct.prototype,"watcher",void 0)});var qb,Zb=u(()=>{"use strict";mu();qb={"ft-size-watcher":Ct}});var Qb=u(()=>{"use strict";O();Zb();U(qb)});var Yb=u(()=>{"use strict";mu();fu();pu();Qb()});function ds(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Xb(r){return ds(r).split("|").pop()}function Jb(r){return ds(r).split("|").join(" > ")}function ev(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>ev(t,r.selected)),value:r.value}}function tv(r){return bt(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function gu(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>ev(e,!1))}}function rv(r){return bt(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var yu=u(()=>{"use strict";O()});var $n,ov,bu=u(()=>{"use strict";T();O();$o();jt();$n={buttonMoreColor:i.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:i.external(S.borderRadiusM,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),fontFamily:i.external(Fe.fontFamily,"Body2 typography"),fontSize:i.external(Fe.fontSize,"Body2 typography"),fontWeight:i.external(Fe.fontWeight,"Body2 typography"),letterSpacing:i.external(Fe.letterSpacing,"Body2 typography"),lineHeight:i.external(Fe.lineHeight,"Body2 typography"),textTransform:i.external(Fe.textTransform,"Body2 typography")},ov=R`
793
793
  .ft-filter-level--container {
794
794
  display: flex;
795
795
  flex-direction: column;
@@ -839,11 +839,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
839
839
  }
840
840
 
841
841
  ft-button {
842
- ${R(Y.color,$n.colorOnSurface)};
842
+ ${A(Q.color,$n.colorOnSurface)};
843
843
  }
844
844
 
845
845
  ft-button.ft-filter-level--display-more {
846
- ${R(Y.color,$n.buttonMoreColor)};
846
+ ${A(Q.color,$n.buttonMoreColor)};
847
847
  }
848
848
 
849
849
  ft-radio, ft-checkbox {
@@ -859,7 +859,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
859
859
  margin: 10px 0;
860
860
  color: ${$n.colorOnSurfaceMedium};
861
861
  }
862
- `});var Ot,ov,bu=u(()=>{"use strict";O();T();ke();rt();Ot={textColor:i.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",M.fontSize),activeColor:i.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:i.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:i.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:i.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:i.extend("--ft-checkbox-error-color","",S.colorError)},ov=A`
862
+ `});var Ot,iv,vu=u(()=>{"use strict";O();T();ke();ot();Ot={textColor:i.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",M.fontSize),activeColor:i.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:i.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:i.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:i.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:i.extend("--ft-checkbox-error-color","",S.colorError)},iv=R`
863
863
  * {
864
864
  box-sizing: border-box;
865
865
  }
@@ -940,7 +940,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
940
940
 
941
941
  .ft-checkbox.ft-checkbox--error {
942
942
  color: ${Ot.errorColor};
943
- ${R(le.color,Ot.errorColor)};
943
+ ${A(le.color,Ot.errorColor)};
944
944
 
945
945
  .ft-checkbox--box {
946
946
  border-color: ${Ot.errorColor};
@@ -952,7 +952,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
952
952
  }
953
953
  }
954
954
  }
955
- `});var Ar,vu,He,xu=u(()=>{"use strict";T();G();O();et();rt();ke();bu();Ar=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},vu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends F{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return b`
955
+ `});var Ar,xu,He,Su=u(()=>{"use strict";T();K();O();tt();ot();ke();vu();Ar=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends F{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return b`
956
956
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
957
957
  <ft-ripple part="checkbox-ripple"
958
958
  ?disabled=${this.disabled}
@@ -975,9 +975,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
975
975
  >
976
976
  </div>
977
977
  `}render(){return b`
978
- <label class="${he(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
978
+ <label class="${me(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
979
979
  ${this.renderBoxContainer()}
980
- <ft-typography variant="${me.body2}" part="checkbox-body">
980
+ <ft-typography variant="${fe.body2}" part="checkbox-body">
981
981
  <slot @slotchange=${this.onSlotchange}></slot>
982
982
  </ft-typography>
983
983
  </label>
@@ -986,7 +986,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
986
986
  <path class="ft-checkbox--checkmark-path" fill="none"
987
987
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
988
988
  </svg>
989
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new vu(this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};He.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};He.styles=ov;Ar([h()],He.prototype,"name",void 0);Ar([h()],He.prototype,"value",void 0);Ar([h({type:Boolean,reflect:!0})],He.prototype,"checked",void 0);Ar([h({type:Boolean})],He.prototype,"indeterminate",void 0);Ar([h({type:Boolean})],He.prototype,"disabled",void 0);Ar([h({type:Boolean})],He.prototype,"error",void 0);Ar([B(".ft-checkbox")],He.prototype,"container",void 0);Ar([B("ft-ripple")],He.prototype,"ripple",void 0);Ar([B("input")],He.prototype,"input",void 0)});var iv=u(()=>{"use strict"});var nv,av=u(()=>{"use strict";xu();nv={"ft-checkbox":He}});var sv=u(()=>{"use strict";O();av();U(nv)});var lv=u(()=>{"use strict";xu();bu();iv();sv()});var Zr,cv,Su=u(()=>{"use strict";T();O();ke();Zr={textColor:i.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-radio-font-size","",M.fontSize),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system")},cv=A`
989
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new xu(this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};He.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};He.styles=iv;Ar([h()],He.prototype,"name",void 0);Ar([h()],He.prototype,"value",void 0);Ar([h({type:Boolean,reflect:!0})],He.prototype,"checked",void 0);Ar([h({type:Boolean})],He.prototype,"indeterminate",void 0);Ar([h({type:Boolean})],He.prototype,"disabled",void 0);Ar([h({type:Boolean})],He.prototype,"error",void 0);Ar([B(".ft-checkbox")],He.prototype,"container",void 0);Ar([B("ft-ripple")],He.prototype,"ripple",void 0);Ar([B("input")],He.prototype,"input",void 0)});var nv=u(()=>{"use strict"});var av,sv=u(()=>{"use strict";Su();av={"ft-checkbox":He}});var lv=u(()=>{"use strict";O();sv();U(av)});var cv=u(()=>{"use strict";Su();vu();nv();lv()});var Zr,dv,Cu=u(()=>{"use strict";T();O();ke();Zr={textColor:i.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-radio-font-size","",M.fontSize),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system")},dv=R`
990
990
  * {
991
991
  box-sizing: border-box;
992
992
  }
@@ -1075,8 +1075,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1075
1075
  .ft-radio ft-typography {
1076
1076
  padding-right: 2px;
1077
1077
  }
1078
- `});var Yr,ds,Ue,Cu=u(()=>{"use strict";T();G();O();et();rt();ke();_a();Su();Yr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ds=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},Ue=class extends F{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return b`
1079
- <div class="${he(this.radioClasses)}"
1078
+ `});var Qr,us,Ue,Ou=u(()=>{"use strict";T();K();O();tt();ot();ke();_a();Cu();Qr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},us=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},Ue=class extends F{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return b`
1079
+ <div class="${me(this.radioClasses)}"
1080
1080
  @click=${this.onClick}>
1081
1081
  <div class="ft-radio--box-container">
1082
1082
  <ft-ripple
@@ -1096,12 +1096,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1096
1096
  >
1097
1097
  </div>
1098
1098
  <label for="radio-button" inert>
1099
- <ft-typography variant="${me.body2}">
1099
+ <ft-typography variant="${fe.body2}">
1100
1100
  <slot></slot>
1101
1101
  </ft-typography>
1102
1102
  </label>
1103
1103
  </div>
1104
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new ds(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ds(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};Ue.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};Ue.styles=cv;Yr([h()],Ue.prototype,"name",void 0);Yr([h()],Ue.prototype,"value",void 0);Yr([h({type:Boolean,reflect:!0})],Ue.prototype,"checked",void 0);Yr([h({attribute:"aria-checked",reflect:!0})],Ue.prototype,"ariaChecked",void 0);Yr([h({type:Boolean})],Ue.prototype,"disabled",void 0);Yr([B(".ft-radio")],Ue.prototype,"container",void 0);Yr([B("ft-ripple")],Ue.prototype,"ripple",void 0);Yr([B("input")],Ue.prototype,"input",void 0)});var dv=u(()=>{"use strict"});var uv,Ou=u(()=>{"use strict";T();uv=A`
1104
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};Ue.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};Ue.styles=dv;Qr([h()],Ue.prototype,"name",void 0);Qr([h()],Ue.prototype,"value",void 0);Qr([h({type:Boolean,reflect:!0})],Ue.prototype,"checked",void 0);Qr([h({attribute:"aria-checked",reflect:!0})],Ue.prototype,"ariaChecked",void 0);Qr([h({type:Boolean})],Ue.prototype,"disabled",void 0);Qr([B(".ft-radio")],Ue.prototype,"container",void 0);Qr([B("ft-ripple")],Ue.prototype,"ripple",void 0);Qr([B("input")],Ue.prototype,"input",void 0)});var uv=u(()=>{"use strict"});var pv,Eu=u(()=>{"use strict";T();pv=R`
1105
1105
  :host {
1106
1106
  display: block;
1107
1107
  }
@@ -1109,12 +1109,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1109
1109
  :host(:focus-visible) {
1110
1110
  outline: none;
1111
1111
  }
1112
- `});var Dn,Et,Eu=u(()=>{"use strict";O();G();T();Ou();Dn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Et=class extends F{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(o=>o.matches("ft-radio,ftds-radio")?[o]:[...o.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return b`
1112
+ `});var Dn,Et,wu=u(()=>{"use strict";O();K();T();Eu();Dn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Et=class extends F{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(o=>o.matches("ft-radio,ftds-radio")?[o]:[...o.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return b`
1113
1113
  <slot @slotchange=${this.onSlotChange}
1114
1114
  @change=${this.onChange}
1115
1115
  @keydown=${this.onKeyDown}
1116
1116
  ></slot>
1117
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Et.elementDefinitions={};Et.styles=uv;Dn([h()],Et.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Et.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Et.prototype,"ariaLabelledBy",void 0);Dn([Us()],Et.prototype,"assignedElements",void 0);Dn([I()],Et.prototype,"currentSelectedIndex",void 0)});var pv=u(()=>{"use strict"});var fv,hv=u(()=>{"use strict";Cu();Eu();fv={"ft-radio":Ue,"ft-radio-group":Et}});var mv=u(()=>{"use strict";O();hv();U(fv)});var wu=u(()=>{"use strict";Cu();dv();Su();Eu();pv();Ou();mv()});var Ve,Au,we,gv=u(()=>{"use strict";T();G();Ht();O();lr();ke();rt();wr();lv();wu();yu();Mt();Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Au={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},we=class extends Ta(ut(gn(F)),Au){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ne(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(t=>!t.selected)),this.filter&&(e=e.filter(t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1117
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Et.elementDefinitions={};Et.styles=pv;Dn([h()],Et.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Et.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Et.prototype,"ariaLabelledBy",void 0);Dn([zs()],Et.prototype,"assignedElements",void 0);Dn([I()],Et.prototype,"currentSelectedIndex",void 0)});var fv=u(()=>{"use strict"});var hv,mv=u(()=>{"use strict";Ou();wu();hv={"ft-radio":Ue,"ft-radio-group":Et}});var gv=u(()=>{"use strict";O();mv();U(hv)});var Ru=u(()=>{"use strict";Ou();uv();Cu();wu();fv();Eu();gv()});var Ve,Au,Re,yv=u(()=>{"use strict";T();K();Ht();O();Zt();ke();ot();wr();cv();Ru();bu();Mt();Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Au={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},Re=class extends Ta(pt(gn(F)),Au){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ne(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(t=>!t.selected)),this.filter&&(e=e.filter(t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1118
1118
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1119
1119
  ${this.parent==null?null:b`
1120
1120
  <div tabindex="0"
@@ -1127,15 +1127,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1127
1127
  @click=${this.goBackOnClick}>
1128
1128
  <ft-ripple></ft-ripple>
1129
1129
  <ft-icon>thin_arrow_left</ft-icon>
1130
- <ft-typography variant="${me.body2}">${this.parent.label}</ft-typography>
1130
+ <ft-typography variant="${fe.body2}">${this.parent.label}</ft-typography>
1131
1131
  </div>
1132
1132
  `}
1133
1133
  ${this.filteredOptions.length===0&&this.noValuesLabel?b`
1134
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${me.body2}">
1134
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${fe.body2}">
1135
1135
  ${this.noValuesLabel}
1136
1136
  </ft-typography>
1137
1137
  `:k}
1138
- ${ve(e,t=>t.value,t=>{var o;return b`
1138
+ ${ge(e,t=>t.value,t=>{var o;return b`
1139
1139
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1140
1140
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
1141
1141
  ${this.preventNavigation||t.selected||((o=t.subOptions)!==null&&o!==void 0?o:[]).length===0?k:b`
@@ -1182,7 +1182,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1182
1182
  @change=${t=>this.optionsChanged(t,e)}>
1183
1183
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1184
1184
  </ft-radio>
1185
- `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};we.elementDefinitions={"ft-button":K,"ft-ripple":Z,"ft-typography":ie,"ft-checkbox":He,"ft-icon":xe,"ft-radio":Ue};we.styles=rv;Ve([h({type:String})],we.prototype,"filterId",void 0);Ve([h({type:Object})],we.prototype,"parent",void 0);Ve([h({type:Array,hasChanged:yt})],we.prototype,"options",void 0);Ve([h({type:Boolean})],we.prototype,"multivalued",void 0);Ve([h({type:Boolean})],we.prototype,"disabled",void 0);Ve([h({type:Boolean})],we.prototype,"hideSelectedOptions",void 0);Ve([h({type:Boolean})],we.prototype,"displayCount",void 0);Ve([h({type:Boolean})],we.prototype,"preventNavigation",void 0);Ve([h({type:String})],we.prototype,"filter",void 0);Ve([h({type:String})],we.prototype,"moreValuesButtonLabel",void 0);Ve([h({type:String})],we.prototype,"noValuesLabel",void 0);Ve([h()],we.prototype,"filteredOptionsNumberAriaNotification",void 0);Ve([_t()],we.prototype,"displayedValuesLimit",void 0);Ve([B(".ft-filter-level--container")],we.prototype,"container",void 0);Ve([I()],we.prototype,"radios",void 0);Ve([I()],we.prototype,"displayedPages",void 0);Ve([I()],we.prototype,"filteredOptions",void 0)});var nt,yv,us=u(()=>{"use strict";T();O();$o();nt={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external(S.colorSurface,"Design system")},yv=A`
1185
+ `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Re.elementDefinitions={"ft-button":W,"ft-ripple":Z,"ft-typography":ie,"ft-checkbox":He,"ft-icon":xe,"ft-radio":Ue};Re.styles=ov;Ve([h({type:String})],Re.prototype,"filterId",void 0);Ve([h({type:Object})],Re.prototype,"parent",void 0);Ve([h({type:Array,hasChanged:yt})],Re.prototype,"options",void 0);Ve([h({type:Boolean})],Re.prototype,"multivalued",void 0);Ve([h({type:Boolean})],Re.prototype,"disabled",void 0);Ve([h({type:Boolean})],Re.prototype,"hideSelectedOptions",void 0);Ve([h({type:Boolean})],Re.prototype,"displayCount",void 0);Ve([h({type:Boolean})],Re.prototype,"preventNavigation",void 0);Ve([h({type:String})],Re.prototype,"filter",void 0);Ve([h({type:String})],Re.prototype,"moreValuesButtonLabel",void 0);Ve([h({type:String})],Re.prototype,"noValuesLabel",void 0);Ve([h()],Re.prototype,"filteredOptionsNumberAriaNotification",void 0);Ve([_t()],Re.prototype,"displayedValuesLimit",void 0);Ve([B(".ft-filter-level--container")],Re.prototype,"container",void 0);Ve([I()],Re.prototype,"radios",void 0);Ve([I()],Re.prototype,"displayedPages",void 0);Ve([I()],Re.prototype,"filteredOptions",void 0)});var st,bv,ps=u(()=>{"use strict";T();O();$o();st={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external(S.colorSurface,"Design system")},bv=R`
1186
1186
  .ft-snap-scroll {
1187
1187
  box-sizing: border-box;
1188
1188
  position: relative;
@@ -1217,7 +1217,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1217
1217
  flex-wrap: nowrap;
1218
1218
  align-items: flex-start;
1219
1219
  justify-content: flex-start;
1220
- gap: ${nt.gap};
1220
+ gap: ${st.gap};
1221
1221
  }
1222
1222
 
1223
1223
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1260,11 +1260,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1260
1260
  .ft-snap-scroll--next {
1261
1261
  position: absolute;
1262
1262
  display: flex;
1263
- z-index: ${nt.buttonsZIndex};
1263
+ z-index: ${st.buttonsZIndex};
1264
1264
  opacity: 1;
1265
1265
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1266
- ${R(Y.backgroundColor,"transparent")};
1267
- ${R(Y.color,nt.buttonsColor)};
1266
+ ${A(Q.backgroundColor,"transparent")};
1267
+ ${A(Q.color,st.buttonsColor)};
1268
1268
  }
1269
1269
 
1270
1270
  .ft-snap-scroll--previous[hidden],
@@ -1277,37 +1277,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1277
1277
  top: 0;
1278
1278
  left: -1px;
1279
1279
  bottom: 0;
1280
- background: linear-gradient(to right, ${nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1280
+ background: linear-gradient(to right, ${st.colorSurface} 50%, var(--snap-scroll-transparent-color));
1281
1281
  }
1282
1282
 
1283
1283
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1284
1284
  top: -1px;
1285
1285
  left: 0;
1286
1286
  right: 0;
1287
- background: linear-gradient(to bottom, ${nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1287
+ background: linear-gradient(to bottom, ${st.colorSurface} 50%, var(--snap-scroll-transparent-color));
1288
1288
  }
1289
1289
 
1290
1290
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1291
1291
  top: 0;
1292
1292
  right: -1px;
1293
1293
  bottom: 0;
1294
- background: linear-gradient(to left, ${nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1294
+ background: linear-gradient(to left, ${st.colorSurface} 50%, var(--snap-scroll-transparent-color));
1295
1295
  }
1296
1296
 
1297
1297
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1298
1298
  left: 0;
1299
1299
  right: 0;
1300
1300
  bottom: -1px;
1301
- background: linear-gradient(to top, ${nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1301
+ background: linear-gradient(to top, ${st.colorSurface} 50%, var(--snap-scroll-transparent-color));
1302
1302
  }
1303
1303
 
1304
1304
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1305
1305
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1306
1306
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1307
1307
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1308
- background-color: ${nt.colorSurface};
1308
+ background-color: ${st.colorSurface};
1309
1309
  }
1310
- `});var cr,Ru,Pe,Lu=u(()=>{"use strict";T();G();O();lr();et();us();cr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ru=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Pe=class extends F{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ne(200),this.updateScrollDebouncer=new ne(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>o)&&this.scrollToElement(t)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=he({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ko}),t=this.controls&&this.withScroll;return b`
1310
+ `});var cr,Lu,Ne,ku=u(()=>{"use strict";T();K();O();Zt();tt();ps();cr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lu=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ne=class extends F{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ne(200),this.updateScrollDebouncer=new ne(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>o)&&this.scrollToElement(t)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=me({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ko}),t=this.controls&&this.withScroll;return b`
1311
1311
  <div part="container" class="${e}">
1312
1312
  <ft-button
1313
1313
  class="ft-snap-scroll--previous"
@@ -1331,7 +1331,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1331
1331
  @click=${this.next}
1332
1332
  ></ft-button>
1333
1333
  </div>
1334
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Ru(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,o;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};Pe.elementDefinitions={"ft-button":K};Pe.styles=yv;cr([h({type:Boolean})],Pe.prototype,"horizontal",void 0);cr([h({type:Boolean})],Pe.prototype,"hideScrollbar",void 0);cr([h({type:Boolean})],Pe.prototype,"controls",void 0);cr([h({type:Boolean})],Pe.prototype,"limitSize",void 0);cr([I()],Pe.prototype,"elements",void 0);cr([I()],Pe.prototype,"currentElement",void 0);cr([I()],Pe.prototype,"withScroll",void 0);cr([I()],Pe.prototype,"startReached",void 0);cr([I()],Pe.prototype,"endReached",void 0);cr([B(".ft-snap-scroll--content")],Pe.prototype,"contentSlot",void 0)});var bv=u(()=>{"use strict"});var vv,xv=u(()=>{"use strict";Lu();vv={"ft-snap-scroll":Pe}});var Sv=u(()=>{"use strict";O();xv();U(vv)});var ps=u(()=>{"use strict";Lu();us();bv();Sv()});var ht,Cv,fs=u(()=>{"use strict";T();O();jt();$o();ht={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorSurface:i.external(S.colorSurface,"Design system"),transitionDuration:i.external(S.transitionDuration,"Design system"),transitionTimingFunction:i.external(S.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",M.fontSize,"16px")},Cv=[jr,bo,A`
1334
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Lu(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,o;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};Ne.elementDefinitions={"ft-button":W};Ne.styles=bv;cr([h({type:Boolean})],Ne.prototype,"horizontal",void 0);cr([h({type:Boolean})],Ne.prototype,"hideScrollbar",void 0);cr([h({type:Boolean})],Ne.prototype,"controls",void 0);cr([h({type:Boolean})],Ne.prototype,"limitSize",void 0);cr([I()],Ne.prototype,"elements",void 0);cr([I()],Ne.prototype,"currentElement",void 0);cr([I()],Ne.prototype,"withScroll",void 0);cr([I()],Ne.prototype,"startReached",void 0);cr([I()],Ne.prototype,"endReached",void 0);cr([B(".ft-snap-scroll--content")],Ne.prototype,"contentSlot",void 0)});var vv=u(()=>{"use strict"});var xv,Sv=u(()=>{"use strict";ku();xv={"ft-snap-scroll":Ne}});var Cv=u(()=>{"use strict";O();Sv();U(xv)});var fs=u(()=>{"use strict";ku();ps();vv();Cv()});var ht,Ov,hs=u(()=>{"use strict";T();O();jt();$o();ht={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorSurface:i.external(S.colorSurface,"Design system"),transitionDuration:i.external(S.transitionDuration,"Design system"),transitionTimingFunction:i.external(S.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",M.fontSize,"16px")},Ov=[Gr,bo,R`
1335
1335
  :host {
1336
1336
  display: flex;
1337
1337
  max-height: 100%;
@@ -1359,7 +1359,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1359
1359
  .ft-filter--header ft-button {
1360
1360
  flex-shrink: 0;
1361
1361
  margin-left: auto;
1362
- ${R(Y.iconSize,"18px")};
1362
+ ${A(Q.iconSize,"18px")};
1363
1363
  }
1364
1364
 
1365
1365
  .filter-label {
@@ -1373,8 +1373,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1373
1373
  word-break: break-word;
1374
1374
  color: ${ht.labelColor};
1375
1375
  font-size: ${ht.labelFontSize};
1376
- ${R(M.lineHeight,"22px")};
1377
- ${R(M.fontWeight,"bold")};
1376
+ ${A(M.lineHeight,"22px")};
1377
+ ${A(M.fontWeight,"bold")};
1378
1378
  }
1379
1379
 
1380
1380
  .ft-filter--filter {
@@ -1448,14 +1448,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1448
1448
  slot:not([name]) {
1449
1449
  display: none;
1450
1450
  }
1451
- `]});var Se,ku,ce,Tu=u(()=>{"use strict";T();G();O();ke();gv();lr();ps();fs();Se=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ku=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ce=class extends Ta(F,Au){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ne(300),this.changeDebouncer=new ne(10),this.lastDispatchedValues=[]}get flatOptions(){return bt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return bt(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return b`
1451
+ `]});var Se,Tu,ce,_u=u(()=>{"use strict";T();K();O();ke();yv();Zt();fs();hs();Se=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Tu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ce=class extends Ta(F,Au){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ne(300),this.changeDebouncer=new ne(10),this.lastDispatchedValues=[]}get flatOptions(){return bt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return bt(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return b`
1452
1452
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1453
1453
  part="container">
1454
1454
  ${!this.label&&!e?null:b`
1455
1455
 
1456
1456
  <div class="ft-filter--header" part="header">
1457
1457
  <div class="filter-label" id="id-group-${this.id}">
1458
- <ft-typography class="ft-filter--label" variant="${me.overline}" part="label">
1458
+ <ft-typography class="ft-filter--label" variant="${fe.overline}" part="label">
1459
1459
  ${this.label}
1460
1460
  </ft-typography>
1461
1461
  <slot name="label"></slot>
@@ -1532,17 +1532,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1532
1532
  noValuesLabel="${this.noValuesLabel}"
1533
1533
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1534
1534
  ></ft-filter-level>
1535
- `}goBack(e){this.slideOut=e.detail.value,Yi(()=>this.slideOut===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Yi(()=>this.slideIn===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnBackButton()})}focusOnFirstOption(){Yi(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=o.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;De(this.lastDispatchedValues,e)||(this.dispatchEvent(new ku(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ce.elementDefinitions={"ft-button":K,"ft-filter-level":we,"ft-snap-scroll":Pe,"ft-typography":ie};ce.styles=Cv;Se([h({type:String})],ce.prototype,"id",void 0);Se([h({type:String})],ce.prototype,"label",void 0);Se([h({type:String})],ce.prototype,"filterPlaceHolder",void 0);Se([h({type:String})],ce.prototype,"clearButtonLabel",void 0);Se([h({type:String})],ce.prototype,"moreValuesButtonLabel",void 0);Se([h({type:String})],ce.prototype,"noValuesLabel",void 0);Se([de([])],ce.prototype,"options",void 0);Se([h({type:Boolean})],ce.prototype,"multivalued",void 0);Se([h({type:Boolean})],ce.prototype,"disabled",void 0);Se([h({type:Boolean})],ce.prototype,"raiseSelectedOptions",void 0);Se([h({type:Boolean})],ce.prototype,"displayCount",void 0);Se([_t()],ce.prototype,"displayedValuesLimit",void 0);Se([de(void 0)],ce.prototype,"filteredOptionsNumberAriaNotification",void 0);Se([h({type:Boolean})],ce.prototype,"hideClearButton",void 0);Se([B(".ft-filter--slot")],ce.prototype,"slotElement",void 0);Se([B(".ft-filter--container")],ce.prototype,"container",void 0);Se([B(".ft-filter--values")],ce.prototype,"valuesContainer",void 0);Se([B(".ft-filter--levels")],ce.prototype,"levelsContainer",void 0);Se([I()],ce.prototype,"lastLevelHasHiddenvalues",void 0);Se([B(".ft-filter--filter input")],ce.prototype,"filterInput",void 0);Se([Bs(".ft-filter--levels ft-filter-level")],ce.prototype,"levels",void 0);Se([I()],ce.prototype,"withScroll",void 0);Se([I()],ce.prototype,"filter",void 0);Se([I()],ce.prototype,"slideIn",void 0);Se([I()],ce.prototype,"slideOut",void 0)});var Ov=u(()=>{"use strict"});var $i,wt,_u=u(()=>{"use strict";O();G();T();$i=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wt=class extends F{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1535
+ `}goBack(e){this.slideOut=e.detail.value,Qi(()=>this.slideOut===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Qi(()=>this.slideIn===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnBackButton()})}focusOnFirstOption(){Qi(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=o.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;Me(this.lastDispatchedValues,e)||(this.dispatchEvent(new Tu(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ce.elementDefinitions={"ft-button":W,"ft-filter-level":Re,"ft-snap-scroll":Ne,"ft-typography":ie};ce.styles=Ov;Se([h({type:String})],ce.prototype,"id",void 0);Se([h({type:String})],ce.prototype,"label",void 0);Se([h({type:String})],ce.prototype,"filterPlaceHolder",void 0);Se([h({type:String})],ce.prototype,"clearButtonLabel",void 0);Se([h({type:String})],ce.prototype,"moreValuesButtonLabel",void 0);Se([h({type:String})],ce.prototype,"noValuesLabel",void 0);Se([de([])],ce.prototype,"options",void 0);Se([h({type:Boolean})],ce.prototype,"multivalued",void 0);Se([h({type:Boolean})],ce.prototype,"disabled",void 0);Se([h({type:Boolean})],ce.prototype,"raiseSelectedOptions",void 0);Se([h({type:Boolean})],ce.prototype,"displayCount",void 0);Se([_t()],ce.prototype,"displayedValuesLimit",void 0);Se([de(void 0)],ce.prototype,"filteredOptionsNumberAriaNotification",void 0);Se([h({type:Boolean})],ce.prototype,"hideClearButton",void 0);Se([B(".ft-filter--slot")],ce.prototype,"slotElement",void 0);Se([B(".ft-filter--container")],ce.prototype,"container",void 0);Se([B(".ft-filter--values")],ce.prototype,"valuesContainer",void 0);Se([B(".ft-filter--levels")],ce.prototype,"levelsContainer",void 0);Se([I()],ce.prototype,"lastLevelHasHiddenvalues",void 0);Se([B(".ft-filter--filter input")],ce.prototype,"filterInput",void 0);Se([Us(".ft-filter--levels ft-filter-level")],ce.prototype,"levels",void 0);Se([I()],ce.prototype,"withScroll",void 0);Se([I()],ce.prototype,"filter",void 0);Se([I()],ce.prototype,"slideIn",void 0);Se([I()],ce.prototype,"slideOut",void 0)});var Ev=u(()=>{"use strict"});var $i,wt,Iu=u(()=>{"use strict";O();K();T();$i=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wt=class extends F{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1536
1536
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1537
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};wt.elementDefinitions={};$i([h({type:String})],wt.prototype,"label",void 0);$i([h({type:Object,converter:r=>r})],wt.prototype,"value",void 0);$i([h({type:Boolean,reflect:!0})],wt.prototype,"selected",void 0);$i([h({type:Object})],wt.prototype,"subOptions",void 0);$i([de({})],wt.prototype,"renderOption",void 0);$i([B(".ft-filter-option--slot")],wt.prototype,"slotElement",void 0)});var Ev=u(()=>{"use strict"});var wv,Av=u(()=>{"use strict";Tu();_u();wv={"ft-filter":ce,"ft-filter-option":wt}});var Rv=u(()=>{"use strict";O();Av();U(wv)});var Lv=u(()=>{"use strict";yu();Tu();fs();Ov();_u();Ev();Rv()});var kv,Iu=u(()=>{"use strict";T();kv=A`
1537
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};wt.elementDefinitions={};$i([h({type:String})],wt.prototype,"label",void 0);$i([h({type:Object,converter:r=>r})],wt.prototype,"value",void 0);$i([h({type:Boolean,reflect:!0})],wt.prototype,"selected",void 0);$i([h({type:Object})],wt.prototype,"subOptions",void 0);$i([de({})],wt.prototype,"renderOption",void 0);$i([B(".ft-filter-option--slot")],wt.prototype,"slotElement",void 0)});var wv=u(()=>{"use strict"});var Rv,Av=u(()=>{"use strict";_u();Iu();Rv={"ft-filter":ce,"ft-filter-option":wt}});var Lv=u(()=>{"use strict";O();Av();U(Rv)});var kv=u(()=>{"use strict";bu();_u();hs();Ev();Iu();wv();Lv()});var Tv,Pu=u(()=>{"use strict";T();Tv=R`
1538
1538
  .ft-accordion {
1539
1539
  box-sizing: border-box;
1540
1540
  }
1541
- `});var Tv,dr,Pu=u(()=>{"use strict";T();G();O();Iu();Tv=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dr=class extends F{constructor(){super(...arguments),this.multi=!1}render(){return b`
1541
+ `});var _v,dr,Nu=u(()=>{"use strict";T();K();O();Pu();_v=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dr=class extends F{constructor(){super(...arguments),this.multi=!1}render(){return b`
1542
1542
  <div class="ft-accordion">
1543
1543
  <slot @activated=${this.onChange}></slot>
1544
1544
  </div>
1545
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};dr.elementDefinitions={};dr.styles=kv;Tv([h({type:Boolean})],dr.prototype,"multi",void 0);Tv([B("slot")],dr.prototype,"content",void 0)});var _v=u(()=>{"use strict"});var Mo,Iv,Nu=u(()=>{"use strict";T();O();Mo={horizontalSpacing:i.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:i.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:i.external(S.colorOutline,"Design system"),backgroundColor:i.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Iv=A`
1545
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};dr.elementDefinitions={};dr.styles=Tv;_v([h({type:Boolean})],dr.prototype,"multi",void 0);_v([B("slot")],dr.prototype,"content",void 0)});var Iv=u(()=>{"use strict"});var Mo,Pv,$u=u(()=>{"use strict";T();O();Mo={horizontalSpacing:i.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:i.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:i.external(S.colorOutline,"Design system"),backgroundColor:i.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Pv=R`
1546
1546
  .ft-accordion-item {
1547
1547
  display: flex;
1548
1548
  flex-direction: column;
@@ -1588,7 +1588,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1588
1588
  .ft-accordion-item--separator {
1589
1589
  border-bottom: 1px solid ${Mo.colorOutline};
1590
1590
  }
1591
- `});var hs,Ut,$u=u(()=>{"use strict";T();G();O();rt();ke();wr();Nu();hs=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ut=class extends F{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1591
+ `});var ms,Ut,Du=u(()=>{"use strict";T();K();O();ot();ke();wr();$u();ms=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ut=class extends F{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1592
1592
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1593
1593
  <div class="ft-accordion-item--toggle"
1594
1594
  part="toggle"
@@ -1618,7 +1618,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1618
1618
  </div>
1619
1619
  <div class="ft-accordion-item--separator" part="separator"></div>
1620
1620
  </div>
1621
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe};Ut.styles=Iv;hs([h()],Ut.prototype,"icon",void 0);hs([h()],Ut.prototype,"iconVariant",void 0);hs([h()],Ut.prototype,"label",void 0);hs([h({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Pv=u(()=>{"use strict"});var Nv,$v=u(()=>{"use strict";Pu();$u();Nv={"ft-accordion":dr,"ft-accordion-item":Ut}});var Dv=u(()=>{"use strict";O();$v();U(Nv)});var Mv=u(()=>{"use strict";Pu();Iu();_v();$u();Nu();Pv();Dv()});var Fv,We,Bv,Du,Uv,zv,Mu=u(()=>{"use strict";T();O();Sr();jt();ki();lr();Fv=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Fv,fontSize:i.extend("--ft-chip-font-size","",Me.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Me.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Fv),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Bv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Du={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Bv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Bv)},Uv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},zv=[yo,A`
1621
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe};Ut.styles=Pv;ms([h()],Ut.prototype,"icon",void 0);ms([h()],Ut.prototype,"iconVariant",void 0);ms([h()],Ut.prototype,"label",void 0);ms([h({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Nv=u(()=>{"use strict"});var $v,Dv=u(()=>{"use strict";Nu();Du();$v={"ft-accordion":dr,"ft-accordion-item":Ut}});var Mv=u(()=>{"use strict";O();Dv();U($v)});var Fv=u(()=>{"use strict";Nu();Pu();Iv();Du();$u();Nv();Mv()});var Bv,We,Uv,Mu,zv,Hv,Fu=u(()=>{"use strict";T();O();Sr();jt();ki();Zt();Bv=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Bv,fontSize:i.extend("--ft-chip-font-size","",Fe.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Fe.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Bv),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Uv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Mu={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Uv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Uv)},zv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hv=[yo,R`
1622
1622
  :host {
1623
1623
  display: inline-block;
1624
1624
  max-width: 100%;
@@ -1637,7 +1637,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1637
1637
  --chip-internal-font-size: ${We.fontSize};
1638
1638
  --chip-internal-font-weight: ${We.fontWeight};
1639
1639
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1640
- ${R(it.size,We.iconSize)};
1640
+ ${A(nt.size,We.iconSize)};
1641
1641
  --chip-internal-vertical-padding: ${We.verticalPadding};
1642
1642
  --chip-internal-horizontal-padding: ${We.horizontalPadding};
1643
1643
  --chip-internal-icon-padding: 3px;
@@ -1645,7 +1645,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1645
1645
 
1646
1646
  border: 1px solid ${We.borderColor};
1647
1647
  color: ${We.color};
1648
- ${R(le.color,We.rippleColor)};
1648
+ ${A(le.color,We.rippleColor)};
1649
1649
  border-radius: var(${eo(We.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1650
1650
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1651
1651
  background-color: ${We.backgroundColor};
@@ -1658,13 +1658,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1658
1658
 
1659
1659
  .ft-chip--dense {
1660
1660
  --chip-internal-icon-padding: 3px;
1661
- --chip-internal-vertical-padding: ${Uv.verticalPadding};
1662
- --chip-internal-horizontal-padding: ${Uv.horizontalPadding};
1661
+ --chip-internal-vertical-padding: ${zv.verticalPadding};
1662
+ --chip-internal-horizontal-padding: ${zv.horizontalPadding};
1663
1663
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1664
1664
  }
1665
1665
 
1666
1666
  .ft-chip--no-content {
1667
- --chip-internal-horizontal-padding: ${We.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
1667
+ --chip-internal-horizontal-padding: ${We.horizontalPadding.get(R`var(--chip-internal-vertical-padding)`)};
1668
1668
  }
1669
1669
 
1670
1670
  .ft-chip--disabled {
@@ -1677,9 +1677,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1677
1677
  .ft-chip--highlighted {
1678
1678
  border: none;
1679
1679
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1680
- background-color: ${Du.backgroundColor};
1681
- ${R(le.color,Du.rippleColor)};
1682
- color: ${Du.color};
1680
+ background-color: ${Mu.backgroundColor};
1681
+ ${A(le.color,Mu.rippleColor)};
1682
+ color: ${Mu.color};
1683
1683
  }
1684
1684
 
1685
1685
  .ft-chip--clickable {
@@ -1710,9 +1710,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1710
1710
  }
1711
1711
 
1712
1712
  .ft-chip--icon-button {
1713
- ${R(Y.iconSize,We.iconSize)};
1714
- ${R(Y.horizontalPadding,"var(--chip-internal-icon-padding)")};
1715
- ${R(Y.verticalPadding,"var(--chip-internal-icon-padding)")};
1713
+ ${A(Q.iconSize,We.iconSize)};
1714
+ ${A(Q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1715
+ ${A(Q.verticalPadding,"var(--chip-internal-icon-padding)")};
1716
1716
  margin: calc((-1) * var(--chip-internal-icon-padding));
1717
1717
  }
1718
1718
 
@@ -1720,9 +1720,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1720
1720
  vertical-align: bottom;
1721
1721
  display: block;
1722
1722
  margin: 0 var(--chip-internal-horizontal-padding);
1723
- ${R(Me.fontSize,"var(--chip-internal-font-size)")};
1724
- ${R(Me.fontWeight,"var(--chip-internal-font-weight)")};
1725
- ${R(Me.lineHeight,"var(--chip-internal-content-height)")};
1723
+ ${A(Fe.fontSize,"var(--chip-internal-font-size)")};
1724
+ ${A(Fe.fontWeight,"var(--chip-internal-font-weight)")};
1725
+ ${A(Fe.lineHeight,"var(--chip-internal-content-height)")};
1726
1726
  }
1727
1727
 
1728
1728
  .ft-chip--safari-fix .ft-chip--label {
@@ -1758,8 +1758,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1758
1758
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1759
1759
  order: -1;
1760
1760
  }
1761
- `]});var at,ms,Ae,Fu=u(()=>{"use strict";T();G();et();O();rt();ke();wr();Mu();lr();at=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ms=class extends CustomEvent{constructor(){super("icon-click")}},Ae=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ko};return b`
1762
- <div class="${he(t)}"
1761
+ `]});var lt,gs,Ae,Bu=u(()=>{"use strict";T();K();tt();O();ot();ke();wr();Fu();Zt();lt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gs=class extends CustomEvent{constructor(){super("icon-click")}},Ae=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ko};return b`
1762
+ <div class="${me(t)}"
1763
1763
  aria-label="${this.getLabel()}"
1764
1764
  tabindex="${this.interactionsOnChip?0:-1}"
1765
1765
  @keyup=${this.onKeyUp}
@@ -1785,7 +1785,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1785
1785
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1786
1786
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1787
1787
  </div>
1788
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ms))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ms))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ae.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe,"ft-button":K};Ae.styles=zv;at([h({type:Boolean})],Ae.prototype,"highlighted",void 0);at([h({type:Boolean})],Ae.prototype,"removable",void 0);at([h({type:Boolean})],Ae.prototype,"disabled",void 0);at([h({type:Boolean})],Ae.prototype,"clickable",void 0);at([h({type:Boolean})],Ae.prototype,"iconClickable",void 0);at([h({type:Boolean})],Ae.prototype,"dense",void 0);at([h({type:Boolean})],Ae.prototype,"multiLine",void 0);at([h()],Ae.prototype,"label",void 0);at([h()],Ae.prototype,"iconLabel",void 0);at([h({type:Boolean})],Ae.prototype,"hideIconTooltip",void 0);at([h()],Ae.prototype,"icon",void 0);at([h()],Ae.prototype,"iconVariant",void 0);at([h({type:Boolean})],Ae.prototype,"trailingIcon",void 0);at([h()],Ae.prototype,"typographyVariant",void 0);at([B("ft-typography slot")],Ae.prototype,"slottedContent",void 0)});var Hv=u(()=>{"use strict"});var Vv,Wv=u(()=>{"use strict";Fu();Vv={"ft-chip":Ae}});var jv=u(()=>{"use strict";O();Wv();U(Vv)});var Bu=u(()=>{"use strict";Fu();Mu();Hv();jv()});var ee,Gv,Mn=u(()=>{"use strict";T();O();jt();ee={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","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},Gv=A`
1788
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new gs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new gs))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ae.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe,"ft-button":W};Ae.styles=Hv;lt([h({type:Boolean})],Ae.prototype,"highlighted",void 0);lt([h({type:Boolean})],Ae.prototype,"removable",void 0);lt([h({type:Boolean})],Ae.prototype,"disabled",void 0);lt([h({type:Boolean})],Ae.prototype,"clickable",void 0);lt([h({type:Boolean})],Ae.prototype,"iconClickable",void 0);lt([h({type:Boolean})],Ae.prototype,"dense",void 0);lt([h({type:Boolean})],Ae.prototype,"multiLine",void 0);lt([h()],Ae.prototype,"label",void 0);lt([h()],Ae.prototype,"iconLabel",void 0);lt([h({type:Boolean})],Ae.prototype,"hideIconTooltip",void 0);lt([h()],Ae.prototype,"icon",void 0);lt([h()],Ae.prototype,"iconVariant",void 0);lt([h({type:Boolean})],Ae.prototype,"trailingIcon",void 0);lt([h()],Ae.prototype,"typographyVariant",void 0);lt([B("ft-typography slot")],Ae.prototype,"slottedContent",void 0)});var Vv=u(()=>{"use strict"});var Wv,jv=u(()=>{"use strict";Bu();Wv={"ft-chip":Ae}});var Gv=u(()=>{"use strict";O();jv();U(Wv)});var Uu=u(()=>{"use strict";Bu();Fu();Vv();Gv()});var ee,Kv,Mn=u(()=>{"use strict";T();O();jt();ee={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","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},Kv=R`
1789
1789
  .ft-input-label {
1790
1790
  position: absolute;
1791
1791
  inset: 0;
@@ -1836,8 +1836,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1836
1836
  transition: font-size 250ms, line-height 250ms, color 250ms;
1837
1837
  max-width: calc(${ee.labelMaxWidth} - 2 * (${ee.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1838
1838
  text-overflow: ellipsis;
1839
- ${R(St.fontSize,ee.fontSize)};
1840
- ${R(St.lineHeight,ee.fontSize)};
1839
+ ${A(St.fontSize,ee.fontSize)};
1840
+ ${A(St.lineHeight,ee.fontSize)};
1841
1841
  }
1842
1842
 
1843
1843
  .ft-input-label--in-error .ft-input-label--text {
@@ -1869,8 +1869,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1869
1869
  }
1870
1870
 
1871
1871
  .ft-input-label--raised .ft-input-label--text {
1872
- ${R(St.fontSize,ee.raisedFontSize)};
1873
- ${R(St.lineHeight,ee.raisedFontSize)};
1872
+ ${A(St.fontSize,ee.raisedFontSize)};
1873
+ ${A(St.lineHeight,ee.raisedFontSize)};
1874
1874
  }
1875
1875
 
1876
1876
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1907,16 +1907,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1907
1907
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1908
1908
  border-top: none;
1909
1909
  }
1910
- `});var Kv,Fo,qv=u(()=>{"use strict";T();G();La();et();O();Kv=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Fo=class extends F{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1911
- <div class="${he(this.inputLabelClasses)}">
1912
- ${Ao(this.text,()=>b`
1910
+ `});var qv,Fo,Zv=u(()=>{"use strict";T();K();La();tt();O();qv=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Fo=class extends F{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1911
+ <div class="${me(this.inputLabelClasses)}">
1912
+ ${Ro(this.text,()=>b`
1913
1913
  <div class="ft-input-label--text ft-typography--caption">
1914
1914
  <label class="ft-input-label--floating-text">${this.text}</label>
1915
1915
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1916
1916
  </div>
1917
1917
  `)}
1918
1918
  </div>
1919
- `}};Fo.elementDefinitions={};Kv([h({type:String})],Fo.prototype,"text",void 0);Kv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var Uu,Yt,zu=u(()=>{"use strict";G();jt();Mn();qv();Uu=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Yt=class extends Fo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"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}}};Yt.elementDefinitions={};Yt.styles=[jr,Gv];Uu([h({type:Boolean})],Yt.prototype,"outlined",void 0);Uu([h({type:Boolean})],Yt.prototype,"error",void 0);Uu([h({type:Boolean})],Yt.prototype,"disabled",void 0)});var Zv=u(()=>{"use strict"});var Yv,Qv=u(()=>{"use strict";zu();Yv={"ft-input-label":Yt}});var Xv=u(()=>{"use strict";O();Qv();U(Yv)});var Jv=u(()=>{"use strict";zu();Mn();Zv();Xv()});var Q,ex,Fn=u(()=>{"use strict";T();O();Mn();jt();Sr();ki();Q={labelSize:i.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:i.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:i.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:i.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:i.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:i.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:i.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:i.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),elevation02:i.external(S.elevation02,"Design system"),colorError:i.external(S.colorError,"Design system")},ex=A`
1919
+ `}};Fo.elementDefinitions={};qv([h({type:String})],Fo.prototype,"text",void 0);qv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var zu,Yt,Hu=u(()=>{"use strict";K();jt();Mn();Zv();zu=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Yt=class extends Fo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"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}}};Yt.elementDefinitions={};Yt.styles=[Gr,Kv];zu([h({type:Boolean})],Yt.prototype,"outlined",void 0);zu([h({type:Boolean})],Yt.prototype,"error",void 0);zu([h({type:Boolean})],Yt.prototype,"disabled",void 0)});var Qv=u(()=>{"use strict"});var Yv,Xv=u(()=>{"use strict";Hu();Yv={"ft-input-label":Yt}});var Jv=u(()=>{"use strict";O();Xv();U(Yv)});var ex=u(()=>{"use strict";Hu();Mn();Qv();Jv()});var Y,tx,Fn=u(()=>{"use strict";T();O();Mn();jt();Sr();ki();Y={labelSize:i.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:i.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:i.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:i.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:i.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:i.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:i.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:i.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),elevation02:i.external(S.elevation02,"Design system"),colorError:i.external(S.colorError,"Design system")},tx=R`
1920
1920
  *:focus {
1921
1921
  outline: none;
1922
1922
  }
@@ -1931,7 +1931,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1931
1931
  .ft-select--main-panel {
1932
1932
  position: relative;
1933
1933
  display: flex;
1934
- height: calc(4 * ${Q.verticalSpacing} + ${Q.labelSize} + ${Q.selectedOptionSize});
1934
+ height: calc(4 * ${Y.verticalSpacing} + ${Y.labelSize} + ${Y.selectedOptionSize});
1935
1935
  }
1936
1936
 
1937
1937
  .ft-select--input-panel {
@@ -1940,17 +1940,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1940
1940
  display: flex;
1941
1941
  align-items: center;
1942
1942
  overflow: hidden;
1943
- padding-left: ${Q.horizontalSpacing};
1944
- padding-right: ${Q.horizontalSpacing};
1943
+ padding-left: ${Y.horizontalSpacing};
1944
+ padding-right: ${Y.horizontalSpacing};
1945
1945
  gap: 8px;
1946
- color: ${Q.selectedOptionColor};
1947
- ${R(le.color,Q.selectedOptionColor)};
1946
+ color: ${Y.selectedOptionColor};
1947
+ ${A(le.color,Y.selectedOptionColor)};
1948
1948
  }
1949
1949
 
1950
1950
  .ft-select--input-panel,
1951
1951
  .ft-select--options {
1952
- ${R(le.opacityContentOnSurfaceHover,"0.08")};
1953
- ${R(le.opacityContentOnSurfacePressed,"0.04")};
1952
+ ${A(le.opacityContentOnSurfaceHover,"0.08")};
1953
+ ${A(le.opacityContentOnSurfacePressed,"0.04")};
1954
1954
  }
1955
1955
 
1956
1956
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1959,7 +1959,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1959
1959
 
1960
1960
  .ft-select--disabled .ft-select--input-panel,
1961
1961
  .ft-select--disabled .ft-select--options {
1962
- color: ${Q.colorOnSurfaceDisabled};
1962
+ color: ${Y.colorOnSurfaceDisabled};
1963
1963
  }
1964
1964
 
1965
1965
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1968,21 +1968,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1968
1968
  }
1969
1969
 
1970
1970
  ft-input-label {
1971
- ${R(ee.fontSize,Q.selectedOptionSize)};
1972
- ${R(ee.raisedFontSize,Q.labelSize)};
1973
- ${R(ee.verticalSpacing,Q.verticalSpacing)};
1974
- ${R(ee.horizontalSpacing,Q.horizontalSpacing)};
1975
- ${R(ee.backgroundColor,Q.backgroundColor)};
1976
- ${R(ee.labelMaxWidth,`calc(100% - ${it.size} - 8px)`)};
1971
+ ${A(ee.fontSize,Y.selectedOptionSize)};
1972
+ ${A(ee.raisedFontSize,Y.labelSize)};
1973
+ ${A(ee.verticalSpacing,Y.verticalSpacing)};
1974
+ ${A(ee.horizontalSpacing,Y.horizontalSpacing)};
1975
+ ${A(ee.backgroundColor,Y.backgroundColor)};
1976
+ ${A(ee.labelMaxWidth,`calc(100% - ${nt.size} - 8px)`)};
1977
1977
  }
1978
1978
 
1979
1979
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1980
- color: ${Q.colorPrimary};
1980
+ color: ${Y.colorPrimary};
1981
1981
  }
1982
1982
 
1983
1983
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1984
- ${R(ee.borderColor,Q.colorPrimary)};
1985
- ${R(ee.textColor,Q.colorPrimary)};
1984
+ ${A(ee.borderColor,Y.colorPrimary)};
1985
+ ${A(ee.textColor,Y.colorPrimary)};
1986
1986
  }
1987
1987
 
1988
1988
  .ft-select--selected-option {
@@ -1992,12 +1992,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1992
1992
  overflow: hidden;
1993
1993
  white-space: nowrap;
1994
1994
  text-overflow: ellipsis;
1995
- ${R(Cr.fontSize,Q.selectedOptionSize)};
1996
- ${R(Cr.lineHeight,Q.selectedOptionSize)};
1995
+ ${A(Cr.fontSize,Y.selectedOptionSize)};
1996
+ ${A(Cr.lineHeight,Y.selectedOptionSize)};
1997
1997
  }
1998
1998
 
1999
1999
  .ft-select--in-error .ft-select--selected-option {
2000
- color: ${Q.colorError};
2000
+ color: ${Y.colorError};
2001
2001
  }
2002
2002
 
2003
2003
  ft-icon {
@@ -2007,26 +2007,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2007
2007
 
2008
2008
 
2009
2009
  .ft-select--filled .ft-select--input-panel {
2010
- border-radius: ${Q.borderRadiusS} ${Q.borderRadiusS} 0 0;
2010
+ border-radius: ${Y.borderRadiusS} ${Y.borderRadiusS} 0 0;
2011
2011
  }
2012
2012
 
2013
2013
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
2014
2014
  align-self: stretch;
2015
- padding-top: calc(${Q.labelSize} + 2 * ${Q.verticalSpacing});
2015
+ padding-top: calc(${Y.labelSize} + 2 * ${Y.verticalSpacing});
2016
2016
  }
2017
2017
 
2018
2018
  .ft-select--outlined .ft-select--input-panel {
2019
- border-radius: ${Q.borderRadiusS};
2019
+ border-radius: ${Y.borderRadiusS};
2020
2020
  }
2021
2021
 
2022
2022
  .ft-select--options {
2023
2023
  display: none;
2024
2024
  position: absolute;
2025
2025
  top: 100%;
2026
- color: ${Q.optionsColor};
2027
- background: ${Q.backgroundColor};
2028
- z-index: ${Q.optionsZIndex};
2029
- box-shadow: ${Q.elevation02};
2026
+ color: ${Y.optionsColor};
2027
+ background: ${Y.backgroundColor};
2028
+ z-index: ${Y.optionsZIndex};
2029
+ box-shadow: ${Y.elevation02};
2030
2030
  width: max-content;
2031
2031
  }
2032
2032
 
@@ -2036,26 +2036,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2036
2036
 
2037
2037
  .ft-select--options-displayed .ft-select--options {
2038
2038
  display: block;
2039
- max-height: ${Q.optionsHeight};
2039
+ max-height: ${Y.optionsHeight};
2040
2040
  overflow-y: auto;
2041
2041
  }
2042
2042
 
2043
2043
  .ft-select--helper-text {
2044
- padding: 0 ${Q.horizontalSpacing};
2045
- color: ${Q.helperColor};
2044
+ padding: 0 ${Y.horizontalSpacing};
2045
+ color: ${Y.helperColor};
2046
2046
  }
2047
2047
 
2048
2048
  .ft-select--in-error .ft-select--helper-text {
2049
- color: ${Q.colorError};
2049
+ color: ${Y.colorError};
2050
2050
  }
2051
2051
 
2052
2052
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
2053
2053
  opacity: 0;
2054
2054
  }
2055
- `});var tx,rx=u(()=>{"use strict";Sr();O();Fn();T();tx=A`
2055
+ `});var rx,ox=u(()=>{"use strict";Sr();O();Fn();T();rx=R`
2056
2056
  .ft-select--option {
2057
- ${R(le.opacityContentOnSurfaceHover,"0.08")};
2058
- ${R(le.opacityContentOnSurfacePressed,"0.04")};
2057
+ ${A(le.opacityContentOnSurfaceHover,"0.08")};
2058
+ ${A(le.opacityContentOnSurfacePressed,"0.04")};
2059
2059
  }
2060
2060
 
2061
2061
  .ft-select--option > *:not(ft-ripple) {
@@ -2064,14 +2064,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2064
2064
 
2065
2065
  .ft-select--option {
2066
2066
  position: relative;
2067
- padding: 4px ${Q.horizontalSpacing};
2067
+ padding: 4px ${Y.horizontalSpacing};
2068
2068
  min-height: 32px;
2069
2069
  display: flex;
2070
2070
  align-items: center;
2071
2071
  }
2072
2072
 
2073
2073
  .ft-select--option:hover {
2074
- border-left: 2px ${Q.colorPrimary} solid;
2074
+ border-left: 2px ${Y.colorPrimary} solid;
2075
2075
  }
2076
2076
 
2077
2077
  .ft-select--option span {
@@ -2079,8 +2079,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2079
2079
  overflow: hidden;
2080
2080
  }
2081
2081
 
2082
- `});var Bn,Xe,ox=u(()=>{"use strict";O();rt();ke();T();et();G();rx();Bn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Xe=class extends F{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,t;let o={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2083
- <div class="${he(o)}"
2082
+ `});var Bn,Je,ix=u(()=>{"use strict";O();ot();ke();T();tt();K();ox();Bn=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Je=class extends F{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,t;let o={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2083
+ <div class="${me(o)}"
2084
2084
  part="option option-${(t=(e=this.value)===null||e===void 0?void 0:e.toString())===null||t===void 0?void 0:t.replace(/[^\w-]/g,"")}"
2085
2085
  tabindex="0"
2086
2086
  aria-label="${this.label}"
@@ -2091,8 +2091,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2091
2091
  </slot>
2092
2092
  ${this.isSlotEmpty?b`<span>${this.label}</span>`:b``}
2093
2093
  </div>
2094
- `}onSlotChange(){this.isSlotEmpty=an(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={"ft-ripple":Z};Xe.shadowRootOptions={...kt.shadowRootOptions,delegatesFocus:!0};Xe.styles=[tx,Wr];Bn([h({type:String})],Xe.prototype,"label",void 0);Bn([h({type:Object,converter:r=>r})],Xe.prototype,"value",void 0);Bn([h({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);Bn([B("slot")],Xe.prototype,"slotElement",void 0);Bn([I()],Xe.prototype,"isSlotEmpty",void 0)});var je,be,Hu=u(()=>{"use strict";T();G();et();Ht();La();Qa();O();ke();Jv();rt();wr();Fn();ox();je=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},be=class r extends F{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return Qs(this.optionsList)}render(){var e,t,o,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&o!==void 0?o:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return b`
2095
- <div class="${he(f)}" part="container">
2094
+ `}onSlotChange(){this.isSlotEmpty=an(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Je.elementDefinitions={"ft-ripple":Z};Je.shadowRootOptions={...kt.shadowRootOptions,delegatesFocus:!0};Je.styles=[rx,jr];Bn([h({type:String})],Je.prototype,"label",void 0);Bn([h({type:Object,converter:r=>r})],Je.prototype,"value",void 0);Bn([h({type:Boolean,reflect:!0})],Je.prototype,"selected",void 0);Bn([B("slot")],Je.prototype,"slotElement",void 0);Bn([I()],Je.prototype,"isSlotEmpty",void 0)});var je,ve,Vu=u(()=>{"use strict";T();K();tt();Ht();La();Ya();O();ke();ex();ot();wr();Fn();ix();je=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ve=class r extends F{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return Xs(this.optionsList)}render(){var e,t,o,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&o!==void 0?o:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return b`
2095
+ <div class="${me(f)}" part="container">
2096
2096
  <div class="ft-select--main-panel" part="main-panel">
2097
2097
  <ft-input-label text="${this.label}"
2098
2098
  part="label"
@@ -2107,21 +2107,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2107
2107
  tabindex="${l?"-1":"0"}"
2108
2108
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2109
2109
  @keydown=${this.onMainPanelKeyDown}
2110
- aria-label="${Kr(this.ariaLabel)}"
2111
- aria-labelledby="${Ao(!this.ariaLabel,()=>"label")}"
2110
+ aria-label="${qr(this.ariaLabel)}"
2111
+ aria-labelledby="${Ro(!this.ariaLabel,()=>"label")}"
2112
2112
  aria-haspopup="listbox"
2113
2113
  aria-expanded="${s}"
2114
- aria-activedescendant="${Kr(this.getOptionId(this.selectedOption))}"
2114
+ aria-activedescendant="${qr(this.getOptionId(this.selectedOption))}"
2115
2115
  role="combobox">
2116
2116
  <ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
2117
2117
  <slot name="input-value">
2118
- <ft-typography variant="${me.body1}"
2118
+ <ft-typography variant="${fe.body1}"
2119
2119
  aria-hidden="${d?"false":"true"}"
2120
2120
  class="ft-select--selected-option">
2121
2121
  ${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:this.label}
2122
2122
  </ft-typography>
2123
2123
  </slot>
2124
- <ft-icon aria-hidden="true" .value=${s?Fe.THIN_ARROW_UP:Fe.THIN_ARROW}></ft-icon>
2124
+ <ft-icon aria-hidden="true" .value=${s?Pe.THIN_ARROW_UP:Pe.THIN_ARROW}></ft-icon>
2125
2125
  </div>
2126
2126
  <div class="ft-select--options"
2127
2127
  part="options"
@@ -2132,12 +2132,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2132
2132
  @option-change=${this.updateOptionsFromSlot}
2133
2133
  >
2134
2134
  </slot>
2135
- ${Ao(this.isSlotEmpty,()=>ve(this.options,m=>m.value,m=>this.renderOption(m)))}
2135
+ ${Ro(this.isSlotEmpty,()=>ge(this.options,m=>m.value,m=>this.renderOption(m)))}
2136
2136
  </div>
2137
2137
  </div>
2138
2138
  <slot name="helper" part="helper">
2139
2139
  ${this.helper?b`
2140
- <ft-typography class="ft-select--helper-text" variant="${me.caption}">${this.helper}
2140
+ <ft-typography class="ft-select--helper-text" variant="${fe.caption}">${this.helper}
2141
2141
  </ft-typography>`:k}
2142
2142
  </slot>
2143
2143
  </div>
@@ -2147,7 +2147,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2147
2147
  label="${e.label}"
2148
2148
  .value=${e.value}
2149
2149
  ></ft-select-option>
2150
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((o=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||o===void 0||o.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Nl(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Q.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation(),this.isSlotEmpty=an(this.optionsSlot);let o=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,o;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){let t=new Date;t.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let o=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=t,o&&this.optionsList.find(n=>n.value===o.value)}getOptionId(e){if(!e)return;let t=this.options.findIndex(o=>De(o.value,e.value));if(t!==-1)return`option-${t}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,t=!0){let o=this.options.find(n=>De(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!De((o=this.selectedOption)===null||o===void 0?void 0:o.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;t&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};be.elementDefinitions={"ft-input-label":Yt,"ft-typography":ie,"ft-ripple":Z,"ft-icon":xe,"ft-select-option":Xe};be.searchTimeoutMilliseconds=2e3;be.styles=[jr,ex];je([h({type:String})],be.prototype,"label",void 0);je([h({type:String})],be.prototype,"ariaLabel",void 0);je([h({type:String})],be.prototype,"helper",void 0);je([h({type:Boolean})],be.prototype,"outlined",void 0);je([h({type:Boolean})],be.prototype,"disabled",void 0);je([h({type:Boolean})],be.prototype,"error",void 0);je([h({type:Boolean})],be.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],be.prototype,"options",void 0);je([I()],be.prototype,"selectedOption",void 0);je([I()],be.prototype,"optionsDisplayed",void 0);je([I()],be.prototype,"focusOptions",void 0);je([I()],be.prototype,"currentSearch",void 0);je([I()],be.prototype,"lastSearchInputDate",void 0);je([B(".ft-select")],be.prototype,"container",void 0);je([B(".ft-select--options")],be.prototype,"optionsMenu",void 0);je([B(".ft-select--input-panel")],be.prototype,"mainPanel",void 0);je([B("slot:not([name])")],be.prototype,"optionsSlot",void 0)});var ix=u(()=>{"use strict"});var nx,ax=u(()=>{"use strict";Hu();nx={"ft-select":be,"ft-select-option":Xe}});var sx=u(()=>{"use strict";O();ax();U(nx)});var lx=u(()=>{"use strict";Hu();Fn();ix();sx()});var Ge,cx,gs=u(()=>{"use strict";T();O();Ge={display:i.create("--ft-skeleton--display","","DISPLAY","block"),width:i.create("--ft-skeleton--width","","SIZE","100%"),height:i.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:i.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:i.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:i.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:i.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:i.external(S.borderRadiusM,"Design system")},cx=A`
2150
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((o=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||o===void 0||o.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];$l(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Y.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation(),this.isSlotEmpty=an(this.optionsSlot);let o=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,o;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){let t=new Date;t.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let o=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=t,o&&this.optionsList.find(n=>n.value===o.value)}getOptionId(e){if(!e)return;let t=this.options.findIndex(o=>Me(o.value,e.value));if(t!==-1)return`option-${t}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,t=!0){let o=this.options.find(n=>Me(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!Me((o=this.selectedOption)===null||o===void 0?void 0:o.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;t&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ve.elementDefinitions={"ft-input-label":Yt,"ft-typography":ie,"ft-ripple":Z,"ft-icon":xe,"ft-select-option":Je};ve.searchTimeoutMilliseconds=2e3;ve.styles=[Gr,tx];je([h({type:String})],ve.prototype,"label",void 0);je([h({type:String})],ve.prototype,"ariaLabel",void 0);je([h({type:String})],ve.prototype,"helper",void 0);je([h({type:Boolean})],ve.prototype,"outlined",void 0);je([h({type:Boolean})],ve.prototype,"disabled",void 0);je([h({type:Boolean})],ve.prototype,"error",void 0);je([h({type:Boolean})],ve.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],ve.prototype,"options",void 0);je([I()],ve.prototype,"selectedOption",void 0);je([I()],ve.prototype,"optionsDisplayed",void 0);je([I()],ve.prototype,"focusOptions",void 0);je([I()],ve.prototype,"currentSearch",void 0);je([I()],ve.prototype,"lastSearchInputDate",void 0);je([B(".ft-select")],ve.prototype,"container",void 0);je([B(".ft-select--options")],ve.prototype,"optionsMenu",void 0);je([B(".ft-select--input-panel")],ve.prototype,"mainPanel",void 0);je([B("slot:not([name])")],ve.prototype,"optionsSlot",void 0)});var nx=u(()=>{"use strict"});var ax,sx=u(()=>{"use strict";Vu();ax={"ft-select":ve,"ft-select-option":Je}});var lx=u(()=>{"use strict";O();sx();U(ax)});var cx=u(()=>{"use strict";Vu();Fn();nx();lx()});var Ge,dx,ys=u(()=>{"use strict";T();O();Ge={display:i.create("--ft-skeleton--display","","DISPLAY","block"),width:i.create("--ft-skeleton--width","","SIZE","100%"),height:i.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:i.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:i.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:i.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:i.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:i.external(S.borderRadiusM,"Design system")},dx=R`
2151
2151
  :host {
2152
2152
  width: ${Ge.width};
2153
2153
  height: ${Ge.height};
@@ -2174,7 +2174,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2174
2174
  background-position: calc(100vw + ${Ge.glareWidth}) 0, calc(${Ge.glareWidth} * -1) 0;
2175
2175
  }
2176
2176
  }
2177
- `});var V,dx,ux,ys=u(()=>{"use strict";O();T();$o();Mn();Fn();gs();us();fs();jt();V={height:i.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:i.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:i.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:i.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:i.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:i.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:i.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(S.colorSurface,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),elevation02:i.external(S.elevation02,"Design system"),buttonColor:i.external(Y.color,"Button"),buttonRippleColor:i.external(Y.rippleColor,"Button"),activeItemBorderColor:i.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},dx=A`
2177
+ `});var V,ux,px,bs=u(()=>{"use strict";O();T();$o();Mn();Fn();ys();ps();hs();jt();V={height:i.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:i.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:i.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:i.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:i.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:i.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:i.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(S.colorSurface,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),elevation02:i.external(S.elevation02,"Design system"),buttonColor:i.external(Q.color,"Button"),buttonRippleColor:i.external(Q.rippleColor,"Button"),activeItemBorderColor:i.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},ux=R`
2178
2178
  * {
2179
2179
  box-sizing: border-box;
2180
2180
  }
@@ -2222,8 +2222,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2222
2222
  }
2223
2223
 
2224
2224
  .ft-search-bar--skeleton {
2225
- ${R(Ge.height,V.height)};
2226
- ${R(Ge.borderRadiusM,V.borderRadius)};
2225
+ ${A(Ge.height,V.height)};
2226
+ ${A(Ge.borderRadiusM,V.borderRadius)};
2227
2227
  }
2228
2228
 
2229
2229
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2281,11 +2281,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2281
2281
  .ft-search-bar > ft-button,
2282
2282
  .ft-search-bar--actions ft-button {
2283
2283
  flex-shrink: 0;
2284
- ${R(Y.backgroundColor,"transparent")};
2284
+ ${A(Q.backgroundColor,"transparent")};
2285
2285
  }
2286
2286
 
2287
2287
  .ft-search-bar--left-action {
2288
- ${R(Y.borderRadius,`calc(${V.borderRadius} - 1px) 0 0 calc(${V.borderRadius} - 1px)`)};
2288
+ ${A(Q.borderRadius,`calc(${V.borderRadius} - 1px) 0 0 calc(${V.borderRadius} - 1px)`)};
2289
2289
  border-right: 1px solid ${V.colorOutline};
2290
2290
  height: 100%;
2291
2291
  }
@@ -2295,7 +2295,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2295
2295
  }
2296
2296
 
2297
2297
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2298
- ${R(Y.borderRadius,`calc(${V.borderRadius} - 1px) 0 0 0`)};
2298
+ ${A(Q.borderRadius,`calc(${V.borderRadius} - 1px) 0 0 0`)};
2299
2299
  }
2300
2300
 
2301
2301
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2309,9 +2309,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2309
2309
  }
2310
2310
 
2311
2311
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2312
- ${R(ee.borderColor,"transparent")};
2313
- ${R(ee.borderRadius,`calc(${V.borderRadius} - 1px)`)};
2314
- ${R(Q.selectedOptionColor,V.buttonColor)};
2312
+ ${A(ee.borderColor,"transparent")};
2313
+ ${A(ee.borderRadius,`calc(${V.borderRadius} - 1px)`)};
2314
+ ${A(Y.selectedOptionColor,V.buttonColor)};
2315
2315
  }
2316
2316
 
2317
2317
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2355,7 +2355,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2355
2355
  flex-shrink: 0;
2356
2356
  padding: 0 10px;
2357
2357
  margin-bottom: 8px;
2358
- ${R(M.fontSize,"14px")};
2358
+ ${A(M.fontSize,"14px")};
2359
2359
  }
2360
2360
 
2361
2361
  [part="content-locale-selector-label"] {
@@ -2363,18 +2363,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2363
2363
  flex-shrink: 1;
2364
2364
  flex-grow: 1;
2365
2365
  word-break: break-word;
2366
- ${R(M.lineHeight,"22px")};
2367
- ${R(M.fontWeight,"bold")};
2366
+ ${A(M.lineHeight,"22px")};
2367
+ ${A(M.fontWeight,"bold")};
2368
2368
  }
2369
2369
 
2370
- `,ux=A`
2370
+ `,px=R`
2371
2371
  .ft-search-bar--presets {
2372
2372
  min-width: 200px;
2373
2373
  }
2374
2374
 
2375
2375
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2376
2376
  margin-right: auto;
2377
- ${R(Q.optionsZIndex,"2")};
2377
+ ${A(Y.optionsZIndex,"2")};
2378
2378
  }
2379
2379
 
2380
2380
  .ft-search-bar--desktop-menu {
@@ -2428,7 +2428,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2428
2428
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2429
2429
  display: block;
2430
2430
  height: ${V.desktopFiltersHeight};
2431
- ${R(nt.gap,"16px")};
2431
+ ${A(st.gap,"16px")};
2432
2432
  }
2433
2433
 
2434
2434
  .ft-search-bar--desktop-menu ft-filter {
@@ -2443,15 +2443,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2443
2443
  }
2444
2444
 
2445
2445
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2446
- max-width: calc(50% - ${nt.gap} / 2);
2446
+ max-width: calc(50% - ${st.gap} / 2);
2447
2447
  }
2448
2448
 
2449
2449
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2450
- max-width: max(250px, calc(33% - 2 * ${nt.gap} / 3));
2450
+ max-width: max(250px, calc(33% - 2 * ${st.gap} / 3));
2451
2451
  }
2452
2452
 
2453
2453
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2454
- max-width: max(250px, calc(25% - 3 * ${nt.gap} / 4));
2454
+ max-width: max(250px, calc(25% - 3 * ${st.gap} / 4));
2455
2455
  }
2456
2456
 
2457
2457
  .ft-search-bar--hierarchical-filter {
@@ -2528,14 +2528,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2528
2528
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2529
2529
  margin: 0;
2530
2530
  }
2531
- `});var Qr,Vu=u(()=>{"use strict";T();O();gs();Qr=class extends F{render(){return b`
2532
- `}};Qr.elementDefinitions={};Qr.styles=cx});var px=u(()=>{"use strict"});var fx,hx=u(()=>{"use strict";Vu();fx={"ft-skeleton":Qr}});var mx=u(()=>{"use strict";O();hx();U(fx)});var gx=u(()=>{"use strict";Vu();gs();px();mx()});var ur,bs=u(()=>{"use strict";T();Ht();wr();O();ys();rt();ur=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ne(t)}render(){let e=this.recentSearchesMatchingQuery;return b`
2531
+ `});var Yr,Wu=u(()=>{"use strict";T();O();ys();Yr=class extends F{render(){return b`
2532
+ `}};Yr.elementDefinitions={};Yr.styles=dx});var fx=u(()=>{"use strict"});var hx,mx=u(()=>{"use strict";Wu();hx={"ft-skeleton":Yr}});var gx=u(()=>{"use strict";O();mx();U(hx)});var yx=u(()=>{"use strict";Wu();ys();fx();gx()});var ur,vs=u(()=>{"use strict";T();Ht();wr();O();bs();ot();ur=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ne(t)}render(){let e=this.recentSearchesMatchingQuery;return b`
2533
2533
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2534
2534
  id="${this.listboxId}"
2535
2535
  role="listbox"
2536
2536
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2537
2537
  part="suggestions-container">
2538
- ${ve(e.slice(0,5),t=>t,(t,o)=>b`
2538
+ ${ge(e.slice(0,5),t=>t,(t,o)=>b`
2539
2539
  <div part="suggestion-container"
2540
2540
  class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(o)?"ft-search-bar--suggestions-selected":k}">
2541
2541
  <a href="${this.getRequestWithQuery(t)}"
@@ -2564,7 +2564,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2564
2564
  </ft-button>
2565
2565
  </div>
2566
2566
  `)}
2567
- ${ve(this.searchBar.suggestions,t=>t.value,(t,o)=>b`
2567
+ ${ge(this.searchBar.suggestions,t=>t.value,(t,o)=>b`
2568
2568
  <div part="suggestion-container"
2569
2569
  class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(o)?"ft-search-bar--suggestions-selected":k}">
2570
2570
  <a href="${this.getRequestWithQuery(t.value)}"
@@ -2582,9 +2582,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2582
2582
  </div>
2583
2583
  `)}
2584
2584
  </div>
2585
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(o=>o.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(o=>o.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?pt.file_format:pt.fluid_topics,o;switch(e.type){case"MAP":o=e.editorialType==="BOOK"?Fe.BOOK:Fe.ARTICLE;break;case"DOCUMENT":o=Za(e.mimeType,e.filenameExtension);break;case"TOPIC":o=Fe.TOPICS;break;case"HTML_PACKAGE":o=Fe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Fe.FILE_CODE;break}return b`
2585
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(o=>o.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(o=>o.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?at.file_format:at.fluid_topics,o;switch(e.type){case"MAP":o=e.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":o=Za(e.mimeType,e.filenameExtension);break;case"TOPIC":o=Pe.TOPICS;break;case"HTML_PACKAGE":o=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Pe.FILE_CODE;break}return b`
2586
2586
  <ft-icon .variant=${t} .value=${o} part="suggestion-icon"></ft-icon>
2587
- `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};ur.styles=[dn,A`
2587
+ `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};ur.styles=[dn,R`
2588
2588
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2589
2589
  flex-grow: 1;
2590
2590
  flex-shrink: 1;
@@ -2672,9 +2672,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2672
2672
  }
2673
2673
 
2674
2674
  ft-ripple {
2675
- ${R(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2675
+ ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2676
2676
  }
2677
- `]});var pr,vs=u(()=>{"use strict";T();Ht();gu();O();ps();Bu();pr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),o=b`
2677
+ `]});var pr,xs=u(()=>{"use strict";T();Ht();yu();O();fs();Uu();pr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),o=b`
2678
2678
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?b`
2679
2679
  <ft-chip part="selected-filters selected-filter-ft-locale"
2680
2680
  ?dense=${this.searchBar.dense&&!e}
@@ -2685,7 +2685,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2685
2685
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2686
2686
  </ft-chip>
2687
2687
  `:null}
2688
- ${ve(this.searchBar.facets,n=>n.key,n=>{let a=tv(n);return ve(a,s=>{let l=n.label+": "+Xb(s),d=n.key.replace(":","-"),f=b`
2688
+ ${ge(this.searchBar.facets,n=>n.key,n=>{let a=rv(n);return ge(a,s=>{let l=n.label+": "+Jb(s),d=n.key.replace(":","-"),f=b`
2689
2689
  <ft-chip
2690
2690
  part="selected-filters selected-filter-${d}"
2691
2691
  ?dense=${this.searchBar.dense&&!e}
@@ -2698,7 +2698,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2698
2698
  @icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(m=>m!==s))}
2699
2699
  data-key="${n.key}"
2700
2700
  data-value="${s}">
2701
- ${Qb(s)}
2701
+ ${Xb(s)}
2702
2702
  </ft-chip>
2703
2703
  `;return t?f:b`
2704
2704
  <ft-tooltip inline text="${l}">
@@ -2724,7 +2724,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2724
2724
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2725
2725
  ${o}
2726
2726
  </div>
2727
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(o=>{var n;return((n=o.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(o=>o.label).pop())!==null&&t!==void 0?t:e}};pr.styles=A`
2727
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(o=>{var n;return((n=o.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(o=>o.label).pop())!==null&&t!==void 0?t:e}};pr.styles=R`
2728
2728
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2729
2729
  flex-shrink: 0;
2730
2730
  display: flex;
@@ -2735,7 +2735,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2735
2735
 
2736
2736
  ft-snap-scroll.ft-search-bar--selected-filters {
2737
2737
  overflow: hidden;
2738
- ${R(nt.gap,"4px")};
2738
+ ${A(st.gap,"4px")};
2739
2739
  }
2740
2740
 
2741
2741
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2743,8 +2743,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2743
2743
  }
2744
2744
 
2745
2745
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2746
- ${R(We.iconSize,"17px")};
2747
- ${R(We.fontSize,"12px")};
2746
+ ${A(We.iconSize,"17px")};
2747
+ ${A(We.fontSize,"12px")};
2748
2748
  }
2749
2749
 
2750
2750
  .ft-search-bar--selected-filters * {
@@ -2754,8 +2754,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2754
2754
  .ft-search-bar--selected-filters ft-chip {
2755
2755
  flex-grow: 0;
2756
2756
  }
2757
- `});var mO,Di,yx=u(()=>{"use strict";T();vs();bs();et();O();mO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Di=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new pr(e),this.suggestManager=o??new ur(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return b`
2758
- <div class="${he(t)}" part="container" tabindex="-1">
2757
+ `});var yO,Di,bx=u(()=>{"use strict";T();xs();vs();tt();O();yO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Di=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new pr(e),this.suggestManager=o??new ur(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return b`
2758
+ <div class="${me(t)}" part="container" tabindex="-1">
2759
2759
  <div class="ft-search-bar" role="search">
2760
2760
  <div class="ft-search-bar--input-container" part="input-container">
2761
2761
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2811,10 +2811,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2811
2811
  @click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(t=this.searchBar.input)===null||t===void 0?void 0:t.focus()}}
2812
2812
  ></ft-button>
2813
2813
  </div>
2814
- `}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};Di.styles=A`
2814
+ `}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};Di.styles=R`
2815
2815
 
2816
- `;mO([_r()],Di.prototype,"onSearchBarKeyDown",null)});var gO,Mi,bx=u(()=>{"use strict";T();Ht();vs();bs();et();O();gO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Mi=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new pr(e),this.suggestManager=o??new ur(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return b`
2817
- <div class="${he(t)}" part="container" tabindex="-1">
2816
+ `;yO([Ir()],Di.prototype,"onSearchBarKeyDown",null)});var bO,Mi,vx=u(()=>{"use strict";T();Ht();xs();vs();tt();O();bO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Mi=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new pr(e),this.suggestManager=o??new ur(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return b`
2817
+ <div class="${me(t)}" part="container" tabindex="-1">
2818
2818
  <div class="ft-search-bar" part="search-bar" role="search">
2819
2819
  ${this.renderSearchBarLeftAction()}
2820
2820
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
@@ -2861,7 +2861,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2861
2861
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2862
2862
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2863
2863
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2864
- ${ve(this.searchBar.availableContentLocales,e=>e.lang,e=>b`
2864
+ ${ge(this.searchBar.availableContentLocales,e=>e.lang,e=>b`
2865
2865
  <ft-select-option .value=${e.lang}
2866
2866
  label="${e.label}"
2867
2867
  ?selected=${e.lang==this.searchBar.contentLocale}>
@@ -2890,9 +2890,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2890
2890
  @click=${()=>this.searchBar.onLaunchSearch()}
2891
2891
  ></ft-button>
2892
2892
  </div>
2893
- `}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Mi.styles=A`
2893
+ `}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Mi.styles=R`
2894
2894
 
2895
- `;gO([_r()],Mi.prototype,"onSearchBarKeyDown",null)});var te,vx,Wu,yO,W,ju=u(()=>{"use strict";T();G();Ht();O();Yb();ke();gu();Lv();wr();Mv();lr();Bu();lx();ps();Hd();rt();ys();gx();bs();vs();yx();bx();wu();Gt();te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");vx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Wu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},yO=()=>{},W=class extends F{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Nr(vx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Vr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Bt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ur(this),this.selectedFacetsManager=new pr(this),this.desktopSearchBarManager=new Mi(this),this.mobileSearchBarManager=new Di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ne(10),this.updateLocalesDebouncer=new ne(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ne(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(o=>t.values.includes(o)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(o=>t.metadataFilters.some(n=>this.compareFilters(o,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var o,n;return((n=(o=t.valueFilter)===null||o===void 0?void 0:o.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Bt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await Tr(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2895
+ `;bO([Ir()],Mi.prototype,"onSearchBarKeyDown",null)});var te,xx,ju,vO,j,Gu=u(()=>{"use strict";T();K();Ht();O();Yb();ke();yu();kv();wr();Fv();Zt();Uu();cx();fs();Vd();ot();bs();yx();vs();xs();bx();vx();Ru();Gt();te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");xx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ju=class extends CustomEvent{constructor(e){super("change",{detail:e})}},vO=()=>{},j=class extends F{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new $r(xx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Wr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Bt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ur(this),this.selectedFacetsManager=new pr(this),this.desktopSearchBarManager=new Mi(this),this.mobileSearchBarManager=new Di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ne(10),this.updateLocalesDebouncer=new ne(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ne(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(o=>t.values.includes(o)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(o=>t.metadataFilters.some(n=>this.compareFilters(o,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var o,n;return((n=(o=t.valueFilter)===null||o===void 0?void 0:o.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Bt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await _r(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2896
2896
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2897
2897
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2898
2898
  ${this.renderLiveText()}
@@ -2920,7 +2920,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2920
2920
  </div>
2921
2921
  </ft-accordion-item>
2922
2922
  `:null}
2923
- ${ve(this.facets,t=>t.key,t=>{let o=mu(t),n=t.key.replace(":","-"),a=ev(o);return t.rootNodes.length>0?b`
2923
+ ${ge(this.facets,t=>t.key,t=>{let o=gu(t),n=t.key.replace(":","-"),a=tv(o);return t.rootNodes.length>0?b`
2924
2924
  <ft-accordion-item data-facet-key="${t.key}">
2925
2925
  <div class="ft-search-bar--filter-label" slot="toggle">
2926
2926
  <ft-typography variant="button">${t.label}</ft-typography>
@@ -2950,7 +2950,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2950
2950
  `}getContentLocaleRadioGroup(){var e;return b`
2951
2951
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2952
2952
  @change=${t=>{this.contentLocale=t.detail==="all"?void 0:t.detail,this.clearFilters()}}>
2953
- ${ve((e=this.availableContentLocales)!==null&&e!==void 0?e:[],t=>t.lang,t=>{var o;return b`
2953
+ ${ge((e=this.availableContentLocales)!==null&&e!==void 0?e:[],t=>t.lang,t=>{var o;return b`
2954
2954
  <ft-radio value="${(o=t.lang)!==null&&o!==void 0?o:"all"}"
2955
2955
  ?checked=${t.lang==this.contentLocale}>
2956
2956
  ${t.label}
@@ -2981,7 +2981,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2981
2981
  label="${this.labelResolver.resolve("presetsSelector")}"
2982
2982
  outlined
2983
2983
  @change=${t=>this.selectedPreset=t.detail}>
2984
- ${ve((e=this.presets)!==null&&e!==void 0?e:[],t=>t.name,t=>b`
2984
+ ${ge((e=this.presets)!==null&&e!==void 0?e:[],t=>t.name,t=>b`
2985
2985
  <ft-select-option value="${t.name}"
2986
2986
  label="${t.name}"
2987
2987
  ?selected=${t.name===this.selectedPreset}>
@@ -3013,7 +3013,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3013
3013
  ${this.getContentLocaleRadioGroup()}
3014
3014
  </div>
3015
3015
  `:k}
3016
- ${ve(this.facets,e=>e.key,e=>{let t=mu(e),o=t.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
3016
+ ${ge(this.facets,e=>e.key,e=>{let t=gu(e),o=t.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
3017
3017
  <ft-filter
3018
3018
  class="${o?"ft-search-bar--hierarchical-filter":""}"
3019
3019
  part="filters filter filter-${n}"
@@ -3032,28 +3032,39 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3032
3032
  ></ft-filter>
3033
3033
  `})}
3034
3034
  </ft-snap-scroll>
3035
- `:k}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,o,n,a,s;if(e.has("labels")&&(this.labelResolver=new Nr(vx,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>cs(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Wu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var t,o,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(o=this.scrollingFiltersContainer)===null||o===void 0||o.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(o=>o.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(yO)),this.facets=[];for(let o of this.facetsRequest)t.has(o.id)?this.facets.push(t.get(o.id)):this.knownFacetLabels.has(o.id)&&this.facets.push({key:o.id,label:this.knownFacetLabels.get(o.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,o)=>o<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!bn&&this.focusInput(),H.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),H.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let o=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&bt(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&o.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=o,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>bt(t.rootNodes,o=>o.childNodes).forEach(o=>o.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?k:b`
3035
+ `:k}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,o,n,a,s;if(e.has("labels")&&(this.labelResolver=new $r(xx,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>ds(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new ju(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var t,o,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(o=this.scrollingFiltersContainer)===null||o===void 0||o.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(o=>o.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(vO)),this.facets=[];for(let o of this.facetsRequest)t.has(o.id)?this.facets.push(t.get(o.id)):this.knownFacetLabels.has(o.id)&&this.facets.push({key:o.id,label:this.knownFacetLabels.get(o.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,o)=>o<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!bn&&this.focusInput(),H.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),H.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let o=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&bt(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&o.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=o,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>bt(t.rootNodes,o=>o.childNodes).forEach(o=>o.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?k:b`
3036
3036
  <div class="ft-search-bar--floating-panel"
3037
3037
  id="ft-search-bar-floating-panel"
3038
3038
  @keyup=${this.onFloatingContainerKeyUp}
3039
3039
  part="floating-panel"
3040
3040
  tabindex="-1">
3041
3041
  ${this.renderDesktopMenu()}
3042
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};W.elementDefinitions={"ft-accordion":dr,"ft-accordion-item":Ut,"ft-button":K,"ft-chip":Ae,"ft-filter":ce,"ft-filter-option":wt,"ft-icon":xe,"ft-ripple":Z,"ft-select":be,"ft-select-option":Xe,"ft-size-watcher":Ct,"ft-skeleton":Qr,"ft-snap-scroll":Pe,"ft-tooltip":Te,"ft-typography":ie,"ft-radio-group":Et,"ft-radio":Ue};W.styles=[Wr,bo,dx,ux,pr.styles,ur.styles,mi];te([h({type:Boolean})],W.prototype,"dense",void 0);te([h()],W.prototype,"mode",void 0);te([h({type:Boolean})],W.prototype,"forceMobileMenuOpen",void 0);te([h({type:Boolean})],W.prototype,"forceMenuOpen",void 0);te([h()],W.prototype,"baseUrl",void 0);te([h()],W.prototype,"apiIntegrationIdentifier",void 0);te([h()],W.prototype,"contentLocale",void 0);te([I()],W.prototype,"availableContentLocales",void 0);te([I()],W.prototype,"availableContentLocalesInitialized",void 0);te([h()],W.prototype,"uiLocale",void 0);te([de({})],W.prototype,"labels",void 0);te([de([])],W.prototype,"displayedFilters",void 0);te([de([])],W.prototype,"presets",void 0);te([h({type:String,reflect:!0})],W.prototype,"selectedPreset",void 0);te([de([])],W.prototype,"priors",void 0);te([h()],W.prototype,"searchRequestSerializer",void 0);te([h({type:Boolean})],W.prototype,"focusOnDisplay",void 0);te([I()],W.prototype,"metadataFilters",void 0);te([I()],W.prototype,"sizeCategory",void 0);te([I()],W.prototype,"displayFacets",void 0);te([I()],W.prototype,"mobileMenuOpen",void 0);te([I()],W.prototype,"facets",void 0);te([I()],W.prototype,"facetsInitialized",void 0);te([B(".ft-search-bar--container")],W.prototype,"container",void 0);te([B(".ft-search-bar--filters-opener")],W.prototype,"filtersOpener",void 0);te([B(".ft-search-bar--floating-panel")],W.prototype,"floatingContainer",void 0);te([B("ft-snap-scroll.ft-search-bar--filters-container")],W.prototype,"scrollingFiltersContainer",void 0);te([B(".ft-search-bar--input")],W.prototype,"input",void 0);te([B(".ft-search-bar--launch-search")],W.prototype,"launchSearchButton",void 0);te([I()],W.prototype,"query",void 0);te([I()],W.prototype,"suggestions",void 0);te([I()],W.prototype,"recentSearches",void 0);te([I()],W.prototype,"scrollToFacet",void 0);te([I()],W.prototype,"api",void 0);te([I()],W.prototype,"displaySuggestListbox",void 0);te([I()],W.prototype,"selectedSuggestOptionId",void 0);te([I()],W.prototype,"selectedSuggestRemoveRecent",void 0);te([I()],W.prototype,"facetsLoaded",void 0)});var xx=u(()=>{"use strict"});var Sx,Cx=u(()=>{"use strict";ju();Sx={"ft-search-bar":W}});var Ox=u(()=>{"use strict";O();Cx();U(Sx)});var Ex=u(()=>{"use strict";ju();ys();xx();Ox()});var wx,Ax=u(()=>{"use strict";T();kn();O();rt();Ex();wx=A`
3042
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};j.elementDefinitions={"ft-accordion":dr,"ft-accordion-item":Ut,"ft-button":W,"ft-chip":Ae,"ft-filter":ce,"ft-filter-option":wt,"ft-icon":xe,"ft-ripple":Z,"ft-select":ve,"ft-select-option":Je,"ft-size-watcher":Ct,"ft-skeleton":Yr,"ft-snap-scroll":Ne,"ft-tooltip":Te,"ft-typography":ie,"ft-radio-group":Et,"ft-radio":Ue};j.styles=[jr,bo,ux,px,pr.styles,ur.styles,mi];te([h({type:Boolean})],j.prototype,"dense",void 0);te([h()],j.prototype,"mode",void 0);te([h({type:Boolean})],j.prototype,"forceMobileMenuOpen",void 0);te([h({type:Boolean})],j.prototype,"forceMenuOpen",void 0);te([h()],j.prototype,"baseUrl",void 0);te([h()],j.prototype,"apiIntegrationIdentifier",void 0);te([h()],j.prototype,"contentLocale",void 0);te([I()],j.prototype,"availableContentLocales",void 0);te([I()],j.prototype,"availableContentLocalesInitialized",void 0);te([h()],j.prototype,"uiLocale",void 0);te([de({})],j.prototype,"labels",void 0);te([de([])],j.prototype,"displayedFilters",void 0);te([de([])],j.prototype,"presets",void 0);te([h({type:String,reflect:!0})],j.prototype,"selectedPreset",void 0);te([de([])],j.prototype,"priors",void 0);te([h()],j.prototype,"searchRequestSerializer",void 0);te([h({type:Boolean})],j.prototype,"focusOnDisplay",void 0);te([I()],j.prototype,"metadataFilters",void 0);te([I()],j.prototype,"sizeCategory",void 0);te([I()],j.prototype,"displayFacets",void 0);te([I()],j.prototype,"mobileMenuOpen",void 0);te([I()],j.prototype,"facets",void 0);te([I()],j.prototype,"facetsInitialized",void 0);te([B(".ft-search-bar--container")],j.prototype,"container",void 0);te([B(".ft-search-bar--filters-opener")],j.prototype,"filtersOpener",void 0);te([B(".ft-search-bar--floating-panel")],j.prototype,"floatingContainer",void 0);te([B("ft-snap-scroll.ft-search-bar--filters-container")],j.prototype,"scrollingFiltersContainer",void 0);te([B(".ft-search-bar--input")],j.prototype,"input",void 0);te([B(".ft-search-bar--launch-search")],j.prototype,"launchSearchButton",void 0);te([I()],j.prototype,"query",void 0);te([I()],j.prototype,"suggestions",void 0);te([I()],j.prototype,"recentSearches",void 0);te([I()],j.prototype,"scrollToFacet",void 0);te([I()],j.prototype,"api",void 0);te([I()],j.prototype,"displaySuggestListbox",void 0);te([I()],j.prototype,"selectedSuggestOptionId",void 0);te([I()],j.prototype,"selectedSuggestRemoveRecent",void 0);te([I()],j.prototype,"facetsLoaded",void 0)});var Sx=u(()=>{"use strict"});var Cx,Ox=u(()=>{"use strict";Gu();Cx={"ft-search-bar":j}});var Ex=u(()=>{"use strict";O();Ox();U(Cx)});var wx=u(()=>{"use strict";Gu();bs();Sx();Ex()});var Rx,Ax=u(()=>{"use strict";T();kn();O();ot();wx();Rx=R`
3043
3043
  * {
3044
3044
  box-sizing: border-box;
3045
3045
  }
3046
3046
 
3047
3047
  .ft-search-input-suggestion {
3048
3048
  position: absolute;
3049
- z-index: ${ge.floatingZIndex};
3049
+ z-index: ${ye.floatingZIndex};
3050
3050
  top: calc(100% + 2px);
3051
3051
  left: -1px;
3052
3052
  right: -1px;
3053
- background: ${ge.colorSurface};
3054
- border: 1px solid ${ge.colorOutline};
3055
- border-radius: 0 0 ${ge.borderRadius} ${ge.borderRadius};
3056
- box-shadow: ${ge.elevation02};
3053
+ background: ${ye.colorSurface};
3054
+ border: 1px solid ${ye.colorOutline};
3055
+ border-radius: 0 0 ${ye.borderRadius} ${ye.borderRadius};
3056
+ box-shadow: ${ye.elevation02};
3057
+ }
3058
+
3059
+ .ft-search-input-suggestion--container {
3060
+ display: flex;
3061
+ align-items: center;
3062
+ }
3063
+
3064
+ .ft-search-input-suggestion--container:has([aria-selected="true"]),
3065
+ .ft-search-input-suggestion--container:hover {
3066
+ outline: none;
3067
+ box-shadow: inset 3px 0 0 ${V.activeItemBorderColor};
3057
3068
  }
3058
3069
 
3059
3070
  .ft-search-input-suggestion--suggestion {
@@ -3064,21 +3075,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3064
3075
  padding: 8px;
3065
3076
  gap: 8px;
3066
3077
  cursor: pointer;
3067
- color: ${ge.colorOnSurface};
3078
+ color: ${ye.colorOnSurface};
3068
3079
  min-height: 44px;
3080
+ flex-grow: 1;
3069
3081
  }
3070
3082
 
3071
3083
  .ft-search-input-suggestion--suggestion > *:not(ft-ripple) {
3072
3084
  position: relative;
3073
3085
  }
3074
3086
 
3075
- .ft-search-input-suggestion--suggestion[aria-selected="true"],
3076
- .ft-search-input-suggestion--suggestion:hover {
3077
- outline: none;
3078
- box-shadow: inset 3px 0 0 ${V.activeItemBorderColor};
3079
-
3080
- }
3081
-
3082
3087
  .ft-search-input-suggestion--suggestion ft-typography {
3083
3088
  display: block;
3084
3089
  flex-grow: 1;
@@ -3086,58 +3091,61 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3086
3091
  }
3087
3092
 
3088
3093
  ft-ripple {
3089
- ${R(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3094
+ ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3090
3095
  }
3091
- `});var Xr,Rx=u(()=>{"use strict";O();T();Ax();Ht();wr();rt();ke();Gt();du();Xr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Er.get();return b`
3096
+ `});var Xr,Lx=u(()=>{"use strict";O();T();Ax();Ht();wr();ot();ke();Gt();uu();Zt();Xr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let t=Er.get(),{recentQuerySuggestions:o}=this.ftSearchInput;return b`
3092
3097
  <div class="ft-search-input-suggestion ft-word-wrap"
3093
3098
  id="${this.listboxId}"
3094
3099
  role="listbox"
3095
- aria-label="${qr.messages.suggestionsLabel()}"
3100
+ aria-label="${Rr.messages.suggestionsLabel()}"
3096
3101
  part="container">
3097
- ${ve(this.ftSearchInput.suggestResults||[],t=>t.value,(t,o)=>this.renderSuggestion(o,t,e))}
3102
+ ${ge(o,n=>n,(n,a)=>this.renderRecentQuery(a,n,t))}
3103
+ ${ge((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,a)=>this.renderSuggestion(o.length+a,n,t))}
3098
3104
  </div>
3099
- `}renderSuggestion(e,t,o){let n=`suggestion-${e}`,a=b`
3100
- <ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
3101
- ${this.getIcon(t)}
3102
- <ft-typography variant="body1">${t.value}</ft-typography>
3103
- `;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:t.value},l=o.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return b`
3104
- <a href="${l}"
3105
+ `}renderRecentQuery(e,t,o){return this.renderOption(e,t,"history",at.material,!0,o)}renderSuggestion(e,t,o){let n=t.type==="DOCUMENT"?at.file_format:at.fluid_topics,a;switch(t.type){case"MAP":a=t.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":a=Za(t.mimeType,t.filenameExtension);break;case"TOPIC":a=Pe.TOPICS;break;case"HTML_PACKAGE":a=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":a=Pe.FILE_CODE;break}return this.renderOption(e,t.value,a,n,!1,o)}renderOption(e,t,o,n,a,s){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,f=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:t},this.ftSearchInput.launchSearchPath):k;return b`
3106
+ <div part="suggestion-container"
3107
+ class="ft-search-input-suggestion--container">
3108
+ <a href="${f}"
3105
3109
  part="suggestion"
3106
3110
  class="ft-search-input-suggestion--suggestion"
3107
3111
  role="option"
3108
- id="${n}"
3109
- aria-selected="${this.ftSearchInput.selectedSuggestOptionId===n}"
3112
+ id="suggestion-${e}"
3113
+ aria-selected="${l}"
3110
3114
  tabindex="-1"
3111
- aria-label="${a}"
3112
- @click=${()=>this.onSuggestSelected(t.value)}>
3113
- ${a}
3115
+ @click=${()=>this.onSelectOption(t)}
3116
+ >
3117
+ <ft-ripple ?activated=${l&&!d}></ft-ripple>
3118
+ <ft-icon variant="${n}" value="${o}" part="suggestion-icon"></ft-icon>
3119
+ <ft-typography variant="${fe.body1}">${t}</ft-typography>
3114
3120
  </a>
3115
- `}return b`
3116
- <div part="suggestion"
3117
- class="ft-search-input-suggestion--suggestion"
3118
- role="option"
3119
- id="${n}"
3120
- aria-selected="${this.ftSearchInput.selectedSuggestOptionId===n}"
3121
- tabindex="-1"
3122
- @click=${()=>this.onSuggestSelected(t.value)}>
3123
- ${a}
3121
+ ${a?b`
3122
+ <ft-button icon="${Pe.CLOSE}"
3123
+ round
3124
+ part="remove-suggestion"
3125
+ class="ft-search-input-suggestion--remove"
3126
+ id="remove-suggestion-${e}"
3127
+ label="${Rr.messages.removeRecentQuery(t)}"
3128
+ tooltipPosition="left"
3129
+ tabindex="-1"
3130
+ ?activated=${l&&d}
3131
+ @click=${()=>this.onRemoveRecentQuery(t)}>
3132
+ </ft-button>
3133
+ `:k}
3124
3134
  </div>
3125
- `}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let t=e.type==="DOCUMENT"?pt.file_format:pt.fluid_topics,o;switch(e.type){case"MAP":o=e.editorialType==="BOOK"?Fe.BOOK:Fe.ARTICLE;break;case"DOCUMENT":o=Za(e.mimeType,e.filenameExtension);break;case"TOPIC":o=Fe.TOPICS;break;case"HTML_PACKAGE":o=Fe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Fe.FILE_CODE;break}return b`
3126
- <ft-icon .variant=${t} .value=${o} part="suggestion-icon"></ft-icon>
3127
- `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};Xr.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe};Xr.styles=[dn,wx]});var st,Le,Gu=u(()=>{"use strict";T();O();kn();Do();Mt();du();G();et();Rx();lr();ke();Gt();qa();st=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends ut(Ft){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Xr(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(qr)}render(){var e,t,o;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(t=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Er.get().serializeToCurrentPageIfPossible(a,s);return b`
3128
- <div class="${he(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3135
+ `}onRemoveRecentQuery(e){var t;(t=this.ftSearchInput.stateManager)===null||t===void 0||t.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:t}=this.ftSearchInput;if(e!==void 0)return(t?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let t=this.activeElementId;if(t!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(t))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,t;return(t=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};Xr.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe,"ft-button":W};Xr.styles=[dn,Rx]});function SO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,xO)}var Ke,xO,Oe,Ku=u(()=>{"use strict";T();O();kn();Do();Mt();uu();K();tt();Lx();Zt();ke();Gt();qa();Ke=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xO=5;Oe=class extends pt(Ft){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Xr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let t=this.suggestions.optionsCount()>0,o={"ft-search-input":!0,"ft-search-input--with-suggestions":t,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},a=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(n,a),l=!this.forceCloseSuggestion&&this.displaySuggestListbox&&t;return b`
3136
+ <div class="${me(o)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3129
3137
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3130
3138
  <div class="ft-search-input--input-outline" part="input-outline">
3131
3139
  <input class="ft-search-input--input ft-typography--body2"
3132
3140
  part="input"
3133
3141
  type="search"
3134
- placeholder="${this.placeholder?this.placeholder.message:qr.messages.placeholder()}"
3135
- .value=${this.liveQuery}
3142
+ placeholder="${this.placeholder?this.placeholder.message:Rr.messages.placeholder()}"
3143
+ value="${this.liveQuery}"
3136
3144
  role="combobox"
3137
3145
  aria-autocomplete="list"
3138
3146
  aria-controls="${this.suggestions.listboxId}"
3139
3147
  aria-expanded="${this.displaySuggestListbox}"
3140
- aria-activedescendant="${(o=this.selectedSuggestOptionId)!==null&&o!==void 0?o:k}"
3148
+ aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:k}"
3141
3149
  @input=${this.onInput}
3142
3150
  @click=${this.onClick}
3143
3151
  @focus=${this.onFocus}
@@ -3145,9 +3153,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3145
3153
  @keyup=${this.onSearchBarKeyUp}>
3146
3154
  </div>
3147
3155
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3148
- ${this.renderLiveText()}
3156
+ ${l?Rr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
3149
3157
  </div>
3150
- ${this.shouldDisplaySuggestions?this.suggestions.render():k}
3158
+ ${l?this.suggestions.render():k}
3151
3159
  </div>
3152
3160
  <div class="ft-search-input--actions" part="actions">
3153
3161
  ${this.liveQuery?b`
@@ -3156,7 +3164,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3156
3164
  part="clear-query"
3157
3165
  icon="close"
3158
3166
  round dense
3159
- label="${qr.messages.clearButton()}"
3167
+ label="${Rr.messages.clearButton()}"
3160
3168
  @click=${()=>this.onClearInput()}
3161
3169
  ></ft-button>
3162
3170
  <div class="ft-search-input--separator"></div>
@@ -3165,80 +3173,80 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3165
3173
  part="launch-search-in-input"
3166
3174
  icon="search"
3167
3175
  round dense
3168
- label="${qr.messages.searchButton()}"
3169
- href="${this.useCustomSearchPath?l:""}"
3176
+ label="${Rr.messages.searchButton()}"
3177
+ href="${this.useCustomSearchPath?s:""}"
3170
3178
  @click=${()=>this.launchSearch(this.liveQuery)}
3171
3179
  ></ft-button>
3172
3180
  </div>
3173
3181
  </div>
3174
- `}renderLiveText(){return this.shouldDisplaySuggestions?qr.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let t=this.suggestions.selectedSuggestOption;if(t){t.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await Tr(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!bn&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};Le.elementDefinitions={"ft-button":K,...Xr.elementDefinitions};Le.styles=[Wr,bo,Yd,...Xr.styles,mi];st([pe()],Le.prototype,"request",void 0);st([pe()],Le.prototype,"liveQuery",void 0);st([pe()],Le.prototype,"suggestResults",void 0);st([I()],Le.prototype,"forceCloseSuggestion",void 0);st([I()],Le.prototype,"displaySuggestListbox",void 0);st([I()],Le.prototype,"selectedSuggestOptionId",void 0);st([h()],Le.prototype,"launchSearchPath",void 0);st([Li()],Le.prototype,"placeholder",void 0);st([h({type:Boolean})],Le.prototype,"useCustomSearchPath",void 0);st([h({type:Boolean})],Le.prototype,"triggerSearchOnClear",void 0);st([h({type:Boolean})],Le.prototype,"focusOnDisplay",void 0);st([B(".ft-search-input--input")],Le.prototype,"input",void 0);st([B('[part="launch-search-in-input"]')],Le.prototype,"launchSearchButton",void 0);st([_r()],Le.prototype,"onSearchBarKeyDown",null);st([_r()],Le.prototype,"onSearchBarKeyUp",null)});var Lx,kx=u(()=>{"use strict";Gu();Lx={"ft-search-input":Le}});var Tx=u(()=>{"use strict";O();kx();U(Lx)});var _x={};q(_x,{FtSearchInput:()=>Le,FtSearchInputCssVariables:()=>ge,styles:()=>Yd});var Ix=u(()=>{"use strict";kn();jb();Gu();Tx()});var bO,Ku,qu=u(()=>{"use strict";T();bO={},Ku=A`
3175
- `});var Px=u(()=>{"use strict"});var Zu,Nx=u(()=>{"use strict";Mt();Zu=ar.fromGwt("designedActionBlockAriaLabels")});var $x,Rr,Yu=u(()=>{"use strict";T();O();qu();lr();Do();Mt();Nx();Pi();$x=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Rr=class extends ut(Ft){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Zu)}render(){return this.isLastPage?k:b`
3182
+ `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let t=this.suggestions.activeElement;if(t){t.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t,o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e),(o=this.stateManager)===null||o===void 0||o.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await _r(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onPointerDown),this.focusOnDisplay&&!bn&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onPointerDown)}};Oe.elementDefinitions={"ft-button":W,...Xr.elementDefinitions};Oe.styles=[jr,bo,Yd,...Xr.styles,mi];Ke([pe()],Oe.prototype,"request",void 0);Ke([pe()],Oe.prototype,"liveQuery",void 0);Ke([pe()],Oe.prototype,"suggestResults",void 0);Ke([pe({selector:SO})],Oe.prototype,"recentQuerySuggestions",void 0);Ke([I()],Oe.prototype,"forceCloseSuggestion",void 0);Ke([I()],Oe.prototype,"displaySuggestListbox",void 0);Ke([I()],Oe.prototype,"selectedSuggestOptionIndex",void 0);Ke([I()],Oe.prototype,"selectedSuggestOptionRemove",void 0);Ke([h()],Oe.prototype,"launchSearchPath",void 0);Ke([Li()],Oe.prototype,"placeholder",void 0);Ke([h({type:Boolean})],Oe.prototype,"useCustomSearchPath",void 0);Ke([h({type:Boolean})],Oe.prototype,"triggerSearchOnClear",void 0);Ke([h({type:Boolean})],Oe.prototype,"focusOnDisplay",void 0);Ke([B(".ft-search-input--input")],Oe.prototype,"input",void 0);Ke([B('[part="launch-search-in-input"]')],Oe.prototype,"launchSearchButton",void 0);Ke([Ir()],Oe.prototype,"onSearchBarKeyDown",null);Ke([Ir()],Oe.prototype,"onSearchBarKeyUp",null)});var kx,Tx=u(()=>{"use strict";Ku();kx={"ft-search-input":Oe}});var _x=u(()=>{"use strict";O();Tx();U(kx)});var Ix={};q(Ix,{FtSearchInput:()=>Oe,FtSearchInputCssVariables:()=>ye,styles:()=>Yd});var Px=u(()=>{"use strict";kn();Gb();Ku();_x()});var CO,qu,Zu=u(()=>{"use strict";T();CO={},qu=R`
3183
+ `});var Nx=u(()=>{"use strict"});var Qu,$x=u(()=>{"use strict";Mt();Qu=sr.fromGwt("designedActionBlockAriaLabels")});var Dx,Lr,Yu=u(()=>{"use strict";T();O();Zu();Zt();Do();Mt();$x();Pi();Dx=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lr=class extends pt(Ft){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Qu)}render(){return this.isLastPage?k:b`
3176
3184
  <ft-button @click=${this.loadMore}>
3177
- ${Zu.messages.searchPageLoadMore()}
3185
+ ${Qu.messages.searchPageLoadMore()}
3178
3186
  </ft-button>
3179
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Rr.elementDefinitions={"ft-button":K};Rr.styles=Ku;$x([pe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Rr.prototype,"currentPage",void 0);$x([pe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Rr.prototype,"isLastPage",void 0)});var Dx,Mx=u(()=>{"use strict";Yu();Dx={"ft-search-load-more-button":Rr}});var Fx=u(()=>{"use strict";O();Mx();U(Dx)});var Bx={};q(Bx,{FtSearchLoadMoreButton:()=>Rr,FtSearchLoadMoreButtonCssVariables:()=>bO,styles:()=>Ku});var Ux=u(()=>{"use strict";qu();Px();Yu();Fx()});var zx=u(()=>{"use strict"});var xs,Xu,Qu,vO,Fi,Ju=u(()=>{"use strict";O();Do();G();xs=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Xu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Qu=Symbol("registerInterval"),vO=Oe(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Qu]):this.dispatchEvent(new Xu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Qu,xs([h({attribute:!1})],t.prototype,"cluster",void 0),xs([h({attribute:!1})],t.prototype,"result",void 0),xs([_t()],t.prototype,"rank",void 0),xs([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),Fi=class extends vO(Ft){}});var Bo,ep=u(()=>{"use strict";T();O();Ju();Ja();qi();ke();Bo=class extends Fi{render(){var e;let t=(e=It(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return t?b`
3180
- <ft-typography variant="${me.body1}" part="text">${so(t)}</ft-typography>
3187
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":W};Lr.styles=qu;Dx([pe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Lr.prototype,"currentPage",void 0);Dx([pe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Lr.prototype,"isLastPage",void 0)});var Mx,Fx=u(()=>{"use strict";Yu();Mx={"ft-search-load-more-button":Lr}});var Bx=u(()=>{"use strict";O();Fx();U(Mx)});var Ux={};q(Ux,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>CO,styles:()=>qu});var zx=u(()=>{"use strict";Zu();Nx();Yu();Bx()});var Hx=u(()=>{"use strict"});var Ss,Ju,Xu,OO,Fi,ep=u(()=>{"use strict";O();Do();K();Ss=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ju=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Xu=Symbol("registerInterval"),OO=Ee(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Xu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Xu]):this.dispatchEvent(new Ju)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Xu,Ss([h({attribute:!1})],t.prototype,"cluster",void 0),Ss([h({attribute:!1})],t.prototype,"result",void 0),Ss([_t()],t.prototype,"rank",void 0),Ss([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),Fi=class extends OO(Ft){}});var Bo,tp=u(()=>{"use strict";T();O();ep();Ja();qi();ke();Bo=class extends Fi{render(){var e;let t=(e=It(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return t?b`
3188
+ <ft-typography variant="${fe.body1}" part="text">${so(t)}</ft-typography>
3181
3189
  `:b`
3182
3190
  <style>
3183
3191
  :host {
3184
3192
  display: none !important;
3185
3193
  }
3186
3194
  </style>
3187
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Bo.elementDefinitions={"ft-typography":ie};Bo.styles=Qd});var Hx,Vx=u(()=>{"use strict";ep();Hx={"ft-search-result-abstract":Bo}});var Wx=u(()=>{"use strict";O();Vx();U(Hx)});var jx={};q(jx,{FtSearchResultAbstract:()=>Bo,FtSearchResultAbstractCssVariables:()=>Xa,styles:()=>Qd});var tp=u(()=>{"use strict";Ja();zx();ep();Wx()});var Gx=u(()=>{"use strict"});var xO,Jr,rp=u(()=>{"use strict";T();G();O();Ju();ts();ke();qi();tu();_n();xO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Jr=class extends Fi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3195
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Bo.elementDefinitions={"ft-typography":ie};Bo.styles=Xd});var Vx,Wx=u(()=>{"use strict";tp();Vx={"ft-search-result-abstract":Bo}});var jx=u(()=>{"use strict";O();Wx();U(Vx)});var Gx={};q(Gx,{FtSearchResultAbstract:()=>Bo,FtSearchResultAbstractCssVariables:()=>Xa,styles:()=>Xd});var rp=u(()=>{"use strict";Ja();Hx();tp();jx()});var Kx=u(()=>{"use strict"});var EO,Jr,op=u(()=>{"use strict";T();K();O();ep();ts();ke();qi();ru();_n();EO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Jr=class extends Fi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3188
3196
  <a href="${os(this.result)}"
3189
3197
  @click=${this.onResultClick}
3190
3198
  @auxclick=${t=>this.onAuxClick(t)}
3191
3199
  @contextmenu=${this.onContextMenu}
3192
- target="${kb(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3200
+ target="${Tb(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3193
3201
  part="link">
3194
3202
  ${this.renderTitle()}
3195
3203
  </a>
3196
3204
  `:k}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return b`
3197
- <ft-typography variant="${me.title}" part="text">${so((e=It(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3198
- `}onResultClick(){this.dispatchEvent(new _i(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Ii(this.result,this.rank))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":ie};Jr.styles=Xd;xO([h({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Kx,qx=u(()=>{"use strict";rp();Kx={"ft-search-result-title":Jr}});var Zx=u(()=>{"use strict";O();qx();U(Kx)});var Yx={};q(Yx,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>es,styles:()=>Xd});var op=u(()=>{"use strict";ts();Gx();rp();Zx()});var SO,ip,np=u(()=>{"use strict";T();SO={},ip=A`
3205
+ <ft-typography variant="${fe.title}" part="text">${so((e=It(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3206
+ `}onResultClick(){this.dispatchEvent(new _i(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Ii(this.result,this.rank))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":ie};Jr.styles=Jd;EO([h({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var qx,Zx=u(()=>{"use strict";op();qx={"ft-search-result-title":Jr}});var Qx=u(()=>{"use strict";O();Zx();U(qx)});var Yx={};q(Yx,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>es,styles:()=>Jd});var ip=u(()=>{"use strict";ts();Kx();op();Qx()});var wO,np,ap=u(()=>{"use strict";T();wO={},np=R`
3199
3207
  [part="no-results-message"] {
3200
3208
  text-align: center;
3201
3209
  padding: 12px;
3202
3210
  }
3203
- `});var Qx=u(()=>{"use strict"});var Xx,ap=u(()=>{"use strict";T();Xx=A`
3211
+ `});var Xx=u(()=>{"use strict"});var Jx,sp=u(()=>{"use strict";T();Jx=R`
3204
3212
  a {
3205
3213
  color: inherit;
3206
3214
  text-decoration: inherit;
3207
3215
  }
3208
- `});var Jx=u(()=>{"use strict"});var Ss,e0=u(()=>{"use strict";Ss=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var Cs,sp,fr,lp=u(()=>{"use strict";T();G();O();ap();e0();Cs=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},sp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},fr=class extends F{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Ss(e=>this.onResultSelected(e))}render(){return b`
3216
+ `});var e0=u(()=>{"use strict"});var Cs,t0=u(()=>{"use strict";Cs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var Os,lp,fr,cp=u(()=>{"use strict";T();K();O();sp();t0();Os=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},fr=class extends F{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Cs(e=>this.onResultSelected(e))}render(){return b`
3209
3217
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3210
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new sp(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Xx;Cs([h({attribute:!1})],fr.prototype,"cluster",void 0);Cs([h({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);Cs([I()],fr.prototype,"result",void 0);Cs([h()],fr.prototype,"index",void 0)});var t0,r0=u(()=>{"use strict";lp();t0={"ft-search-result-context":fr}});var o0=u(()=>{"use strict";O();r0();U(t0)});var i0=u(()=>{"use strict";ap();Jx();lp();o0()});var Bi,n0,cp=u(()=>{"use strict";Mt();Bi=ar.build("searchResultsNumber"),n0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,At,dp=u(()=>{"use strict";T();Ht();G();O();np();Do();i0();op();tp();Mt();cp();Pi();Uo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},At=class extends ut(Ft){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3218
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new lp(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Jx;Os([h({attribute:!1})],fr.prototype,"cluster",void 0);Os([h({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);Os([I()],fr.prototype,"result",void 0);Os([h()],fr.prototype,"index",void 0)});var r0,o0=u(()=>{"use strict";cp();r0={"ft-search-result-context":fr}});var i0=u(()=>{"use strict";O();o0();U(r0)});var n0=u(()=>{"use strict";sp();e0();cp();i0()});var Bi,a0,dp=u(()=>{"use strict";Mt();Bi=sr.build("searchResultsNumber"),a0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,Rt,up=u(()=>{"use strict";T();Ht();K();O();ap();Do();n0();ip();rp();Mt();dp();Pi();Uo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Rt=class extends pt(Ft){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3211
3219
  <ft-search-result-title></ft-search-result-title>
3212
3220
  <ft-search-result-abstract></ft-search-result-abstract>
3213
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Bi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
3221
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
3214
3222
  <ft-typography part="no-results-message" variant="body1">${Bi.messages.results(0)}</ft-typography>
3215
- `;let e=this.buildClusters();return ve(e,t=>t.id,(t,o)=>{var n;return b`
3223
+ `;let e=this.buildClusters();return ge(e,t=>t.id,(t,o)=>{var n;return b`
3216
3224
  <ft-search-result-context .cluster=${t} index="${o}"
3217
3225
  @ft-search-result-cluster-change=${a=>this.onClusterChange(t.id,a.detail)}>
3218
3226
  ${this.renderResult((n=this.selectedResultByCluster[t.id])!==null&&n!==void 0?n:t.entries[0],o)}
3219
3227
  </ft-search-result-context>
3220
- `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let o=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");o&&Tc.scrollIntoViewIfPossible(o,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(o=>({id:ta(o.entries[0]),entries:o.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,o;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:ta(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(o=this.paging.perPage)!==null&&o!==void 0?o:20):n}};At.styles=ip;Uo([h({type:String,attribute:"cluster-policy"})],At.prototype,"clusterPolicy",void 0);Uo([h({type:Boolean})],At.prototype,"displayNoResultsMessage",void 0);Uo([h({attribute:!1})],At.prototype,"renderResult",void 0);Uo([de([])],At.prototype,"clusterSortCriterion",void 0);Uo([pe({selector:r=>({...r.request,paging:void 0})})],At.prototype,"requestWithoutPaging",void 0);Uo([pe({selector:r=>r.request.paging})],At.prototype,"paging",void 0);Uo([pe()],At.prototype,"results",void 0)});var a0,s0=u(()=>{"use strict";dp();a0={"ft-search-results":At}});var l0=u(()=>{"use strict";O();s0();U(a0)});var c0={};q(c0,{FtSearchResults:()=>At,FtSearchResultsCssVariables:()=>SO,styles:()=>ip});var d0=u(()=>{"use strict";np();Qx();dp();l0()});var CO,up,pp=u(()=>{"use strict";T();CO={},up=A`
3228
+ `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let o=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");o&&_c.scrollIntoViewIfPossible(o,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(o=>({id:ta(o.entries[0]),entries:o.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,o;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:ta(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(o=this.paging.perPage)!==null&&o!==void 0?o:20):n}};Rt.styles=np;Uo([h({type:String,attribute:"cluster-policy"})],Rt.prototype,"clusterPolicy",void 0);Uo([h({type:Boolean})],Rt.prototype,"displayNoResultsMessage",void 0);Uo([h({attribute:!1})],Rt.prototype,"renderResult",void 0);Uo([de([])],Rt.prototype,"clusterSortCriterion",void 0);Uo([pe({selector:r=>({...r.request,paging:void 0})})],Rt.prototype,"requestWithoutPaging",void 0);Uo([pe({selector:r=>r.request.paging})],Rt.prototype,"paging",void 0);Uo([pe()],Rt.prototype,"results",void 0)});var s0,l0=u(()=>{"use strict";up();s0={"ft-search-results":Rt}});var c0=u(()=>{"use strict";O();l0();U(s0)});var d0={};q(d0,{FtSearchResults:()=>Rt,FtSearchResultsCssVariables:()=>wO,styles:()=>np});var u0=u(()=>{"use strict";ap();Xx();up();c0()});var RO,pp,fp=u(()=>{"use strict";T();RO={},pp=R`
3221
3229
 
3222
- `});var u0=u(()=>{"use strict"});var p0,Lr,fp=u(()=>{"use strict";T();O();pp();Do();Mt();cp();ke();Pi();p0=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lr=class extends gn(ut(Ft)){constructor(){super(),this.ariaNotificationDebouncer=new ne(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Bi,n0)}render(){return this.paging==null?k:b`
3223
- <ft-typography variant="${me.body1}">
3230
+ `});var p0=u(()=>{"use strict"});var f0,kr,hp=u(()=>{"use strict";T();O();fp();Do();Mt();dp();ke();Pi();f0=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},kr=class extends gn(pt(Ft)){constructor(){super(),this.ariaNotificationDebouncer=new ne(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi,a0)}render(){return this.paging==null?k:b`
3231
+ <ft-typography variant="${fe.body1}">
3224
3232
  ${Bi.messages.results(this.paging.totalClustersCount)}
3225
3233
  </ft-typography>
3226
- `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let t=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(t)}})}};Lr.elementDefinitions={"ft-typography":ie};Lr.styles=up;p0([de({context:"officialContext",key:"searchNumberOfResults"})],Lr.prototype,"searchNumberOfResults",void 0);p0([pe()],Lr.prototype,"paging",void 0)});var f0,h0=u(()=>{"use strict";fp();f0={"ft-search-results-number":Lr}});var m0=u(()=>{"use strict";O();h0();U(f0)});var g0={};q(g0,{FtSearchResultsNumber:()=>Lr,FtSearchResultsNumberCssVariables:()=>CO,styles:()=>up});var y0=u(()=>{"use strict";pp();u0();fp();m0()});O();T();O();T();O();T();O();Sr();var fe={padding:i.create("--ft-card-padding","","SIZE","12px"),borderRadius:i.extend("--ft-card-border-radius","",S.borderRadiusM),borderStyle:i.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:i.extend("--ft-card-border-color","",S.colorOutline),hoverBorderColor:i.extend("--ft-card-hover-border-color","",S.colorPrimary),outlineStyle:i.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:i.create("--ft-card-outline-width","","SIZE","0"),outlineColor:i.extend("--ft-card-outline-color","",S.colorPrimary),selectedOutlineStyle:i.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:i.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:i.extend("--ft-card-selected-outline-color","",S.colorPrimary),selectedBorderRadius:i.extend("--ft-card-selected-border-radius","",S.borderRadiusM),colorSurface:i.extend("--ft-card-background-color","",S.colorSurface),colorOnSurfaceMedium:i.extend("--ft-card-content-color","",S.colorOnSurfaceMedium),colorOnSurfaceHigh:i.extend("--ft-card-title-color","",S.colorOnSurfaceHigh),elevation02:i.extend("--ft-card-elevation","",S.elevation02),elevation04:i.extend("--ft-card-selected-elevation","",S.elevation04)},Hg=A`
3234
+ `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let t=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(t)}})}};kr.elementDefinitions={"ft-typography":ie};kr.styles=pp;f0([de({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);f0([pe()],kr.prototype,"paging",void 0)});var h0,m0=u(()=>{"use strict";hp();h0={"ft-search-results-number":kr}});var g0=u(()=>{"use strict";O();m0();U(h0)});var y0={};q(y0,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>RO,styles:()=>pp});var b0=u(()=>{"use strict";fp();p0();hp();g0()});O();T();O();T();O();T();O();Sr();var he={padding:i.create("--ft-card-padding","","SIZE","12px"),borderRadius:i.extend("--ft-card-border-radius","",S.borderRadiusM),borderStyle:i.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:i.extend("--ft-card-border-color","",S.colorOutline),hoverBorderColor:i.extend("--ft-card-hover-border-color","",S.colorPrimary),outlineStyle:i.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:i.create("--ft-card-outline-width","","SIZE","0"),outlineColor:i.extend("--ft-card-outline-color","",S.colorPrimary),selectedOutlineStyle:i.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:i.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:i.extend("--ft-card-selected-outline-color","",S.colorPrimary),selectedBorderRadius:i.extend("--ft-card-selected-border-radius","",S.borderRadiusM),colorSurface:i.extend("--ft-card-background-color","",S.colorSurface),colorOnSurfaceMedium:i.extend("--ft-card-content-color","",S.colorOnSurfaceMedium),colorOnSurfaceHigh:i.extend("--ft-card-title-color","",S.colorOnSurfaceHigh),elevation02:i.extend("--ft-card-elevation","",S.elevation02),elevation04:i.extend("--ft-card-selected-elevation","",S.elevation04)},Vg=R`
3227
3235
  :host {
3228
3236
  display: block;
3229
3237
  }
3230
3238
 
3231
3239
  #container {
3232
- padding: ${fe.padding};
3233
- outline-style: ${fe.outlineStyle};
3234
- outline-width: ${fe.outlineWidth};
3235
- outline-color: ${fe.outlineColor};
3236
- border-color: ${fe.borderColor};
3237
- border-style: ${fe.borderStyle};
3240
+ padding: ${he.padding};
3241
+ outline-style: ${he.outlineStyle};
3242
+ outline-width: ${he.outlineWidth};
3243
+ outline-color: ${he.outlineColor};
3244
+ border-color: ${he.borderColor};
3245
+ border-style: ${he.borderStyle};
3238
3246
  border-width: 1px;
3239
- border-radius: ${fe.borderRadius};
3240
- ${R(le.borderRadius,fe.borderRadius)};
3241
- box-shadow: ${fe.elevation02};
3247
+ border-radius: ${he.borderRadius};
3248
+ ${A(le.borderRadius,he.borderRadius)};
3249
+ box-shadow: ${he.elevation02};
3242
3250
  position: relative;
3243
3251
  width: 100%;
3244
3252
  height: 100%;
@@ -3250,7 +3258,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3250
3258
  grid-template-rows: max-content minmax(0, 1fr);
3251
3259
  grid-gap: 8px;
3252
3260
  box-sizing: border-box;
3253
- background-color: ${fe.colorSurface};
3261
+ background-color: ${he.colorSurface};
3254
3262
  transition: box-shadow 0.2s linear, color 0.2s linear;
3255
3263
  }
3256
3264
 
@@ -3272,12 +3280,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3272
3280
  }
3273
3281
 
3274
3282
  #container.selected {
3275
- outline-style: ${fe.selectedOutlineStyle};
3276
- outline-width: ${fe.selectedOutlineWidth};
3277
- outline-color: ${fe.selectedOutlineColor};
3278
- border-radius: ${fe.selectedBorderRadius};
3279
- ${R(le.borderRadius,fe.selectedBorderRadius)};
3280
- box-shadow: ${fe.elevation04};
3283
+ outline-style: ${he.selectedOutlineStyle};
3284
+ outline-width: ${he.selectedOutlineWidth};
3285
+ outline-color: ${he.selectedOutlineColor};
3286
+ border-radius: ${he.selectedBorderRadius};
3287
+ ${A(le.borderRadius,he.selectedBorderRadius)};
3288
+ box-shadow: ${he.elevation04};
3281
3289
  }
3282
3290
 
3283
3291
  #container.clickable {
@@ -3285,13 +3293,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3285
3293
  }
3286
3294
 
3287
3295
  #container.clickable:hover {
3288
- box-shadow: ${fe.elevation04};
3289
- border-color: ${fe.hoverBorderColor};
3296
+ box-shadow: ${he.elevation04};
3297
+ border-color: ${he.hoverBorderColor};
3290
3298
  }
3291
3299
 
3292
3300
  #header {
3293
3301
  grid-area: header;
3294
- color: ${fe.colorOnSurfaceHigh};
3302
+ color: ${he.colorOnSurfaceHigh};
3295
3303
  text-overflow: ellipsis;
3296
3304
  overflow: hidden;
3297
3305
  word-break: break-word;
@@ -3306,13 +3314,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3306
3314
  word-break: break-word;
3307
3315
  min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
3308
3316
  grid-area: content;
3309
- color: ${fe.colorOnSurfaceMedium};
3317
+ color: ${he.colorOnSurfaceMedium};
3310
3318
  }
3311
3319
 
3312
3320
  #action {
3313
3321
  grid-area: actions;
3314
3322
  }
3315
- `;kn();Ja();Sr();ts();var Qe={searchFieldBackgroundColor:i.extend("--ft-rsid-search-field-background-color","",S.colorSurface),searchFieldBorderColor:i.extend("--ft-rsid-search-field-border-color","",S.colorOutline),searchFieldTextColor:i.extend("--ft-rsid-search-field-text-color","",S.colorOnSurface),searchFieldBorderRadius:i.extend("--ft-rsid-search-field-border-radius","",S.borderRadiusS),searchButtonColor:i.extend("--ft-rsid-search-field-button-color","",S.colorPrimary),resultsNumberColor:i.extend("--ft-rsid-results-number-color","",S.colorOnSurfaceMedium),resultBackgroundColor:i.extend("--ft-rsid-result-background-color","",S.colorSurface),resultBorderColor:i.extend("--ft-rsid-result-border-color","",S.colorOutline),resultBorderRadius:i.extend("--ft-rsid-result-border-radius","",S.borderRadiusS),resultTitleTextColor:i.extend("--ft-rsid-result-title-text-color","",S.colorOnSurface),resultBreadcrumbTextColor:i.extend("--ft-rsid-result-breadcrumb-text-color","",S.colorOnSurfaceMedium),resultContentTextColor:i.extend("--ft-rsid-result-content-text-color","",S.colorOnSurface),resultHighlightBackgroundColor:i.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:i.extend("--ft-rsid-result-hover-background-color","",S.colorPrimary),resultHoverBorderColor:i.extend("--ft-rsid-result-hover-border-color","",S.colorPrimary)},Eb=A`
3323
+ `;kn();Ja();Sr();ts();var Xe={searchFieldBackgroundColor:i.extend("--ft-rsid-search-field-background-color","",S.colorSurface),searchFieldBorderColor:i.extend("--ft-rsid-search-field-border-color","",S.colorOutline),searchFieldTextColor:i.extend("--ft-rsid-search-field-text-color","",S.colorOnSurface),searchFieldBorderRadius:i.extend("--ft-rsid-search-field-border-radius","",S.borderRadiusS),searchButtonColor:i.extend("--ft-rsid-search-field-button-color","",S.colorPrimary),resultsNumberColor:i.extend("--ft-rsid-results-number-color","",S.colorOnSurfaceMedium),resultBackgroundColor:i.extend("--ft-rsid-result-background-color","",S.colorSurface),resultBorderColor:i.extend("--ft-rsid-result-border-color","",S.colorOutline),resultBorderRadius:i.extend("--ft-rsid-result-border-radius","",S.borderRadiusS),resultTitleTextColor:i.extend("--ft-rsid-result-title-text-color","",S.colorOnSurface),resultBreadcrumbTextColor:i.extend("--ft-rsid-result-breadcrumb-text-color","",S.colorOnSurfaceMedium),resultContentTextColor:i.extend("--ft-rsid-result-content-text-color","",S.colorOnSurface),resultHighlightBackgroundColor:i.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:i.extend("--ft-rsid-result-hover-background-color","",S.colorPrimary),resultHoverBorderColor:i.extend("--ft-rsid-result-hover-border-color","",S.colorPrimary)},wb=R`
3316
3324
  .ft-search-in-doc--container {
3317
3325
  display: flex;
3318
3326
  flex-direction: column;
@@ -3320,11 +3328,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3320
3328
  }
3321
3329
 
3322
3330
  ft-search-input {
3323
- ${R(ge.colorSurface,Qe.searchFieldBackgroundColor)};
3324
- ${R(ge.colorOutline,Qe.searchFieldBorderColor)};
3325
- ${R(ge.colorOnSurface,Qe.searchFieldTextColor)};
3326
- ${R(ge.borderRadius,Qe.searchFieldBorderRadius)};
3327
- ${R(ge.buttonColor,Qe.searchButtonColor)};
3331
+ ${A(ye.colorSurface,Xe.searchFieldBackgroundColor)};
3332
+ ${A(ye.colorOutline,Xe.searchFieldBorderColor)};
3333
+ ${A(ye.colorOnSurface,Xe.searchFieldTextColor)};
3334
+ ${A(ye.borderRadius,Xe.searchFieldBorderRadius)};
3335
+ ${A(ye.buttonColor,Xe.searchButtonColor)};
3328
3336
  }
3329
3337
 
3330
3338
  ft-search-results-number {
@@ -3332,41 +3340,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3332
3340
  }
3333
3341
 
3334
3342
  ft-search-results-number, ft-search-results::part(no-results-message) {
3335
- color: ${Qe.resultsNumberColor};
3343
+ color: ${Xe.resultsNumberColor};
3336
3344
  }
3337
3345
 
3338
3346
  ft-search-load-more-button {
3339
3347
  margin: auto;
3340
3348
  }
3341
- `,wb=A`
3349
+ `,Rb=R`
3342
3350
  ft-card {
3343
3351
  margin-bottom: 8px;
3344
- ${R(fe.elevation04,"none")};
3345
- ${R(fe.elevation02,"none")};
3346
- ${R(fe.borderStyle,"solid")};
3347
- ${R(fe.borderRadius,S.borderRadiusS)};
3348
- ${R(fe.colorSurface,Qe.resultBackgroundColor)};
3349
- ${R(fe.borderColor,Qe.resultBorderColor)};
3350
- ${R(fe.borderRadius,Qe.resultBorderRadius)};
3352
+ ${A(he.elevation04,"none")};
3353
+ ${A(he.elevation02,"none")};
3354
+ ${A(he.borderStyle,"solid")};
3355
+ ${A(he.borderRadius,S.borderRadiusS)};
3356
+ ${A(he.colorSurface,Xe.resultBackgroundColor)};
3357
+ ${A(he.borderColor,Xe.resultBorderColor)};
3358
+ ${A(he.borderRadius,Xe.resultBorderRadius)};
3351
3359
  }
3352
3360
 
3353
3361
  ft-search-result-title {
3354
- color: ${Qe.resultTitleTextColor};
3355
- ${R(es.highlightBackgroundColor,Qe.resultHighlightBackgroundColor)};
3362
+ color: ${Xe.resultTitleTextColor};
3363
+ ${A(es.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3356
3364
  }
3357
3365
 
3358
3366
  .breadcrumb {
3359
- color: ${Qe.resultBreadcrumbTextColor};
3367
+ color: ${Xe.resultBreadcrumbTextColor};
3360
3368
  }
3361
3369
 
3362
3370
  ft-search-result-abstract {
3363
- color: ${Qe.resultContentTextColor};
3364
- ${R(Xa.highlightBackgroundColor,Qe.resultHighlightBackgroundColor)};
3371
+ color: ${Xe.resultContentTextColor};
3372
+ ${A(Xa.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3365
3373
  }
3366
3374
 
3367
3375
  ft-card:hover {
3368
- ${R(fe.hoverBorderColor,Qe.resultHoverBorderColor)};
3369
- ${R(le.color,Qe.resultHoverBackgroundColor)};
3376
+ ${A(he.hoverBorderColor,Xe.resultHoverBorderColor)};
3377
+ ${A(le.color,Xe.resultHoverBackgroundColor)};
3370
3378
  }
3371
3379
 
3372
3380
  .result-container {
@@ -3379,8 +3387,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3379
3387
  text-decoration: none;
3380
3388
  color: inherit;
3381
3389
  }
3382
- `;Mt();O();G();var Ab;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ab||(Ab={}));var Rb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Rb||(Rb={}));var cO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},eu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Jd=Symbol("registerInterval"),dO=Oe(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=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[Jd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Jd]):this.dispatchEvent(new eu)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Jd,cO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends dO(vt){};G();tu();Mt();var ru=ar.build("designedReaderSearchInDocument");T();G();O();rt();ke();et();var Ti=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ft=class extends F{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return b`
3383
- <div id="container" part="container" class="${he(e)}">
3390
+ `;Mt();O();K();var Ab;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ab||(Ab={}));var Lb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Lb||(Lb={}));var dO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},tu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},eu=Symbol("registerInterval"),uO=Ee(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=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[eu]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[eu]):this.dispatchEvent(new tu)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=eu,dO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends uO(vt){};K();ru();Mt();var ou=sr.build("designedReaderSearchInDocument");T();K();O();ot();ke();tt();var Ti=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ft=class extends F{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return b`
3391
+ <div id="container" part="container" class="${me(e)}">
3384
3392
  ${this.clickable?b`
3385
3393
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
3386
3394
  `:k}
@@ -3397,8 +3405,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3397
3405
  </ft-typography>
3398
3406
  </div>
3399
3407
  </div>
3400
- `}};ft.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};ft.styles=Hg;Ti([h()],ft.prototype,"title",void 0);Ti([h({type:Boolean})],ft.prototype,"clickable",void 0);Ti([h({type:Boolean})],ft.prototype,"selected",void 0);Ti([h({type:Boolean})],ft.prototype,"noHeader",void 0);Ti([h({type:Boolean})],ft.prototype,"noContent",void 0);Ti([h({type:Boolean})],ft.prototype,"oneLineHeader",void 0);O();var Tb={"ft-card":ft};U(Tb);_n();ke();qa();var hr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Je=class r extends ut(rs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=Js(6,"search-in-document-"),this.addI18nContext(ru)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var o;return b`
3401
- <style> ${wb}</style>
3408
+ `}};ft.elementDefinitions={"ft-ripple":Z,"ft-typography":ie};ft.styles=Vg;Ti([h()],ft.prototype,"title",void 0);Ti([h({type:Boolean})],ft.prototype,"clickable",void 0);Ti([h({type:Boolean})],ft.prototype,"selected",void 0);Ti([h({type:Boolean})],ft.prototype,"noHeader",void 0);Ti([h({type:Boolean})],ft.prototype,"noContent",void 0);Ti([h({type:Boolean})],ft.prototype,"oneLineHeader",void 0);O();var _b={"ft-card":ft};U(_b);_n();ke();qa();var hr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},et=class r extends pt(rs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=el(6,"search-in-document-"),this.addI18nContext(ou)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var o;return b`
3409
+ <style> ${Rb}</style>
3402
3410
  <a href="${os(e)}" @click=${()=>this.onLinkClick(e,t)}
3403
3411
  @auxclick=${n=>this.onAuxClick(n,e,t)}
3404
3412
  @contextmenu=${()=>this.onContextMenu(e,t)}>
@@ -3407,7 +3415,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3407
3415
  ${this.hideResultTitle?k:b`
3408
3416
  <ft-search-result-title withoutLink="true"></ft-search-result-title>`}
3409
3417
  ${this.hideResultBreadcrumb?k:b`
3410
- <ft-typography class="breadcrumb" variant="${me.caption}">${(o=e.topic)===null||o===void 0?void 0:o.breadcrumb.join(" > ")}</ft-typography>
3418
+ <ft-typography class="breadcrumb" variant="${fe.caption}">${(o=e.topic)===null||o===void 0?void 0:o.breadcrumb.join(" > ")}</ft-typography>
3411
3419
  `}
3412
3420
  ${this.hideResultAbstract?k:b`
3413
3421
  <ft-search-result-abstract></ft-search-result-abstract>
@@ -3424,7 +3432,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3424
3432
  scope="ALL_TOPICS"
3425
3433
  ignoreEmptyQuery>
3426
3434
  <div class="ft-search-in-doc--container">
3427
- <ft-search-input placeholder="${this.placeholder?this.placeholder.message:ru.messages.placeholder()}"
3435
+ <ft-search-input placeholder="${this.placeholder?this.placeholder.message:ou.messages.placeholder()}"
3428
3436
  ?triggerSearchOnClear=${this.emptyResultOnClear}
3429
3437
  @change=${e=>{var t;(t=this.stateManager)===null||t===void 0||t.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
3430
3438
  ${this.hideResultsNumber?k:b`
@@ -3439,7 +3447,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3439
3447
  </slot>
3440
3448
  </div>
3441
3449
  </ft-search-context>
3442
- `:k}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){Tr(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new _i(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Wb(),Vb)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Ix(),_x)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(Ux(),Bx)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(tp(),jx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(op(),Yx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(d0(),c0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(y0(),g0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};Je.elementDefinitions={"ft-card":ft};Je.styles=Eb;hr([pe()],Je.prototype,"map",void 0);hr([pe()],Je.prototype,"searchInDocumentQuery",void 0);hr([B("ft-search-results")],Je.prototype,"searchResults",void 0);hr([h({type:Boolean})],Je.prototype,"hideResultTitle",void 0);hr([h({type:Boolean})],Je.prototype,"hideResultBreadcrumb",void 0);hr([h({type:Boolean})],Je.prototype,"hideResultAbstract",void 0);hr([h({type:Boolean})],Je.prototype,"hideResultsNumber",void 0);hr([h({type:Boolean})],Je.prototype,"emptyResultOnClear",void 0);hr([B('[part="search-context"]')],Je.prototype,"searchContext",void 0);hr([Li()],Je.prototype,"placeholder",void 0);var b0={"ft-reader-search-in-document":Je};U(b0);})();
3450
+ `:k}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){_r(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new _i(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(jb(),Wb)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Px(),Ix)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(zx(),Ux)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(rp(),Gx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(ip(),Yx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(u0(),d0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(b0(),y0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};et.elementDefinitions={"ft-card":ft};et.styles=wb;hr([pe()],et.prototype,"map",void 0);hr([pe()],et.prototype,"searchInDocumentQuery",void 0);hr([B("ft-search-results")],et.prototype,"searchResults",void 0);hr([h({type:Boolean})],et.prototype,"hideResultTitle",void 0);hr([h({type:Boolean})],et.prototype,"hideResultBreadcrumb",void 0);hr([h({type:Boolean})],et.prototype,"hideResultAbstract",void 0);hr([h({type:Boolean})],et.prototype,"hideResultsNumber",void 0);hr([h({type:Boolean})],et.prototype,"emptyResultOnClear",void 0);hr([B('[part="search-context"]')],et.prototype,"searchContext",void 0);hr([Li()],et.prototype,"placeholder",void 0);var v0={"ft-reader-search-in-document":et};U(v0);})();
3443
3451
  /*! Bundled license information:
3444
3452
 
3445
3453
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: