@fluid-topics/ft-search-input 2.2.35 → 2.2.37

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 sf=Object.defineProperty;var q=(t,e)=>{for(var r in e)sf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,s=new WeakMap,a=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(x,y){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=y.prototype.attributeChangedCallback,I=new Set(y.observedAttributes||[]);g(y,I,C);let V={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,V),this._definitionsByClass.set(y,V);let te=r.call(i,x);te||(te=h(x),e.call(i,x,te)),this===window.customElements&&(a.set(y,V),V.standInClass=te);let he=this._awaitingUpgrade.get(x);if(he){this._awaitingUpgrade.delete(x);for(let Q of he)s.delete(Q),E(Q,V,!0)}let $=this._whenDefinedPromises.get(x);return $!==void 0&&($.resolve(y),this._whenDefinedPromises.delete(x)),y}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let y=this._getDefinition(x);if(y!==void 0)return Promise.resolve(y.elementClass);let C=this._whenDefinedPromises.get(x);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(x,C)),C.promise}_upgradeWhenDefined(x,y,C){let I=this._awaitingUpgrade.get(y);I||this._awaitingUpgrade.set(y,I=new Set),C?I.add(x):I.delete(x)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let C=a.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),n.set(y,C),y},window.HTMLElement.prototype=t.prototype;let p=x=>x===document||x instanceof ShadowRoot,m=x=>{let y=x.getRootNode();if(!p(y)){let C=R[R.length-1];if(C instanceof CustomElementRegistry)return C;y=C.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=x=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=m(C)||window.customElements,V=I._getDefinition(x);return V?E(C,V):s.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(x,y,C)=>{if(y.size===0||C===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(he,$){let Q=he.toLowerCase();if(y.has(Q)){let Ce=this.getAttribute(Q);I.call(this,Q,$),C.call(this,Q,Ce,$)}else I.call(this,Q,$)});let V=x.prototype.removeAttribute;V&&(x.prototype.removeAttribute=function(he){let $=he.toLowerCase();if(y.has($)){let Q=this.getAttribute($);V.call(this,$),C.call(this,$,Q,null)}else V.call(this,$)});let te=x.prototype.toggleAttribute;te&&(x.prototype.toggleAttribute=function(he,$){let Q=he.toLowerCase();if(y.has(Q)){let Ce=this.getAttribute(Q);te.call(this,Q,$);let Ct=this.getAttribute(Q);C.call(this,Q,Ce,Ct)}else te.call(this,Q,$)})},v=x=>{let y=Object.getPrototypeOf(x);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(x,window.HTMLElement):v(y)},E=(x,y,C=!1)=>{Object.setPrototypeOf(x,y.elementClass.prototype),n.set(x,y),d=x;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(I=>{x.hasAttribute(I)&&y.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),C&&y.connectedCallback&&x.isConnected&&y.connectedCallback.call(x)},T=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let y=T.apply(this,arguments);return x.customElements&&(y.customElements=x.customElements),y};let R=[document],N=(x,y,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):x.prototype)[y];x.prototype[y]=function(){R.push(this);let V=I.apply(C||this,arguments);return V!==void 0&&l.set(V,this),R.pop(),V}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let M=(x,y)=>{let C=Object.getOwnPropertyDescriptor(x.prototype,y);Object.defineProperty(x.prototype,y,{...C,set(I){R.push(this),C.set.call(this,I),R.pop()}})};if(M(Element,"innerHTML"),M(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let x=new WeakMap,y=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...he){let $=y.call(this,...he);return x.set($,this),$},C.forEach(he=>{let $=window.ElementInternals.prototype,Q=$[he];$[he]=function(...Ce){let Ct=x.get(this);if(n.get(Ct).formAssociated===!0)return Q?.call(this,...Ce);throw new DOMException(`Failed to execute ${Q} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor($){super(...$),this._elements=$}get value(){return this._elements.find($=>$.checked===!0)?.value||""}}class V{constructor($){let Q=new Map;$.forEach((Ce,Ct)=>{let Tn=Ce.getAttribute("name"),Ol=Q.get(Tn)||[];this[+Ct]=Ce,Ol.push(Ce),Q.set(Tn,Ol)}),this.length=$.length,Q.forEach((Ce,Ct)=>{Ce&&(Ce.length===1?this[Ct]=Ce[0]:this[Ct]=new I(Ce))})}namedItem($){return this[$]}}let te=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let he=te.get.call(this,[]),$=[];for(let Q of he){let Ce=n.get(Q);(!Ce||Ce.formAssociated===!0)&&$.push(Q)}return new V($)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var s;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){!((s=a.message)===null||s===void 0)&&s.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,a)}}}var Gn={};q(Gn,{CSSResult:()=>Kr,LitElement:()=>dt,ReactiveElement:()=>ot,_$LE:()=>bf,_$LH:()=>Vn,adoptStyles:()=>wo,css:()=>O,defaultConverter:()=>qr,getCompatibleStyle:()=>gi,html:()=>b,isServer:()=>jg,mathml:()=>zn,noChange:()=>Ee,notEqual:()=>Ro,nothing:()=>_,render:()=>Hn,supportsAdoptingStyleSheets:()=>Oo,svg:()=>Un,unsafeCSS:()=>dr});var mi=globalThis,Oo=mi.ShadowRoot&&(mi.ShadyCSS===void 0||mi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pn=Symbol(),wl=new WeakMap,Kr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Pn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Oo&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=wl.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&wl.set(r,e))}return e}toString(){return this.cssText}},dr=t=>new Kr(typeof t=="string"?t:t+"",void 0,Pn),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Kr(r,t,Pn)},wo=(t,e)=>{if(Oo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=mi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},gi=Oo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return dr(r)})(t):t;var{is:af,defineProperty:lf,getOwnPropertyDescriptor:cf,getOwnPropertyNames:df,getOwnPropertySymbols:uf,getPrototypeOf:pf}=Object,yi=globalThis,Al=yi.trustedTypes,ff=Al?Al.emptyScript:"",hf=yi.reactiveElementPolyfillSupport,Ao=(t,e)=>t,qr={toAttribute(t,e){switch(e){case Boolean:t=t?ff:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ro=(t,e)=>!af(t,e),Rl={attribute:!0,type:String,converter:qr,reflect:!1,useDefault:!1,hasChanged:Ro};Symbol.metadata??=Symbol("metadata"),yi.litPropertyMetadata??=new WeakMap;var ot=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,r=Rl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&lf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=cf(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:n,set(a){let l=n?.call(this);s?.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Rl}static _$Ei(){if(this.hasOwnProperty(Ao("elementProperties")))return;let e=pf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ao("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ao("properties"))){let r=this.properties,i=[...df(r),...uf(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(gi(n))}else e!==void 0&&r.push(gi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return wo(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,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:qr).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:qr;this._$Em=n;let l=a.fromAttribute(r,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let a=this.constructor;if(n===!1&&(s=this[e]),i??=a.getPropertyOptions(e),!((i.hasChanged??Ro)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[Ao("elementProperties")]=new Map,ot[Ao("finalized")]=new Map,hf?.({ReactiveElement:ot}),(yi.reactiveElementVersions??=[]).push("2.1.2");var Dn=globalThis,_l=t=>t,bi=Dn.trustedTypes,Ll=bi?bi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fn="$lit$",Ft=`lit$${Math.random().toFixed(9).slice(2)}$`,$n="?"+Ft,mf=`<${$n}>`,fr=document,Lo=()=>fr.createComment(""),ko=t=>t===null||typeof t!="object"&&typeof t!="function",Mn=Array.isArray,Dl=t=>Mn(t)||typeof t?.[Symbol.iterator]=="function",Nn=`[
2
- \f\r]`,_o=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kl=/-->/g,Il=/>/g,ur=RegExp(`>|${Nn}(?:([^\\s"'>=/]+)(${Nn}*=${Nn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Pl=/"/g,Fl=/^(?:script|style|textarea|title)$/i,Bn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),b=Bn(1),Un=Bn(2),zn=Bn(3),Ee=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Nl=new WeakMap,pr=fr.createTreeWalker(fr,129);function $l(t,e){if(!Mn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ll!==void 0?Ll.createHTML(e):e}var Ml=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",a=_o;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(a.lastIndex=g,m=a.exec(d),m!==null);)g=a.lastIndex,a===_o?m[1]==="!--"?a=kl:m[1]!==void 0?a=Il:m[2]!==void 0?(Fl.test(m[2])&&(n=RegExp("</"+m[2],"g")),a=ur):m[3]!==void 0&&(a=ur):a===ur?m[0]===">"?(a=n??_o,h=-1):m[1]===void 0?h=-2:(h=a.lastIndex-m[2].length,p=m[1],a=m[3]===void 0?ur:m[3]==='"'?Pl:Tl):a===Pl||a===Tl?a=ur:a===kl||a===Il?a=_o:(a=ur,n=void 0);let v=a===ur&&t[l+1].startsWith("/>")?" ":"";s+=a===_o?d+mf:h>=0?(i.push(p),d.slice(0,h)+Fn+d.slice(h)+Ft+v):d+Ft+(h===-2?l:v)}return[$l(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Io=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,l=e.length-1,d=this.parts,[p,m]=Ml(e,r);if(this.el=t.createElement(p,i),pr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=pr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Fn)){let g=m[a++],v=n.getAttribute(h).split(Ft),E=/([.?@])?(.*)/.exec(g);d.push({type:1,index:s,name:E[2],strings:v,ctor:E[1]==="."?vi:E[1]==="?"?Si:E[1]==="@"?Ci:mr}),n.removeAttribute(h)}else h.startsWith(Ft)&&(d.push({type:6,index:s}),n.removeAttribute(h));if(Fl.test(n.tagName)){let h=n.textContent.split(Ft),g=h.length-1;if(g>0){n.textContent=bi?bi.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Lo()),pr.nextNode(),d.push({type:2,index:++s});n.append(h[g],Lo())}}}else if(n.nodeType===8)if(n.data===$n)d.push({type:2,index:s});else{let h=-1;for(;(h=n.data.indexOf(Ft,h+1))!==-1;)d.push({type:7,index:s}),h+=Ft.length-1}s++}}static createElement(e,r){let i=fr.createElement("template");return i.innerHTML=e,i}};function hr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=ko(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=hr(t,n._$AS(t,e.values),n,i)),e}var xi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??fr).importNode(r,!0);pr.currentNode=n;let s=pr.nextNode(),a=0,l=0,d=i[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new Zr(s,s.nextSibling,this,e):d.type===1?p=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(p=new Ei(s,this,e)),this._$AV.push(p),d=i[++l]}a!==d?.index&&(s=pr.nextNode(),a++)}return pr.currentNode=fr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Zr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=hr(this,e,r),ko(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dl(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!==_&&ko(this._$AH)?this._$AA.nextSibling.data=e:this.T(fr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Io.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new xi(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Nl.get(e.strings);return r===void 0&&Nl.set(e.strings,r=new Io(e)),r}k(e){Mn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Lo()),this.O(Lo()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=_l(e).nextSibling;_l(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},mr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=hr(this,e,r,0),a=!ko(e)||e!==this._$AH&&e!==Ee,a&&(this._$AH=e);else{let l=e,d,p;for(e=s[0],d=0;d<s.length-1;d++)p=hr(this,l[i+d],r,d),p===Ee&&(p=this._$AH[d]),a||=!ko(p)||p!==this._$AH[d],p===_?e=_:e!==_&&(e+=(p??"")+s[d+1]),this._$AH[d]=p}a&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vi=class extends mr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},Si=class extends mr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Ci=class extends mr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=hr(this,e,r,0)??_)===Ee)return;let i=this._$AH,n=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==_&&(i===_||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Ei=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){hr(this,e)}},Vn={M:Fn,P:Ft,A:$n,C:1,L:Ml,R:xi,D:Dl,V:hr,I:Zr,H:mr,N:Si,U:Ci,B:vi,F:Ei},gf=Dn.litHtmlPolyfillSupport;gf?.(Io,Zr),(Dn.litHtmlVersions??=[]).push("3.3.3");var Hn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new Zr(e.insertBefore(Lo(),s),s,void 0,r??{})}return n._$AI(t),n};var Wn=globalThis,dt=class extends ot{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Hn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};dt._$litElement$=!0,dt.finalized=!0,Wn.litElementHydrateSupport?.({LitElement:dt});var yf=Wn.litElementPolyfillSupport;yf?.({LitElement:dt});var bf={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Wn.litElementVersions??=[]).push("4.2.2");var jg=!1;var Zn={};q(Zn,{customElement:()=>xf,eventOptions:()=>Sf,property:()=>f,query:()=>P,queryAll:()=>jn,queryAssignedElements:()=>Kn,queryAssignedNodes:()=>qn,queryAsync:()=>Ef,standardProperty:()=>Bl,state:()=>A});var xf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var vf={attribute:!0,type:String,converter:qr,reflect:!1,hasChanged:Ro},Bl=(t=vf,e,r)=>{let{kind:i,metadata:n}=r,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),i==="accessor"){let{name:a}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,d,t,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,t,l),l}}}if(i==="setter"){let{name:a}=r;return function(l){let d=this[a];e.call(this,l),this.requestUpdate(a,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?Bl(t,e,r):((i,n,s)=>{let a=n.hasOwnProperty(s);return n.constructor.createProperty(s,i),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}function A(t){return f({...t,state:!0,attribute:!1})}function Sf(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var ut=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function P(t,e){return(r,i,n)=>{let s=a=>a.renderRoot?.querySelector(t)??null;if(e){let{get:a,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ut(r,i,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ut(r,i,{get(){return s(this)}})}}var Cf;function jn(t){return(e,r)=>ut(e,r,{get(){return(this.renderRoot??(Cf??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ef(t){return(e,r)=>ut(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Kn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){let a=this.renderRoot?.querySelector(s),l=a?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function qn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Yn={};q(Yn,{repeat:()=>le});var Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ze=t=>(...e)=>({_$litDirective$:t,values:e}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Of}=Vn,Ul=t=>t;var Vl=t=>t.strings===void 0,zl=()=>document.createComment(""),Yr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(zl(),n),a=i.insertBefore(zl(),n);r=new Of(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==a._$AU&&r._$AP(d)}if(s!==n||l){let d=r._$AA;for(;d!==s;){let p=Ul(d).nextSibling;Ul(i).insertBefore(d,n),d=p}}}return r},Gt=(t,e,r=t)=>(t._$AI(e,r),t),wf={},Hl=(t,e=wf)=>t._$AH=e,Wl=t=>t._$AH,Oi=t=>{t._$AR(),t._$AA.remove()};var Gl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},le=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let l of t)n[a]=i?i(l,a):a,s[a]=r(l,a),a++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Wl(t),{values:s,keys:a}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=a,s;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,v=0,E=s.length-1;for(;h<=g&&v<=E;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===a[v])d[v]=Gt(n[h],s[v]),h++,v++;else if(l[g]===a[E])d[E]=Gt(n[g],s[E]),g--,E--;else if(l[h]===a[E])d[E]=Gt(n[h],s[E]),Yr(t,d[E+1],n[h]),h++,E--;else if(l[g]===a[v])d[v]=Gt(n[g],s[v]),Yr(t,n[h],n[g]),g--,v++;else if(p===void 0&&(p=Gl(a,v,E),m=Gl(l,h,g)),p.has(l[h]))if(p.has(l[g])){let T=m.get(a[v]),R=T!==void 0?n[T]:null;if(R===null){let N=Yr(t,n[h]);Gt(N,s[v]),d[v]=N}else d[v]=Gt(R,s[v]),Yr(t,n[h],R),n[T]=null;v++}else Oi(n[g]),g--;else Oi(n[h]),h++;for(;v<=E;){let T=Yr(t,d[E+1]);Gt(T,s[v]),d[v++]=T}for(;h<=g;){let T=n[h++];T!==null&&Oi(T)}return this.ut=a,Hl(t,d),Ee}});var Qn={};q(Qn,{classMap:()=>oe});var oe=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var Xn={};q(Xn,{styleMap:()=>Rf});var jl="important",Af=" !"+jl,Rf=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let s=typeof n=="string"&&n.endsWith(Af);i.includes("-")||s?r.setProperty(i,s?n.slice(0,-11):n,s?jl:""):r[i]=n}}return Ee}});var es={};q(es,{UnsafeHTMLDirective:()=>Qr,unsafeHTML:()=>Jn});var Qr=class extends it{constructor(e){if(super(e),this.it=_,e.type!==Et.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===Ee)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Qr.directiveName="unsafeHTML",Qr.resultType=1;var Jn=Ze(Qr);var ts={};q(ts,{splitBreadcrumbForMenu:()=>_f});function _f(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var us={};q(us,{CacheRegistry:()=>Ot,ClearCacheEvent:()=>Fo});var rs={};q(rs,{CancelablePromise:()=>wi,CanceledPromiseError:()=>jt,cancelable:()=>Ai});var jt=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},wi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new jt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new jt("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ai=t=>new wi((e,r)=>t.then(e).catch(r));var ds={};q(ds,{FtContextRegistrationEvent:()=>Do,FtNotificationEvent:()=>No,PostResizeEvent:()=>cs,PreResizeEvent:()=>ls,WithEventBus:()=>$t,withEventBus:()=>ki});var as={};q(as,{AbstractRegistry:()=>Xr,applyMixinOnce:()=>Oe,customElements:()=>W,dateReviver:()=>Tf,deepCopy:()=>nt,deepEqual:()=>ge,delay:()=>Ri,eventPathContainsMatchingElement:()=>is,everyDeep:()=>If,flatDeep:()=>Ye,forEachDeep:()=>Zl,getComposedPathTo:()=>ss,groupBy:()=>Df,hasChanged:()=>He,ignoreComposingEvents:()=>Zt,last:()=>ns,minmax:()=>qt,parseDate:()=>Ql,randomId:()=>Nf,someDeep:()=>Yl,unslotText:()=>Li,waitFor:()=>_i,waitUntil:()=>Po});var os={};q(os,{customElement:()=>To,dateProperty:()=>kf,isNumber:()=>ql,jsonProperty:()=>ce,jsonPropertyConverter:()=>Kl,numberProperty:()=>Kt,optionalNumberProperty:()=>Lf});var To=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Kl=t=>({fromAttribute:e=>{if(e==null)return nt(t);try{return JSON.parse(e)}catch{return nt(t)}},toAttribute:e=>JSON.stringify(e)});function ce(t,e){return f({type:Object,converter:Kl(t),hasChanged:He,...e??{}})}function Lf(t){return Kt(t)}function Kt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,s=(i=t?.max)!==null&&i!==void 0?i:1/0;return ql(e)?qt(n,+e,s):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function ql(t){return!isNaN(parseFloat(t))}function kf(t){return f({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Ri=t=>new Promise(e=>setTimeout(e,t));async function Po(t,e=10,r=2e4){await _i(async()=>await t()||void 0,e,r)}async function _i(t,e=10,r=2e4){let i=await t(),n=performance.now(),s=n;for(;i==null&&(!r||s-n<r);)await Ri(e),i=await t(),s=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ye(t,e){return t.flatMap(r=>[r,...Ye(e(r),e)])}function Zl(t,e,r){let i=(n,s)=>{var a;for(let l=0;l<n.length;l++){let d=n[l];if(!(((a=r(d,l,n,s))!==null&&a!==void 0?a:!0)&&i(e(d),[...s,d])))return!1}return!0};i(t,[])}function Yl(t,e,r){let i=!1;return Zl(t,e,(n,s,a,l)=>(i=!!r(n,s,a,l),!i)),i}function If(t,e,r){return!Yl(t,e,(i,n,s,a)=>!r(i,n,s,a))}function Tf(...t){return(e,r)=>t.includes(e)?Ql(r):r}function Ql(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function Pf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ge(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ge(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=a=>Object.keys(a).filter(l=>a[l]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let a=s[i];if(!ge(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ge(t,e){try{return Pf(t,e)}catch{return!1}}function He(t,e){return!ge(t,e)}function is(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(s=>n.matches(s)))return!0}}return!1}function qt(t,e,r){return Math.min(Math.max(t,e),r)}function ns(t){return t[t.length-1]}function Li(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Li(e)).join(""):t?.textContent||""}function ss(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function nt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Nf(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Oe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Zt(){return function(t,e,r){let i=r.value;r.value=function(n,...s){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(s))}}}function W(t){for(let[e,r]of Object.entries(t))To(e)(r)}function Df(t,e){var r,i;let n=typeof e=="function"?e:a=>a[e],s={};for(let a of t)((r=s[i=n(a)])!==null&&r!==void 0?r:s[i]=[]).push(a);return s}var Xr=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var No=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ls=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},cs=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ki=Oe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),$t=class extends ki(Object){},Do=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var Fo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ot=class extends $t{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let s=this.content[e],a=(n=s?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...s,loader:r,final:i,status:a}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Fo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Fo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,s="RESOLVED";this.content[e]={loader:n,final:i,status:s,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Ai(r()),n.promise.then(s=>(n.status="RESOLVED",n.value=s,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),s)).catch(s=>{var a;throw!((a=n.promise)===null||a===void 0)&&a.isCanceled||(n.status="ERROR",n.error=s),s})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var vs={};q(vs,{ClusteringHelper:()=>xs,formatHierarchicalValues:()=>bs});var ys={};q(ys,{accessBreadcrumb:()=>Wf,accessResult:()=>gs,accessResultId:()=>Vf,accessResultUrl:()=>Hf,enrichReaderUrl:()=>ms});var hs={};q(hs,{SearchPlaceConverter:()=>pt,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>Bc,serializeRequest:()=>Uf});var Ff=t=>typeof t=="object"&&t!=null;var $f=t=>typeof t=="number",Ii=t=>typeof t=="string",fs=t=>Ff(t)&&Ii(t.endpoint)&&Ii(t.method)&&Ii(t.statusText)&&Ii(t.body)&&$f(t.status),Xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xl||(Xl={}));var Jl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jl||(Jl={}));var ec;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var tc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(tc||(tc={}));var rc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(rc||(rc={}));var oc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(oc||(oc={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(ic||(ic={}));var nc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(nc||(nc={}));var sc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(sc||(sc={}));var ac;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ac||(ac={}));var lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(lc||(lc={}));var cc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(cc||(cc={}));var dc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(dc||(dc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(pc||(pc={}));var fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(fc||(fc={}));var hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(hc||(hc={}));var gr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gr||(gr={}));var mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(mc||(mc={}));var gc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(gc||(gc={}));var Ti;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ti||(Ti={}));var Ec=t=>Object.keys(Ti).includes(t);var yc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(yc||(yc={}));var bc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(bc||(bc={}));var xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(xc||(xc={}));var Jr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jr||(Jr={}));var Oc=t=>Object.keys(Jr).includes(t);var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(vc||(vc={}));var ps;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ps||(ps={}));var Sc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Sc||(Sc={}));var ye;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ye||(ye={}));var st;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(st||(st={}));var Cc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Cc||(Cc={}));var wc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(wc||(wc={}));var Ac;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ac||(Ac={}));var Rc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Rc||(Rc={}));var _c;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(_c||(_c={}));var Lc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lc||(Lc={}));var kc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kc||(kc={}));var Ic;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ic||(Ic={}));var Tc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Tc||(Tc={}));var Pc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pc||(Pc={}));var Nc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Nc||(Nc={}));var Dc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Dc||(Dc={}));var Mf={[ye.PERSONAL_BOOK_SHARE_USER]:[ye.PERSONAL_BOOK_USER],[ye.HTML_EXPORT_USER]:[ye.PERSONAL_BOOK_USER],[ye.PDF_EXPORT_USER]:[ye.PERSONAL_BOOK_USER],[ye.KHUB_ADMIN]:[ye.CONTENT_PUBLISHER],[ye.ADMIN]:[ye.KHUB_ADMIN,ye.USERS_ADMIN,ye.PORTAL_ADMIN,ye.BEHAVIOR_DATA_USER],[ye.GENERATIVE_AI_EXPORT_USER]:[ye.GENERATIVE_AI_USER]};function Fc(t,e){return t===e||(Mf[t]??[]).some(r=>Fc(r,e))}function Pi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Fc(i,e))}function $c(t,...e){return t==null?!1:e.some(r=>Pi(t,r))}function Bf(t){return`"${t}"`}function Mc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Uf(t,e){return new pt(t).serialize(e)}var G;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(G||(G={}));var zf=new Set(Object.values(G));function Bc(t){return zf.has(t)}var pt=class t{constructor(e,r=20,i=!1,n="en-US",s=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.availableContentLocales=s,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,s,a,l,d,p,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(G.LOCALE,e.contentLocale):g.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(G.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(G.VALUE_FILTERS,v);let E=t.serializeNegativeValueFilters(e.metadataFilters);E&&g.append(G.NEGATIVE_VALUE_FILTERS,E);let T=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(x=>x.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let x=T.map(y=>{var C;return`${y.key}~${(C=y.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(G.DATE_FILTERS,x)}let R=(p=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(R.length>0){let x=R.map(y=>{var C,I;return`${y.key}~${(C=y.rangeFilter)===null||C===void 0?void 0:C.from}_${(I=y.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");g.append(G.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(G.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(G.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(G.SORT,e.sortId),!((a=e.paging)===null||a===void 0)&&a.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(G.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(G.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let x in N)g.append(x,N[x]);let M=new Array;return g.forEach((x,y)=>{M.push(this.encodeQueryString(y)+"="+this.encodeQueryString(x))}),encodeURI(M.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),s=i[0].split("/search/")[1];return s==null?n:{...n,scope:(r=this.scopeMapping[s])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,s,a,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(M){console.warn("Could not decode search request query params, fallback on raw value",M)}let p=new URLSearchParams(e),m=(i=p.get(G.LOCALE))!==null&&i!==void 0?i:void 0,h=((n=p.get(G.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=p.get(G.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(s=p.get(G.SCOPE))!==null&&s!==void 0?s:"default",E=+((a=p.get(G.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),T=p.get(G.KEYWORD_MATCH),R=T?T.toUpperCase()===gr.MANDATORY?gr.MANDATORY:gr.OPTIONAL:void 0,N={};for(let M of p.keys())Bc(M)||(N[M]=p.get(M));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some(M=>M.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=p.get(G.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:Ec(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:qt(1,isNaN(E)?this.defaultPerPage:E,1e3)},keywordMatch:R,otherQueryParams:N}}parseCompatFilters(e){var r,i,n,s,a,l,d;let p=[];return e.has(G.FILTERS)&&(p=t.parseValueFilters((r=e.get(G.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(G.PERIOD))!==null&&i!==void 0&&i&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(G.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...t.parseValueFilters((s=e.get(G.VALUE_FILTERS))!==null&&s!==void 0?s:""),...t.parseValueFilters((a=e.get(G.NEGATIVE_VALUE_FILTERS))!==null&&a!==void 0?a:"",!0),...this.parseDateFilters((l=e.get(G.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(G.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(Mc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Jr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Oc(e))return[{key:"ft:lastEdition",dateFilter:{type:Jr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(s=>t.escapeFilters(s)).map(s=>Bf(Mc(s))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[G.LOCALE,G.FILTERS,G.VALUE_FILTERS,G.NEGATIVE_VALUE_FILTERS,G.DATE_FILTERS,G.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(G.LOCALE),r!==void 0&&i.searchParams.append(G.LOCALE,r),i.toString()}};pt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function gs(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Vf(t){var e,r,i,n,s,a,l,d,p;return(p=(d=(l=(a=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&a!==void 0?a:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&p!==void 0?p:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.contentId}function Hf(t,e){var r,i,n,s,a,l,d,p,m;return(m=(p=(d=(l=ms((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:ms((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&p!==void 0?p:(s=t?.htmlPackage)===null||s===void 0?void 0:s.viewerUrl)!==null&&m!==void 0?m:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.viewerUrl}function Wf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function ms(t,e){if(e&&t){let r=URL.parse(t),i=pt.serializeValueFilters(e);if(i&&r?.searchParams.append(G.VALUE_FILTERS,i),r)return r.toString()}return t}function bs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var xs=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var s;return((s=this.extractResultMetadata({result:n}).find(a=>a.key==r))===null||s===void 0?void 0:s.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=gs(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(s=>s.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(s=>t.flattenMetadata(s,r,i)).filter(s=>s!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let s=[],a=[];return e.hierarchicalValues.forEach(l=>{s.push(bs(l)),a.push(bs(l,r))}),{key:e.key,label:e.label,value:s.join(", "),displayValue:a.join(", "),displayTooltipValue:s.join(", ")}}else{let s=e.values.join(", "),a=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:s,displayValue:a,displayTooltipValue:a}}}computeClustersItemsForMetadata(e,r,i="No value",n,s){var a,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:s}),p=(l=d?.label)!==null&&l!==void 0?l:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:s})).map(h=>h??{key:e,label:p,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(E=>E.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let s=this.getMetadataDescriptor(i),a=s?.sortRule||"NONE",l=s?.reverseSort||!1;if(a=="ALPHABET"||a=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),s=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],a,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,s);if(p>l&&(l=p,a=d,p===s.length))break}return a}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Ss={};q(Ss,{Debouncer:()=>ee});var ee=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of i)try{await a()}catch(l){n(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ws={};q(ws,{designSystemVariables:()=>S});var Os={};q(Os,{DesignSystemFamily:()=>$o,DesignSystemSize:()=>Mo,FtCssVariableFactory:()=>o,badge:()=>ah,banner:()=>sh,button:()=>Kf,card:()=>Zf,chart:()=>Eh,checkbox:()=>Jf,chip:()=>oh,chipChoice:()=>rh,chipGroup:()=>ih,collapsible:()=>Sh,combobox:()=>xh,dateRangePicker:()=>_h,drawer:()=>hh,eventCard:()=>Yf,floatingMenu:()=>bh,foundation:()=>c,link:()=>nh,modal:()=>ph,notice:()=>wh,notification:()=>Ah,pageDesigner:()=>Oh,pageFooter:()=>dh,pageHeader:()=>ch,pageLayout:()=>uh,popover:()=>vh,radio:()=>eh,reorderableList:()=>fh,resolveFamilyClass:()=>Cs,resolveSizeClass:()=>Es,semantic:()=>u,setVariable:()=>w,switch_:()=>Ch,table:()=>th,tabs:()=>mh,textArea:()=>yh,textInput:()=>gh,titleBreadcrumb:()=>lh,toc:()=>Xf,toggle:()=>qf,tooltip:()=>Rh,treeList:()=>Qf,typographies:()=>Gf,typographyBody1Medium:()=>Gc,typographyBody1Regular:()=>Wc,typographyBody1Semibold:()=>jc,typographyBody2Medium:()=>qc,typographyBody2MediumUnderline:()=>Zc,typographyBody2Regular:()=>Kc,typographyBody2Semibold:()=>Yc,typographyCaption1Medium:()=>Qc,typographyCaption1Semibold:()=>Xc,typographyCaption2Bold:()=>td,typographyCaption2Medium:()=>Jc,typographyCaption2Semibold:()=>ed,typographyDisplay:()=>Uc,typographyTitle1:()=>zc,typographyTitle2:()=>Vc,typographyTitle3:()=>Hc,typographyVariants:()=>jf});var Yt=t=>typeof t=="string"?dr(t):t,o=class{static create(e,r,i,n){let s=l=>Yt(l??n),a=O`var(${Yt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Yt(e)}, ${s(l)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>n,a}static extend(e,r,i,n){let s=l=>i.get(l??n),a=O`var(${Yt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i.category,a.fallbackVariable=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Yt(e)}, ${s(l)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),a}static external(e,r){let i=s=>e.defaultCssValue(s),n=O`var(${Yt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=s=>e.set(s),n.get=s=>O`var(${Yt(e.name)}, ${i(s)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function w(t,e){return Yt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Uc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},zc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Vc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Hc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Kc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Zc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Yc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Qc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Xc={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Jc={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},ed={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},td={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Gf={display:Uc,"title-1":zc,"title-2":Vc,"title-3":Hc,"body-1-regular":Wc,"body-1-medium":Gc,"body-1-semibold":jc,"body-2-regular":Kc,"body-2-medium":qc,"body-2-medium-underline":Zc,"body-2-semibold":Yc,"caption-1-medium":Qc,"caption-1-semibold":Xc,"caption-2-medium":Jc,"caption-2-semibold":ed,"caption-2-bold":td},jf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Kf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var qf={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var Zf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Yf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Qf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Xf={titleColor:o.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:o.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:o.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:o.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:o.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:o.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:o.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:o.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:o.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:o.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:o.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:o.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:o.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var Jf={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var eh={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var th={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var rh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var oh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var ih={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var nh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var sh={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var ah={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var lh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var ch={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var dh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var uh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var ph={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var fh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var hh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var mh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var gh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var yh={fieldPaddingLeft:o.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:o.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:o.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:o.extend("--ftds-text-area-resize-right","",c.spacing05)};var bh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var xh={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var vh={backgroundColor:o.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Sh={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Ch={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Eh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var Oh={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var wh={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Ah={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Rh={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var _h={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var $o;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})($o||($o={}));var Mo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Mo||(Mo={}));function Cs(t){return`ftds--family-${t}`}function Es(t){return`ftds--size-${t}`}var S={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var As={};q(As,{DynamicImporter:()=>Ni,dynamicImporter:()=>Lh});var Ni=class{async import(e){if(e)return import(e)}},Lh=new Ni;var Us={};q(Us,{computeOffsetAutoPosition:()=>Bs,computeOffsetPosition:()=>Ms});var od=["top","right","bottom","left"],rd=["start","end"],_s=od.reduce((t,e)=>t.concat(e,e+"-"+rd[0],e+"-"+rd[1]),[]),yr=Math.min,wt=Math.max,Bo=Math.round;var At=t=>({x:t,y:t}),kh={left:"right",right:"left",bottom:"top",top:"bottom"};function id(t,e,r){return wt(t,yr(e,r))}function eo(t,e){return typeof t=="function"?t(e):t}function br(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function Ls(t){return t==="x"?"y":"x"}function ks(t){return t==="y"?"height":"width"}function to(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Is(t){return Ls(to(t))}function nd(t,e,r){r===void 0&&(r=!1);let i=Rt(t),n=Is(t),s=ks(n),a=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Rs(a)),[a,Rs(a)]}function sd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Rs(t){let e=br(t);return kh[e]+t.slice(e.length)}function Ih(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function ad(t){return typeof t!="number"?Ih(t):{top:t,right:t,bottom:t,left:t}}function xr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ld(t,e,r){let{reference:i,floating:n}=t,s=to(e),a=Is(e),l=ks(a),d=br(e),p=s==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let E=Rt(e);return E&&(v[a]+=g*(E==="end"?1:-1)*(r&&p?-1:1)),v}async function cd(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:a,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=eo(e,t),E=ad(v),R=l[g?h==="floating"?"reference":"floating":h],N=xr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(R)))==null||r?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),M=h==="floating"?{x:i,y:n,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},C=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:M,offsetParent:x,strategy:d}):M);return{top:(N.top-C.top+E.top)/y.y,bottom:(C.bottom-N.bottom+E.bottom)/y.y,left:(N.left-C.left+E.left)/y.x,right:(C.right-N.right+E.right)/y.x}}var Th=50,dd=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,l=a.detectOverflow?a:{...a,detectOverflow:cd},d=await(a.isRTL==null?void 0:a.isRTL(e)),p=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=ld(p,i,d),g=i,v=0,E={};for(let T=0;T<s.length;T++){let R=s[T];if(!R)continue;let{name:N,fn:M}=R,{x,y,data:C,reset:I}=await M({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:E,rects:p,platform:l,elements:{reference:t,floating:e}});m=x??m,h=y??h,E[N]={...E[N],...C},I&&v<Th&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(p=I.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:m,y:h}=ld(p,g,d)),T=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:E}};function Ph(t,e,r){return(t?[...r.filter(n=>Rt(n)===t),...r.filter(n=>Rt(n)!==t)]:r.filter(n=>br(n)===n)).filter(n=>t?Rt(n)===t||(e?sd(n)!==n:!1):!0)}var ud=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:a,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=_s,autoAlignment:v=!0,...E}=eo(t,e),T=h!==void 0||g===_s?Ph(h||null,v,g):g,R=((r=a.autoPlacement)==null?void 0:r.index)||0,N=T[R];if(N==null)return{};if(l!==N)return{reset:{placement:T[0]}};let M=await d.detectOverflow(e,E),x=nd(N,s,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[M[br(N)],M[x[0]],M[x[1]]],C=[...((i=a.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:y}],I=T[R+1];if(I)return{data:{index:R+1,overflows:C},reset:{placement:I}};let V=C.map($=>{let Q=Rt($.placement);return[$.placement,Q&&m?$.overflows.slice(0,2).reduce((Ce,Ct)=>Ce+Ct,0):$.overflows[0],$.overflows]}).sort(($,Q)=>$[1]-Q[1]),he=((n=V.filter($=>$[2].slice(0,Rt($[0])?2:3).every(Q=>Q<=0))[0])==null?void 0:n[0])||V[0][0];return he!==l?{data:{index:R+1,overflows:C},reset:{placement:he}}:{}}}};var Nh=new Set(["left","top"]);async function Dh(t,e){let{placement:r,platform:i,elements:n}=t,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),a=br(r),l=Rt(r),d=to(r)==="y",p=Nh.has(a)?-1:1,m=s&&d?-1:1,h=eo(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof E=="number"&&(v=l==="end"?E*-1:E),d?{x:v*m,y:g*p}:{x:g*p,y:v*m}}var pd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:s,placement:a,middlewareData:l}=e,d=await Dh(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:s+d.y,data:{...d,placement:a}}}}},fd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:M=>{let{x,y}=M;return{x,y}}},...p}=eo(t,e),m={x:r,y:i},h=await s.detectOverflow(e,p),g=to(n),v=Ls(g),E=m[v],T=m[g],R=(M,x)=>id(x+h[M==="y"?"top":"left"],x,x-h[M==="y"?"bottom":"right"]);a&&(E=R(v,E)),l&&(T=R(g,T));let N=d.fn({...e,[v]:E,[g]:T});return{...N,data:{x:N.x-r,y:N.y-i,enabled:{[v]:a,[g]:l}}}}}};var hd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:s}=e,{apply:a=()=>{},...l}=eo(t,e),d=await n.detectOverflow(e,l),p=br(r),m=Rt(r),h=to(r)==="y",{width:g,height:v}=i.floating,E,T;p==="top"||p==="bottom"?(E=p,T=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(T=p,E=m==="end"?"top":"bottom");let R=v-d.top-d.bottom,N=g-d.left-d.right,M=yr(v-d[E],R),x=yr(g-d[T],N),y=e.middlewareData.shift,C=!y,I=M,V=x;y!=null&&y.enabled.x&&(V=N),y!=null&&y.enabled.y&&(I=R),C&&!m&&(h?V=g-2*wt(d.left,d.right):I=v-2*wt(d.top,d.bottom)),await a({...e,availableWidth:V,availableHeight:I});let te=await n.getDimensions(s.floating);return g!==te.width||v!==te.height?{reset:{rects:!0}}:{}}}};function Fi(){return typeof window<"u"}function Sr(t){return gd(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mt(t){var e;return(e=(gd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gd(t){return Fi()?t instanceof Node||t instanceof We(t).Node:!1}function ft(t){return Fi()?t instanceof Element||t instanceof We(t).Element:!1}function Bt(t){return Fi()?t instanceof HTMLElement||t instanceof We(t).HTMLElement:!1}function md(t){return!Fi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Uo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function yd(t){return/^(table|td|th)$/.test(Sr(t))}function zo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Fh=/transform|translate|scale|rotate|perspective|filter/,$h=/paint|layout|strict|content/,vr=t=>!!t&&t!=="none",Ts;function ro(t){let e=ft(t)?ht(t):t;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!$i()&&(vr(e.backdropFilter)||vr(e.filter))||Fh.test(e.willChange||"")||$h.test(e.contain||"")}function bd(t){let e=Qt(t);for(;Bt(e)&&!oo(e);){if(ro(e))return e;if(zo(e))return null;e=Qt(e)}return null}function $i(){return Ts==null&&(Ts=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ts}function oo(t){return/^(html|body|#document)$/.test(Sr(t))}function ht(t){return We(t).getComputedStyle(t)}function Vo(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qt(t){if(Sr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||md(t)&&t.host||Mt(t);return md(e)?e.host:e}function xd(t){let e=Qt(t);return oo(e)?(t.ownerDocument||t).body:Bt(e)&&Uo(e)?e:xd(e)}function Di(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=xd(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),a=We(n);if(s){let l=Mi(a);return e.concat(a,a.visualViewport||[],Uo(n)?n:[],l&&r?Di(l):[])}else return e.concat(n,Di(n,[],r))}function Mi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cd(t){let e=ht(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),s=n?t.offsetWidth:r,a=n?t.offsetHeight:i,l=Bo(r)!==s||Bo(i)!==a;return l&&(r=s,i=a),{width:r,height:i,$:l}}function Ed(t){return ft(t)?t:t.contextElement}function io(t){let e=Ed(t);if(!Bt(e))return At(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Cd(e),a=(s?Bo(r.width):r.width)/i,l=(s?Bo(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var Mh=At(0);function Od(t){let e=We(t);return!$i()||!e.visualViewport?Mh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===We(t)}function Ho(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Ed(t),a=At(1);e&&(i?ft(i)&&(a=io(i)):a=io(t));let l=Bh(s,r,i)?Od(s):At(0),d=(n.left+l.x)/a.x,p=(n.top+l.y)/a.y,m=n.width/a.x,h=n.height/a.y;if(s&&i){let g=We(s),v=ft(i)?We(i):i,E=g,T=Mi(E);for(;T&&v!==E;){let R=io(T),N=T.getBoundingClientRect(),M=ht(T),x=N.left+(T.clientLeft+parseFloat(M.paddingLeft))*R.x,y=N.top+(T.clientTop+parseFloat(M.paddingTop))*R.y;d*=R.x,p*=R.y,m*=R.x,h*=R.y,d+=x,p+=y,E=We(T),T=Mi(E)}}return xr({width:m,height:h,x:d,y:p})}function Bi(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:Ho(Mt(t)).left+r}function wd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Bi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Uh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",a=Mt(i),l=e?zo(e.floating):!1;if(i===a||l&&s)return r;let d={scrollLeft:0,scrollTop:0},p=At(1),m=At(0),h=Bt(i);if((h||!s)&&((Sr(i)!=="body"||Uo(a))&&(d=Vo(i)),h)){let v=Ho(i);p=io(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=a&&!h&&!s?wd(a,d):At(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function zh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Vh(t){let e=Vo(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Bi(t),a=-e.scrollTop;return ht(r).direction==="rtl"&&(s+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}var Hh=25;function Wh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=We(t),s=Mt(t),a=n.visualViewport,l=s.clientWidth,d=s.clientHeight,p=0,m=0;if(a){let g=!$i()||e==="fixed";i?g||(p=-a.offsetLeft,m=-a.offsetTop):(l=a.width,d=a.height,g&&(p=a.offsetLeft,m=a.offsetTop))}if(Bi(s)<=0){let g=s.ownerDocument,v=g.body,E=getComputedStyle(v),T=g.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,R=Math.abs(s.clientWidth-v.clientWidth-T),N=getComputedStyle(s).scrollbarGutter==="stable both-edges"?R/2:R;N<=Hh&&(l-=N)}return{width:l,height:d,x:p,y:m}}function Gh(t,e){let r=Ho(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=io(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,d=n*s.x,p=i*s.y;return{width:a,height:l,x:d,y:p}}function vd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Wh(t,r,e);else if(e==="document")i=Vh(Mt(t));else if(ft(e))i=Gh(e,r);else{let n=Od(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return xr(i)}function jh(t,e){let r=e.get(t);if(r)return r;let i=Di(t,[],!1).filter(l=>ft(l)&&Sr(l)!=="body"),n=null,s=ht(t).position==="fixed",a=s?Qt(t):t;for(;ft(a)&&!oo(a);){let l=ht(a),d=ro(a),p=n?n.position:s?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?i=i.filter(h=>h!==a):n=l,a=Qt(a)}return e.set(t,i),i}function Kh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,a=[...r==="clippingAncestors"?zo(e)?[]:jh(e,this._c):[].concat(r),i],l=vd(e,a[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<a.length;g++){let v=vd(e,a[g],n);d=wt(v.top,d),p=yr(v.right,p),m=yr(v.bottom,m),h=wt(v.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function qh(t){let{width:e,height:r}=Cd(t);return{width:e,height:r}}function Zh(t,e,r){let i=Bt(e),n=Mt(e),s=r==="fixed",a=Ho(t,!0,s,e),l={scrollLeft:0,scrollTop:0},d=At(0);if((i||!s)&&((Sr(e)!=="body"||Uo(n))&&(l=Vo(e)),i)){let g=Ho(e,!0,s,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Bi(n));let p=n&&!i&&!s?wd(n,l):At(0),m=a.left+l.scrollLeft-d.x-p.x,h=a.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:a.width,height:a.height}}function Ps(t){return ht(t).position==="static"}function Sd(t,e){if(!Bt(t)||ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Mt(t)===r&&(r=r.ownerDocument.body),r}function Ad(t,e){let r=We(t);if(zo(t))return r;if(!Bt(t)){let n=Qt(t);for(;n&&!oo(n);){if(ft(n)&&!Ps(n))return n;n=Qt(n)}return r}let i=Sd(t,e);for(;i&&yd(i)&&Ps(i);)i=Sd(i,e);return i&&oo(i)&&Ps(i)&&!ro(i)?r:i||bd(t)||r}var Yh=async function(t){let e=this.getOffsetParent||Ad,r=this.getDimensions,i=await r(t.floating);return{reference:Zh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qh(t){return ht(t).direction==="rtl"}var no={convertOffsetParentRelativeRectToViewportRelativeRect:Uh,getDocumentElement:Mt,getClippingRect:Kh,getOffsetParent:Ad,getElementRects:Yh,getClientRects:zh,getDimensions:qh,getScale:io,isElement:ft,isRTL:Qh};var Rd=pd,Ns=ud,_d=fd;var Ld=hd;var Ds=(t,e,r)=>{let i=new Map,n=r??{},s={...no,...n.platform,_c:i};return dd(t,e,{...n,platform:s})};function $s(t){return Xh(t)}function Fs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xh(t){for(let e=t;e;e=Fs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fs(t);e;e=Fs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ro(r)||e.tagName==="BODY"))return e}return null}async function Ms(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Ds(t,e,{strategy:i.strategy,platform:{...no,getOffsetParent:n=>no.getOffsetParent(n,$s)},middleware:[_d({crossAxis:!0}),Ns({allowedPlacements:[i.placement]})]})}async function Bs(t,e,r,i,n,s,a){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,s=r.maxHeightCssVariable,d=r.maxWidthCssVariable,a=r.offsetValue):l=r,Ds(t,e,{placement:l,strategy:n,platform:{...no,getOffsetParent:p=>no.getOffsetParent(p,$s)},middleware:[Rd(a??4),Ns({allowedPlacements:i}),Ld({apply({availableHeight:p,availableWidth:m,elements:h}){typeof s=="string"&&(s=`var(${s})`),s?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${s})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var zs={};q(zs,{isSlotEmptyOrWithoutContent:()=>Wo});var Wo=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Ks={};q(Ks,{FtdsBase:()=>js,toFtdsBase:()=>Fd});var Gs={};q(Gs,{ExportpartsUpdatedEvent:()=>Cr,FtLitElement:()=>D});var Vs={};q(Vs,{ScopedRegistryLitElement:()=>Go});var Go=class extends dt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return wo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){To(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Ws={};q(Ws,{shadowQuerySelector:()=>Hs,shadowQuerySelectorAll:()=>Jh});function Hs(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}function Jh(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(s=>{var a,l;return[...(l=(a=s.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var so=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pd,kd=Symbol("constructorPrototype"),Id=Symbol("constructorName"),Nd=Symbol("exportpartsDebouncer"),Td=Symbol("dynamicDependenciesLoaded"),Cr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Cr.eventName="exportparts-updated";var D=class extends Go{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Pd]=new ee(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Nd].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Id]=this.constructor.name,this[kd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Id]&&Object.setPrototypeOf(this,this[kd])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Td]||(r[Td]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Cr.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 Cr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Hs(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,a,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],E=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(R=>R.split(":")[1]))!==null&&l!==void 0?l:[],T=[...v,...E].filter(d).map(R=>R.trim());for(let R of T)m.add(R)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Pd=Nd;so([f()],D.prototype,"exportpartsPrefix",void 0);so([ce([])],D.prototype,"exportpartsPrefixes",void 0);so([f({reflect:!0})],D.prototype,"exportparts",void 0);so([f()],D.prototype,"customStylesheet",void 0);so([f()],D.prototype,"elementToFocus",void 0);so([A()],D.prototype,"useAdoptedStyleSheets",void 0);var Dd=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Fd=Oe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Mo.medium,this.family=$o.neutral}getDesignSystemBaseClasses(){return{[Cs(this.family)]:!0,[Es(this.size)]:!0}}}return Dd([f()],e.prototype,"size",void 0),Dd([f()],e.prototype,"family",void 0),e}),js=class extends Fd(D){};var $d={};var Ys={};q(Ys,{highlightHtml:()=>Zs,highlightHtmlColorCssVariable:()=>Md,highlightHtmlStyles:()=>tm});var Er=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let s=!1;return i.every(a=>n.call(e,a)?(s=!0,!1):!0),s}else return!1}getContexts(){let e,r=[];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(i=>{let n=r.filter(s=>s.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let s=e.contentWindow;if(n=s.document,!s||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,s=null,a=()=>{if(!n){n=!0,clearTimeout(s);try{this.isIframeBlank(e)||(e.removeEventListener("load",a),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",a),s=setTimeout(a,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let s=e.querySelectorAll("iframe"),a=s.length,l=0;s=Array.prototype.slice.call(s);let d=()=>{--a<=0&&n(l)};a||d(),s.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),s=Node.DOCUMENT_POSITION_PRECEDING;if(n&s)if(r!==null){let a=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(a&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let s=!1,a=!1;return n.forEach((l,d)=>{l.val===i&&(s=d,a=l.handled)}),this.compareNodeIframe(e,r,i)?(s===!1&&!a?n.push({val:i,handled:!0}):s!==!1&&!a&&(n[s].handled=!0),!0):(s===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(s=>{s.handled||this.getIframeContents(s.val,a=>{this.createInstanceOnIframe(a).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,s){let a=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(a),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),s()}forEachNode(e,r,i,n=()=>{}){let s=this.getContexts(),a=s.length;a||n(),s.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--a<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var jo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 Er(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`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 r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in r)if(r.hasOwnProperty(s)){let a=r[s],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let s=n.charAt(i+1);return/[(|)\\]/.test(s)||s===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=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(s=>{i.every(a=>{if(a.indexOf(s)!==-1){if(n.indexOf(a)>-1)return!1;e=e.replace(new RegExp(`[${a}]`,`gm${r}`),`[${a}]`),n.push(a)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,s=typeof i=="string"?[]:i.limiters,a="";switch(s.forEach(l=>{a+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return a="\\s"+(a||this.escapeStr(r)),`()([^${a}]*${e}[^${a}]*)`;case"exactly":return`(^|\\s${a})(${e})(?=$|\\s${a})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.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 r=[],i=0;return e.sort((n,s)=>n.start-s.start).forEach(n=>{let{start:s,end:a,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=s,n.length=a-s,r.push(n),i=a)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,s=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?s=!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:i,end:n,valid:s}}checkWhitespaceRanges(e,r,i){let n,s=!0,a=i.length,l=r-a,d=parseInt(e.start,10)-l;return d=d>a?a:d,n=d+parseInt(e.length,10),n>a&&(n=a,this.log(`End range automatically set to the max value of ${a}`)),d<0||n-d<0||d>a||n>a?(s=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:s}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return Er.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",s=e.splitText(r),a=s.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=s.textContent,s.parentNode.replaceChild(l,s),a}wrapRangeInMappedTextNode(e,r,i,n,s){e.nodes.every((a,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(a.node))return!1;let p=r-a.start,m=(i>a.end?a.end:i)-a.start,h=e.value.substr(0,a.start),g=e.value.substr(m+a.start);if(a.node=this.wrapRangeInTextNode(a.node,p,m),e.value=h+g,e.nodes.forEach((v,E)=>{E>=l&&(e.nodes[E].start>0&&E!==l&&(e.nodes[E].start-=m),e.nodes[E].end-=m)}),i-=m,s(a.node.previousSibling,a.start),i>a.end)r=a.end;else return!1}return!0})}wrapMatches(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[a]!=="";){if(!i(p[a],d))continue;let m=p.index;if(a!==0)for(let h=1;h<a;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[a].length),n(d.previousSibling),e.lastIndex=0}}),s()})}wrapMatchesAcrossElements(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[a]!=="";){let p=d.index;if(a!==0)for(let h=1;h<a;h++)p+=d[h].length;let m=p+d[a].length;this.wrapRangeInMappedTextNode(l,p,m,h=>i(d[a],h),(h,g)=>{e.lastIndex=g,n(h)})}s()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(s=>{let a=s.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,a,s.value);h&&this.wrapRangeInMappedTextNode(s,p,m,g=>r(g,l,s.value.substring(p,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",s=a=>{i++,this.opt.each(a)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(a,l)=>this.opt.filter(l,a,i),s,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:s,length:a}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,p,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),s[a-1]===p?this.opt.done(i):d(s[s.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),a===0?this.opt.done(i):d(s[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(s,a,l,d)=>this.opt.filter(s,a,l,d),(s,a)=>{i++,this.opt.each(s,a)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Er.matches(i,r),s=this.matchesExclude(i);return!n||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function qs(t){let e=new jo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var em=qs,Md=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),tm=O`
1
+ "use strict";(()=>{var af=Object.defineProperty;var q=(t,e)=>{for(var r in e)af(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,s=new WeakMap,a=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(x,y){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=y.prototype.attributeChangedCallback,I=new Set(y.observedAttributes||[]);g(y,I,C);let V={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,V),this._definitionsByClass.set(y,V);let ee=r.call(i,x);ee||(ee=h(x),e.call(i,x,ee)),this===window.customElements&&(a.set(y,V),V.standInClass=ee);let ue=this._awaitingUpgrade.get(x);if(ue){this._awaitingUpgrade.delete(x);for(let Q of ue)s.delete(Q),E(Q,V,!0)}let $=this._whenDefinedPromises.get(x);return $!==void 0&&($.resolve(y),this._whenDefinedPromises.delete(x)),y}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let y=this._getDefinition(x);if(y!==void 0)return Promise.resolve(y.elementClass);let C=this._whenDefinedPromises.get(x);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(x,C)),C.promise}_upgradeWhenDefined(x,y,C){let I=this._awaitingUpgrade.get(y);I||this._awaitingUpgrade.set(y,I=new Set),C?I.add(x):I.delete(x)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let C=a.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),n.set(y,C),y},window.HTMLElement.prototype=t.prototype;let u=x=>x===document||x instanceof ShadowRoot,m=x=>{let y=x.getRootNode();if(!u(y)){let C=R[R.length-1];if(C instanceof CustomElementRegistry)return C;y=C.getRootNode(),u(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=x=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=m(C)||window.customElements,V=I._getDefinition(x);return V?E(C,V):s.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(x,y,C)=>{if(y.size===0||C===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(ue,$){let Q=ue.toLowerCase();if(y.has(Q)){let Ce=this.getAttribute(Q);I.call(this,Q,$),C.call(this,Q,Ce,$)}else I.call(this,Q,$)});let V=x.prototype.removeAttribute;V&&(x.prototype.removeAttribute=function(ue){let $=ue.toLowerCase();if(y.has($)){let Q=this.getAttribute($);V.call(this,$),C.call(this,$,Q,null)}else V.call(this,$)});let ee=x.prototype.toggleAttribute;ee&&(x.prototype.toggleAttribute=function(ue,$){let Q=ue.toLowerCase();if(y.has(Q)){let Ce=this.getAttribute(Q);ee.call(this,Q,$);let Ct=this.getAttribute(Q);C.call(this,Q,Ce,Ct)}else ee.call(this,Q,$)})},v=x=>{let y=Object.getPrototypeOf(x);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(x,window.HTMLElement):v(y)},E=(x,y,C=!1)=>{Object.setPrototypeOf(x,y.elementClass.prototype),n.set(x,y),d=x;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(I=>{x.hasAttribute(I)&&y.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),C&&y.connectedCallback&&x.isConnected&&y.connectedCallback.call(x)},T=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let y=T.apply(this,arguments);return x.customElements&&(y.customElements=x.customElements),y};let R=[document],N=(x,y,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):x.prototype)[y];x.prototype[y]=function(){R.push(this);let V=I.apply(C||this,arguments);return V!==void 0&&l.set(V,this),R.pop(),V}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let M=(x,y)=>{let C=Object.getOwnPropertyDescriptor(x.prototype,y);Object.defineProperty(x.prototype,y,{...C,set(I){R.push(this),C.set.call(this,I),R.pop()}})};if(M(Element,"innerHTML"),M(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let x=new WeakMap,y=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ue){let $=y.call(this,...ue);return x.set($,this),$},C.forEach(ue=>{let $=window.ElementInternals.prototype,Q=$[ue];$[ue]=function(...Ce){let Ct=x.get(this);if(n.get(Ct).formAssociated===!0)return Q?.call(this,...Ce);throw new DOMException(`Failed to execute ${Q} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor($){super(...$),this._elements=$}get value(){return this._elements.find($=>$.checked===!0)?.value||""}}class V{constructor($){let Q=new Map;$.forEach((Ce,Ct)=>{let Pn=Ce.getAttribute("name"),wl=Q.get(Pn)||[];this[+Ct]=Ce,wl.push(Ce),Q.set(Pn,wl)}),this.length=$.length,Q.forEach((Ce,Ct)=>{Ce&&(Ce.length===1?this[Ct]=Ce[0]:this[Ct]=new I(Ce))})}namedItem($){return this[$]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ue=ee.get.call(this,[]),$=[];for(let Q of ue){let Ce=n.get(Q);(!Ce||Ce.formAssociated===!0)&&$.push(Q)}return new V($)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var s;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){!((s=a.message)===null||s===void 0)&&s.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,a)}}}var jn={};q(jn,{CSSResult:()=>qr,LitElement:()=>dt,ReactiveElement:()=>ot,_$LE:()=>xf,_$LH:()=>Hn,adoptStyles:()=>Ro,css:()=>O,defaultConverter:()=>Zr,getCompatibleStyle:()=>xi,html:()=>b,isServer:()=>Kg,mathml:()=>Vn,noChange:()=>Ee,notEqual:()=>ko,nothing:()=>_,render:()=>Wn,supportsAdoptingStyleSheets:()=>Ao,svg:()=>zn,unsafeCSS:()=>dr});var bi=globalThis,Ao=bi.ShadowRoot&&(bi.ShadyCSS===void 0||bi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nn=Symbol(),Al=new WeakMap,qr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ao&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Al.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Al.set(r,e))}return e}toString(){return this.cssText}},dr=t=>new qr(typeof t=="string"?t:t+"",void 0,Nn),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new qr(r,t,Nn)},Ro=(t,e)=>{if(Ao)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=bi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},xi=Ao?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return dr(r)})(t):t;var{is:lf,defineProperty:cf,getOwnPropertyDescriptor:df,getOwnPropertyNames:pf,getOwnPropertySymbols:uf,getPrototypeOf:ff}=Object,vi=globalThis,Rl=vi.trustedTypes,hf=Rl?Rl.emptyScript:"",mf=vi.reactiveElementPolyfillSupport,_o=(t,e)=>t,Zr={toAttribute(t,e){switch(e){case Boolean:t=t?hf:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},ko=(t,e)=>!lf(t,e),_l={attribute:!0,type:String,converter:Zr,reflect:!1,useDefault:!1,hasChanged:ko};Symbol.metadata??=Symbol("metadata"),vi.litPropertyMetadata??=new WeakMap;var ot=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,r=_l){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&cf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=df(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:n,set(a){let l=n?.call(this);s?.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_l}static _$Ei(){if(this.hasOwnProperty(_o("elementProperties")))return;let e=ff(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(_o("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_o("properties"))){let r=this.properties,i=[...pf(r),...uf(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(xi(n))}else e!==void 0&&r.push(xi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ro(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,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:Zr).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Zr;this._$Em=n;let l=a.fromAttribute(r,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let a=this.constructor;if(n===!1&&(s=this[e]),i??=a.getPropertyOptions(e),!((i.hasChanged??ko)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[_o("elementProperties")]=new Map,ot[_o("finalized")]=new Map,mf?.({ReactiveElement:ot}),(vi.reactiveElementVersions??=[]).push("2.1.2");var Fn=globalThis,kl=t=>t,Si=Fn.trustedTypes,Ll=Si?Si.createPolicy("lit-html",{createHTML:t=>t}):void 0,$n="$lit$",Ft=`lit$${Math.random().toFixed(9).slice(2)}$`,Mn="?"+Ft,gf=`<${Mn}>`,fr=document,Io=()=>fr.createComment(""),To=t=>t===null||typeof t!="object"&&typeof t!="function",Bn=Array.isArray,Fl=t=>Bn(t)||typeof t?.[Symbol.iterator]=="function",Dn=`[
2
+ \f\r]`,Lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Il=/-->/g,Tl=/>/g,pr=RegExp(`>|${Dn}(?:([^\\s"'>=/]+)(${Dn}*=${Dn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pl=/'/g,Nl=/"/g,$l=/^(?:script|style|textarea|title)$/i,Un=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),b=Un(1),zn=Un(2),Vn=Un(3),Ee=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Dl=new WeakMap,ur=fr.createTreeWalker(fr,129);function Ml(t,e){if(!Bn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ll!==void 0?Ll.createHTML(e):e}var Bl=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",a=Lo;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(a.lastIndex=g,m=a.exec(d),m!==null);)g=a.lastIndex,a===Lo?m[1]==="!--"?a=Il:m[1]!==void 0?a=Tl:m[2]!==void 0?($l.test(m[2])&&(n=RegExp("</"+m[2],"g")),a=pr):m[3]!==void 0&&(a=pr):a===pr?m[0]===">"?(a=n??Lo,h=-1):m[1]===void 0?h=-2:(h=a.lastIndex-m[2].length,u=m[1],a=m[3]===void 0?pr:m[3]==='"'?Nl:Pl):a===Nl||a===Pl?a=pr:a===Il||a===Tl?a=Lo:(a=pr,n=void 0);let v=a===pr&&t[l+1].startsWith("/>")?" ":"";s+=a===Lo?d+gf:h>=0?(i.push(u),d.slice(0,h)+$n+d.slice(h)+Ft+v):d+Ft+(h===-2?l:v)}return[Ml(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Po=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,l=e.length-1,d=this.parts,[u,m]=Bl(e,r);if(this.el=t.createElement(u,i),ur.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ur.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith($n)){let g=m[a++],v=n.getAttribute(h).split(Ft),E=/([.?@])?(.*)/.exec(g);d.push({type:1,index:s,name:E[2],strings:v,ctor:E[1]==="."?Ei:E[1]==="?"?Oi:E[1]==="@"?wi:mr}),n.removeAttribute(h)}else h.startsWith(Ft)&&(d.push({type:6,index:s}),n.removeAttribute(h));if($l.test(n.tagName)){let h=n.textContent.split(Ft),g=h.length-1;if(g>0){n.textContent=Si?Si.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Io()),ur.nextNode(),d.push({type:2,index:++s});n.append(h[g],Io())}}}else if(n.nodeType===8)if(n.data===Mn)d.push({type:2,index:s});else{let h=-1;for(;(h=n.data.indexOf(Ft,h+1))!==-1;)d.push({type:7,index:s}),h+=Ft.length-1}s++}}static createElement(e,r){let i=fr.createElement("template");return i.innerHTML=e,i}};function hr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=To(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=hr(t,n._$AS(t,e.values),n,i)),e}var Ci=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??fr).importNode(r,!0);ur.currentNode=n;let s=ur.nextNode(),a=0,l=0,d=i[0];for(;d!==void 0;){if(a===d.index){let u;d.type===2?u=new Yr(s,s.nextSibling,this,e):d.type===1?u=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(u=new Ai(s,this,e)),this._$AV.push(u),d=i[++l]}a!==d?.index&&(s=ur.nextNode(),a++)}return ur.currentNode=fr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Yr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=hr(this,e,r),To(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fl(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!==_&&To(this._$AH)?this._$AA.nextSibling.data=e:this.T(fr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Po.createElement(Ml(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ci(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Dl.get(e.strings);return r===void 0&&Dl.set(e.strings,r=new Po(e)),r}k(e){Bn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Io()),this.O(Io()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=kl(e).nextSibling;kl(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},mr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=hr(this,e,r,0),a=!To(e)||e!==this._$AH&&e!==Ee,a&&(this._$AH=e);else{let l=e,d,u;for(e=s[0],d=0;d<s.length-1;d++)u=hr(this,l[i+d],r,d),u===Ee&&(u=this._$AH[d]),a||=!To(u)||u!==this._$AH[d],u===_?e=_:e!==_&&(e+=(u??"")+s[d+1]),this._$AH[d]=u}a&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ei=class extends mr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},Oi=class extends mr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},wi=class extends mr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=hr(this,e,r,0)??_)===Ee)return;let i=this._$AH,n=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==_&&(i===_||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Ai=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){hr(this,e)}},Hn={M:$n,P:Ft,A:Mn,C:1,L:Bl,R:Ci,D:Fl,V:hr,I:Yr,H:mr,N:Oi,U:wi,B:Ei,F:Ai},yf=Fn.litHtmlPolyfillSupport;yf?.(Po,Yr),(Fn.litHtmlVersions??=[]).push("3.3.3");var Wn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new Yr(e.insertBefore(Io(),s),s,void 0,r??{})}return n._$AI(t),n};var Gn=globalThis,dt=class extends ot{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Wn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};dt._$litElement$=!0,dt.finalized=!0,Gn.litElementHydrateSupport?.({LitElement:dt});var bf=Gn.litElementPolyfillSupport;bf?.({LitElement:dt});var xf={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Gn.litElementVersions??=[]).push("4.2.2");var Kg=!1;var Yn={};q(Yn,{customElement:()=>vf,eventOptions:()=>Cf,property:()=>f,query:()=>P,queryAll:()=>Kn,queryAssignedElements:()=>qn,queryAssignedNodes:()=>Zn,queryAsync:()=>Of,standardProperty:()=>Ul,state:()=>A});var vf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Sf={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:ko},Ul=(t=Sf,e,r)=>{let{kind:i,metadata:n}=r,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),i==="accessor"){let{name:a}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,d,t,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,t,l),l}}}if(i==="setter"){let{name:a}=r;return function(l){let d=this[a];e.call(this,l),this.requestUpdate(a,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?Ul(t,e,r):((i,n,s)=>{let a=n.hasOwnProperty(s);return n.constructor.createProperty(s,i),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}function A(t){return f({...t,state:!0,attribute:!1})}function Cf(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var pt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function P(t,e){return(r,i,n)=>{let s=a=>a.renderRoot?.querySelector(t)??null;if(e){let{get:a,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return pt(r,i,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return pt(r,i,{get(){return s(this)}})}}var Ef;function Kn(t){return(e,r)=>pt(e,r,{get(){return(this.renderRoot??(Ef??=document.createDocumentFragment())).querySelectorAll(t)}})}function Of(t){return(e,r)=>pt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function qn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return pt(e,r,{get(){let a=this.renderRoot?.querySelector(s),l=a?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Zn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return pt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Qn={};q(Qn,{repeat:()=>ae});var Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ze=t=>(...e)=>({_$litDirective$:t,values:e}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:wf}=Hn,zl=t=>t;var Hl=t=>t.strings===void 0,Vl=()=>document.createComment(""),Qr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(Vl(),n),a=i.insertBefore(Vl(),n);r=new wf(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==a._$AU&&r._$AP(d)}if(s!==n||l){let d=r._$AA;for(;d!==s;){let u=zl(d).nextSibling;zl(i).insertBefore(d,n),d=u}}}return r},Gt=(t,e,r=t)=>(t._$AI(e,r),t),Af={},Wl=(t,e=Af)=>t._$AH=e,Gl=t=>t._$AH,Ri=t=>{t._$AR(),t._$AA.remove()};var jl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},ae=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let l of t)n[a]=i?i(l,a):a,s[a]=r(l,a),a++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Gl(t),{values:s,keys:a}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=a,s;let l=this.ut??=[],d=[],u,m,h=0,g=n.length-1,v=0,E=s.length-1;for(;h<=g&&v<=E;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===a[v])d[v]=Gt(n[h],s[v]),h++,v++;else if(l[g]===a[E])d[E]=Gt(n[g],s[E]),g--,E--;else if(l[h]===a[E])d[E]=Gt(n[h],s[E]),Qr(t,d[E+1],n[h]),h++,E--;else if(l[g]===a[v])d[v]=Gt(n[g],s[v]),Qr(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=jl(a,v,E),m=jl(l,h,g)),u.has(l[h]))if(u.has(l[g])){let T=m.get(a[v]),R=T!==void 0?n[T]:null;if(R===null){let N=Qr(t,n[h]);Gt(N,s[v]),d[v]=N}else d[v]=Gt(R,s[v]),Qr(t,n[h],R),n[T]=null;v++}else Ri(n[g]),g--;else Ri(n[h]),h++;for(;v<=E;){let T=Qr(t,d[E+1]);Gt(T,s[v]),d[v++]=T}for(;h<=g;){let T=n[h++];T!==null&&Ri(T)}return this.ut=a,Wl(t,d),Ee}});var Xn={};q(Xn,{classMap:()=>oe});var oe=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var Jn={};q(Jn,{styleMap:()=>_f});var Kl="important",Rf=" !"+Kl,_f=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let s=typeof n=="string"&&n.endsWith(Rf);i.includes("-")||s?r.setProperty(i,s?n.slice(0,-11):n,s?Kl:""):r[i]=n}}return Ee}});var ts={};q(ts,{UnsafeHTMLDirective:()=>Xr,unsafeHTML:()=>es});var Xr=class extends it{constructor(e){if(super(e),this.it=_,e.type!==Et.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===Ee)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Xr.directiveName="unsafeHTML",Xr.resultType=1;var es=Ze(Xr);var rs={};q(rs,{splitBreadcrumbForMenu:()=>kf});function kf(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var us={};q(us,{CacheRegistry:()=>Ot,ClearCacheEvent:()=>Mo});var os={};q(os,{CancelablePromise:()=>_i,CanceledPromiseError:()=>jt,cancelable:()=>ki});var jt=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},_i=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new jt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new jt("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ki=t=>new _i((e,r)=>t.then(e).catch(r));var ps={};q(ps,{FtContextRegistrationEvent:()=>$o,FtNotificationEvent:()=>Fo,PostResizeEvent:()=>ds,PreResizeEvent:()=>cs,WithEventBus:()=>$t,withEventBus:()=>Pi});var ls={};q(ls,{AbstractRegistry:()=>Jr,applyMixinOnce:()=>Oe,customElements:()=>W,dateReviver:()=>Pf,deepCopy:()=>nt,deepEqual:()=>he,delay:()=>Li,eventPathContainsMatchingElement:()=>ns,everyDeep:()=>Tf,flatDeep:()=>Ye,forEachDeep:()=>Yl,getComposedPathTo:()=>as,groupBy:()=>Ff,hasChanged:()=>He,ignoreComposingEvents:()=>Zt,last:()=>ss,minmax:()=>qt,parseDate:()=>Xl,randomId:()=>Df,someDeep:()=>Ql,unslotText:()=>Ti,waitFor:()=>Ii,waitUntil:()=>Do});var is={};q(is,{customElement:()=>No,dateProperty:()=>If,isNumber:()=>Zl,jsonProperty:()=>le,jsonPropertyConverter:()=>ql,numberProperty:()=>Kt,optionalNumberProperty:()=>Lf});var No=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},ql=t=>({fromAttribute:e=>{if(e==null)return nt(t);try{return JSON.parse(e)}catch{return nt(t)}},toAttribute:e=>JSON.stringify(e)});function le(t,e){return f({type:Object,converter:ql(t),hasChanged:He,...e??{}})}function Lf(t){return Kt(t)}function Kt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,s=(i=t?.max)!==null&&i!==void 0?i:1/0;return Zl(e)?qt(n,+e,s):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Zl(t){return!isNaN(parseFloat(t))}function If(t){return f({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Li=t=>new Promise(e=>setTimeout(e,t));async function Do(t,e=10,r=2e4){await Ii(async()=>await t()||void 0,e,r)}async function Ii(t,e=10,r=2e4){let i=await t(),n=performance.now(),s=n;for(;i==null&&(!r||s-n<r);)await Li(e),i=await t(),s=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ye(t,e){return t.flatMap(r=>[r,...Ye(e(r),e)])}function Yl(t,e,r){let i=(n,s)=>{var a;for(let l=0;l<n.length;l++){let d=n[l];if(!(((a=r(d,l,n,s))!==null&&a!==void 0?a:!0)&&i(e(d),[...s,d])))return!1}return!0};i(t,[])}function Ql(t,e,r){let i=!1;return Yl(t,e,(n,s,a,l)=>(i=!!r(n,s,a,l),!i)),i}function Tf(t,e,r){return!Ql(t,e,(i,n,s,a)=>!r(i,n,s,a))}function Pf(...t){return(e,r)=>t.includes(e)?Xl(r):r}function Xl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function Nf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!he(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!he(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=a=>Object.keys(a).filter(l=>a[l]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let a=s[i];if(!he(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return Nf(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function ns(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(s=>n.matches(s)))return!0}}return!1}function qt(t,e,r){return Math.min(Math.max(t,e),r)}function ss(t){return t[t.length-1]}function Ti(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Ti(e)).join(""):t?.textContent||""}function as(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function nt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Df(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Oe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Zt(){return function(t,e,r){let i=r.value;r.value=function(n,...s){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(s))}}}function W(t){for(let[e,r]of Object.entries(t))No(e)(r)}function Ff(t,e){var r,i;let n=typeof e=="function"?e:a=>a[e],s={};for(let a of t)((r=s[i=n(a)])!==null&&r!==void 0?r:s[i]=[]).push(a);return s}var Jr=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var Fo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},cs=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ds=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Pi=Oe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),$t=class extends Pi(Object){},$o=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var Mo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ot=class extends $t{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let s=this.content[e],a=(n=s?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...s,loader:r,final:i,status:a}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Mo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Mo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,s="RESOLVED";this.content[e]={loader:n,final:i,status:s,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=ki(r()),n.promise.then(s=>(n.status="RESOLVED",n.value=s,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),s)).catch(s=>{var a;throw!((a=n.promise)===null||a===void 0)&&a.isCanceled||(n.status="ERROR",n.error=s),s})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Ss={};q(Ss,{ClusteringHelper:()=>vs,formatHierarchicalValues:()=>xs});var bs={};q(bs,{accessBreadcrumb:()=>Gf,accessResult:()=>ys,accessResultId:()=>Hf,accessResultUrl:()=>Wf,enrichReaderUrl:()=>gs});var ms={};q(ms,{SearchPlaceConverter:()=>ut,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>zf});var $f=t=>typeof t=="object"&&t!=null;var Mf=t=>typeof t=="number",Ni=t=>typeof t=="string",hs=t=>$f(t)&&Ni(t.endpoint)&&Ni(t.method)&&Ni(t.statusText)&&Ni(t.body)&&Mf(t.status),Jl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Jl||(Jl={}));var ec;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ec||(ec={}));var tc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(tc||(tc={}));var rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rc||(rc={}));var oc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(oc||(oc={}));var ic;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ic||(ic={}));var nc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(nc||(nc={}));var sc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(sc||(sc={}));var ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ac||(ac={}));var lc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(lc||(lc={}));var cc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(cc||(cc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dc||(dc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(mc||(mc={}));var gr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gr||(gr={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var Di;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Di||(Di={}));var Oc=t=>Object.keys(Di).includes(t);var bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bc||(bc={}));var xc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var eo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(eo||(eo={}));var wc=t=>Object.keys(eo).includes(t);var Sc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Sc||(Sc={}));var fs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fs||(fs={}));var Cc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Cc||(Cc={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(me||(me={}));var st;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(st||(st={}));var Ec;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ec||(Ec={}));var Ac;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ac||(Ac={}));var Rc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rc||(Rc={}));var _c;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(_c||(_c={}));var kc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(kc||(kc={}));var Lc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lc||(Lc={}));var Ic;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ic||(Ic={}));var Tc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Tc||(Tc={}));var Pc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Pc||(Pc={}));var Nc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Nc||(Nc={}));var Dc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Dc||(Dc={}));var Fc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Fc||(Fc={}));var Bf={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function $c(t,e){return t===e||(Bf[t]??[]).some(r=>$c(r,e))}function Fi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>$c(i,e))}function Mc(t,...e){return t==null?!1:e.some(r=>Fi(t,r))}function Uf(t){return`"${t}"`}function Bc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zf(t,e){return new ut(t).serialize(e)}var G;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(G||(G={}));var Vf=new Set(Object.values(G));function Uc(t){return Vf.has(t)}var ut=class t{constructor(e,r=20,i=!1,n="en-US",s=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.availableContentLocales=s,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,s,a,l,d,u,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(G.LOCALE,e.contentLocale):g.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(G.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(G.VALUE_FILTERS,v);let E=t.serializeNegativeValueFilters(e.metadataFilters);E&&g.append(G.NEGATIVE_VALUE_FILTERS,E);let T=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(x=>x.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let x=T.map(y=>{var C;return`${y.key}~${(C=y.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(G.DATE_FILTERS,x)}let R=(u=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.rangeFilter))!==null&&u!==void 0?u:[];if(R.length>0){let x=R.map(y=>{var C,I;return`${y.key}~${(C=y.rangeFilter)===null||C===void 0?void 0:C.from}_${(I=y.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");g.append(G.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(G.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(G.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(G.SORT,e.sortId),!((a=e.paging)===null||a===void 0)&&a.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(G.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(G.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let x in N)g.append(x,N[x]);let M=new Array;return g.forEach((x,y)=>{M.push(this.encodeQueryString(y)+"="+this.encodeQueryString(x))}),encodeURI(M.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),s=i[0].split("/search/")[1];return s==null?n:{...n,scope:(r=this.scopeMapping[s])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,s,a,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(M){console.warn("Could not decode search request query params, fallback on raw value",M)}let u=new URLSearchParams(e),m=(i=u.get(G.LOCALE))!==null&&i!==void 0?i:void 0,h=((n=u.get(G.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=u.get(G.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(s=u.get(G.SCOPE))!==null&&s!==void 0?s:"default",E=+((a=u.get(G.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),T=u.get(G.KEYWORD_MATCH),R=T?T.toUpperCase()===gr.MANDATORY?gr.MANDATORY:gr.OPTIONAL:void 0,N={};for(let M of u.keys())Uc(M)||(N[M]=u.get(M));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some(M=>M.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=u.get(G.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:Oc(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(u),facets:[],paging:{page:1,perPage:qt(1,isNaN(E)?this.defaultPerPage:E,1e3)},keywordMatch:R,otherQueryParams:N}}parseCompatFilters(e){var r,i,n,s,a,l,d;let u=[];return e.has(G.FILTERS)&&(u=t.parseValueFilters((r=e.get(G.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(G.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(G.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...t.parseValueFilters((s=e.get(G.VALUE_FILTERS))!==null&&s!==void 0?s:""),...t.parseValueFilters((a=e.get(G.NEGATIVE_VALUE_FILTERS))!==null&&a!==void 0?a:"",!0),...this.parseDateFilters((l=e.get(G.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(G.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(Bc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:eo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(wc(e))return[{key:"ft:lastEdition",dateFilter:{type:eo[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(s=>t.escapeFilters(s)).map(s=>Uf(Bc(s))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[G.LOCALE,G.FILTERS,G.VALUE_FILTERS,G.NEGATIVE_VALUE_FILTERS,G.DATE_FILTERS,G.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(G.LOCALE),r!==void 0&&i.searchParams.append(G.LOCALE,r),i.toString()}};ut.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function ys(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Hf(t){var e,r,i,n,s,a,l,d,u;return(u=(d=(l=(a=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&a!==void 0?a:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&u!==void 0?u:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.contentId}function Wf(t,e){var r,i,n,s,a,l,d,u,m;return(m=(u=(d=(l=gs((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:gs((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&u!==void 0?u:(s=t?.htmlPackage)===null||s===void 0?void 0:s.viewerUrl)!==null&&m!==void 0?m:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.viewerUrl}function Gf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function gs(t,e){if(e&&t){let r=URL.parse(t),i=ut.serializeValueFilters(e);if(i&&r?.searchParams.append(G.VALUE_FILTERS,i),r)return r.toString()}return t}function xs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var vs=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var s;return((s=this.extractResultMetadata({result:n}).find(a=>a.key==r))===null||s===void 0?void 0:s.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=ys(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(s=>s.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(s=>t.flattenMetadata(s,r,i)).filter(s=>s!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let s=[],a=[];return e.hierarchicalValues.forEach(l=>{s.push(xs(l)),a.push(xs(l,r))}),{key:e.key,label:e.label,value:s.join(", "),displayValue:a.join(", "),displayTooltipValue:s.join(", ")}}else{let s=e.values.join(", "),a=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:s,displayValue:a,displayTooltipValue:a}}}computeClustersItemsForMetadata(e,r,i="No value",n,s){var a,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:s}),u=(l=d?.label)!==null&&l!==void 0?l:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:s})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(E=>E.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let s=this.getMetadataDescriptor(i),a=s?.sortRule||"NONE",l=s?.reverseSort||!1;if(a=="ALPHABET"||a=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),s=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],a,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,s);if(u>l&&(l=u,a=d,u===s.length))break}return a}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Cs={};q(Cs,{Debouncer:()=>J});var J=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of i)try{await a()}catch(l){n(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var As={};q(As,{designSystemVariables:()=>S});var ws={};q(ws,{DesignSystemFamily:()=>Bo,DesignSystemSize:()=>Uo,FtCssVariableFactory:()=>o,badge:()=>lh,banner:()=>ah,button:()=>qf,card:()=>Yf,chart:()=>Oh,checkbox:()=>eh,chip:()=>ih,chipChoice:()=>oh,chipGroup:()=>nh,collapsible:()=>Ch,combobox:()=>vh,dateRangePicker:()=>kh,drawer:()=>mh,eventCard:()=>Qf,floatingMenu:()=>xh,foundation:()=>c,link:()=>sh,modal:()=>fh,notice:()=>Ah,notification:()=>Rh,pageDesigner:()=>wh,pageFooter:()=>ph,pageHeader:()=>dh,pageLayout:()=>uh,popover:()=>Sh,radio:()=>th,reorderableList:()=>hh,resolveFamilyClass:()=>Es,resolveSizeClass:()=>Os,semantic:()=>p,setVariable:()=>w,switch_:()=>Eh,table:()=>rh,tabs:()=>gh,textArea:()=>bh,textInput:()=>yh,titleBreadcrumb:()=>ch,toc:()=>Jf,toggle:()=>Zf,tooltip:()=>_h,treeList:()=>Xf,typographies:()=>jf,typographyBody1Medium:()=>jc,typographyBody1Regular:()=>Gc,typographyBody1Semibold:()=>Kc,typographyBody2Medium:()=>Zc,typographyBody2MediumUnderline:()=>Yc,typographyBody2Regular:()=>qc,typographyBody2Semibold:()=>Qc,typographyCaption1Medium:()=>Xc,typographyCaption1Semibold:()=>Jc,typographyCaption2Bold:()=>rd,typographyCaption2Medium:()=>ed,typographyCaption2Semibold:()=>td,typographyDisplay:()=>zc,typographyTitle1:()=>Vc,typographyTitle2:()=>Hc,typographyTitle3:()=>Wc,typographyVariants:()=>Kf});var Yt=t=>typeof t=="string"?dr(t):t,o=class{static create(e,r,i,n){let s=l=>Yt(l??n),a=O`var(${Yt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Yt(e)}, ${s(l)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>n,a}static extend(e,r,i,n){let s=l=>i.get(l??n),a=O`var(${Yt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i.category,a.fallbackVariable=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Yt(e)}, ${s(l)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),a}static external(e,r){let i=s=>e.defaultCssValue(s),n=O`var(${Yt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=s=>e.set(s),n.get=s=>O`var(${Yt(e.name)}, ${i(s)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function w(t,e){return Yt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},zc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Vc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Hc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Kc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Zc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Yc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Qc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Xc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Jc={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},ed={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},td={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},rd={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},jf={display:zc,"title-1":Vc,"title-2":Hc,"title-3":Wc,"body-1-regular":Gc,"body-1-medium":jc,"body-1-semibold":Kc,"body-2-regular":qc,"body-2-medium":Zc,"body-2-medium-underline":Yc,"body-2-semibold":Qc,"caption-1-medium":Xc,"caption-1-semibold":Jc,"caption-2-medium":ed,"caption-2-semibold":td,"caption-2-bold":rd},Kf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var qf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var Zf={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var Yf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Qf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",p.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",p.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",p.backgroundGlobalSurface)};var Xf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Jf={titleColor:o.extend("--ftds-toc-title-color","",p.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:o.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",p.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:o.extend("--ftds-toc-item-inactive-label-color","",p.contentGlobalSubtle),itemInactiveBorderColor:o.extend("--ftds-toc-item-inactive-border-color","",p.borderGlobalSubtle),itemInactiveStateLayerColor:o.extend("--ftds-toc-item-inactive-state-layer-color","",p.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:o.extend("--ftds-toc-item-active-label-color","",p.contentActionPrimary),itemActiveBorderColor:o.extend("--ftds-toc-item-active-border-color","",p.borderActionPrimary),itemActiveBorderWidth:o.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:o.extend("--ftds-toc-item-active-state-layer-color","",p.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:o.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:o.extend("--ftds-toc-item-child-active-label-color","",p.contentActionPrimary),itemChildActiveBorderColor:o.extend("--ftds-toc-item-child-active-border-color","",p.borderGlobalSubtle),itemChildActiveStateLayerColor:o.extend("--ftds-toc-item-child-active-state-layer-color","",p.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var eh={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var th={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var rh={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var oh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var ih={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var nh={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var sh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var ah={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var lh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var ch={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var dh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var ph={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var uh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var fh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var hh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var mh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var gh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var yh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var bh={fieldPaddingLeft:o.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:o.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:o.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:o.extend("--ftds-text-area-resize-right","",c.spacing05)};var xh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var vh={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var Sh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Ch={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Eh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Oh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var wh={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Ah={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Rh={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var _h={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var kh={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Bo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Bo||(Bo={}));var Uo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Uo||(Uo={}));function Es(t){return`ftds--family-${t}`}function Os(t){return`ftds--size-${t}`}var S={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Rs={};q(Rs,{DynamicImporter:()=>$i,dynamicImporter:()=>Lh});var $i=class{async import(e){if(e)return import(e)}},Lh=new $i;var zs={};q(zs,{computeOffsetAutoPosition:()=>Us,computeOffsetPosition:()=>Bs});var id=["top","right","bottom","left"],od=["start","end"],ks=id.reduce((t,e)=>t.concat(e,e+"-"+od[0],e+"-"+od[1]),[]),yr=Math.min,wt=Math.max,zo=Math.round;var At=t=>({x:t,y:t}),Ih={left:"right",right:"left",bottom:"top",top:"bottom"};function nd(t,e,r){return wt(t,yr(e,r))}function to(t,e){return typeof t=="function"?t(e):t}function br(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function Ls(t){return t==="x"?"y":"x"}function Is(t){return t==="y"?"height":"width"}function ro(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ts(t){return Ls(ro(t))}function sd(t,e,r){r===void 0&&(r=!1);let i=Rt(t),n=Ts(t),s=Is(n),a=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=_s(a)),[a,_s(a)]}function ad(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function _s(t){let e=br(t);return Ih[e]+t.slice(e.length)}function Th(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function ld(t){return typeof t!="number"?Th(t):{top:t,right:t,bottom:t,left:t}}function xr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function cd(t,e,r){let{reference:i,floating:n}=t,s=ro(e),a=Ts(e),l=Is(a),d=br(e),u=s==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let E=Rt(e);return E&&(v[a]+=g*(E==="end"?1:-1)*(r&&u?-1:1)),v}async function dd(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:a,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=to(e,t),E=ld(v),R=l[g?h==="floating"?"reference":"floating":h],N=xr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(R)))==null||r?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),M=h==="floating"?{x:i,y:n,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},C=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:M,offsetParent:x,strategy:d}):M);return{top:(N.top-C.top+E.top)/y.y,bottom:(C.bottom-N.bottom+E.bottom)/y.y,left:(N.left-C.left+E.left)/y.x,right:(C.right-N.right+E.right)/y.x}}var Ph=50,pd=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,l=a.detectOverflow?a:{...a,detectOverflow:dd},d=await(a.isRTL==null?void 0:a.isRTL(e)),u=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=cd(u,i,d),g=i,v=0,E={};for(let T=0;T<s.length;T++){let R=s[T];if(!R)continue;let{name:N,fn:M}=R,{x,y,data:C,reset:I}=await M({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:E,rects:u,platform:l,elements:{reference:t,floating:e}});m=x??m,h=y??h,E[N]={...E[N],...C},I&&v<Ph&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:m,y:h}=cd(u,g,d)),T=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:E}};function Nh(t,e,r){return(t?[...r.filter(n=>Rt(n)===t),...r.filter(n=>Rt(n)!==t)]:r.filter(n=>br(n)===n)).filter(n=>t?Rt(n)===t||(e?ad(n)!==n:!1):!0)}var ud=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:a,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=ks,autoAlignment:v=!0,...E}=to(t,e),T=h!==void 0||g===ks?Nh(h||null,v,g):g,R=((r=a.autoPlacement)==null?void 0:r.index)||0,N=T[R];if(N==null)return{};if(l!==N)return{reset:{placement:T[0]}};let M=await d.detectOverflow(e,E),x=sd(N,s,await(d.isRTL==null?void 0:d.isRTL(u.floating))),y=[M[br(N)],M[x[0]],M[x[1]]],C=[...((i=a.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:y}],I=T[R+1];if(I)return{data:{index:R+1,overflows:C},reset:{placement:I}};let V=C.map($=>{let Q=Rt($.placement);return[$.placement,Q&&m?$.overflows.slice(0,2).reduce((Ce,Ct)=>Ce+Ct,0):$.overflows[0],$.overflows]}).sort(($,Q)=>$[1]-Q[1]),ue=((n=V.filter($=>$[2].slice(0,Rt($[0])?2:3).every(Q=>Q<=0))[0])==null?void 0:n[0])||V[0][0];return ue!==l?{data:{index:R+1,overflows:C},reset:{placement:ue}}:{}}}};var Dh=new Set(["left","top"]);async function Fh(t,e){let{placement:r,platform:i,elements:n}=t,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),a=br(r),l=Rt(r),d=ro(r)==="y",u=Dh.has(a)?-1:1,m=s&&d?-1:1,h=to(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof E=="number"&&(v=l==="end"?E*-1:E),d?{x:v*m,y:g*u}:{x:g*u,y:v*m}}var fd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:s,placement:a,middlewareData:l}=e,d=await Fh(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:s+d.y,data:{...d,placement:a}}}}},hd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:M=>{let{x,y}=M;return{x,y}}},...u}=to(t,e),m={x:r,y:i},h=await s.detectOverflow(e,u),g=ro(n),v=Ls(g),E=m[v],T=m[g],R=(M,x)=>nd(x+h[M==="y"?"top":"left"],x,x-h[M==="y"?"bottom":"right"]);a&&(E=R(v,E)),l&&(T=R(g,T));let N=d.fn({...e,[v]:E,[g]:T});return{...N,data:{x:N.x-r,y:N.y-i,enabled:{[v]:a,[g]:l}}}}}};var md=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:s}=e,{apply:a=()=>{},...l}=to(t,e),d=await n.detectOverflow(e,l),u=br(r),m=Rt(r),h=ro(r)==="y",{width:g,height:v}=i.floating,E,T;u==="top"||u==="bottom"?(E=u,T=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(T=u,E=m==="end"?"top":"bottom");let R=v-d.top-d.bottom,N=g-d.left-d.right,M=yr(v-d[E],R),x=yr(g-d[T],N),y=e.middlewareData.shift,C=!y,I=M,V=x;y!=null&&y.enabled.x&&(V=N),y!=null&&y.enabled.y&&(I=R),C&&!m&&(h?V=g-2*wt(d.left,d.right):I=v-2*wt(d.top,d.bottom)),await a({...e,availableWidth:V,availableHeight:I});let ee=await n.getDimensions(s.floating);return g!==ee.width||v!==ee.height?{reset:{rects:!0}}:{}}}};function Bi(){return typeof window<"u"}function Sr(t){return yd(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mt(t){var e;return(e=(yd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function yd(t){return Bi()?t instanceof Node||t instanceof We(t).Node:!1}function ft(t){return Bi()?t instanceof Element||t instanceof We(t).Element:!1}function Bt(t){return Bi()?t instanceof HTMLElement||t instanceof We(t).HTMLElement:!1}function gd(t){return!Bi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Vo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function bd(t){return/^(table|td|th)$/.test(Sr(t))}function Ho(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $h=/transform|translate|scale|rotate|perspective|filter/,Mh=/paint|layout|strict|content/,vr=t=>!!t&&t!=="none",Ps;function oo(t){let e=ft(t)?ht(t):t;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!Ui()&&(vr(e.backdropFilter)||vr(e.filter))||$h.test(e.willChange||"")||Mh.test(e.contain||"")}function xd(t){let e=Qt(t);for(;Bt(e)&&!io(e);){if(oo(e))return e;if(Ho(e))return null;e=Qt(e)}return null}function Ui(){return Ps==null&&(Ps=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ps}function io(t){return/^(html|body|#document)$/.test(Sr(t))}function ht(t){return We(t).getComputedStyle(t)}function Wo(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qt(t){if(Sr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||gd(t)&&t.host||Mt(t);return gd(e)?e.host:e}function vd(t){let e=Qt(t);return io(e)?(t.ownerDocument||t).body:Bt(e)&&Vo(e)?e:vd(e)}function Mi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=vd(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),a=We(n);if(s){let l=zi(a);return e.concat(a,a.visualViewport||[],Vo(n)?n:[],l&&r?Mi(l):[])}else return e.concat(n,Mi(n,[],r))}function zi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ed(t){let e=ht(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),s=n?t.offsetWidth:r,a=n?t.offsetHeight:i,l=zo(r)!==s||zo(i)!==a;return l&&(r=s,i=a),{width:r,height:i,$:l}}function Od(t){return ft(t)?t:t.contextElement}function no(t){let e=Od(t);if(!Bt(e))return At(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Ed(e),a=(s?zo(r.width):r.width)/i,l=(s?zo(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var Bh=At(0);function wd(t){let e=We(t);return!Ui()||!e.visualViewport?Bh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Uh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===We(t)}function Go(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Od(t),a=At(1);e&&(i?ft(i)&&(a=no(i)):a=no(t));let l=Uh(s,r,i)?wd(s):At(0),d=(n.left+l.x)/a.x,u=(n.top+l.y)/a.y,m=n.width/a.x,h=n.height/a.y;if(s&&i){let g=We(s),v=ft(i)?We(i):i,E=g,T=zi(E);for(;T&&v!==E;){let R=no(T),N=T.getBoundingClientRect(),M=ht(T),x=N.left+(T.clientLeft+parseFloat(M.paddingLeft))*R.x,y=N.top+(T.clientTop+parseFloat(M.paddingTop))*R.y;d*=R.x,u*=R.y,m*=R.x,h*=R.y,d+=x,u+=y,E=We(T),T=zi(E)}}return xr({width:m,height:h,x:d,y:u})}function Vi(t,e){let r=Wo(t).scrollLeft;return e?e.left+r:Go(Mt(t)).left+r}function Ad(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Vi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function zh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",a=Mt(i),l=e?Ho(e.floating):!1;if(i===a||l&&s)return r;let d={scrollLeft:0,scrollTop:0},u=At(1),m=At(0),h=Bt(i);if((h||!s)&&((Sr(i)!=="body"||Vo(a))&&(d=Wo(i)),h)){let v=Go(i);u=no(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=a&&!h&&!s?Ad(a,d):At(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function Vh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Hh(t){let e=Wo(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Vi(t),a=-e.scrollTop;return ht(r).direction==="rtl"&&(s+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}var Wh=25;function Gh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=We(t),s=Mt(t),a=n.visualViewport,l=s.clientWidth,d=s.clientHeight,u=0,m=0;if(a){let g=!Ui()||e==="fixed";i?g||(u=-a.offsetLeft,m=-a.offsetTop):(l=a.width,d=a.height,g&&(u=a.offsetLeft,m=a.offsetTop))}if(Vi(s)<=0){let g=s.ownerDocument,v=g.body,E=getComputedStyle(v),T=g.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,R=Math.abs(s.clientWidth-v.clientWidth-T),N=getComputedStyle(s).scrollbarGutter==="stable both-edges"?R/2:R;N<=Wh&&(l-=N)}return{width:l,height:d,x:u,y:m}}function jh(t,e){let r=Go(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=no(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,d=n*s.x,u=i*s.y;return{width:a,height:l,x:d,y:u}}function Sd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Gh(t,r,e);else if(e==="document")i=Hh(Mt(t));else if(ft(e))i=jh(e,r);else{let n=wd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return xr(i)}function Kh(t,e){let r=e.get(t);if(r)return r;let i=Mi(t,[],!1).filter(l=>ft(l)&&Sr(l)!=="body"),n=null,s=ht(t).position==="fixed",a=s?Qt(t):t;for(;ft(a)&&!io(a);){let l=ht(a),d=oo(a),u=n?n.position:s?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==a):n=l,a=Qt(a)}return e.set(t,i),i}function qh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,a=[...r==="clippingAncestors"?Ho(e)?[]:Kh(e,this._c):[].concat(r),i],l=Sd(e,a[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<a.length;g++){let v=Sd(e,a[g],n);d=wt(v.top,d),u=yr(v.right,u),m=yr(v.bottom,m),h=wt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function Zh(t){let{width:e,height:r}=Ed(t);return{width:e,height:r}}function Yh(t,e,r){let i=Bt(e),n=Mt(e),s=r==="fixed",a=Go(t,!0,s,e),l={scrollLeft:0,scrollTop:0},d=At(0);if((i||!s)&&((Sr(e)!=="body"||Vo(n))&&(l=Wo(e)),i)){let g=Go(e,!0,s,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Vi(n));let u=n&&!i&&!s?Ad(n,l):At(0),m=a.left+l.scrollLeft-d.x-u.x,h=a.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:a.width,height:a.height}}function Ns(t){return ht(t).position==="static"}function Cd(t,e){if(!Bt(t)||ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Mt(t)===r&&(r=r.ownerDocument.body),r}function Rd(t,e){let r=We(t);if(Ho(t))return r;if(!Bt(t)){let n=Qt(t);for(;n&&!io(n);){if(ft(n)&&!Ns(n))return n;n=Qt(n)}return r}let i=Cd(t,e);for(;i&&bd(i)&&Ns(i);)i=Cd(i,e);return i&&io(i)&&Ns(i)&&!oo(i)?r:i||xd(t)||r}var Qh=async function(t){let e=this.getOffsetParent||Rd,r=this.getDimensions,i=await r(t.floating);return{reference:Yh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Xh(t){return ht(t).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:zh,getDocumentElement:Mt,getClippingRect:qh,getOffsetParent:Rd,getElementRects:Qh,getClientRects:Vh,getDimensions:Zh,getScale:no,isElement:ft,isRTL:Xh};var _d=fd,Ds=ud,kd=hd;var Ld=md;var Fs=(t,e,r)=>{let i=new Map,n=r??{},s={...so,...n.platform,_c:i};return pd(t,e,{...n,platform:s})};function Ms(t){return Jh(t)}function $s(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Jh(t){for(let e=t;e;e=$s(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=$s(t);e;e=$s(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||oo(r)||e.tagName==="BODY"))return e}return null}async function Bs(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Fs(t,e,{strategy:i.strategy,platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,Ms)},middleware:[kd({crossAxis:!0}),Ds({allowedPlacements:[i.placement]})]})}async function Us(t,e,r,i,n,s,a){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,s=r.maxHeightCssVariable,d=r.maxWidthCssVariable,a=r.offsetValue):l=r,Fs(t,e,{placement:l,strategy:n,platform:{...so,getOffsetParent:u=>so.getOffsetParent(u,Ms)},middleware:[_d(a??4),Ds({allowedPlacements:i}),Ld({apply({availableHeight:u,availableWidth:m,elements:h}){typeof s=="string"&&(s=`var(${s})`),s?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${s})`:h.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Vs={};q(Vs,{isSlotEmptyOrWithoutContent:()=>jo});var jo=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var qs={};q(qs,{FtdsBase:()=>Ks,toFtdsBase:()=>$d});var js={};q(js,{ExportpartsUpdatedEvent:()=>Cr,FtLitElement:()=>D});var Hs={};q(Hs,{ScopedRegistryLitElement:()=>Ko});var Ko=class extends dt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Ro(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){No(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Gs={};q(Gs,{shadowQuerySelector:()=>Ws,shadowQuerySelectorAll:()=>em});function Ws(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}function em(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(s=>{var a,l;return[...(l=(a=s.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var ao=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Nd,Id=Symbol("constructorPrototype"),Td=Symbol("constructorName"),Dd=Symbol("exportpartsDebouncer"),Pd=Symbol("dynamicDependenciesLoaded"),Cr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Cr.eventName="exportparts-updated";var D=class extends Ko{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nd]=new J(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Dd].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Td]=this.constructor.name,this[Id]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Td]&&Object.setPrototypeOf(this,this[Id])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Pd]||(r[Pd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Cr.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 Cr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Ws(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,a,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],E=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(R=>R.split(":")[1]))!==null&&l!==void 0?l:[],T=[...v,...E].filter(d).map(R=>R.trim());for(let R of T)m.add(R)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Nd=Dd;ao([f()],D.prototype,"exportpartsPrefix",void 0);ao([le([])],D.prototype,"exportpartsPrefixes",void 0);ao([f({reflect:!0})],D.prototype,"exportparts",void 0);ao([f()],D.prototype,"customStylesheet",void 0);ao([f()],D.prototype,"elementToFocus",void 0);ao([A()],D.prototype,"useAdoptedStyleSheets",void 0);var Fd=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},$d=Oe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Uo.medium,this.family=Bo.neutral}getDesignSystemBaseClasses(){return{[Es(this.family)]:!0,[Os(this.size)]:!0}}}return Fd([f()],e.prototype,"size",void 0),Fd([f()],e.prototype,"family",void 0),e}),Ks=class extends $d(D){};var Md={};var Qs={};q(Qs,{highlightHtml:()=>Ys,highlightHtmlColorCssVariable:()=>Bd,highlightHtmlStyles:()=>rm});var Er=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let s=!1;return i.every(a=>n.call(e,a)?(s=!0,!1):!0),s}else return!1}getContexts(){let e,r=[];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(i=>{let n=r.filter(s=>s.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let s=e.contentWindow;if(n=s.document,!s||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,s=null,a=()=>{if(!n){n=!0,clearTimeout(s);try{this.isIframeBlank(e)||(e.removeEventListener("load",a),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",a),s=setTimeout(a,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let s=e.querySelectorAll("iframe"),a=s.length,l=0;s=Array.prototype.slice.call(s);let d=()=>{--a<=0&&n(l)};a||d(),s.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),s=Node.DOCUMENT_POSITION_PRECEDING;if(n&s)if(r!==null){let a=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(a&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let s=!1,a=!1;return n.forEach((l,d)=>{l.val===i&&(s=d,a=l.handled)}),this.compareNodeIframe(e,r,i)?(s===!1&&!a?n.push({val:i,handled:!0}):s!==!1&&!a&&(n[s].handled=!0),!0):(s===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(s=>{s.handled||this.getIframeContents(s.val,a=>{this.createInstanceOnIframe(a).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,s){let a=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(a),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),s()}forEachNode(e,r,i,n=()=>{}){let s=this.getContexts(),a=s.length;a||n(),s.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--a<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var qo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 Er(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`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 r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in r)if(r.hasOwnProperty(s)){let a=r[s],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let s=n.charAt(i+1);return/[(|)\\]/.test(s)||s===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=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(s=>{i.every(a=>{if(a.indexOf(s)!==-1){if(n.indexOf(a)>-1)return!1;e=e.replace(new RegExp(`[${a}]`,`gm${r}`),`[${a}]`),n.push(a)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,s=typeof i=="string"?[]:i.limiters,a="";switch(s.forEach(l=>{a+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return a="\\s"+(a||this.escapeStr(r)),`()([^${a}]*${e}[^${a}]*)`;case"exactly":return`(^|\\s${a})(${e})(?=$|\\s${a})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.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 r=[],i=0;return e.sort((n,s)=>n.start-s.start).forEach(n=>{let{start:s,end:a,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=s,n.length=a-s,r.push(n),i=a)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,s=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?s=!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:i,end:n,valid:s}}checkWhitespaceRanges(e,r,i){let n,s=!0,a=i.length,l=r-a,d=parseInt(e.start,10)-l;return d=d>a?a:d,n=d+parseInt(e.length,10),n>a&&(n=a,this.log(`End range automatically set to the max value of ${a}`)),d<0||n-d<0||d>a||n>a?(s=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:s}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return Er.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",s=e.splitText(r),a=s.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=s.textContent,s.parentNode.replaceChild(l,s),a}wrapRangeInMappedTextNode(e,r,i,n,s){e.nodes.every((a,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(a.node))return!1;let u=r-a.start,m=(i>a.end?a.end:i)-a.start,h=e.value.substr(0,a.start),g=e.value.substr(m+a.start);if(a.node=this.wrapRangeInTextNode(a.node,u,m),e.value=h+g,e.nodes.forEach((v,E)=>{E>=l&&(e.nodes[E].start>0&&E!==l&&(e.nodes[E].start-=m),e.nodes[E].end-=m)}),i-=m,s(a.node.previousSibling,a.start),i>a.end)r=a.end;else return!1}return!0})}wrapMatches(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[a]!=="";){if(!i(u[a],d))continue;let m=u.index;if(a!==0)for(let h=1;h<a;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[a].length),n(d.previousSibling),e.lastIndex=0}}),s()})}wrapMatchesAcrossElements(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[a]!=="";){let u=d.index;if(a!==0)for(let h=1;h<a;h++)u+=d[h].length;let m=u+d[a].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[a],h),(h,g)=>{e.lastIndex=g,n(h)})}s()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(s=>{let a=s.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,a,s.value);h&&this.wrapRangeInMappedTextNode(s,u,m,g=>r(g,l,s.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",s=a=>{i++,this.opt.each(a)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(a,l)=>this.opt.filter(l,a,i),s,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:s,length:a}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),s[a-1]===u?this.opt.done(i):d(s[s.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),a===0?this.opt.done(i):d(s[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(s,a,l,d)=>this.opt.filter(s,a,l,d),(s,a)=>{i++,this.opt.each(s,a)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Er.matches(i,r),s=this.matchesExclude(i);return!n||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Zs(t){let e=new qo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var tm=Zs,Bd=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),rm=O`
5
5
  .highlight-html-match {
6
- background: ${Md};
6
+ background: ${Bd};
7
7
  }
8
- `;function Zs(t,e,r){var i,n;let s=t.getAttribute("data-highlight-html-query");if((s??"")!==(e??"")){let a=new em(t);if(a.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),a.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>a.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Xs={};q(Xs,{noTextInputDefaultClearButton:()=>wr,noTextSelect:()=>Or,safariEllipsisFix:()=>Qs,wordWrap:()=>Ko});var Or=O`
8
+ `;function Ys(t,e,r){var i,n;let s=t.getAttribute("data-highlight-html-query");if((s??"")!==(e??"")){let a=new tm(t);if(a.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),a.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>a.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Js={};q(Js,{noTextInputDefaultClearButton:()=>wr,noTextSelect:()=>Or,safariEllipsisFix:()=>Xs,wordWrap:()=>Zo});var Or=O`
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:o.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,Ko=O`
17
+ `,Zo=O`
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:o.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,Qs=O`
29
+ `,Xs=O`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var Bd={};var Js={};q(Js,{ParametrizedLabelResolver:()=>Xt});var Xt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let s=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(s,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(s,a)=>t.formatValue(i,a))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var xa={};q(xa,{FtCommandQueue:()=>qo,FtLitElementRedux:()=>Ut,FtReduxStore:()=>tr,FtStateManager:()=>uo,ReduxWatcher:()=>ri,clearAllStores:()=>Xm,isFtReduxStore:()=>ao,redux:()=>mt,reduxEventListener:()=>om,reduxReactive:()=>rm,watch:()=>Jm,withRedux:()=>Ud});var rm=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},mt=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:He,attribute:!1,...e};f(s)(r,i);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},om=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var qo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function ao(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Zo=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),Ud=Oe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(l=>a.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[Ar].get(a)}addStore(a,l){var d;l=(d=l??a.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ar].set(l,a),this.subscribeToStore(l,a),this.updateFromStores()}removeStore(a){let l=typeof a=="string"?a:a.name;this.unsubscribeFromStore(l),this[Ar].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((a,l)=>this.subscribeToStore(l,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(a.store);p&&(a.store?this[Jt].has(a.store):this[Jt].size>0)&&(this[l]=a.selector(p.getState(),this))}})}subscribeToStore(a,l){var d,p;this[Jt].set(a,l.subscribe(()=>this.updateFromStores())),this[Zo].set(a,[]),ao(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,h)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((m,h)=>{if(typeof this[h]=="function"&&(!m.store||l.name===m.store)){let g=v=>this[h](v);l.addEventListener(m.eventName,g),this[Zo].get(a).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Jt].forEach((a,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(a){var l;this[Jt].has(a)&&this[Jt].get(a)(),this[Jt].delete(a),(l=this[Zo].get(a))===null||l===void 0||l.forEach(d=>d()),this[Zo].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Jt,r=Ar,i=Zo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ut=class extends Ud(D){};function ke(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var im=typeof Symbol=="function"&&Symbol.observable||"@@observable",zd=im,ea=()=>Math.random().toString(36).substring(7).split("").join("."),nm={INIT:`@@redux/INIT${ea()}`,REPLACE:`@@redux/REPLACE${ea()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ea()}`},Ui=nm;function zi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ta(t,e,r){if(typeof t!="function")throw new Error(ke(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ke(1));return r(ta)(t,e)}let i=t,n=e,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((R,N)=>{a.set(N,R)}))}function m(){if(d)throw new Error(ke(3));return n}function h(R){if(typeof R!="function")throw new Error(ke(4));if(d)throw new Error(ke(5));let N=!0;p();let M=l++;return a.set(M,R),function(){if(N){if(d)throw new Error(ke(6));N=!1,p(),a.delete(M),s=null}}}function g(R){if(!zi(R))throw new Error(ke(7));if(typeof R.type>"u")throw new Error(ke(8));if(typeof R.type!="string")throw new Error(ke(17));if(d)throw new Error(ke(9));try{d=!0,n=i(n,R)}finally{d=!1}return(s=a).forEach(M=>{M()}),R}function v(R){if(typeof R!="function")throw new Error(ke(10));i=R,g({type:Ui.REPLACE})}function E(){let R=h;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(ke(11));function M(){let y=N;y.next&&y.next(m())}return M(),{unsubscribe:R(M)}},[zd](){return this}}}return g({type:Ui.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[zd]:E}}function sm(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Ui.INIT})>"u")throw new Error(ke(12));if(typeof r(void 0,{type:Ui.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function ra(t){let e=Object.keys(t),r={};for(let a=0;a<e.length;a++){let l=e[a];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,s;try{sm(r)}catch(a){s=a}return function(l={},d){if(s)throw s;let p=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],E=l[g],T=v(E,d);if(typeof T>"u"){let R=d&&d.type;throw new Error(ke(14))}m[g]=T,p=p||T!==E}return p=p||i.length!==Object.keys(l).length,p?m:l}}function Yo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vd(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ke(15))},a={getState:n.getState,dispatch:(d,...p)=>s(d,...p)},l=t.map(d=>d(a));return s=Yo(...l)(n.dispatch),{...n,dispatch:s}}}function Hd(t){return zi(t)&&"type"in t&&typeof t.type=="string"}var Xd=Symbol.for("immer-nothing"),Wd=Symbol.for("immer-draftable"),Fe=Symbol.for("immer-state");function gt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Qe=Object,co=Qe.getPrototypeOf,Gi="constructor",Qi="prototype",sa="configurable",ji="enumerable",Hi="writable",Qo="value",_t=t=>!!t&&!!t[Fe];function Xe(t){return t?Jd(t)||Ji(t)||!!t[Wd]||!!t[Gi]?.[Wd]||en(t)||tn(t):!1}var am=Qe[Qi][Gi].toString(),Gd=new WeakMap;function Jd(t){if(!t||!ha(t))return!1;let e=co(t);if(e===null||e===Qe[Qi])return!0;let r=Qe.hasOwnProperty.call(e,Gi)&&e[Gi];if(r===Object)return!0;if(!lo(r))return!1;let i=Gd.get(r);return i===void 0&&(i=Function.toString.call(r),Gd.set(r,i)),i===am}function Xi(t,e,r=!0){ei(t)===0?(r?Reflect.ownKeys(t):Qe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function ei(t){let e=t[Fe];return e?e.type_:Ji(t)?1:en(t)?2:tn(t)?3:0}var oa=(t,e,r=ei(t))=>r===2?t.has(e):Qe[Qi].hasOwnProperty.call(t,e),aa=(t,e,r=ei(t))=>r===2?t.get(e):t[e],Ki=(t,e,r,i=ei(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function lm(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ji=Array.isArray,en=t=>t instanceof Map,tn=t=>t instanceof Set,ha=t=>typeof t=="object",lo=t=>typeof t=="function",ia=t=>typeof t=="boolean";function cm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var zt=t=>t.copy_||t.base_;var ma=t=>t.modified_?t.copy_:t.base_;function la(t,e){if(en(t))return new Map(t);if(tn(t))return new Set(t);if(Ji(t))return Array[Qi].slice.call(t);let r=Jd(t);if(e===!0||e==="class_only"&&!r){let i=Qe.getOwnPropertyDescriptors(t);delete i[Fe];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let a=n[s],l=i[a];l[Hi]===!1&&(l[Hi]=!0,l[sa]=!0),(l.get||l.set)&&(i[a]={[sa]:!0,[Hi]:!0,[ji]:l[ji],[Qo]:t[a]})}return Qe.create(co(t),i)}else{let i=co(t);if(i!==null&&r)return{...t};let n=Qe.create(i);return Qe.assign(n,t)}}function rn(t,e=!1){return on(t)||_t(t)||!Xe(t)||(ei(t)>1&&Qe.defineProperties(t,{set:Vi,add:Vi,clear:Vi,delete:Vi}),Qe.freeze(t),e&&Xi(t,(r,i)=>{rn(i,!0)},!1)),t}function dm(){gt(2)}var Vi={[Qo]:dm};function on(t){return t===null||!ha(t)?!0:Qe.isFrozen(t)}var qi="MapSet",ca="Patches",jd="ArrayMethods",eu={};function Rr(t){let e=eu[t];return e||gt(0,t),e}var Kd=t=>!!eu[t];var Xo,tu=()=>Xo,um=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kd(qi)?Rr(qi):void 0,arrayMethodsPlugin_:Kd(jd)?Rr(jd):void 0});function qd(t,e){e&&(t.patchPlugin_=Rr(ca),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function da(t){ua(t),t.drafts_.forEach(pm),t.drafts_=null}function ua(t){t===Xo&&(Xo=t.parent_)}var Zd=t=>Xo=um(Xo,t);function pm(t){let e=t[Fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Yd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Fe].modified_&&(da(e),gt(4)),Xe(t)&&(t=Qd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Fe].base_,t,e)}else t=Qd(e,r);return fm(e,t,!0),da(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xd?t:void 0}function Qd(t,e){if(on(e))return e;let r=e[Fe];if(!r)return Zi(e,t.handledSet_,t);if(!nn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);iu(r,t)}return r.copy_}function fm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&rn(e,r)}function ru(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var nn=(t,e)=>t.scope_===e,hm=[];function ou(t,e,r,i){let n=zt(t),s=t.type_;if(i!==void 0&&aa(n,i,s)===e){Ki(n,i,r,s);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;Xi(n,(d,p)=>{if(_t(p)){let m=l.get(p)||[];m.push(d),l.set(p,m)}})}let a=t.draftLocations_.get(e)??hm;for(let l of a)Ki(n,l,r,s)}function mm(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!nn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let a=ma(s);ou(t,s.draft_??s,a,r),iu(s,n)})}function iu(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}ru(t)}}function gm(t,e,r){let{scope_:i}=t;if(_t(r)){let n=r[Fe];nn(n,i)&&n.callbacks_.push(function(){Wi(t);let a=ma(n);ou(t,r,a,e)})}else Xe(r)&&t.callbacks_.push(function(){let s=zt(t);t.type_===3?s.has(r)&&Zi(r,i.handledSet_,i):aa(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Zi(aa(t.copy_,e,t.type_),i.handledSet_,i)})}function Zi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_t(t)||e.has(t)||!Xe(t)||on(t)||(e.add(t),Xi(t,(i,n)=>{if(_t(n)){let s=n[Fe];if(nn(s,r)){let a=ma(s);Ki(t,i,a,t.type_),ru(s)}}else Xe(n)&&Zi(n,e,r)})),t}function ym(t,e){let r=Ji(t),i={type_:r?1:0,scope_:e?e.scope_:tu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Yi;r&&(n=[i],s=Jo);let{revoke:a,proxy:l}=Proxy.revocable(n,s);return i.draft_=l,i.revoke_=a,[l,i]}var Yi={get(t,e){if(e===Fe)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=zt(t);if(!oa(n,e,t.type_))return xm(t,n,e);let s=n[e];if(t.finalized_||!Xe(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&cm(e))return s;if(s===na(t.base_,e)||bm(t,e,s)){Wi(t);let a=t.type_===1?+e:e,l=fa(t.scope_,s,t,a);return t.copy_[a]=l}return s},has(t,e){return e in zt(t)},ownKeys(t){return Reflect.ownKeys(zt(t))},set(t,e,r){let i=nu(zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=na(zt(t),e),s=n?.[Fe];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(lm(r,n)&&(r!==void 0||oa(t.base_,e,t.type_)))return!0;Wi(t),pa(t)}return t.copy_[e]===r&&(r!==void 0||oa(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),gm(t,e,r)),!0},deleteProperty(t,e){return Wi(t),na(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),pa(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Hi]:!0,[sa]:t.type_!==1||e!=="length",[ji]:i[ji],[Qo]:r[e]}},defineProperty(){gt(11)},getPrototypeOf(t){return co(t.base_)},setPrototypeOf(){gt(12)}},Jo={};for(let t in Yi){let e=Yi[t];Jo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)};Jo.set=function(t,e,r){return Yi.set.call(this,t[0],e,r,t[0])};function na(t,e){let r=t[Fe];return(r?zt(r):t)[e]}function bm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Xe(r)||r[Fe]?!1:t.baseRefs_.has(r)}function xm(t,e,r){let i=nu(e,r);return i?Qo in i?i[Qo]:i.get?.call(t.draft_):void 0}function nu(t,e){if(!(e in t))return;let r=co(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=co(r)}}function pa(t){t.modified_||(t.modified_=!0,t.parent_&&pa(t.parent_))}function Wi(t){t.copy_||(t.assigned_=new Map,t.copy_=la(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var vm=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(lo(e)&&!lo(r)){let s=r;r=e;let a=this;return function(d=s,...p){return a.produce(d,m=>r.call(this,m,...p))}}lo(r)||gt(6),i!==void 0&&!lo(i)&&gt(7);let n;if(Xe(e)){let s=Zd(this),a=fa(s,e,void 0),l=!0;try{n=r(a),l=!1}finally{l?da(s):ua(s)}return qd(s,i),Yd(n,s)}else if(!e||!ha(e)){if(n=r(e),n===void 0&&(n=e),n===Xd&&(n=void 0),this.autoFreeze_&&rn(n,!0),i){let s=[],a=[];Rr(ca).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:a}),i(s,a)}return n}else gt(1,e)},this.produceWithPatches=(e,r)=>{if(lo(e))return(a,...l)=>this.produceWithPatches(a,d=>e(d,...l));let i,n;return[this.produce(e,r,(a,l)=>{i=a,n=l}),i,n]},ia(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ia(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ia(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Xe(t)||gt(8),_t(t)&&(t=su(t));let e=Zd(this),r=fa(e,t,void 0);return r[Fe].isManual_=!0,ua(e),r}finishDraft(t,e){let r=t&&t[Fe];(!r||!r.isManual_)&&gt(9);let{scope_:i}=r;return qd(i,e),Yd(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Rr(ca).applyPatches_;return _t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function fa(t,e,r,i){let[n,s]=en(e)?Rr(qi).proxyMap_(e,r):tn(e)?Rr(qi).proxySet_(e,r):ym(e,r);return(r?.scope_??tu()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?mm(r,s,i):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),n}function su(t){return _t(t)||gt(10,t),au(t)}function au(t){if(!Xe(t)||on(t))return t;let e=t[Fe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=la(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=la(t,!0);return Xi(r,(n,s)=>{Ki(r,n,au(s))},i),e&&(e.finalized_=!1),r}var Sm=globalThis.Iterator,KS=typeof Sm?.from=="function";var Cm=new vm,ga=Cm.produce;function lu(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var cu=lu(),du=lu;var Em=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yo:Yo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Om=t=>t&&typeof t.match=="function";function er(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Lt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Hd(i)&&i.type===t,r}var mu=class ti extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ti.prototype)}static get[Symbol.species](){return ti}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ti(...e[0].concat(this)):new ti(...e.concat(this))}};function uu(t){return Xe(t)?ga(t,()=>{}):t}function sn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function wm(t){return typeof t=="boolean"}var Am=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},a=new mu;return r&&(wm(r)?a.push(cu):a.push(du(r.extraArgument))),a},Rm="RTK_autoBatch";var pu=t=>e=>{setTimeout(e,t)},_m=(t,e)=>r=>{let i=!1,n,s,a=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(a),s=setTimeout(a,e)},Lm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,a=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?_m(window.requestAnimationFrame,100):pu(10):t.type==="callback"?t.queueNotification:pu(t.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[Rm],s=!n,s&&(a||(a=!0,d(p))),i.dispatch(m)}finally{n=!0}}})},km=t=>function(r){let{autoBatch:i=!0}=r??{},n=new mu(t);return i&&n.push(Lm(typeof i=="object"?i:void 0)),n};function gu(t){let e=Am(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(zi(r))d=ra(r);else throw new Error(Lt(1));let p;typeof i=="function"?p=i(e):p=e();let m=Yo;n&&(m=Em({trace:!1,...typeof n=="object"&&n}));let h=Vd(...p),g=km(h),v=typeof l=="function"?l(g):g(),E=m(...v);return ta(d,a,E)}function yu(t){let e={},r=[],i,n={addCase(s,a){let l=typeof s=="string"?s:s.type;if(!l)throw new Error(Lt(28));if(l in e)throw new Error(Lt(29));return e[l]=a,n},addAsyncThunk(s,a){return a.pending&&(e[s.pending.type]=a.pending),a.rejected&&(e[s.rejected.type]=a.rejected),a.fulfilled&&(e[s.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:s.settled,reducer:a.settled}),n},addMatcher(s,a){return r.push({matcher:s,reducer:a}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function Im(t){return typeof t=="function"}function Tm(t,e){let[r,i,n]=yu(e),s;if(Im(t))s=()=>uu(t());else{let l=uu(t);s=()=>l}function a(l=s(),d){let p=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return p.filter(m=>!!m).length===0&&(p=[n]),p.reduce((m,h)=>{if(h)if(_t(m)){let g=h(m,d);return g===void 0?m:g}else{if(Xe(m))return ga(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw new Error(Lt(9))}return g}}return m},l)}return a.getInitialState=s,a}var Pm=(t,e)=>Om(t)?t.match(e):t(e);function Nm(...t){return e=>t.some(r=>Pm(r,e))}var Dm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Fm=(t=21)=>{let e="",r=t;for(;r--;)e+=Dm[Math.random()*64|0];return e},$m=["name","message","stack","code"],ya=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},fu=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Mm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of $m)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hu="External signal was aborted",Bm=(()=>{function t(e,r,i){let n=er(e+"/fulfilled",(d,p,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:p,requestStatus:"fulfilled"}})),s=er(e+"/pending",(d,p,m)=>({payload:void 0,meta:{...m||{},arg:p,requestId:d,requestStatus:"pending"}})),a=er(e+"/rejected",(d,p,m,h,g)=>({payload:h,error:(i&&i.serializeError||Mm)(d||"Rejected"),meta:{...g||{},arg:m,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):Fm(),E=new AbortController,T,R;function N(x){R=x,E.abort()}p&&(p.aborted?N(hu):p.addEventListener("abort",()=>N(hu),{once:!0}));let M=(async function(){let x;try{let y=i?.condition?.(d,{getState:h,extra:g});if(zm(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(E.signal.aborted)throw{name:"AbortError",message:R||"Aborted"};let C=new Promise((I,V)=>{T=()=>{V({name:"AbortError",message:R||"Aborted"})},E.signal.addEventListener("abort",T,{once:!0})});m(s(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),x=await Promise.race([C,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:E.signal,abort:N,rejectWithValue:((I,V)=>new ya(I,V)),fulfillWithValue:((I,V)=>new fu(I,V))})).then(I=>{if(I instanceof ya)throw I;return I instanceof fu?n(I.payload,v,d,I.meta):n(I,v,d)})])}catch(y){x=y instanceof ya?a(null,v,d,y.payload,y.meta):a(y,v,d)}finally{T&&E.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&a.match(x)&&x.meta.condition||m(x),x})();return Object.assign(M,{abort:N,requestId:v,arg:d,unwrap(){return M.then(Um)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:n,settled:Nm(a,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Um(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function zm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bu=Symbol.for("rtk-slice-createasyncthunk"),tC={[bu]:Bm};function Vm(t,e){return`${t}/${e}`}function Hm({creators:t}={}){let e=t?.asyncThunk?.[bu];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Lt(11));typeof process<"u";let a=(typeof i.reducers=="function"?i.reducers(Gm()):i.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(x,y){let C=typeof x=="string"?x:x.type;if(!C)throw new Error(Lt(12));if(C in d.sliceCaseReducersByType)throw new Error(Lt(13));return d.sliceCaseReducersByType[C]=y,p},addMatcher(x,y){return d.sliceMatchers.push({matcher:x,reducer:y}),p},exposeAction(x,y){return d.actionCreators[x]=y,p},exposeCaseReducer(x,y){return d.sliceCaseReducersByName[x]=y,p}};l.forEach(x=>{let y=a[x],C={reducerName:x,type:Vm(n,x),createNotation:typeof i.reducers=="function"};Km(y)?Zm(C,y,p,e):jm(C,y,p)});function m(){let[x={},y=[],C=void 0]=typeof i.extraReducers=="function"?yu(i.extraReducers):[i.extraReducers],I={...x,...d.sliceCaseReducersByType};return Tm(i.initialState,V=>{for(let te in I)V.addCase(te,I[te]);for(let te of d.sliceMatchers)V.addMatcher(te.matcher,te.reducer);for(let te of y)V.addMatcher(te.matcher,te.reducer);C&&V.addDefaultCase(C)})}let h=x=>x,g=new Map,v=new WeakMap,E;function T(x,y){return E||(E=m()),E(x,y)}function R(){return E||(E=m()),E.getInitialState()}function N(x,y=!1){function C(V){let te=V[x];return typeof te>"u"&&y&&(te=sn(v,C,R)),te}function I(V=h){return sn(sn(g,y,()=>new WeakMap),V,()=>{let te={};for(let[he,$]of Object.entries(i.selectors??{}))te[he]=Wm($,V,()=>sn(v,V,R),y);return te})}return{reducerPath:x,getSelectors:I,get selectors(){return I(C)},selectSlice:C}}let M={name:n,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:R,...N(s),injectInto(x,{reducerPath:y,...C}={}){let I=y??s;return x.inject({reducerPath:I,reducer:T},C),{...M,...N(I,!0)}}};return M}}function Wm(t,e,r,i){function n(s,...a){let l=e(s);return typeof l>"u"&&i&&(l=r()),t(l,...a)}return n.unwrapped=t,n}var xu=Hm();function Gm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function jm({type:t,reducerName:e,createNotation:r},i,n){let s,a;if("reducer"in i){if(r&&!qm(i))throw new Error(Lt(17));s=i.reducer,a=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?er(t,a):er(t))}function Km(t){return t._reducerDefinitionType==="asyncThunk"}function qm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Zm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Lt(18));let{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:m}=r,h=n(t,s,m);i.exposeAction(e,h),a&&i.addCase(h.fulfilled,a),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),p&&i.addMatcher(h.settled,p),i.exposeCaseReducer(e,{fulfilled:a||an,pending:l||an,rejected:d||an,settled:p||an})}function an(){}var vu="listener",Su="completed",Cu="cancelled",rC=`task-${Cu}`,oC=`task-${Su}`,iC=`${vu}-${Cu}`,nC=`${vu}-${Su}`;var{assign:Eu}=Object;var ba="listenerMiddleware";var Ym=Eu(er(`${ba}/add`),{withTypes:()=>Ym}),sC=er(`${ba}/removeAll`),Qm=Eu(er(`${ba}/remove`),{withTypes:()=>Qm});function Lt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var tr=class t extends $t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(ao(s))return s;if(n==null)return;let a=xu({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=gu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=nt(a.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return a.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(a,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new qo,this.injectInto=(a,l)=>this.reduxSlice.injectInto(a,l),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let s=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,l,d)=>{let p=l,m=a[p];return m?(...h)=>{let g=m(...h.map(s));return this.reduxStore.dispatch(g),g}:h=>{let g=p,v=this.getState()[g];ge(v,h)||this.setState({[g]:s(h)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Xm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ao(e)&&e.clear()}var ri=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Jm(t,e,r){return new ri(t,e,r).watch()}var uo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ca={};q(Ca,{scrollHelper:()=>eg});var va,ln=new Map,Sa=class{lock(e,r){if(r){let i=ln.get(r);if(i==null||i===e)return ln.set(r,e),r}}release(e,r){r&&ln.get(r)===e&&ln.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let s of ss(e)){let a=s,l=this.elementCanScroll(a);if(l&&a.clientHeight&&a.clientHeight<a.scrollHeight){i=a;break}else l&&n==null&&(n=a)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let s=0;for(;r&&r.offsetParent!==e.offsetParent;)s+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return s+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),s=n-i.clientHeight+e.clientHeight,a=n,l=qt(0,(a-i.scrollTop)/(a-s),1),d=this.computeTopOffsetRatio(r?.position,l)*(s-a)+a;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(va=window.FluidTopicsScrollHelper)!==null&&va!==void 0?va:new Sa;var eg=window.FluidTopicsScrollHelper;var wa={};q(wa,{toFtFormComponent:()=>Oa});var Ea=Symbol("elementInternals"),Oa=Oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ea].form}constructor(...i){super(i),this[Ea]=this.attachInternals()}setFormValue(i){this[Ea].setFormValue(i)}}return e});var Aa={};q(Aa,{DateFormatter:()=>_r});var _r=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let a=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var _a={};q(_a,{ALL_KEYS_VALUE:()=>Ra,SameWindowStorageEvent:()=>po});var Ra="__all__",po=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ra}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new po(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new po(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new po(Ra))}});var ka={};q(ka,{FocusMainContentEvent:()=>La});var La=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ou={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function tg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function rg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",tg);document.addEventListener("click",rg);var fo=O`
47
+ `;var Ud={};var ea={};q(ea,{ParametrizedLabelResolver:()=>Xt});var Xt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let s=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(s,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(s,a)=>t.formatValue(i,a))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var va={};q(va,{FtCommandQueue:()=>Yo,FtLitElementRedux:()=>Ut,FtReduxStore:()=>tr,FtStateManager:()=>uo,ReduxWatcher:()=>ni,clearAllStores:()=>Jm,isFtReduxStore:()=>lo,redux:()=>mt,reduxEventListener:()=>im,reduxReactive:()=>om,watch:()=>eg,withRedux:()=>zd});var om=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},mt=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:He,attribute:!1,...e};f(s)(r,i);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},im=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Yo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function lo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qo=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),zd=Oe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(l=>a.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[Ar].get(a)}addStore(a,l){var d;l=(d=l??a.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ar].set(l,a),this.subscribeToStore(l,a),this.updateFromStores()}removeStore(a){let l=typeof a=="string"?a:a.name;this.unsubscribeFromStore(l),this[Ar].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((a,l)=>this.subscribeToStore(l,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(a.store);u&&(a.store?this[Jt].has(a.store):this[Jt].size>0)&&(this[l]=a.selector(u.getState(),this))}})}subscribeToStore(a,l){var d,u;this[Jt].set(a,l.subscribe(()=>this.updateFromStores())),this[Qo].set(a,[]),lo(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,h)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((m,h)=>{if(typeof this[h]=="function"&&(!m.store||l.name===m.store)){let g=v=>this[h](v);l.addEventListener(m.eventName,g),this[Qo].get(a).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Jt].forEach((a,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(a){var l;this[Jt].has(a)&&this[Jt].get(a)(),this[Jt].delete(a),(l=this[Qo].get(a))===null||l===void 0||l.forEach(d=>d()),this[Qo].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Jt,r=Ar,i=Qo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ut=class extends zd(D){};function Le(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var nm=typeof Symbol=="function"&&Symbol.observable||"@@observable",Vd=nm,ta=()=>Math.random().toString(36).substring(7).split("").join("."),sm={INIT:`@@redux/INIT${ta()}`,REPLACE:`@@redux/REPLACE${ta()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ta()}`},Hi=sm;function Wi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ra(t,e,r){if(typeof t!="function")throw new Error(Le(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Le(1));return r(ra)(t,e)}let i=t,n=e,s=new Map,a=s,l=0,d=!1;function u(){a===s&&(a=new Map,s.forEach((R,N)=>{a.set(N,R)}))}function m(){if(d)throw new Error(Le(3));return n}function h(R){if(typeof R!="function")throw new Error(Le(4));if(d)throw new Error(Le(5));let N=!0;u();let M=l++;return a.set(M,R),function(){if(N){if(d)throw new Error(Le(6));N=!1,u(),a.delete(M),s=null}}}function g(R){if(!Wi(R))throw new Error(Le(7));if(typeof R.type>"u")throw new Error(Le(8));if(typeof R.type!="string")throw new Error(Le(17));if(d)throw new Error(Le(9));try{d=!0,n=i(n,R)}finally{d=!1}return(s=a).forEach(M=>{M()}),R}function v(R){if(typeof R!="function")throw new Error(Le(10));i=R,g({type:Hi.REPLACE})}function E(){let R=h;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(Le(11));function M(){let y=N;y.next&&y.next(m())}return M(),{unsubscribe:R(M)}},[Vd](){return this}}}return g({type:Hi.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Vd]:E}}function am(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Hi.INIT})>"u")throw new Error(Le(12));if(typeof r(void 0,{type:Hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function oa(t){let e=Object.keys(t),r={};for(let a=0;a<e.length;a++){let l=e[a];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,s;try{am(r)}catch(a){s=a}return function(l={},d){if(s)throw s;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],E=l[g],T=v(E,d);if(typeof T>"u"){let R=d&&d.type;throw new Error(Le(14))}m[g]=T,u=u||T!==E}return u=u||i.length!==Object.keys(l).length,u?m:l}}function Xo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Hd(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Le(15))},a={getState:n.getState,dispatch:(d,...u)=>s(d,...u)},l=t.map(d=>d(a));return s=Xo(...l)(n.dispatch),{...n,dispatch:s}}}function Wd(t){return Wi(t)&&"type"in t&&typeof t.type=="string"}var Jd=Symbol.for("immer-nothing"),Gd=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function gt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Qe=Object,po=Qe.getPrototypeOf,qi="constructor",en="prototype",aa="configurable",Zi="enumerable",ji="writable",Jo="value",_t=t=>!!t&&!!t[De];function Xe(t){return t?ep(t)||rn(t)||!!t[Gd]||!!t[qi]?.[Gd]||on(t)||oi(t):!1}var lm=Qe[en][qi].toString(),jd=new WeakMap;function ep(t){if(!t||!ma(t))return!1;let e=po(t);if(e===null||e===Qe[en])return!0;let r=Qe.hasOwnProperty.call(e,qi)&&e[qi];if(r===Object)return!0;if(!co(r))return!1;let i=jd.get(r);return i===void 0&&(i=Function.toString.call(r),jd.set(r,i)),i===lm}function tn(t,e,r=!0){ri(t)===0?(r?Reflect.ownKeys(t):Qe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function ri(t){let e=t[De];return e?e.type_:rn(t)?1:on(t)?2:oi(t)?3:0}var ia=(t,e,r=ri(t))=>r===2?t.has(e):Qe[en].hasOwnProperty.call(t,e),la=(t,e,r=ri(t))=>r===2?t.get(e):t[e],Yi=(t,e,r,i=ri(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function cm(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var rn=Array.isArray,on=t=>t instanceof Map,oi=t=>t instanceof Set,ma=t=>typeof t=="object",co=t=>typeof t=="function",na=t=>typeof t=="boolean";function dm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var zt=t=>t.copy_||t.base_;var ga=t=>t.modified_?t.copy_:t.base_;function ca(t,e){if(on(t))return new Map(t);if(oi(t))return new Set(t);if(rn(t))return Array[en].slice.call(t);let r=ep(t);if(e===!0||e==="class_only"&&!r){let i=Qe.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let a=n[s],l=i[a];l[ji]===!1&&(l[ji]=!0,l[aa]=!0),(l.get||l.set)&&(i[a]={[aa]:!0,[ji]:!0,[Zi]:l[Zi],[Jo]:t[a]})}return Qe.create(po(t),i)}else{let i=po(t);if(i!==null&&r)return{...t};let n=Qe.create(i);return Qe.assign(n,t)}}function nn(t,e=!1){return sn(t)||_t(t)||!Xe(t)||(ri(t)>1&&Qe.defineProperties(t,{set:Gi,add:Gi,clear:Gi,delete:Gi}),Qe.freeze(t),e&&tn(t,(r,i)=>{nn(i,!0)},!1)),t}function pm(){gt(2)}var Gi={[Jo]:pm};function sn(t){return t===null||!ma(t)?!0:Qe.isFrozen(t)}var Qi="MapSet",da="Patches",Kd="ArrayMethods",tp={};function Rr(t){let e=tp[t];return e||gt(0,t),e}var qd=t=>!!tp[t];var ei,rp=()=>ei,um=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qd(Qi)?Rr(Qi):void 0,arrayMethodsPlugin_:qd(Kd)?Rr(Kd):void 0});function Zd(t,e){e&&(t.patchPlugin_=Rr(da),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function pa(t){ua(t),t.drafts_.forEach(fm),t.drafts_=null}function ua(t){t===ei&&(ei=t.parent_)}var Yd=t=>ei=um(ei,t);function fm(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(pa(e),gt(4)),Xe(t)&&(t=Xd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Xd(e,r);return hm(e,t,!0),pa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Jd?t:void 0}function Xd(t,e){if(sn(e))return e;let r=e[De];if(!r)return Xi(e,t.handledSet_,t);if(!an(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);np(r,t)}return r.copy_}function hm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&nn(e,r)}function op(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var an=(t,e)=>t.scope_===e,mm=[];function ip(t,e,r,i){let n=zt(t),s=t.type_;if(i!==void 0&&la(n,i,s)===e){Yi(n,i,r,s);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;tn(n,(d,u)=>{if(_t(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let a=t.draftLocations_.get(e)??mm;for(let l of a)Yi(n,l,r,s)}function gm(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!an(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let a=ga(s);ip(t,s.draft_??s,a,r),np(s,n)})}function np(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}op(t)}}function ym(t,e,r){let{scope_:i}=t;if(_t(r)){let n=r[De];an(n,i)&&n.callbacks_.push(function(){Ki(t);let a=ga(n);ip(t,r,a,e)})}else Xe(r)&&t.callbacks_.push(function(){let s=zt(t);t.type_===3?s.has(r)&&Xi(r,i.handledSet_,i):la(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Xi(la(t.copy_,e,t.type_),i.handledSet_,i)})}function Xi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_t(t)||e.has(t)||!Xe(t)||sn(t)||(e.add(t),tn(t,(i,n)=>{if(_t(n)){let s=n[De];if(an(s,r)){let a=ga(s);Yi(t,i,a,t.type_),op(s)}}else Xe(n)&&Xi(n,e,r)})),t}function bm(t,e){let r=rn(t),i={type_:r?1:0,scope_:e?e.scope_:rp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ji;r&&(n=[i],s=ti);let{revoke:a,proxy:l}=Proxy.revocable(n,s);return i.draft_=l,i.revoke_=a,[l,i]}var Ji={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=zt(t);if(!ia(n,e,t.type_))return vm(t,n,e);let s=n[e];if(t.finalized_||!Xe(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&dm(e))return s;if(s===sa(t.base_,e)||xm(t,e,s)){Ki(t);let a=t.type_===1?+e:e,l=ha(t.scope_,s,t,a);return t.copy_[a]=l}return s},has(t,e){return e in zt(t)},ownKeys(t){return Reflect.ownKeys(zt(t))},set(t,e,r){let i=sp(zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=sa(zt(t),e),s=n?.[De];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(cm(r,n)&&(r!==void 0||ia(t.base_,e,t.type_)))return!0;Ki(t),fa(t)}return t.copy_[e]===r&&(r!==void 0||ia(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),ym(t,e,r)),!0},deleteProperty(t,e){return Ki(t),sa(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),fa(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[ji]:!0,[aa]:t.type_!==1||e!=="length",[Zi]:i[Zi],[Jo]:r[e]}},defineProperty(){gt(11)},getPrototypeOf(t){return po(t.base_)},setPrototypeOf(){gt(12)}},ti={};for(let t in Ji){let e=Ji[t];ti[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ti.deleteProperty=function(t,e){return ti.set.call(this,t,e,void 0)};ti.set=function(t,e,r){return Ji.set.call(this,t[0],e,r,t[0])};function sa(t,e){let r=t[De];return(r?zt(r):t)[e]}function xm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Xe(r)||r[De]?!1:t.baseRefs_.has(r)}function vm(t,e,r){let i=sp(e,r);return i?Jo in i?i[Jo]:i.get?.call(t.draft_):void 0}function sp(t,e){if(!(e in t))return;let r=po(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=po(r)}}function fa(t){t.modified_||(t.modified_=!0,t.parent_&&fa(t.parent_))}function Ki(t){t.copy_||(t.assigned_=new Map,t.copy_=ca(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Sm=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(co(e)&&!co(r)){let s=r;r=e;let a=this;return function(d=s,...u){return a.produce(d,m=>r.call(this,m,...u))}}co(r)||gt(6),i!==void 0&&!co(i)&&gt(7);let n;if(Xe(e)){let s=Yd(this),a=ha(s,e,void 0),l=!0;try{n=r(a),l=!1}finally{l?pa(s):ua(s)}return Zd(s,i),Qd(n,s)}else if(!e||!ma(e)){if(n=r(e),n===void 0&&(n=e),n===Jd&&(n=void 0),this.autoFreeze_&&nn(n,!0),i){let s=[],a=[];Rr(da).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:a}),i(s,a)}return n}else gt(1,e)},this.produceWithPatches=(e,r)=>{if(co(e))return(a,...l)=>this.produceWithPatches(a,d=>e(d,...l));let i,n;return[this.produce(e,r,(a,l)=>{i=a,n=l}),i,n]},na(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),na(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),na(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Xe(t)||gt(8),_t(t)&&(t=ap(t));let e=Yd(this),r=ha(e,t,void 0);return r[De].isManual_=!0,ua(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&gt(9);let{scope_:i}=r;return Zd(i,e),Qd(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Rr(da).applyPatches_;return _t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ha(t,e,r,i){let[n,s]=on(e)?Rr(Qi).proxyMap_(e,r):oi(e)?Rr(Qi).proxySet_(e,r):bm(e,r);return(r?.scope_??rp()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?gm(r,s,i):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),n}function ap(t){return _t(t)||gt(10,t),lp(t)}function lp(t){if(!Xe(t)||sn(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ca(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ca(t,!0);let n=r;return oi(r)&&(r=new Set),tn(n,(s,a)=>{Yi(r,s,lp(a))},i),e&&(e.finalized_=!1),r}var Cm=globalThis.Iterator,qS=typeof Cm?.from=="function";var Em=new Sm,ya=Em.produce;function cp(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var dp=cp(),pp=cp;var Om=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xo:Xo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var wm=t=>t&&typeof t.match=="function";function er(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(kt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Wd(i)&&i.type===t,r}var gp=class ii extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ii.prototype)}static get[Symbol.species](){return ii}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ii(...e[0].concat(this)):new ii(...e.concat(this))}};function up(t){return Xe(t)?ya(t,()=>{}):t}function ln(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Am(t){return typeof t=="boolean"}var Rm=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},a=new gp;return r&&(Am(r)?a.push(dp):a.push(pp(r.extraArgument))),a},_m="RTK_autoBatch";var fp=t=>e=>{setTimeout(e,t)},km=(t,e)=>r=>{let i=!1,n,s,a=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(a),s=setTimeout(a,e)},Lm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,a=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?km(window.requestAnimationFrame,100):fp(10):t.type==="callback"?t.queueNotification:fp(t.timeout),u=()=>{a=!1,s&&(s=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[_m],s=!n,s&&(a||(a=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},Im=t=>function(r){let{autoBatch:i=!0}=r??{},n=new gp(t);return i&&n.push(Lm(typeof i=="object"?i:void 0)),n};function yp(t){let e=Rm(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(Wi(r))d=oa(r);else throw new Error(kt(1));let u;typeof i=="function"?u=i(e):u=e();let m=Xo;n&&(m=Om({trace:!1,...typeof n=="object"&&n}));let h=Hd(...u),g=Im(h),v=typeof l=="function"?l(g):g(),E=m(...v);return ra(d,a,E)}function bp(t){let e={},r=[],i,n={addCase(s,a){let l=typeof s=="string"?s:s.type;if(!l)throw new Error(kt(28));if(l in e)throw new Error(kt(29));return e[l]=a,n},addAsyncThunk(s,a){return a.pending&&(e[s.pending.type]=a.pending),a.rejected&&(e[s.rejected.type]=a.rejected),a.fulfilled&&(e[s.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:s.settled,reducer:a.settled}),n},addMatcher(s,a){return r.push({matcher:s,reducer:a}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function Tm(t){return typeof t=="function"}function Pm(t,e){let[r,i,n]=bp(e),s;if(Tm(t))s=()=>up(t());else{let l=up(t);s=()=>l}function a(l=s(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(_t(m)){let g=h(m,d);return g===void 0?m:g}else{if(Xe(m))return ya(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw new Error(kt(9))}return g}}return m},l)}return a.getInitialState=s,a}var Nm=(t,e)=>wm(t)?t.match(e):t(e);function Dm(...t){return e=>t.some(r=>Nm(r,e))}var Fm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$m=(t=21)=>{let e="",r=t;for(;r--;)e+=Fm[Math.random()*64|0];return e},Mm=["name","message","stack","code"],ba=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hp=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Bm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Mm)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},mp="External signal was aborted",Um=(()=>{function t(e,r,i){let n=er(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),s=er(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),a=er(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||Bm)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):$m(),E=new AbortController,T,R;function N(x){R=x,E.abort()}u&&(u.aborted?N(mp):u.addEventListener("abort",()=>N(mp),{once:!0}));let M=(async function(){let x;try{let y=i?.condition?.(d,{getState:h,extra:g});if(Vm(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(E.signal.aborted)throw{name:"AbortError",message:R||"Aborted"};let C=new Promise((I,V)=>{T=()=>{V({name:"AbortError",message:R||"Aborted"})},E.signal.addEventListener("abort",T,{once:!0})});m(s(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),x=await Promise.race([C,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:E.signal,abort:N,rejectWithValue:((I,V)=>new ba(I,V)),fulfillWithValue:((I,V)=>new hp(I,V))})).then(I=>{if(I instanceof ba)throw I;return I instanceof hp?n(I.payload,v,d,I.meta):n(I,v,d)})])}catch(y){x=y instanceof ba?a(null,v,d,y.payload,y.meta):a(y,v,d)}finally{T&&E.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&a.match(x)&&x.meta.condition||m(x),x})();return Object.assign(M,{abort:N,requestId:v,arg:d,unwrap(){return M.then(zm)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:n,settled:Dm(a,n),typePrefix:e})}return t.withTypes=()=>t,t})();function zm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Vm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var xp=Symbol.for("rtk-slice-createasyncthunk"),rC={[xp]:Um};function Hm(t,e){return`${t}/${e}`}function Wm({creators:t}={}){let e=t?.asyncThunk?.[xp];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(kt(11));typeof process<"u";let a=(typeof i.reducers=="function"?i.reducers(jm()):i.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(x,y){let C=typeof x=="string"?x:x.type;if(!C)throw new Error(kt(12));if(C in d.sliceCaseReducersByType)throw new Error(kt(13));return d.sliceCaseReducersByType[C]=y,u},addMatcher(x,y){return d.sliceMatchers.push({matcher:x,reducer:y}),u},exposeAction(x,y){return d.actionCreators[x]=y,u},exposeCaseReducer(x,y){return d.sliceCaseReducersByName[x]=y,u}};l.forEach(x=>{let y=a[x],C={reducerName:x,type:Hm(n,x),createNotation:typeof i.reducers=="function"};qm(y)?Ym(C,y,u,e):Km(C,y,u)});function m(){let[x={},y=[],C=void 0]=typeof i.extraReducers=="function"?bp(i.extraReducers):[i.extraReducers],I={...x,...d.sliceCaseReducersByType};return Pm(i.initialState,V=>{for(let ee in I)V.addCase(ee,I[ee]);for(let ee of d.sliceMatchers)V.addMatcher(ee.matcher,ee.reducer);for(let ee of y)V.addMatcher(ee.matcher,ee.reducer);C&&V.addDefaultCase(C)})}let h=x=>x,g=new Map,v=new WeakMap,E;function T(x,y){return E||(E=m()),E(x,y)}function R(){return E||(E=m()),E.getInitialState()}function N(x,y=!1){function C(V){let ee=V[x];return typeof ee>"u"&&y&&(ee=ln(v,C,R)),ee}function I(V=h){return ln(ln(g,y,()=>new WeakMap),V,()=>{let ee={};for(let[ue,$]of Object.entries(i.selectors??{}))ee[ue]=Gm($,V,()=>ln(v,V,R),y);return ee})}return{reducerPath:x,getSelectors:I,get selectors(){return I(C)},selectSlice:C}}let M={name:n,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:R,...N(s),injectInto(x,{reducerPath:y,...C}={}){let I=y??s;return x.inject({reducerPath:I,reducer:T},C),{...M,...N(I,!0)}}};return M}}function Gm(t,e,r,i){function n(s,...a){let l=e(s);return typeof l>"u"&&i&&(l=r()),t(l,...a)}return n.unwrapped=t,n}var vp=Wm();function jm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Km({type:t,reducerName:e,createNotation:r},i,n){let s,a;if("reducer"in i){if(r&&!Zm(i))throw new Error(kt(17));s=i.reducer,a=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?er(t,a):er(t))}function qm(t){return t._reducerDefinitionType==="asyncThunk"}function Zm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ym({type:t,reducerName:e},r,i,n){if(!n)throw new Error(kt(18));let{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,s,m);i.exposeAction(e,h),a&&i.addCase(h.fulfilled,a),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:a||cn,pending:l||cn,rejected:d||cn,settled:u||cn})}function cn(){}var Sp="listener",Cp="completed",Ep="cancelled",oC=`task-${Ep}`,iC=`task-${Cp}`,nC=`${Sp}-${Ep}`,sC=`${Sp}-${Cp}`;var{assign:Op}=Object;var xa="listenerMiddleware";var Qm=Op(er(`${xa}/add`),{withTypes:()=>Qm}),aC=er(`${xa}/removeAll`),Xm=Op(er(`${xa}/remove`),{withTypes:()=>Xm});function kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var tr=class t extends $t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(lo(s))return s;if(n==null)return;let a=vp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=yp({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=nt(a.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return a.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(a,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Yo,this.injectInto=(a,l)=>this.reduxSlice.injectInto(a,l),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let s=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,l,d)=>{let u=l,m=a[u];return m?(...h)=>{let g=m(...h.map(s));return this.reduxStore.dispatch(g),g}:h=>{let g=u,v=this.getState()[g];he(v,h)||this.setState({[g]:s(h)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Jm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))lo(e)&&e.clear()}var ni=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function eg(t,e,r){return new ni(t,e,r).watch()}var uo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ea={};q(Ea,{scrollHelper:()=>tg});var Sa,dn=new Map,Ca=class{lock(e,r){if(r){let i=dn.get(r);if(i==null||i===e)return dn.set(r,e),r}}release(e,r){r&&dn.get(r)===e&&dn.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let s of as(e)){let a=s,l=this.elementCanScroll(a);if(l&&a.clientHeight&&a.clientHeight<a.scrollHeight){i=a;break}else l&&n==null&&(n=a)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let s=0;for(;r&&r.offsetParent!==e.offsetParent;)s+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return s+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),s=n-i.clientHeight+e.clientHeight,a=n,l=qt(0,(a-i.scrollTop)/(a-s),1),d=this.computeTopOffsetRatio(r?.position,l)*(s-a)+a;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Sa=window.FluidTopicsScrollHelper)!==null&&Sa!==void 0?Sa:new Ca;var tg=window.FluidTopicsScrollHelper;var Aa={};q(Aa,{toFtFormComponent:()=>wa});var Oa=Symbol("elementInternals"),wa=Oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Oa].form}constructor(...i){super(i),this[Oa]=this.attachInternals()}setFormValue(i){this[Oa].setFormValue(i)}}return e});var Ra={};q(Ra,{DateFormatter:()=>_r});var _r=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let a=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ka={};q(ka,{ALL_KEYS_VALUE:()=>_a,SameWindowStorageEvent:()=>fo});var _a="__all__",fo=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==_a}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fo(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new fo(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new fo(_a))}});var Ia={};q(Ia,{FocusMainContentEvent:()=>La});var La=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var wp={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function rg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function og(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",rg);document.addEventListener("click",og);var ho=O`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,20 +68,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var Ta={};q(Ta,{withAriaNotification:()=>Ia});var og={checkVisibility:!0},Ia=Oe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:s}={...og,...n};setTimeout(()=>{(!s||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new No({type:"aria",message:i})))},20)}}return e});var Pa={};q(Pa,{withConditionalVisibility:()=>ig});var wu=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};function ig(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let s=document.createElement("style");s.classList.add("conditional-visibility-style"),s.innerHTML=n,this.shadowRoot.append(s)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return wu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),wu([A()],e.prototype,"isVisible",void 0),e}var Da={};q(Da,{FormController:()=>Na});function ng(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Na=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=ng(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let s=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);s!==void 0&&this.errors.set(e,s)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(s){let a=fs(s)?s:void 0;if(!this.checkValidity(a)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,a)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var $a={};q($a,{MetadataValueLocalizer:()=>Fa});var Fa=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};function Ma(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Lr(t,e,r){return t?e(t):r?.(t)}var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},kr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(kr||(kr={}));var rr;(function(t){t.default="default",t.warning="warning",t.error="error"})(rr||(rr={}));var Ba=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var GC=Oe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=kr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=rr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===kr.blur||this.validateOn===kr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==rr.default&&this.validateOn===kr.blurWithStatusResolutionOnInput||this.validateOn===kr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ma(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ma(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ba(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
71
+ `;var Pa={};q(Pa,{withAriaNotification:()=>Ta});var ig={checkVisibility:!0},Ta=Oe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:s}={...ig,...n};setTimeout(()=>{(!s||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new Fo({type:"aria",message:i})))},20)}}return e});var Na={};q(Na,{withConditionalVisibility:()=>ng});var Ap=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};function ng(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let s=document.createElement("style");s.classList.add("conditional-visibility-style"),s.innerHTML=n,this.shadowRoot.append(s)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Ap([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Ap([A()],e.prototype,"isVisible",void 0),e}var Fa={};q(Fa,{FormController:()=>Da});function sg(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Da=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=sg(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let s=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);s!==void 0&&this.errors.set(e,s)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(s){let a=hs(s)?s:void 0;if(!this.checkValidity(a)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,a)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Ma={};q(Ma,{MetadataValueLocalizer:()=>$a});var $a=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};function Ba(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function kr(t,e,r){return t?e(t):r?.(t)}var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Lr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Lr||(Lr={}));var rr;(function(t){t.default="default",t.warning="warning",t.error="error"})(rr||(rr={}));var Ua=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var jC=Oe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Lr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=rr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Lr.blur||this.validateOn===Lr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==rr.default&&this.validateOn===Lr.blurWithStatusResolutionOnInput||this.validateOn===Lr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ba(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ba(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ua(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
- ${le(this.errorMessages,i=>b`
74
+ ${ae(this.errorMessages,i=>b`
75
75
  <li>${i}</li>
76
76
  `)}
77
- ${le(this.warningMessages,i=>b`
77
+ ${ae(this.warningMessages,i=>b`
78
78
  <li>${i}</li>
79
79
  `)}
80
- ${Lr(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
80
+ ${kr(!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?rr.error:this.warningMessages.length?rr.warning:rr.default}}return Ae([f()],e.prototype,"warningRules",void 0),Ae([f()],e.prototype,"errorRules",void 0),Ae([f()],e.prototype,"validateOn",void 0),Ae([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Ae([f()],e.prototype,"label",void 0),Ae([f({type:Boolean})],e.prototype,"hideLabel",void 0),Ae([f()],e.prototype,"name",void 0),Ae([f({type:Boolean})],e.prototype,"disabled",void 0),Ae([f()],e.prototype,"helperText",void 0),Ae([f()],e.prototype,"forceStatus",void 0),Ae([f({reflect:!0})],e.prototype,"value",void 0),Ae([A()],e.prototype,"errorMessages",void 0),Ae([A()],e.prototype,"warningMessages",void 0),Ae([A()],e.prototype,"status",void 0),Ae([A()],e.prototype,"focused",void 0),Ae([A()],e.prototype,"additionalWarningRules",void 0),Ae([A()],e.prototype,"additionalErrorRules",void 0),Ae([A()],e.prototype,"forceErrorMessages",void 0),e});var oi=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),oi(i,e);return!0},cn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Au=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),cg(e)}};function ag(t){this._$AN!==void 0?(cn(this),this._$AM=t,Au(this)):this._$AM=t}function lg(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let s=r;s<i.length;s++)oi(i[s],!1),cn(i[s]);else i!=null&&(oi(i,!1),cn(i));else oi(this,t)}var cg=t=>{t.type==Et.CHILD&&(t._$AP??=lg,t._$AQ??=ag)},ho=class extends it{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),Au(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(oi(this,e),cn(this))}setValue(e){if(Vl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Ua=class extends ho{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),Ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.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 r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ot&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},vE=Ze(Ua);var Ru;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Ru||(Ru={}));var dg={sm:640,md:768,lg:1024,xl:1280},za=class extends ho{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),s=i??(()=>_);return this.size>n?r():s()}resolveThreshold(e){return typeof e=="number"?e:dg[e]}},OE=Ze(za);var ug=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Va=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function dn(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,s){var a,l;let d=(l=(a=this.configuredAnalyticsActions)===null||a===void 0?void 0:a[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new Va({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:s}))}}return r.analyticsActions=e,ug([ce({})],r.prototype,"configuredAnalyticsActions",void 0),r}var ii=class t{static isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}static getShadowRoots(e){let r=[],i=e.getRootNode();for(;t.isShadowRoot(i);)r.push(i),i=i.host.getRootNode();return r}static compareDeepPosition(e,r){if(e===r)return 0;let i=t.getShadowRoots(e),n=t.getShadowRoots(r),s=i.findIndex(p=>n.includes(p)),a=s<0?-1:n.findIndex(p=>p===i[s]),l=s===0||i.length===0?e:i[(s<0?i.length:s)-1].host,d=a===0||n.length===0?r:n[(a<0?n.length:a)-1].host;return l===d?l===e?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_CONTAINS:l.compareDocumentPosition(d)}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};var Ir=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Ha)return!1;let r=ii.getDeepActiveElement();if(!r)return!0;let i=ii.compareDeepPosition(r,e);return(i&(Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))!==0?!1:(i&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(i&Node.DOCUMENT_POSITION_CONTAINS)===0||(i&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}};window.FluidTopicsFocusHelper=Ir;var Wa,Ga,ja,Ka,Tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ja=(Ga=(Wa=window.safari)===null||Wa===void 0?void 0:Wa.pushNotification)===null||Ga===void 0?void 0:Ga.toString())!==null&&ja!==void 0?ja:"")==="[object SafariRemoteNotification]",Ha="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ka=window.ftGlobals)!==null&&Ka!==void 0?Ka:{lit:Gn,litDecorators:Zn,litRepeat:Yn,litClassMap:Qn,litStyleMap:Xn,litUnsafeHTML:es,wcUtils:{...ts,...us,...rs,...vs,...Aa,...Ss,...os,...ws,...ds,...Us,...ka,...Ou,...Ca,...zs,...Os,...Ks,...wa,...Gs,...Ta,...Pa,...$d,...as,...Ys,...$a,...As,...Xs,...fo,...Bd,...Js,...xa,..._a,...Vs,...Ws,...hs,...ys,...Da,isSafari:Tr,isTouchScreen:Ha,setVariable:w}};var _u=o.extend("--ft-ripple-color","",S.colorContent),J={color:_u,backgroundColor:o.extend("--ft-ripple-background-color","",_u),opacityContentOnSurfacePressed:o.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Lu=o.extend("--ft-ripple-color","",S.colorPrimary),ku={color:Lu,backgroundColor:o.extend("--ft-ripple-background-color","",Lu)},Iu=o.extend("--ft-ripple-color","",S.colorSecondary),Tu={color:Iu,backgroundColor:o.extend("--ft-ripple-background-color","",Iu)},Pu=O`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?rr.error:this.warningMessages.length?rr.warning:rr.default}}return Ae([f()],e.prototype,"warningRules",void 0),Ae([f()],e.prototype,"errorRules",void 0),Ae([f()],e.prototype,"validateOn",void 0),Ae([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Ae([f()],e.prototype,"label",void 0),Ae([f({type:Boolean})],e.prototype,"hideLabel",void 0),Ae([f()],e.prototype,"name",void 0),Ae([f({type:Boolean})],e.prototype,"disabled",void 0),Ae([f()],e.prototype,"helperText",void 0),Ae([f()],e.prototype,"forceStatus",void 0),Ae([f({reflect:!0})],e.prototype,"value",void 0),Ae([A()],e.prototype,"errorMessages",void 0),Ae([A()],e.prototype,"warningMessages",void 0),Ae([A()],e.prototype,"status",void 0),Ae([A()],e.prototype,"focused",void 0),Ae([A()],e.prototype,"additionalWarningRules",void 0),Ae([A()],e.prototype,"additionalErrorRules",void 0),Ae([A()],e.prototype,"forceErrorMessages",void 0),e});var si=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),si(i,e);return!0},pn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Rp=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),dg(e)}};function lg(t){this._$AN!==void 0?(pn(this),this._$AM=t,Rp(this)):this._$AM=t}function cg(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let s=r;s<i.length;s++)si(i[s],!1),pn(i[s]);else i!=null&&(si(i,!1),pn(i));else si(this,t)}var dg=t=>{t.type==Et.CHILD&&(t._$AP??=cg,t._$AQ??=lg)},mo=class extends it{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),Rp(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(si(this,e),pn(this))}setValue(e){if(Hl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var za=class extends mo{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),Ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.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 r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ot&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},SE=Ze(za);var _p;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(_p||(_p={}));var pg={sm:640,md:768,lg:1024,xl:1280},Va=class extends mo{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),s=i??(()=>_);return this.size>n?r():s()}resolveThreshold(e){return typeof e=="number"?e:pg[e]}},wE=Ze(Va);var ug=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ha=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function un(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,s){var a,l;let d=(l=(a=this.configuredAnalyticsActions)===null||a===void 0?void 0:a[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let u=e[n];this.dispatchEvent(new Ha({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:s}))}}return r.analyticsActions=e,ug([le({})],r.prototype,"configuredAnalyticsActions",void 0),r}var ai=class t{static isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}static getShadowRoots(e){let r=[],i=e.getRootNode();for(;t.isShadowRoot(i);)r.push(i),i=i.host.getRootNode();return r}static compareDeepPosition(e,r){if(e===r)return 0;let i=t.getShadowRoots(e),n=t.getShadowRoots(r),s=i.findIndex(u=>n.includes(u)),a=s<0?-1:n.findIndex(u=>u===i[s]),l=s===0||i.length===0?e:i[(s<0?i.length:s)-1].host,d=a===0||n.length===0?r:n[(a<0?n.length:a)-1].host;return l===d?l===e?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_CONTAINS:l.compareDocumentPosition(d)}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};var Ir=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Wa)return!1;let r=ai.getDeepActiveElement();if(!r)return!0;let i=ai.compareDeepPosition(r,e);return(i&(Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))!==0?!1:(i&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(i&Node.DOCUMENT_POSITION_CONTAINS)===0||(i&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}};window.FluidTopicsFocusHelper=Ir;var Ga,ja,Ka,qa,Tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ka=(ja=(Ga=window.safari)===null||Ga===void 0?void 0:Ga.pushNotification)===null||ja===void 0?void 0:ja.toString())!==null&&Ka!==void 0?Ka:"")==="[object SafariRemoteNotification]",Wa="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(qa=window.ftGlobals)!==null&&qa!==void 0?qa:{lit:jn,litDecorators:Yn,litRepeat:Qn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ts,wcUtils:{...rs,...us,...os,...Ss,...Ra,...Cs,...is,...As,...ps,...zs,...Ia,...wp,...Ea,...Vs,...ws,...qs,...Aa,...js,...Pa,...Na,...Md,...ls,...Qs,...Ma,...Rs,...Js,...ho,...Ud,...ea,...va,...ka,...Hs,...Gs,...ms,...bs,...Fa,isSafari:Tr,isTouchScreen:Wa,setVariable:w}};var kp=o.extend("--ft-ripple-color","",S.colorContent),X={color:kp,backgroundColor:o.extend("--ft-ripple-background-color","",kp),opacityContentOnSurfacePressed:o.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Lp=o.extend("--ft-ripple-color","",S.colorPrimary),Ip={color:Lp,backgroundColor:o.extend("--ft-ripple-background-color","",Lp)},Tp=o.extend("--ft-ripple-color","",S.colorSecondary),Pp={color:Tp,backgroundColor:o.extend("--ft-ripple-background-color","",Tp)},Np=O`
85
85
  :host {
86
86
  display: contents;
87
87
  }
@@ -94,7 +94,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
94
94
 
95
95
  .ft-ripple:not(.ft-ripple--unbounded) {
96
96
  overflow: hidden;
97
- border-radius: ${J.borderRadius};
97
+ border-radius: ${X.borderRadius};
98
98
  }
99
99
 
100
100
  .ft-ripple .ft-ripple--background,
@@ -128,27 +128,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
128
128
  }
129
129
 
130
130
  .ft-ripple .ft-ripple--background {
131
- background-color: ${J.backgroundColor};
131
+ background-color: ${X.backgroundColor};
132
132
  }
133
133
 
134
134
  .ft-ripple .ft-ripple--effect {
135
- background-color: ${J.color};
135
+ background-color: ${X.color};
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
139
- background-color: ${Tu.backgroundColor};
139
+ background-color: ${Pp.backgroundColor};
140
140
  }
141
141
 
142
142
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
143
- background-color: ${Tu.color};
143
+ background-color: ${Pp.color};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
147
- background-color: ${ku.backgroundColor};
147
+ background-color: ${Ip.backgroundColor};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
151
- background-color: ${ku.color};
151
+ background-color: ${Ip.color};
152
152
  }
153
153
 
154
154
  .ft-ripple .ft-ripple--background {
@@ -178,22 +178,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
178
178
  }
179
179
 
180
180
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
181
- opacity: ${J.opacityContentOnSurfaceHover};
181
+ opacity: ${X.opacityContentOnSurfaceHover};
182
182
  }
183
183
 
184
184
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
185
- opacity: ${J.opacityContentOnSurfaceSelected};
185
+ opacity: ${X.opacityContentOnSurfaceSelected};
186
186
  }
187
187
 
188
188
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
189
- opacity: ${J.opacityContentOnSurfaceFocused};
189
+ opacity: ${X.opacityContentOnSurfaceFocused};
190
190
  }
191
191
 
192
192
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
193
- opacity: ${J.opacityContentOnSurfacePressed};
193
+ opacity: ${X.opacityContentOnSurfacePressed};
194
194
  transform: translate(-50%, -50%) scale(1);
195
195
  }
196
- `;var Ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},j=class extends D{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 ee(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 ee(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),a=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-a.x:a.width/2),this.originY=Math.round(s!=null?s-a.y:a.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 Ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},j=class extends D{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 J(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 J(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),a=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-a.x:a.width/2),this.originY=Math.round(s!=null?s-a.y:a.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;
@@ -204,7 +204,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
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 r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},a={passive:!0};e.addEventListener("mouseover",this.startHover,a),e.addEventListener("mousemove",this.moveRipple,a),e.addEventListener("mouseleave",this.endHover,a),e.addEventListener("mousedown",i,a),e.addEventListener("touchstart",n,a),e.addEventListener("touchmove",this.moveRipple,a),e.addEventListener("keydown",s,a),e.addEventListener("focus",this.startFocus,a),e.addEventListener("blur",this.endFocus,a),e.addEventListener("focusin",this.startFocus,a),e.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,a),e.removeEventListener("mousemove",this.moveRipple,a),e.removeEventListener("mouseleave",this.endHover,a),e.removeEventListener("mousedown",i,a),e.removeEventListener("touchstart",n,a),e.removeEventListener("touchmove",this.moveRipple,a),e.removeEventListener("keydown",s,a),e.removeEventListener("focus",this.startFocus,a),e.removeEventListener("blur",this.endFocus,a),e.removeEventListener("focusin",this.startFocus,a),e.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Pu;Ge([f({type:Boolean})],j.prototype,"primary",void 0);Ge([f({type:Boolean})],j.prototype,"secondary",void 0);Ge([f({type:Boolean})],j.prototype,"unbounded",void 0);Ge([f({type:Boolean})],j.prototype,"activated",void 0);Ge([f({type:Boolean})],j.prototype,"selected",void 0);Ge([f({type:Boolean})],j.prototype,"disabled",void 0);Ge([A()],j.prototype,"hovered",void 0);Ge([A()],j.prototype,"focused",void 0);Ge([A()],j.prototype,"pressed",void 0);Ge([A()],j.prototype,"rippling",void 0);Ge([A()],j.prototype,"originX",void 0);Ge([A()],j.prototype,"originY",void 0);Ge([P(".ft-ripple")],j.prototype,"ripple",void 0);Ge([P(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);var Nu={"ft-ripple":j};W(Nu);var Fu=Symbol.for(""),pg=t=>{if(t?.r===Fu)return t?._$litStatic$},qa=t=>({_$litStatic$:t,r:Fu});var Du=new Map,Za=t=>(e,...r)=>{let i=r.length,n,s,a=[],l=[],d,p=0,m=!1;for(;p<i;){for(d=e[p];p<i&&(s=r[p],(n=pg(s))!==void 0);)d+=n+e[++p],m=!0;p!==i&&l.push(s),a.push(d),p++}if(p===i&&a.push(e[i]),m){let h=a.join("$$lit$$");(e=Du.get(h))===void 0&&(a.raw=a,Du.set(h,e=a)),r=l}return t(e,...r)},Ya=Za(b),qO=Za(Un),ZO=Za(zn);var me;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(me||(me={}));var $u=o.extend("--ft-typography-font-family","",S.titleFont),Vt=o.extend("--ft-typography-font-family","",S.contentFont),k={fontFamily:Vt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Pr={fontFamily:o.extend("--ft-typography-title-font-family","",$u),fontSize:o.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",k.textDecoration,"inherit")},Nr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",$u),fontSize:o.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",k.textDecoration,"inherit")},Dr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",k.textDecoration,"inherit")},Fr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",k.textDecoration,"inherit")},kt={fontFamily:o.extend("--ft-typography-body1-font-family","",Vt),fontSize:o.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",k.textDecoration,"inherit")},xe={fontFamily:o.extend("--ft-typography-body2-font-family","",Vt),fontSize:o.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",k.textDecoration,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Vt),fontSize:o.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",k.textDecoration,"inherit")},$r={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",k.textDecoration,"inherit")},Mr={fontFamily:o.extend("--ft-typography-overline-font-family","",Vt),fontSize:o.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",k.textDecoration,"inherit")},yt={fontFamily:o.extend("--ft-typography-button-font-family","",Vt),fontSize:o.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",k.textDecoration,"inherit")},Mu=O`
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 r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},a={passive:!0};e.addEventListener("mouseover",this.startHover,a),e.addEventListener("mousemove",this.moveRipple,a),e.addEventListener("mouseleave",this.endHover,a),e.addEventListener("mousedown",i,a),e.addEventListener("touchstart",n,a),e.addEventListener("touchmove",this.moveRipple,a),e.addEventListener("keydown",s,a),e.addEventListener("focus",this.startFocus,a),e.addEventListener("blur",this.endFocus,a),e.addEventListener("focusin",this.startFocus,a),e.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,a),e.removeEventListener("mousemove",this.moveRipple,a),e.removeEventListener("mouseleave",this.endHover,a),e.removeEventListener("mousedown",i,a),e.removeEventListener("touchstart",n,a),e.removeEventListener("touchmove",this.moveRipple,a),e.removeEventListener("keydown",s,a),e.removeEventListener("focus",this.startFocus,a),e.removeEventListener("blur",this.endFocus,a),e.removeEventListener("focusin",this.startFocus,a),e.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Np;Ge([f({type:Boolean})],j.prototype,"primary",void 0);Ge([f({type:Boolean})],j.prototype,"secondary",void 0);Ge([f({type:Boolean})],j.prototype,"unbounded",void 0);Ge([f({type:Boolean})],j.prototype,"activated",void 0);Ge([f({type:Boolean})],j.prototype,"selected",void 0);Ge([f({type:Boolean})],j.prototype,"disabled",void 0);Ge([A()],j.prototype,"hovered",void 0);Ge([A()],j.prototype,"focused",void 0);Ge([A()],j.prototype,"pressed",void 0);Ge([A()],j.prototype,"rippling",void 0);Ge([A()],j.prototype,"originX",void 0);Ge([A()],j.prototype,"originY",void 0);Ge([P(".ft-ripple")],j.prototype,"ripple",void 0);Ge([P(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);var Dp={"ft-ripple":j};W(Dp);var $p=Symbol.for(""),fg=t=>{if(t?.r===$p)return t?._$litStatic$},Za=t=>({_$litStatic$:t,r:$p});var Fp=new Map,Ya=t=>(e,...r)=>{let i=r.length,n,s,a=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(s=r[u],(n=fg(s))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(s),a.push(d),u++}if(u===i&&a.push(e[i]),m){let h=a.join("$$lit$$");(e=Fp.get(h))===void 0&&(a.raw=a,Fp.set(h,e=a)),r=l}return t(e,...r)},Qa=Ya(b),ZO=Ya(zn),YO=Ya(Vn);var fe;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(fe||(fe={}));var Mp=o.extend("--ft-typography-font-family","",S.titleFont),Vt=o.extend("--ft-typography-font-family","",S.contentFont),L={fontFamily:Vt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Pr={fontFamily:o.extend("--ft-typography-title-font-family","",Mp),fontSize:o.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",L.textDecoration,"inherit")},Nr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Mp),fontSize:o.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",L.textDecoration,"inherit")},Dr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",L.textDecoration,"inherit")},Fr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",L.textDecoration,"inherit")},Lt={fontFamily:o.extend("--ft-typography-body1-font-family","",Vt),fontSize:o.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",L.textDecoration,"inherit")},xe={fontFamily:o.extend("--ft-typography-body2-font-family","",Vt),fontSize:o.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",L.textDecoration,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Vt),fontSize:o.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",L.textDecoration,"inherit")},$r={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",L.textDecoration,"inherit")},Mr={fontFamily:o.extend("--ft-typography-overline-font-family","",Vt),fontSize:o.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",L.textDecoration,"inherit")},yt={fontFamily:o.extend("--ft-typography-button-font-family","",Vt),fontSize:o.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",L.textDecoration,"inherit")},Bp=O`
208
208
  .ft-typography--title {
209
209
  font-family: ${Pr.fontFamily};
210
210
  font-size: ${Pr.fontSize};
@@ -214,7 +214,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
214
214
  text-transform: ${Pr.textTransform};
215
215
  text-decoration: ${Pr.textDecoration};
216
216
  }
217
- `,Bu=O`
217
+ `,Up=O`
218
218
  .ft-typography--title-dense {
219
219
  font-family: ${Nr.fontFamily};
220
220
  font-size: ${Nr.fontSize};
@@ -224,7 +224,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
224
224
  text-transform: ${Nr.textTransform};
225
225
  text-decoration: ${Nr.textDecoration};
226
226
  }
227
- `,Uu=O`
227
+ `,zp=O`
228
228
  .ft-typography--subtitle1 {
229
229
  font-family: ${Dr.fontFamily};
230
230
  font-size: ${Dr.fontSize};
@@ -234,7 +234,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
234
234
  text-transform: ${Dr.textTransform};
235
235
  text-decoration: ${Dr.textDecoration};
236
236
  }
237
- `,zu=O`
237
+ `,Vp=O`
238
238
  .ft-typography--subtitle2 {
239
239
  font-family: ${Fr.fontFamily};
240
240
  font-size: ${Fr.fontSize};
@@ -245,15 +245,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
245
245
  text-decoration: ${Fr.textDecoration};
246
246
  }
247
247
 
248
- `,Vu=O`
248
+ `,Hp=O`
249
249
  .ft-typography--body1 {
250
- font-family: ${kt.fontFamily};
251
- font-size: ${kt.fontSize};
252
- font-weight: ${kt.fontWeight};
253
- letter-spacing: ${kt.letterSpacing};
254
- line-height: ${kt.lineHeight};
255
- text-transform: ${kt.textTransform};
256
- text-decoration: ${kt.textDecoration};
250
+ font-family: ${Lt.fontFamily};
251
+ font-size: ${Lt.fontSize};
252
+ font-weight: ${Lt.fontWeight};
253
+ letter-spacing: ${Lt.letterSpacing};
254
+ line-height: ${Lt.lineHeight};
255
+ text-transform: ${Lt.textTransform};
256
+ text-decoration: ${Lt.textDecoration};
257
257
  }
258
258
  `,or=O`
259
259
  .ft-typography--body2 {
@@ -275,7 +275,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
275
275
  text-transform: ${je.textTransform};
276
276
  text-decoration: ${je.textDecoration};
277
277
  }
278
- `,Hu=O`
278
+ `,Wp=O`
279
279
  .ft-typography--breadcrumb {
280
280
  font-family: ${$r.fontFamily};
281
281
  font-size: ${$r.fontSize};
@@ -285,7 +285,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
285
285
  text-transform: ${$r.textTransform};
286
286
  text-decoration: ${$r.textDecoration};
287
287
  }
288
- `,Wu=O`
288
+ `,Gp=O`
289
289
  .ft-typography--overline {
290
290
  font-family: ${Mr.fontFamily};
291
291
  font-size: ${Mr.fontSize};
@@ -295,7 +295,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
295
295
  text-transform: ${Mr.textTransform};
296
296
  text-decoration: ${Mr.textDecoration};
297
297
  }
298
- `,Gu=O`
298
+ `,jp=O`
299
299
  .ft-typography--button {
300
300
  font-family: ${yt.fontFamily};
301
301
  font-size: ${yt.fontSize};
@@ -305,19 +305,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
305
305
  text-transform: ${yt.textTransform};
306
306
  text-decoration: ${yt.textDecoration};
307
307
  }
308
- `,ju=O`
308
+ `,Kp=O`
309
309
  .ft-typography {
310
310
  vertical-align: inherit;
311
311
  }
312
- `;var Ku=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},re=class extends D{constructor(){super(...arguments),this.variant=me.body1}render(){return this.element?Ya`
313
- <${qa(this.element)}
312
+ `;var qp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},te=class extends D{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?Qa`
313
+ <${Za(this.element)}
314
314
  part="text"
315
315
  class="ft-typography ft-typography--${this.variant}">
316
316
  <slot></slot>
317
- </${qa(this.element)}>
318
- `:Ya`
317
+ </${Za(this.element)}>
318
+ `:Qa`
319
319
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
320
- `}};re.styles=[Mu,Bu,Uu,zu,Vu,or,ir,Hu,Wu,Gu,ju];Ku([f()],re.prototype,"element",void 0);Ku([f()],re.prototype,"variant",void 0);var qu={"ft-typography":re};W(qu);var ni={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Zu=O`
320
+ `}};te.styles=[Bp,Up,zp,Vp,Hp,or,ir,Wp,Gp,jp,Kp];qp([f()],te.prototype,"element",void 0);qp([f()],te.prototype,"variant",void 0);var Zp={"ft-typography":te};W(Zp);var li={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Yp=O`
321
321
  .ft-tooltip--container {
322
322
  display: block;
323
323
  }
@@ -335,28 +335,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
335
335
  box-sizing: border-box;
336
336
  overflow: hidden;
337
337
  width: max-content;
338
- max-width: ${ni.maxWidth};
338
+ max-width: ${li.maxWidth};
339
339
  text-align: center;
340
- padding: ${ni.distance};
340
+ padding: ${li.distance};
341
341
  }
342
342
 
343
343
  .ft-tooltip--content {
344
344
  padding: 4px 8px;
345
- border-radius: ${ni.borderRadiusS};
346
- background-color: ${ni.backgroundColor};
347
- color: ${ni.color};
345
+ border-radius: ${li.borderRadiusS};
346
+ background-color: ${li.backgroundColor};
347
+ color: ${li.color};
348
348
  position: relative;
349
349
  word-break: break-word;
350
350
  }
351
- `;var fg="ft-app-info",nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nr.eventName="authentication-change";var si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};si.eventName="ui-locale-changed";var hg={session:(t,e)=>{ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new nr(e.payload)),0))}},U=tr.get({name:fg,reducers:hg,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var un=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},_w=Oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>_r.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return un([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),un([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),un([mt({store:U.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),un([mt({store:U.name})],e.prototype,"uiLocale",void 0),e});var Br=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=U.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var mo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Br.await()}};var Ke=class extends mo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ot,this.cache=e?n.commonCache:new Ot}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var pn=class extends Ke{async listMySearches(){let{session:e}=U.getState();return Pi(e,ye.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var fn=class extends Ke{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var hn=class extends Ke{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=U.getState().session;return!!e?.sessionAuthenticated}};var mn=class extends Ke{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=U.getState().session;return!!e?.sessionAuthenticated}};var mg="ft-user-assets",gg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(st).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Xa(t,r,[...Qa(t,r),n]),Yu(t,r,1,i),Qu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Xa(t,r,Qa(t,r).map(n=>n.id===i.id?i:n)),Qu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Xa(t,r,Qa(t,r).filter(s=>s.id!==n)),Yu(t,r,-1,i)}},Xu={[st.SEARCHES]:"savedSearches",[st.BOOKMARKS]:"bookmarks",[st.BOOKS]:void 0,[st.COLLECTIONS]:void 0},Qa=(t,e)=>{var r;let i=Xu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Xa=(t,e,r)=>{let i=Xu[e];i&&(t[i]=r)},Yu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===st.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Qu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Be=tr.get({name:mg,reducers:gg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(st).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ja=class{constructor(e=new hn,r=new mn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fn,this.savedSearchesService=new pn,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();ge((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Be.actions.clearAssetCount(),Be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Be.getState().assetCounts.allAsset[e]!==r.count&&Be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Be.getState().assetCounts.bookmarkByMap[e]!==r.count&&Be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Be.getState().assetCounts.bookmarkByMap).length!==0;e===st.BOOKMARKS&&r&&Be.actions.clearBookmarkCountByMap(),Be.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Be.actions.bookmarks(r)}}},yg=new Ja;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=yg);var el=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new el;var Ju,go=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},bg=Symbol("clearAfterUnitTest"),gn=class extends ki(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ju]=()=>{this.defaultMessages={},this.cache=new Ot,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};ge(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new Xt((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof jt)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new go({loadedContexts:e})),this.dispatchEvent(new go({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new go({loadedContexts:[e]})),this.dispatchEvent(new go({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Ri(0).then(()=>i()).catch(()=>null)))}};Ju=bg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends gn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends gn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yo=window.FluidTopicsI18nService,yn=window.FluidTopicsCustomI18nService;var tl=class{highlightHtml(e,r,i){Zs(e,r,i)}};window.FluidTopicsHighlightHtmlService=new tl;var rl=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,a;if(e==null)return"";try{return _r.format(e,(i=r?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new rl;var Ht=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=U.getState()){var a;if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new pt(i,e??20,n?.allLanguagesAllowed,r,s)}};var ol=class{urlToSearchRequest(e){return Ht.get().parse(e)}searchRequestToUrl(e){return Ht.get().serialize(e)}};window.FluidTopicsUrlService=new ol;var Ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ur.eventName="before-location-change";var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zr.eventName="change";var il=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ep=new il;var bn=class t extends $t{static build(){return new t(window.history,ep,()=>window.location,!1)}constructor(e,r,i,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new zr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,a,l])=>{let d=new Ur(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=r(),m={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:d.detail.nextLocation.href};i.apply(n,[m,a,m.href]),this.setCurrentState(m,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ur.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ur.eventName,e)}addHistoryChangeListener(e){this.addEventListener(zr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zr.eventName,e)}currentItem(){return nt(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 nt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return nt(r.find(i=>e(i)))}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 nt(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var tp=O`
352
- `;function rp(t,e){let{authenticationRequired:r,session:i}=U.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var xn=class extends mo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var nl=class t extends uo{static build(e){return new t(U,e)}constructor(e,r){super(),this.store=e,this.cache=new Ot,this.withManualResources=!0,this.userLocaleService=new xn,this.knownContexts=new Xr,this.knownCustomComponents=new Xr,this.cleanSessionDebouncer=new ee,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ee(500),this.apiProvider=r??(()=>Br.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>rp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new si(i)))}).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)}setNoCustomCode(e){this.store.actions.noCustomCode(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)}userHasAnyRole(...e){return $c(U.getState().session,...e)}},sl=nl.build();var Vr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var ai=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let a=n.deref(),l=s.deref();a===void 0||l===void 0||a.dispatchEvent(new Vr(e.context,a,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Re=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},de=class extends Ut{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=sl,this.contextRoot=new ai}render(){return b`
351
+ `;var hg="ft-app-info",nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nr.eventName="authentication-change";var ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ci.eventName="ui-locale-changed";var mg={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new nr(e.payload)),0))}},U=tr.get({name:hg,reducers:mg,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var fn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},kw=Oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>_r.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),fn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),fn([mt({store:U.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),fn([mt({store:U.name})],e.prototype,"uiLocale",void 0),e});var Br=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=U.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var go=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Br.await()}};var Ke=class extends go{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ot,this.cache=e?n.commonCache:new Ot}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var hn=class extends Ke{async listMySearches(){let{session:e}=U.getState();return Fi(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var mn=class extends Ke{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var gn=class extends Ke{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=U.getState().session;return!!e?.sessionAuthenticated}};var yn=class extends Ke{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=U.getState().session;return!!e?.sessionAuthenticated}};var gg="ft-user-assets",yg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(st).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Ja(t,r,[...Xa(t,r),n]),Qp(t,r,1,i),Xp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ja(t,r,Xa(t,r).map(n=>n.id===i.id?i:n)),Xp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ja(t,r,Xa(t,r).filter(s=>s.id!==n)),Qp(t,r,-1,i)}},Jp={[st.SEARCHES]:"savedSearches",[st.BOOKMARKS]:"bookmarks",[st.BOOKS]:void 0,[st.COLLECTIONS]:void 0},Xa=(t,e)=>{var r;let i=Jp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ja=(t,e,r)=>{let i=Jp[e];i&&(t[i]=r)},Qp=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===st.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Xp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Me=tr.get({name:gg,reducers:yg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(st).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),el=class{constructor(e=new gn,r=new yn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mn,this.savedSearchesService=new hn,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Me.getState().assetCounts.allAsset[e]!==r.count&&Me.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Me.getState().assetCounts.bookmarkByMap[e]!==r.count&&Me.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===st.BOOKMARKS&&r&&Me.actions.clearBookmarkCountByMap(),Me.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Me.actions.bookmarks(r)}}},bg=new el;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=bg);var tl=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new tl;var eu,yo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xg=Symbol("clearAfterUnitTest"),bn=class extends Pi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[eu]=()=>{this.defaultMessages={},this.cache=new Ot,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};he(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new Xt((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof jt)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new yo({loadedContexts:e})),this.dispatchEvent(new yo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new yo({loadedContexts:[e]})),this.dispatchEvent(new yo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Li(0).then(()=>i()).catch(()=>null)))}};eu=xg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var bo=window.FluidTopicsI18nService,xn=window.FluidTopicsCustomI18nService;var rl=class{highlightHtml(e,r,i){Ys(e,r,i)}};window.FluidTopicsHighlightHtmlService=new rl;var ol=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,a;if(e==null)return"";try{return _r.format(e,(i=r?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new ol;var Ht=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=U.getState()){var a;if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new ut(i,e??20,n?.allLanguagesAllowed,r,s)}};var il=class{urlToSearchRequest(e){return Ht.get().parse(e)}searchRequestToUrl(e){return Ht.get().serialize(e)}};window.FluidTopicsUrlService=new il;var Ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ur.eventName="before-location-change";var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zr.eventName="change";var nl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},tu=new nl;var vn=class t extends $t{static build(){return new t(window.history,tu,()=>window.location,!1)}constructor(e,r,i,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new zr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,a,l])=>{let d=new Ur(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),m={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:d.detail.nextLocation.href};i.apply(n,[m,a,m.href]),this.setCurrentState(m,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ur.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ur.eventName,e)}addHistoryChangeListener(e){this.addEventListener(zr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zr.eventName,e)}currentItem(){return nt(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 nt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return nt(r.find(i=>e(i)))}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 nt(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=vn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var ru=O`
352
+ `;function ou(t,e){let{authenticationRequired:r,session:i}=U.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Sn=class extends go{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var sl=class t extends uo{static build(e){return new t(U,e)}constructor(e,r){super(),this.store=e,this.cache=new Ot,this.withManualResources=!0,this.userLocaleService=new Sn,this.knownContexts=new Jr,this.knownCustomComponents=new Jr,this.cleanSessionDebouncer=new J,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new J(500),this.apiProvider=r??(()=>Br.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>ou(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ci(i)))}).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)}setNoCustomCode(e){this.store.actions.noCustomCode(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)}userHasAnyRole(...e){return Mc(U.getState().session,...e)}},al=sl.build();var Vr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var di=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let a=n.deref(),l=s.deref();a===void 0||l===void 0||a.dispatchEvent(new Vr(e.context,a,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Re=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ce=class extends Ut{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=al,this.contextRoot=new di}render(){return b`
353
353
  <slot></slot>
354
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>yo.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};de.elementDefinitions={};de.styles=tp;Re([f()],de.prototype,"baseUrl",void 0);Re([f()],de.prototype,"tenantId",void 0);Re([f()],de.prototype,"apiIntegrationIdentifier",void 0);Re([f()],de.prototype,"apiIntegrationAppVersion",void 0);Re([f()],de.prototype,"uiLocale",void 0);Re([ce(null)],de.prototype,"availableUiLocales",void 0);Re([ce(null)],de.prototype,"metadataConfiguration",void 0);Re([f({type:Boolean})],de.prototype,"editorMode",void 0);Re([f({type:Boolean})],de.prototype,"noCustom",void 0);Re([f({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomCode",void 0);Re([f({type:Boolean})],de.prototype,"withManualResources",void 0);Re([f({type:Boolean})],de.prototype,"navigatorOnline",void 0);Re([f({type:Boolean})],de.prototype,"forcedOffline",void 0);Re([f({type:Boolean})],de.prototype,"authenticationRequired",void 0);Re([ce([])],de.prototype,"messageContexts",void 0);Re([ce(void 0)],de.prototype,"session",void 0);var op={"ft-app-context":de};W(op);var al=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[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},bo=new al;var Sg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ci=Symbol("i18nAttributes"),ip=Symbol("i18nListAttributes"),np=Symbol("i18nProperties"),vn=Symbol("i18nContexts"),li=Symbol("i18nUnsubs"),xo=Oe(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?yn:yo}i18n(s){let{context:a,key:l,message:d}=s,{custom:p,args:m,argsProvider:h}=s;if(a&&l){this.hasI18nContext(a)||this.addI18nContext(a,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(a,l,...g)}return d}async awaitI18n(s){let{context:a,custom:l}=s;return a&&await this.getI18nService(l).prepareContext(a),this.i18n(s)}customI18n(s,a){if(bo.isI18nKey(s)){let[l,d]=s.split(".");return this.i18n({custom:!0,context:l,key:d,...a})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((a,l,d)=>s.has(l)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((a,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(a=>a.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var a,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&s(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(a=this[ci])===null||a===void 0||a.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[ip])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(s){var a;(a=this[np])===null||a===void 0||a.forEach((l,d)=>{s(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(s,a,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,a,l)}addI18nContext(s,a,l){let d=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[vn].set(d,{isCustomContext:l}),this[li].has(d)||this[li].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,a)}hasI18nContext(s){return this[vn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[vn].forEach((s,a)=>this.addI18nContext(a,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[li].forEach(s=>s()),this[li].clear()}}return e=vn,r=li,Sg([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Sn=class extends xo(D){},Cn=class extends xo(Ut){};var ll=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?bo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Cg=new ll;var En=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:He,converter:bo,...e}),r[ci]=(n=r[ci])!==null&&n!==void 0?n:new Map,r[ci].set(i,t??{})};var On=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?yn:yo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var sp=O`
355
- `;var vo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends Cn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:_:b`
354
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>bo.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ce.elementDefinitions={};ce.styles=ru;Re([f()],ce.prototype,"baseUrl",void 0);Re([f()],ce.prototype,"tenantId",void 0);Re([f()],ce.prototype,"apiIntegrationIdentifier",void 0);Re([f()],ce.prototype,"apiIntegrationAppVersion",void 0);Re([f()],ce.prototype,"uiLocale",void 0);Re([le(null)],ce.prototype,"availableUiLocales",void 0);Re([le(null)],ce.prototype,"metadataConfiguration",void 0);Re([f({type:Boolean})],ce.prototype,"editorMode",void 0);Re([f({type:Boolean})],ce.prototype,"noCustom",void 0);Re([f({type:Boolean})],ce.prototype,"openExternalDocumentInNewTab",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ce.prototype,"noCustomComponent",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ce.prototype,"noCustomCode",void 0);Re([f({type:Boolean})],ce.prototype,"withManualResources",void 0);Re([f({type:Boolean})],ce.prototype,"navigatorOnline",void 0);Re([f({type:Boolean})],ce.prototype,"forcedOffline",void 0);Re([f({type:Boolean})],ce.prototype,"authenticationRequired",void 0);Re([le([])],ce.prototype,"messageContexts",void 0);Re([le(void 0)],ce.prototype,"session",void 0);var iu={"ft-app-context":ce};W(iu);var ll=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[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},xo=new ll;var Cg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ui=Symbol("i18nAttributes"),nu=Symbol("i18nListAttributes"),su=Symbol("i18nProperties"),Cn=Symbol("i18nContexts"),pi=Symbol("i18nUnsubs"),vo=Oe(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?xn:bo}i18n(s){let{context:a,key:l,message:d}=s,{custom:u,args:m,argsProvider:h}=s;if(a&&l){this.hasI18nContext(a)||this.addI18nContext(a,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(a,l,...g)}return d}async awaitI18n(s){let{context:a,custom:l}=s;return a&&await this.getI18nService(l).prepareContext(a),this.i18n(s)}customI18n(s,a){if(xo.isI18nKey(s)){let[l,d]=s.split(".");return this.i18n({custom:!0,context:l,key:d,...a})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((a,l,d)=>s.has(l)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((a,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(a=>a.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var a,l;let d=this,u=(m,h,g)=>g?.context&&g.key&&s(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(a=this[ui])===null||a===void 0||a.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[nu])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(s){var a;(a=this[su])===null||a===void 0||a.forEach((l,d)=>{s(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(s,a,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,a,l)}addI18nContext(s,a,l){let d=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[Cn].set(d,{isCustomContext:l}),this[pi].has(d)||this[pi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,a)}hasI18nContext(s){return this[Cn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Cn].forEach((s,a)=>this.addI18nContext(a,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[pi].forEach(s=>s()),this[pi].clear()}}return e=Cn,r=pi,Cg([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),En=class extends vo(D){},On=class extends vo(Ut){};var cl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?xo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Eg=new cl;var wn=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:He,converter:xo,...e}),r[ui]=(n=r[ui])!==null&&n!==void 0?n:new Map,r[ui].set(i,t??{})};var So=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?xn:bo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var au=O`
355
+ `;var Co=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends On{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:_:b`
356
356
  <span class="ft-i18n">
357
357
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
358
358
  </span>
359
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};at.elementDefinitions={};at.styles=sp;vo([mt()],at.prototype,"editorMode",void 0);vo([f()],at.prototype,"context",void 0);vo([f()],at.prototype,"key",void 0);vo([ce([])],at.prototype,"args",void 0);vo([f()],at.prototype,"defaultMessage",void 0);vo([A()],at.prototype,"editorMessage",void 0);var ap={"ft-i18n":at};W(ap);var bt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},be=class extends Sn{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 ee,this.revealDebouncer=new ee,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():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,r;return b`
359
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};at.elementDefinitions={};at.styles=au;Co([mt()],at.prototype,"editorMode",void 0);Co([f()],at.prototype,"context",void 0);Co([f()],at.prototype,"key",void 0);Co([le([])],at.prototype,"args",void 0);Co([f()],at.prototype,"defaultMessage",void 0);Co([A()],at.prototype,"editorMessage",void 0);var lu={"ft-i18n":at};W(lu);var bt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ge=class extends En{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 J,this.revealDebouncer=new J,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():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,r;return b`
360
360
  <div part="container"
361
361
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
362
362
  <slot part="slot"></slot>
@@ -365,13 +365,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
365
365
  popover="manual">
366
366
  <div part="tooltip-content" class="ft-tooltip--content">
367
367
  <slot name="text"></slot>
368
- <ft-typography variant="${me.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
368
+ <ft-typography variant="${fe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
369
369
  ${(r=this.text)===null||r===void 0?void 0:r.message}
370
370
  </ft-typography>
371
371
  </div>
372
372
  </div>
373
373
  </div>
374
- `}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 r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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(r=>r.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&&Ms(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}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)}matchesIgnored(e){return is(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};be.elementDefinitions={"ft-typography":re};be.styles=Zu;bt([En()],be.prototype,"text",void 0);bt([f({type:Boolean})],be.prototype,"manual",void 0);bt([f({type:Boolean})],be.prototype,"inline",void 0);bt([Kt()],be.prototype,"delay",void 0);bt([f()],be.prototype,"position",void 0);bt([ce([])],be.prototype,"ignoreMatchingElements",void 0);bt([qn()],be.prototype,"slotNodes",void 0);bt([P(".ft-tooltip--container")],be.prototype,"container",void 0);bt([P(".ft-tooltip")],be.prototype,"tooltip",void 0);bt([P(".ft-tooltip--content")],be.prototype,"tooltipContent",void 0);bt([A()],be.prototype,"visible",void 0);var lp={"ft-tooltip":be};W(lp);var Ue={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},cp=[O`
374
+ `}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 r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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(r=>r.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&&Bs(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}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)}matchesIgnored(e){return ns(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ge.elementDefinitions={"ft-typography":te};ge.styles=Yp;bt([wn()],ge.prototype,"text",void 0);bt([f({type:Boolean})],ge.prototype,"manual",void 0);bt([f({type:Boolean})],ge.prototype,"inline",void 0);bt([Kt()],ge.prototype,"delay",void 0);bt([f()],ge.prototype,"position",void 0);bt([le([])],ge.prototype,"ignoreMatchingElements",void 0);bt([Zn()],ge.prototype,"slotNodes",void 0);bt([P(".ft-tooltip--container")],ge.prototype,"container",void 0);bt([P(".ft-tooltip")],ge.prototype,"tooltip",void 0);bt([P(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0);bt([A()],ge.prototype,"visible",void 0);var cu={"ft-tooltip":ge};W(cu);var Be={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},du=[O`
375
375
  :host, i.ft-icon {
376
376
  display: inline-flex;
377
377
  align-items: center;
@@ -380,14 +380,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
380
380
  }
381
381
 
382
382
  :host {
383
- width: ${Ue.size};
384
- height: ${Ue.size};
383
+ width: ${Be.size};
384
+ height: ${Be.size};
385
385
  }
386
386
 
387
387
  i.ft-icon {
388
388
  width: 100%;
389
389
  height: 100%;
390
- font-size: ${Ue.size};
390
+ font-size: ${Be.size};
391
391
  line-height: 1;
392
392
  font-weight: normal;
393
393
  text-transform: none;
@@ -398,33 +398,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
398
398
  text-rendering: auto;
399
399
  -webkit-font-smoothing: antialiased;
400
400
  -moz-osx-font-smoothing: grayscale;
401
- vertical-align: ${Ue.verticalAlign};
401
+ vertical-align: ${Be.verticalAlign};
402
402
  }
403
403
 
404
404
  i.ft-icon.ft-icon--fluid-topics {
405
- font-family: ${Ue.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
405
+ font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
406
406
 
407
407
  /* Ugly fix because font is broken */
408
- font-size: calc(0.75 * ${Ue.size});
409
- line-height: ${Ue.size};
408
+ font-size: calc(0.75 * ${Be.size});
409
+ line-height: ${Be.size};
410
410
  position: relative;
411
411
  top: -4%;
412
412
  justify-content: center;
413
413
  }
414
414
 
415
415
  .ft-icon--file-format {
416
- font-family: ${Ue.fileFormatFontFamily}, ft-mime, sans-serif;
416
+ font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
417
417
  }
418
418
 
419
419
  .ft-icon--material {
420
- font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
420
+ font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
421
421
  }
422
- `,Or];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var ve;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ve||(ve={}));var L;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(L||(L={}));var cl=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]),Eg=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"]]);function wn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[a,l]=(((r=Eg.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=cl.get(l))!==null&&i!==void 0?i:cl.get(e))!==null&&n!==void 0?n:cl.get(a))!==null&&s!==void 0?s:L.UNKNOWN}var dL={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var di=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},se=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return b`
422
+ `,Or];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var ve;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ve||(ve={}));var k;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(k||(k={}));var dl=new Map([...["abw"].map(t=>[t,k.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,k.AUDIO]),...["avi"].map(t=>[t,k.AVI]),...["chm","xhs"].map(t=>[t,k.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,k.CODE]),...["csv"].map(t=>[t,k.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,k.DITA]),...["epub"].map(t=>[t,k.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,k.EXCEL]),...["flac"].map(t=>[t,k.FLAC]),...["gif"].map(t=>[t,k.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,k.GZIP]),...["html","htm","xhtml"].map(t=>[t,k.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,k.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,k.JPEG]),...["json"].map(t=>[t,k.JSON]),...["m4a","m4p"].map(t=>[t,k.M4A]),...["mov","qt"].map(t=>[t,k.MOV]),...["mp3"].map(t=>[t,k.MP3]),...["mp4","m4v"].map(t=>[t,k.MP4]),...["ogg","oga"].map(t=>[t,k.OGG]),...["pdf","ps"].map(t=>[t,k.PDF]),...["png"].map(t=>[t,k.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,k.POWERPOINT]),...["rar"].map(t=>[t,k.RAR]),...["stp"].map(t=>[t,k.STP]),...["txt","rtf","md","mdown"].map(t=>[t,k.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,k.VIDEO]),...["wav"].map(t=>[t,k.WAV]),...["wma"].map(t=>[t,k.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,k.WORD]),...["xml","xsl","rdf"].map(t=>[t,k.XML]),...["yaml","yml","x-yaml"].map(t=>[t,k.YAML]),...["zip"].map(t=>[t,k.ZIP])]),Og=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"]]);function An(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[a,l]=(((r=Og.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=dl.get(l))!==null&&i!==void 0?i:dl.get(e))!==null&&n!==void 0?n:dl.get(a))!==null&&s!==void 0?s:k.UNKNOWN}var pk={[k.ABW]:"#91ABC6",[k.AUDIO]:"#1795E3",[k.AVI]:"#E63324",[k.CHM]:"#71C3EB",[k.CODE]:"#71C3EB",[k.CSV]:"#1F7345",[k.DITA]:"#71C3EB",[k.EPUB]:"#85B926",[k.EXCEL]:"#1F7345",[k.FLAC]:"#1795E3",[k.GIF]:"#59B031",[k.GZIP]:"#F8AB36",[k.HTML]:"#71C3EB",[k.IMAGE]:"#59B031",[k.JPEG]:"#59B031",[k.JSON]:"#71C3EB",[k.M4A]:"#1795E3",[k.MOV]:"#E63324",[k.MP3]:"#1795E3",[k.MP4]:"#E63324",[k.OGG]:"#1795E3",[k.PDF]:"#E44948",[k.PNG]:"#59B031",[k.POWERPOINT]:"#B54A2B",[k.RAR]:"#F8AB36",[k.STP]:"#3764B1",[k.TEXT]:"#3162AB",[k.UNKNOWN]:"#999999",[k.VIDEO]:"#E63324",[k.WAV]:"#1795E3",[k.WMA]:"#1795E3",[k.WORD]:"#3162AB",[k.XML]:"#71C3EB",[k.YAML]:"#71C3EB",[k.ZIP]:"#F8AB36"};var fi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},se=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return b`
423
423
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
424
- ${Jn(this.resolvedIcon)}
424
+ ${es(this.resolvedIcon)}
425
425
  <slot ?hidden=${r}></slot>
426
426
  </i>
427
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ze.file_format:this.resolvedIcon=(e=L[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ze.material:this.resolvedIcon=this.value||_;break;default:this.resolvedIcon=(r=ve[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};se.elementDefinitions={};se.styles=cp;di([f()],se.prototype,"variant",void 0);di([f()],se.prototype,"value",void 0);di([f({reflect:!0,attribute:"aria-hidden"})],se.prototype,"ariaHidden",void 0);di([A()],se.prototype,"resolvedIcon",void 0);di([P("slot")],se.prototype,"slottedContent",void 0);var dp={"ft-icon":se};W(dp);var Hr={color:o.extend("--ft-loader-color","",S.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},up=O`
427
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=k[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||_;break;default:this.resolvedIcon=(r=ve[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};se.elementDefinitions={};se.styles=du;fi([f()],se.prototype,"variant",void 0);fi([f()],se.prototype,"value",void 0);fi([f({reflect:!0,attribute:"aria-hidden"})],se.prototype,"ariaHidden",void 0);fi([A()],se.prototype,"resolvedIcon",void 0);fi([P("slot")],se.prototype,"slottedContent",void 0);var pu={"ft-icon":se};W(pu);var Hr={color:o.extend("--ft-loader-color","",S.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},uu=O`
428
428
  :host {
429
429
  line-height: 0;
430
430
  }
@@ -500,7 +500,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
500
500
  <div></div>
501
501
  <div></div>
502
502
  </div>
503
- `}};Wr.styles=up;var pp={"ft-loader":Wr};W(pp);var xt=t=>t??_;var fp=o.extend("--ft-button-color","",S.colorPrimary),H={backgroundColor:o.extend("--ft-button-background-color","",S.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",S.borderRadiusL),color:fp,fontSize:o.extend("--ft-button-font-size","",yt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",fp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},hp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",S.colorOnPrimary)),dl={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",S.colorPrimary)),color:hp,rippleColor:o.extend("--ft-button-primary-ripple-color","",hp)},vt={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},mp=O`
503
+ `}};Wr.styles=uu;var fu={"ft-loader":Wr};W(fu);var xt=t=>t??_;var hu=o.extend("--ft-button-color","",S.colorPrimary),H={backgroundColor:o.extend("--ft-button-background-color","",S.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",S.borderRadiusL),color:hu,fontSize:o.extend("--ft-button-font-size","",yt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",hu),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},mu=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",S.colorOnPrimary)),pl={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",S.colorPrimary)),color:mu,rippleColor:o.extend("--ft-button-primary-ripple-color","",mu)},vt={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},gu=O`
504
504
  :host {
505
505
  display: inline-block;
506
506
  max-width: 100%;
@@ -523,9 +523,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
523
523
 
524
524
  --button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
525
525
  --button-internal-color: ${H.color};
526
- ${w(Ue.size,H.iconSize)};
527
- ${w(J.color,H.rippleColor)};
528
- ${w(J.borderRadius,H.borderRadius)};
526
+ ${w(Be.size,H.iconSize)};
527
+ ${w(X.color,H.rippleColor)};
528
+ ${w(X.borderRadius,H.borderRadius)};
529
529
 
530
530
  border-radius: ${H.borderRadius};
531
531
  padding: ${H.verticalPadding} ${H.horizontalPadding};
@@ -579,9 +579,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
579
579
  }
580
580
 
581
581
  &.ft-button--primary {
582
- background-color: ${dl.backgroundColor};
583
- --button-internal-color: ${dl.color};
584
- ${w(J.color,dl.rippleColor)};
582
+ background-color: ${pl.backgroundColor};
583
+ --button-internal-color: ${pl.color};
584
+ ${w(X.color,pl.rippleColor)};
585
585
  }
586
586
 
587
587
  &.ft-button--outlined {
@@ -592,7 +592,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
592
592
  &.ft-button--dense {
593
593
  padding: ${vt.verticalPadding} ${vt.horizontalPadding};
594
594
  border-radius: ${vt.borderRadius};
595
- ${w(J.borderRadius,vt.borderRadius)};
595
+ ${w(X.borderRadius,vt.borderRadius)};
596
596
 
597
597
  .ft-button--label {
598
598
  margin: 0 ${vt.iconPadding};
@@ -605,12 +605,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
605
605
 
606
606
  &.ft-button--round {
607
607
  border-radius: calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding});
608
- ${w(J.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding})`)};
608
+ ${w(X.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding})`)};
609
609
  }
610
610
 
611
611
  &.ft-button--round.ft-button--dense {
612
612
  border-radius: calc(var(--button-internal-line-height) / 2 + ${vt.verticalPadding});
613
- ${w(J.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${vt.verticalPadding})`)};
613
+ ${w(X.borderRadius,O`calc(var(--button-internal-line-height) / 2 + ${vt.verticalPadding})`)};
614
614
  }
615
615
 
616
616
  &.ft-button--no-text {
@@ -642,13 +642,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
642
642
  ${w(Hr.size,H.iconSize)};
643
643
  ${w(Hr.color,"var(--button-internal-color)")};
644
644
  }
645
- `;var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},F=class t extends Oa(D){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-button--no-text":!this.hasTextContent,"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.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Tr},s=b`
645
+ `;var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},F=class t extends wa(D){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-button--no-text":!this.hasTextContent,"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.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Tr},s=b`
646
646
  <ft-ripple part="ripple"
647
647
  ?disabled=${this.isDisabled()}
648
648
  ?activated=${this.activated}
649
649
  ></ft-ripple>
650
650
  <ft-typography part="label"
651
- variant="${me.button}"
651
+ variant="${fe.button}"
652
652
  element="span"
653
653
  class="${oe(n)}">
654
654
  <slot></slot>
@@ -684,7 +684,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
684
684
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
685
685
  `:b`
686
686
  <slot part="icon" name="icon"></slot>
687
- `}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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":be,"ft-icon":se,"ft-loader":Wr,"ft-typography":re};F.styles=[Qs,mp,Or];F.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:F.labelsObserver.unobserve(e.target)}});ie([f({type:Boolean})],F.prototype,"primary",void 0);ie([f({type:Boolean})],F.prototype,"outlined",void 0);ie([f({type:Boolean})],F.prototype,"dense",void 0);ie([f({type:Boolean})],F.prototype,"round",void 0);ie([f({type:Boolean})],F.prototype,"disabled",void 0);ie([f()],F.prototype,"icon",void 0);ie([f()],F.prototype,"iconVariant",void 0);ie([f({type:Boolean})],F.prototype,"trailingIcon",void 0);ie([f()],F.prototype,"label",void 0);ie([f()],F.prototype,"type",void 0);ie([f()],F.prototype,"href",void 0);ie([f()],F.prototype,"target",void 0);ie([f({type:Boolean})],F.prototype,"loading",void 0);ie([f({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);ie([f()],F.prototype,"ariaHasPopup",void 0);ie([f({attribute:"aria-pressed"})],F.prototype,"ariaPressed",void 0);ie([f({attribute:"aria-expanded"})],F.prototype,"ariaExpanded",void 0);ie([f()],F.prototype,"tooltipPosition",void 0);ie([f({type:Boolean})],F.prototype,"hideTooltip",void 0);ie([f({type:Boolean})],F.prototype,"forceTooltip",void 0);ie([f({type:Boolean})],F.prototype,"activated",void 0);ie([P(".ft-button")],F.prototype,"button",void 0);ie([P(".ft-button--label")],F.prototype,"labelContainer",void 0);ie([A()],F.prototype,"hasTextContent",void 0);ie([P(".ft-button--label slot")],F.prototype,"slottedContent",void 0);ie([P("[part=tooltip]")],F.prototype,"tooltip",void 0);var gp={"ft-button":F};W(gp);var we={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},yp=O`
687
+ `}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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":ge,"ft-icon":se,"ft-loader":Wr,"ft-typography":te};F.styles=[Xs,gu,Or];F.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:F.labelsObserver.unobserve(e.target)}});ie([f({type:Boolean})],F.prototype,"primary",void 0);ie([f({type:Boolean})],F.prototype,"outlined",void 0);ie([f({type:Boolean})],F.prototype,"dense",void 0);ie([f({type:Boolean})],F.prototype,"round",void 0);ie([f({type:Boolean})],F.prototype,"disabled",void 0);ie([f()],F.prototype,"icon",void 0);ie([f()],F.prototype,"iconVariant",void 0);ie([f({type:Boolean})],F.prototype,"trailingIcon",void 0);ie([f()],F.prototype,"label",void 0);ie([f()],F.prototype,"type",void 0);ie([f()],F.prototype,"href",void 0);ie([f()],F.prototype,"target",void 0);ie([f({type:Boolean})],F.prototype,"loading",void 0);ie([f({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);ie([f()],F.prototype,"ariaHasPopup",void 0);ie([f({attribute:"aria-pressed"})],F.prototype,"ariaPressed",void 0);ie([f({attribute:"aria-expanded"})],F.prototype,"ariaExpanded",void 0);ie([f()],F.prototype,"tooltipPosition",void 0);ie([f({type:Boolean})],F.prototype,"hideTooltip",void 0);ie([f({type:Boolean})],F.prototype,"forceTooltip",void 0);ie([f({type:Boolean})],F.prototype,"activated",void 0);ie([P(".ft-button")],F.prototype,"button",void 0);ie([P(".ft-button--label")],F.prototype,"labelContainer",void 0);ie([A()],F.prototype,"hasTextContent",void 0);ie([P(".ft-button--label slot")],F.prototype,"slottedContent",void 0);ie([P("[part=tooltip]")],F.prototype,"tooltip",void 0);var yu={"ft-button":F};W(yu);var we={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},bu=O`
688
688
  * {
689
689
  box-sizing: border-box;
690
690
  ${w(H.color,we.buttonColor)};
@@ -758,7 +758,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
758
758
  height: 20px;
759
759
  border-right: 1px solid ${we.colorOutline};
760
760
  }
761
- `;var ul;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ul||(ul={}));var An=class t extends Event{constructor(){super(t.eventName)}};An.eventName="search-context-clear-all-filters";var pl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},hl=class extends Do{constructor(e){super("register-ft-search-component",e)}},bp=Symbol("registerInterval"),fl=Symbol("registerAttempts"),Og=40,wg=Oe(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,a;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fl]=0,this.tryToRegisterToContext(),this[bp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[fl]>Og?window.clearInterval(this[bp]):(this[fl]++,this.dispatchEvent(new hl({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return pl([A()],e.prototype,"stateManager",void 0),pl([A({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),pl([f()],e.prototype,"searchRegistrationId",void 0),e}),Rn=class extends wg(Ut){};var Wt=On.build("designedSearchInput");var lt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(lt||(lt={}));var xp=O`
761
+ `;var ul;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ul||(ul={}));var Rn=class t extends Event{constructor(){super(t.eventName)}};Rn.eventName="search-context-clear-all-filters";var fl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ml=class extends $o{constructor(e){super("register-ft-search-component",e)}},xu=Symbol("registerInterval"),hl=Symbol("registerAttempts"),wg=40,Ag=Oe(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,a;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hl]=0,this.tryToRegisterToContext(),this[xu]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[hl]>wg?window.clearInterval(this[xu]):(this[hl]++,this.dispatchEvent(new ml({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return fl([A()],e.prototype,"stateManager",void 0),fl([A({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),fl([f()],e.prototype,"searchRegistrationId",void 0),e}),_n=class extends Ag(Ut){};var Wt=So.build("designedSearchInput");var lt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(lt||(lt={}));var vu=O`
762
762
  .ft-size-watcher--pixel {
763
763
  width: 0;
764
764
  height: 0;
@@ -777,11 +777,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
777
777
  .ft-size-watcher--local .ft-size-watcher--watcher {
778
778
  width: 100%;
779
779
  }
780
- `;var ui=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ml=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Je=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=lt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ee}render(){return b`
780
+ `;var hi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},gl=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Je=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=lt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new J}render(){return b`
781
781
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
782
782
  <div class="ft-size-watcher--watcher"></div>
783
783
  </div>
784
- `}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=lt.S:this.size<976?this.category=lt.M:this.size<1024?this.category=lt.L:this.size<1440?this.category=lt.XL:this.category=lt.XXL,this.dispatchEvent(new ml(this.size,this.category)))},this.debounceTimeout)}};Je.elementDefinitions={};Je.styles=xp;ui([f({type:Number})],Je.prototype,"debounceTimeout",void 0);ui([f({type:Boolean})],Je.prototype,"local",void 0);ui([f({type:Number,reflect:!0})],Je.prototype,"size",void 0);ui([f({type:String,reflect:!0})],Je.prototype,"category",void 0);ui([P(".ft-size-watcher--watcher")],Je.prototype,"watcher",void 0);var vp={"ft-size-watcher":Je};W(vp);function _n(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Sp(t){return _n(t).split("|").pop()}function Cp(t){return _n(t).split("|").join(" > ")}function Ep(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Ep(r,t.selected)),value:t.value}}function Op(t){return Ye(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function gl(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Ep(e,!1))}}function wp(t){return Ye(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var pi={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:o.external(S.borderRadiusM,"Design system"),colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnPrimary:o.external(S.colorOnPrimary,"Design system"),fontFamily:o.external(xe.fontFamily,"Body2 typography"),fontSize:o.external(xe.fontSize,"Body2 typography"),fontWeight:o.external(xe.fontWeight,"Body2 typography"),letterSpacing:o.external(xe.letterSpacing,"Body2 typography"),lineHeight:o.external(xe.lineHeight,"Body2 typography"),textTransform:o.external(xe.textTransform,"Body2 typography")},Ap=O`
784
+ `}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=lt.S:this.size<976?this.category=lt.M:this.size<1024?this.category=lt.L:this.size<1440?this.category=lt.XL:this.category=lt.XXL,this.dispatchEvent(new gl(this.size,this.category)))},this.debounceTimeout)}};Je.elementDefinitions={};Je.styles=vu;hi([f({type:Number})],Je.prototype,"debounceTimeout",void 0);hi([f({type:Boolean})],Je.prototype,"local",void 0);hi([f({type:Number,reflect:!0})],Je.prototype,"size",void 0);hi([f({type:String,reflect:!0})],Je.prototype,"category",void 0);hi([P(".ft-size-watcher--watcher")],Je.prototype,"watcher",void 0);var Su={"ft-size-watcher":Je};W(Su);function kn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Cu(t){return kn(t).split("|").pop()}function Eu(t){return kn(t).split("|").join(" > ")}function Ou(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Ou(r,t.selected)),value:t.value}}function wu(t){return Ye(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function yl(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Ou(e,!1))}}function Au(t){return Ye(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var mi={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:o.external(S.borderRadiusM,"Design system"),colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnPrimary:o.external(S.colorOnPrimary,"Design system"),fontFamily:o.external(xe.fontFamily,"Body2 typography"),fontSize:o.external(xe.fontSize,"Body2 typography"),fontWeight:o.external(xe.fontWeight,"Body2 typography"),letterSpacing:o.external(xe.letterSpacing,"Body2 typography"),lineHeight:o.external(xe.lineHeight,"Body2 typography"),textTransform:o.external(xe.textTransform,"Body2 typography")},Ru=O`
785
785
  .ft-filter-level--container {
786
786
  display: flex;
787
787
  flex-direction: column;
@@ -796,14 +796,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
796
796
  flex-shrink: 0;
797
797
  text-decoration: none;
798
798
  position: relative;
799
- border-radius: ${pi.borderRadiusM};
799
+ border-radius: ${mi.borderRadiusM};
800
800
  overflow: hidden;
801
801
  display: flex;
802
802
  align-items: center;
803
803
  padding: 4px 4px;
804
804
  gap: 4px;
805
805
  cursor: pointer;
806
- color: ${pi.colorOnSurface};
806
+ color: ${mi.colorOnSurface};
807
807
  }
808
808
 
809
809
  .ft-filter-level--go-back:focus {
@@ -832,11 +832,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
832
832
  }
833
833
 
834
834
  ft-button {
835
- ${w(H.color,pi.colorOnSurface)};
835
+ ${w(H.color,mi.colorOnSurface)};
836
836
  }
837
837
 
838
838
  ft-button.ft-filter-level--display-more {
839
- ${w(H.color,pi.buttonMoreColor)};
839
+ ${w(H.color,mi.buttonMoreColor)};
840
840
  }
841
841
 
842
842
  ft-radio, ft-checkbox {
@@ -850,9 +850,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
850
850
 
851
851
  .ft-filter-level--no-values {
852
852
  margin: 10px 0;
853
- color: ${pi.colorOnSurfaceMedium};
853
+ color: ${mi.colorOnSurfaceMedium};
854
854
  }
855
- `;var et={textColor:o.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",k.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",S.colorError)},Rp=O`
855
+ `;var et={textColor:o.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",S.colorError)},_u=O`
856
856
  * {
857
857
  box-sizing: border-box;
858
858
  }
@@ -933,7 +933,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
933
933
 
934
934
  .ft-checkbox.ft-checkbox--error {
935
935
  color: ${et.errorColor};
936
- ${w(J.color,et.errorColor)};
936
+ ${w(X.color,et.errorColor)};
937
937
 
938
938
  .ft-checkbox--box {
939
939
  border-color: ${et.errorColor};
@@ -954,7 +954,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
954
954
  .ft-checkbox ft-typography {
955
955
  padding-right: 2px;
956
956
  }
957
- `;var It=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},yl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},_e=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}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`
957
+ `;var It=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},bl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},_e=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}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`
958
958
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
959
959
  <ft-ripple part="checkbox-ripple"
960
960
  ?disabled=${this.disabled}
@@ -980,7 +980,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
980
980
  `}render(){return b`
981
981
  <label class="${oe(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
982
982
  ${this.renderBoxContainer()}
983
- <ft-typography variant="${me.body2}" part="checkbox-body">
983
+ <ft-typography variant="${fe.body2}" part="checkbox-body">
984
984
  <slot @slotchange=${this.onSlotchange}></slot>
985
985
  </ft-typography>
986
986
  </label>
@@ -989,7 +989,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
989
989
  <path class="ft-checkbox--checkmark-path" fill="none"
990
990
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
991
991
  </svg>
992
- `}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 yl(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};_e.elementDefinitions={"ft-ripple":j,"ft-typography":re};_e.styles=Rp;It([f()],_e.prototype,"name",void 0);It([f()],_e.prototype,"value",void 0);It([f({type:Boolean,reflect:!0})],_e.prototype,"checked",void 0);It([f({type:Boolean})],_e.prototype,"indeterminate",void 0);It([f({type:Boolean})],_e.prototype,"disabled",void 0);It([f({type:Boolean})],_e.prototype,"error",void 0);It([f({attribute:"aria-label"})],_e.prototype,"ariaLabel",void 0);It([P(".ft-checkbox")],_e.prototype,"container",void 0);It([P("ft-ripple")],_e.prototype,"ripple",void 0);It([P("input")],_e.prototype,"input",void 0);var _p={"ft-checkbox":_e};W(_p);var sr={textColor:o.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",k.fontSize),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnPrimary:o.external(S.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system")},Lp=O`
992
+ `}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 bl(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};_e.elementDefinitions={"ft-ripple":j,"ft-typography":te};_e.styles=_u;It([f()],_e.prototype,"name",void 0);It([f()],_e.prototype,"value",void 0);It([f({type:Boolean,reflect:!0})],_e.prototype,"checked",void 0);It([f({type:Boolean})],_e.prototype,"indeterminate",void 0);It([f({type:Boolean})],_e.prototype,"disabled",void 0);It([f({type:Boolean})],_e.prototype,"error",void 0);It([f({attribute:"aria-label"})],_e.prototype,"ariaLabel",void 0);It([P(".ft-checkbox")],_e.prototype,"container",void 0);It([P("ft-ripple")],_e.prototype,"ripple",void 0);It([P("input")],_e.prototype,"input",void 0);var ku={"ft-checkbox":_e};W(ku);var sr={textColor:o.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",L.fontSize),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnPrimary:o.external(S.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system")},Lu=O`
993
993
  * {
994
994
  box-sizing: border-box;
995
995
  }
@@ -1078,7 +1078,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1078
1078
  .ft-radio ft-typography {
1079
1079
  padding-right: 2px;
1080
1080
  }
1081
- `;var ar=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ln=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Le=class extends D{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`
1081
+ `;var ar=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ln=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ke=class extends D{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`
1082
1082
  <div class="${oe(this.radioClasses)}"
1083
1083
  @click=${this.onClick}>
1084
1084
  <div class="ft-radio--box-container">
@@ -1099,12 +1099,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1099
1099
  >
1100
1100
  </div>
1101
1101
  <label for="radio-button" inert>
1102
- <ft-typography variant="${me.body2}">
1102
+ <ft-typography variant="${fe.body2}">
1103
1103
  <slot></slot>
1104
1104
  </ft-typography>
1105
1105
  </label>
1106
1106
  </div>
1107
- `}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 Ln(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ln(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 r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Le.elementDefinitions={"ft-ripple":j,"ft-typography":re};Le.styles=Lp;ar([f()],Le.prototype,"name",void 0);ar([f()],Le.prototype,"value",void 0);ar([f({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);ar([f({attribute:"aria-checked",reflect:!0})],Le.prototype,"ariaChecked",void 0);ar([f({type:Boolean})],Le.prototype,"disabled",void 0);ar([P(".ft-radio")],Le.prototype,"container",void 0);ar([P("ft-ripple")],Le.prototype,"ripple",void 0);ar([P("input")],Le.prototype,"input",void 0);var kp=O`
1107
+ `}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 Ln(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ln(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 r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ke.elementDefinitions={"ft-ripple":j,"ft-typography":te};ke.styles=Lu;ar([f()],ke.prototype,"name",void 0);ar([f()],ke.prototype,"value",void 0);ar([f({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);ar([f({attribute:"aria-checked",reflect:!0})],ke.prototype,"ariaChecked",void 0);ar([f({type:Boolean})],ke.prototype,"disabled",void 0);ar([P(".ft-radio")],ke.prototype,"container",void 0);ar([P("ft-ripple")],ke.prototype,"ripple",void 0);ar([P("input")],ke.prototype,"input",void 0);var Iu=O`
1108
1108
  :host {
1109
1109
  display: block;
1110
1110
  }
@@ -1112,12 +1112,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1112
1112
  :host(:focus-visible) {
1113
1113
  outline: none;
1114
1114
  }
1115
- `;var fi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return b`
1115
+ `;var gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return b`
1116
1116
  <slot @slotchange=${this.onSlotChange}
1117
1117
  @change=${this.onChange}
1118
1118
  @keydown=${this.onKeyDown}
1119
1119
  ></slot>
1120
- `}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(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.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()}};tt.elementDefinitions={};tt.styles=kp;fi([f()],tt.prototype,"name",void 0);fi([f({reflect:!0,attribute:"role"})],tt.prototype,"role",void 0);fi([f({reflect:!0,attribute:"aria-labelledby"})],tt.prototype,"ariaLabelledBy",void 0);fi([Kn()],tt.prototype,"assignedElements",void 0);fi([A()],tt.prototype,"currentSelectedIndex",void 0);var Ip={"ft-radio":Le,"ft-radio-group":tt};W(Ip);var Ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},bl={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},pe=class extends dn(xo(Ia(D)),bl){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 ee(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,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r: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(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1120
+ `}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(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.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()}};tt.elementDefinitions={};tt.styles=Iu;gi([f()],tt.prototype,"name",void 0);gi([f({reflect:!0,attribute:"role"})],tt.prototype,"role",void 0);gi([f({reflect:!0,attribute:"aria-labelledby"})],tt.prototype,"ariaLabelledBy",void 0);gi([qn()],tt.prototype,"assignedElements",void 0);gi([A()],tt.prototype,"currentSelectedIndex",void 0);var Tu={"ft-radio":ke,"ft-radio-group":tt};W(Tu);var Gr=So.build("designedFilterComponent");var ze=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xl={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ye=class extends un(vo(Ta(D)),xl){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.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new J(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,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r: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(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1121
1121
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1122
1122
  ${this.parent==null?null:b`
1123
1123
  <div tabindex="0"
@@ -1130,15 +1130,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1130
1130
  @click=${this.goBackOnClick}>
1131
1131
  <ft-ripple></ft-ripple>
1132
1132
  <ft-icon>thin_arrow_left</ft-icon>
1133
- <ft-typography variant="${me.body2}">${this.parent.label}</ft-typography>
1133
+ <ft-typography variant="${fe.body2}">${this.parent.label}</ft-typography>
1134
1134
  </div>
1135
1135
  `}
1136
- ${this.filteredOptions.length===0&&this.noValuesLabel?b`
1137
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${me.body2}">
1138
- ${this.noValuesLabel}
1136
+ ${this.filteredOptions.length===0?b`
1137
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${fe.body2}">
1138
+ ${Gr.messages.noFilterValuesAvailable()}
1139
1139
  </ft-typography>
1140
1140
  `:_}
1141
- ${le(e,r=>r.value,r=>{var i;return b`
1141
+ ${ae(e,r=>r.value,r=>{var i;return b`
1142
1142
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1143
1143
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1144
1144
  ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?_:b`
@@ -1159,7 +1159,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1159
1159
  dense trailingIcon
1160
1160
  part="controls display-more"
1161
1161
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1162
- ${this.moreValuesButtonLabel}
1162
+ ${Gr.messages.displayMoreFilterValuesButton()}
1163
1163
  </ft-button>
1164
1164
  `:_}
1165
1165
  </div>
@@ -1185,7 +1185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1185
1185
  @change=${r=>this.optionsChanged(r,e)}>
1186
1186
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1187
1187
  </ft-radio>
1188
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};pe.elementDefinitions={"ft-button":F,"ft-ripple":j,"ft-typography":re,"ft-checkbox":_e,"ft-icon":se,"ft-radio":Le};pe.styles=Ap;Ie([f({type:String})],pe.prototype,"filterId",void 0);Ie([f({type:Object})],pe.prototype,"parent",void 0);Ie([f({type:Array,hasChanged:He})],pe.prototype,"options",void 0);Ie([f({type:Boolean})],pe.prototype,"multivalued",void 0);Ie([f({type:Boolean})],pe.prototype,"disabled",void 0);Ie([f({type:Boolean})],pe.prototype,"hideSelectedOptions",void 0);Ie([f({type:Boolean})],pe.prototype,"displayCount",void 0);Ie([f({type:Boolean})],pe.prototype,"preventNavigation",void 0);Ie([f({type:String})],pe.prototype,"filter",void 0);Ie([f({type:String})],pe.prototype,"moreValuesButtonLabel",void 0);Ie([f({type:String})],pe.prototype,"noValuesLabel",void 0);Ie([f()],pe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ie([Kt()],pe.prototype,"displayedValuesLimit",void 0);Ie([P(".ft-filter-level--container")],pe.prototype,"container",void 0);Ie([A()],pe.prototype,"radios",void 0);Ie([A()],pe.prototype,"displayedPages",void 0);Ie([A()],pe.prototype,"filteredOptions",void 0);var Ve={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(S.colorSurface,"Design system")},Tp=O`
1188
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ye.elementDefinitions={"ft-button":F,"ft-ripple":j,"ft-typography":te,"ft-checkbox":_e,"ft-icon":se,"ft-radio":ke};ye.styles=Ru;ze([f({type:String})],ye.prototype,"filterId",void 0);ze([f({type:Object})],ye.prototype,"parent",void 0);ze([f({type:Array,hasChanged:He})],ye.prototype,"options",void 0);ze([f({type:Boolean})],ye.prototype,"multivalued",void 0);ze([f({type:Boolean})],ye.prototype,"disabled",void 0);ze([f({type:Boolean})],ye.prototype,"hideSelectedOptions",void 0);ze([f({type:Boolean})],ye.prototype,"displayCount",void 0);ze([f({type:Boolean})],ye.prototype,"preventNavigation",void 0);ze([f({type:String})],ye.prototype,"filter",void 0);ze([f()],ye.prototype,"filteredOptionsNumberAriaNotification",void 0);ze([Kt()],ye.prototype,"displayedValuesLimit",void 0);ze([P(".ft-filter-level--container")],ye.prototype,"container",void 0);ze([A()],ye.prototype,"radios",void 0);ze([A()],ye.prototype,"displayedPages",void 0);ze([A()],ye.prototype,"filteredOptions",void 0);var Ve={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(S.colorSurface,"Design system")},Pu=O`
1189
1189
  .ft-snap-scroll {
1190
1190
  box-sizing: border-box;
1191
1191
  position: relative;
@@ -1310,7 +1310,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1310
1310
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1311
1311
  background-color: ${Ve.colorSurface};
1312
1312
  }
1313
- `;var Tt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xl=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Se=class extends D{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 ee(200),this.updateScrollDebouncer=new ee(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}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=oe({"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":Tr}),r=this.controls&&this.withScroll;return b`
1313
+ `;var Tt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vl=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Se=class extends D{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 J(200),this.updateScrollDebouncer=new J(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}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=oe({"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":Tr}),r=this.controls&&this.withScroll;return b`
1314
1314
  <div part="container" class="${e}">
1315
1315
  <ft-button
1316
1316
  class="ft-snap-scroll--previous"
@@ -1334,7 +1334,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1334
1334
  @click=${this.next}
1335
1335
  ></ft-button>
1336
1336
  </div>
1337
- `}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 xl(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;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,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);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 r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Se.elementDefinitions={"ft-button":F};Se.styles=Tp;Tt([f({type:Boolean})],Se.prototype,"horizontal",void 0);Tt([f({type:Boolean})],Se.prototype,"hideScrollbar",void 0);Tt([f({type:Boolean})],Se.prototype,"controls",void 0);Tt([f({type:Boolean})],Se.prototype,"limitSize",void 0);Tt([A()],Se.prototype,"elements",void 0);Tt([A()],Se.prototype,"currentElement",void 0);Tt([A()],Se.prototype,"withScroll",void 0);Tt([A()],Se.prototype,"startReached",void 0);Tt([A()],Se.prototype,"endReached",void 0);Tt([P(".ft-snap-scroll--content")],Se.prototype,"contentSlot",void 0);var Pp={"ft-snap-scroll":Se};W(Pp);var qe={colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),colorSurface:o.external(S.colorSurface,"Design system"),transitionDuration:o.external(S.transitionDuration,"Design system"),transitionTimingFunction:o.external(S.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",k.fontSize,"16px")},Np=[ir,wr,O`
1337
+ `}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 vl(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;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,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);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 r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Se.elementDefinitions={"ft-button":F};Se.styles=Pu;Tt([f({type:Boolean})],Se.prototype,"horizontal",void 0);Tt([f({type:Boolean})],Se.prototype,"hideScrollbar",void 0);Tt([f({type:Boolean})],Se.prototype,"controls",void 0);Tt([f({type:Boolean})],Se.prototype,"limitSize",void 0);Tt([A()],Se.prototype,"elements",void 0);Tt([A()],Se.prototype,"currentElement",void 0);Tt([A()],Se.prototype,"withScroll",void 0);Tt([A()],Se.prototype,"startReached",void 0);Tt([A()],Se.prototype,"endReached",void 0);Tt([P(".ft-snap-scroll--content")],Se.prototype,"contentSlot",void 0);var Nu={"ft-snap-scroll":Se};W(Nu);var qe={colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),colorSurface:o.external(S.colorSurface,"Design system"),transitionDuration:o.external(S.transitionDuration,"Design system"),transitionTimingFunction:o.external(S.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},Du=[ir,wr,O`
1338
1338
  :host {
1339
1339
  display: flex;
1340
1340
  max-height: 100%;
@@ -1376,8 +1376,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1376
1376
  word-break: break-word;
1377
1377
  color: ${qe.labelColor};
1378
1378
  font-size: ${qe.labelFontSize};
1379
- ${w(k.lineHeight,"22px")};
1380
- ${w(k.fontWeight,"bold")};
1379
+ ${w(L.lineHeight,"22px")};
1380
+ ${w(L.fontWeight,"bold")};
1381
1381
  }
1382
1382
 
1383
1383
  .ft-filter--filter {
@@ -1451,25 +1451,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1451
1451
  slot:not([name]) {
1452
1452
  display: none;
1453
1453
  }
1454
- `];var ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},X=class extends dn(D,bl){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 ee(300),this.changeDebouncer=new ee(10),this.lastDispatchedValues=[]}get flatOptions(){return Ye(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ye(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return b`
1454
+ `];var be=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Sl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},re=class extends un(D,xl){constructor(){super(...arguments),this.id="",this.label="",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 J(300),this.changeDebouncer=new J(10),this.lastDispatchedValues=[]}get flatOptions(){return Ye(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ye(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Gr.messages.filterInputPlaceHolder(this.label);return b`
1455
1455
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1456
1456
  part="container">
1457
1457
  ${!this.label&&!e?null:b`
1458
1458
 
1459
1459
  <div class="ft-filter--header" part="header">
1460
1460
  <div class="filter-label" id="id-group-${this.id}">
1461
- <ft-typography class="ft-filter--label" variant="${me.overline}" part="label">
1461
+ <ft-typography class="ft-filter--label" variant="${fe.overline}" part="label">
1462
1462
  ${this.label}
1463
1463
  </ft-typography>
1464
1464
  <slot name="label"></slot>
1465
1465
  </div>
1466
1466
  ${e&&!this.hideClearButton?b`
1467
1467
  <ft-button icon="close"
1468
- aria-label="${this.clearButtonLabel+" "+this.label}"
1468
+ aria-label="${Gr.messages.clearFilterButton()+" "+this.label}"
1469
1469
  dense
1470
1470
  @click=${()=>{this.clear(),this.focusOnFirstOption()}}
1471
1471
  part="clear-button">
1472
- ${this.clearButtonLabel}
1472
+ ${Gr.messages.clearFilterButton()}
1473
1473
  </ft-button>
1474
1474
  `:null}
1475
1475
  </div>
@@ -1519,7 +1519,6 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1519
1519
  filterId="${this.id}"
1520
1520
  .filter=${this.filter}
1521
1521
  .configuredAnalyticsActions=${this.configuredAnalyticsActions}
1522
- moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1523
1522
  ?multivalued=${this.multivalued}
1524
1523
  ?disabled=${this.disabled||e!=="ft-filter--level-center"}
1525
1524
  ?hideSelectedOptions=${this.raiseSelectedOptions}
@@ -1532,24 +1531,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1532
1531
  @display-level=${this.onDisplayLevel}
1533
1532
  part="values available-values"
1534
1533
  .exportpartsPrefixes=${["values","available-values"]}
1535
- noValuesLabel="${this.noValuesLabel}"
1536
1534
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1537
1535
  ></ft-filter-level>
1538
- `}goBack(e){this.slideOut=e.detail.value,Po(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Po(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){Po(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.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 r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var a;s!==i&&(s.selected=!1),(a=s.subOptions)===null||a===void 0||a.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.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(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;ge(this.lastDispatchedValues,e)||(this.dispatchEvent(new vl(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};X.elementDefinitions={"ft-button":F,"ft-filter-level":pe,"ft-snap-scroll":Se,"ft-typography":re};X.styles=Np;ae([f({type:String})],X.prototype,"id",void 0);ae([f({type:String})],X.prototype,"label",void 0);ae([f({type:String})],X.prototype,"filterPlaceHolder",void 0);ae([f({type:String})],X.prototype,"clearButtonLabel",void 0);ae([f({type:String})],X.prototype,"moreValuesButtonLabel",void 0);ae([f({type:String})],X.prototype,"noValuesLabel",void 0);ae([ce([])],X.prototype,"options",void 0);ae([f({type:Boolean})],X.prototype,"multivalued",void 0);ae([f({type:Boolean})],X.prototype,"disabled",void 0);ae([f({type:Boolean})],X.prototype,"raiseSelectedOptions",void 0);ae([f({type:Boolean})],X.prototype,"displayCount",void 0);ae([Kt()],X.prototype,"displayedValuesLimit",void 0);ae([ce(void 0)],X.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([f({type:Boolean})],X.prototype,"hideClearButton",void 0);ae([P(".ft-filter--slot")],X.prototype,"slotElement",void 0);ae([P(".ft-filter--container")],X.prototype,"container",void 0);ae([P(".ft-filter--values")],X.prototype,"valuesContainer",void 0);ae([P(".ft-filter--levels")],X.prototype,"levelsContainer",void 0);ae([A()],X.prototype,"lastLevelHasHiddenvalues",void 0);ae([P(".ft-filter--filter input")],X.prototype,"filterInput",void 0);ae([jn(".ft-filter--levels ft-filter-level")],X.prototype,"levels",void 0);ae([A()],X.prototype,"withScroll",void 0);ae([A()],X.prototype,"filter",void 0);ae([A()],X.prototype,"slideIn",void 0);ae([A()],X.prototype,"slideOut",void 0);var So=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},rt=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1536
+ `}goBack(e){this.slideOut=e.detail.value,Do(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Do(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){Do(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.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 r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var a;s!==i&&(s.selected=!1),(a=s.subOptions)===null||a===void 0||a.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.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(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;he(this.lastDispatchedValues,e)||(this.dispatchEvent(new Sl(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};re.elementDefinitions={"ft-button":F,"ft-filter-level":ye,"ft-snap-scroll":Se,"ft-typography":te};re.styles=Du;be([f({type:String})],re.prototype,"id",void 0);be([f({type:String})],re.prototype,"label",void 0);be([le([])],re.prototype,"options",void 0);be([f({type:Boolean})],re.prototype,"multivalued",void 0);be([f({type:Boolean})],re.prototype,"disabled",void 0);be([f({type:Boolean})],re.prototype,"raiseSelectedOptions",void 0);be([f({type:Boolean})],re.prototype,"displayCount",void 0);be([Kt()],re.prototype,"displayedValuesLimit",void 0);be([le(void 0)],re.prototype,"filteredOptionsNumberAriaNotification",void 0);be([f({type:Boolean})],re.prototype,"hideClearButton",void 0);be([P(".ft-filter--slot")],re.prototype,"slotElement",void 0);be([P(".ft-filter--container")],re.prototype,"container",void 0);be([P(".ft-filter--values")],re.prototype,"valuesContainer",void 0);be([P(".ft-filter--levels")],re.prototype,"levelsContainer",void 0);be([A()],re.prototype,"lastLevelHasHiddenvalues",void 0);be([P(".ft-filter--filter input")],re.prototype,"filterInput",void 0);be([Kn(".ft-filter--levels ft-filter-level")],re.prototype,"levels",void 0);be([A()],re.prototype,"withScroll",void 0);be([A()],re.prototype,"filter",void 0);be([A()],re.prototype,"slideIn",void 0);be([A()],re.prototype,"slideOut",void 0);var Eo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},rt=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1539
1537
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1540
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rt.elementDefinitions={};So([f({type:String})],rt.prototype,"label",void 0);So([f({type:Object,converter:t=>t})],rt.prototype,"value",void 0);So([f({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);So([f({type:Object})],rt.prototype,"subOptions",void 0);So([ce({})],rt.prototype,"renderOption",void 0);So([P(".ft-filter-option--slot")],rt.prototype,"slotElement",void 0);var Dp={"ft-filter":X,"ft-filter-option":rt};W(Dp);var Fp=O`
1538
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rt.elementDefinitions={};Eo([f({type:String})],rt.prototype,"label",void 0);Eo([f({type:Object,converter:t=>t})],rt.prototype,"value",void 0);Eo([f({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);Eo([f({type:Object})],rt.prototype,"subOptions",void 0);Eo([le({})],rt.prototype,"renderOption",void 0);Eo([P(".ft-filter-option--slot")],rt.prototype,"slotElement",void 0);var Fu={"ft-filter":re,"ft-filter-option":rt};W(Fu);var $u=O`
1541
1539
  .ft-accordion {
1542
1540
  box-sizing: border-box;
1543
1541
  }
1544
- `;var $p=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pt=class extends D{constructor(){super(...arguments),this.multi=!1}render(){return b`
1542
+ `;var Mu=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pt=class extends D{constructor(){super(...arguments),this.multi=!1}render(){return b`
1545
1543
  <div class="ft-accordion">
1546
1544
  <slot @activated=${this.onChange}></slot>
1547
1545
  </div>
1548
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Pt.elementDefinitions={};Pt.styles=Fp;$p([f({type:Boolean})],Pt.prototype,"multi",void 0);$p([P("slot")],Pt.prototype,"content",void 0);var Gr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(S.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Mp=O`
1546
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Pt.elementDefinitions={};Pt.styles=$u;Mu([f({type:Boolean})],Pt.prototype,"multi",void 0);Mu([P("slot")],Pt.prototype,"content",void 0);var jr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(S.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Bu=O`
1549
1547
  .ft-accordion-item {
1550
1548
  display: flex;
1551
1549
  flex-direction: column;
1552
- background-color: ${Gr.backgroundColor};
1550
+ background-color: ${jr.backgroundColor};
1553
1551
  }
1554
1552
 
1555
1553
  .ft-accordion-item--toggle {
@@ -1559,8 +1557,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1559
1557
  display: flex;
1560
1558
  align-items: center;
1561
1559
  cursor: pointer;
1562
- padding: ${Gr.verticalSpacing} ${Gr.horizontalSpacing};
1563
- gap: calc(${Gr.horizontalSpacing} / 2);
1560
+ padding: ${jr.verticalSpacing} ${jr.horizontalSpacing};
1561
+ gap: calc(${jr.horizontalSpacing} / 2);
1564
1562
  outline: none;
1565
1563
  }
1566
1564
 
@@ -1585,13 +1583,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1585
1583
  .ft-accordion-item--active .ft-accordion-item--content {
1586
1584
  height: initial;
1587
1585
  overflow: visible;
1588
- padding: ${Gr.verticalSpacing} ${Gr.horizontalSpacing};
1586
+ padding: ${jr.verticalSpacing} ${jr.horizontalSpacing};
1589
1587
  }
1590
1588
 
1591
1589
  .ft-accordion-item--separator {
1592
- border-bottom: 1px solid ${Gr.colorOutline};
1590
+ border-bottom: 1px solid ${jr.colorOutline};
1593
1591
  }
1594
- `;var kn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ct=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1592
+ `;var In=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ct=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1595
1593
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1596
1594
  <div class="ft-accordion-item--toggle"
1597
1595
  part="toggle"
@@ -1621,7 +1619,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1621
1619
  </div>
1622
1620
  <div class="ft-accordion-item--separator" part="separator"></div>
1623
1621
  </div>
1624
- `}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)}};ct.elementDefinitions={"ft-ripple":j,"ft-typography":re,"ft-icon":se};ct.styles=Mp;kn([f()],ct.prototype,"icon",void 0);kn([f()],ct.prototype,"iconVariant",void 0);kn([f()],ct.prototype,"label",void 0);kn([f({type:Boolean,reflect:!0})],ct.prototype,"active",void 0);var Bp={"ft-accordion":Pt,"ft-accordion-item":ct};W(Bp);var Up=o.extend("--ft-chip-color","",S.colorOnSurface),Te={backgroundColor:o.extend("--ft-chip-background-color","",S.colorSurface),color:Up,fontSize:o.extend("--ft-chip-font-size","",xe.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",xe.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Up),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},zp=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",S.colorOnPrimary)),Sl={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",S.colorPrimary)),color:zp,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",zp)},Vp={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hp=[Or,O`
1622
+ `}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)}};ct.elementDefinitions={"ft-ripple":j,"ft-typography":te,"ft-icon":se};ct.styles=Bu;In([f()],ct.prototype,"icon",void 0);In([f()],ct.prototype,"iconVariant",void 0);In([f()],ct.prototype,"label",void 0);In([f({type:Boolean,reflect:!0})],ct.prototype,"active",void 0);var Uu={"ft-accordion":Pt,"ft-accordion-item":ct};W(Uu);var zu=o.extend("--ft-chip-color","",S.colorOnSurface),Ie={backgroundColor:o.extend("--ft-chip-background-color","",S.colorSurface),color:zu,fontSize:o.extend("--ft-chip-font-size","",xe.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",xe.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",zu),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},Vu=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",S.colorOnPrimary)),Cl={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",S.colorPrimary)),color:Vu,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Vu)},Hu={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Wu=[Or,O`
1625
1623
  :host {
1626
1624
  display: inline-block;
1627
1625
  max-width: 100%;
@@ -1637,21 +1635,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1637
1635
  box-sizing: border-box;
1638
1636
  pointer-events: auto;
1639
1637
 
1640
- --chip-internal-font-size: ${Te.fontSize};
1641
- --chip-internal-font-weight: ${Te.fontWeight};
1638
+ --chip-internal-font-size: ${Ie.fontSize};
1639
+ --chip-internal-font-weight: ${Ie.fontWeight};
1642
1640
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1643
- ${w(Ue.size,Te.iconSize)};
1644
- --chip-internal-vertical-padding: ${Te.verticalPadding};
1645
- --chip-internal-horizontal-padding: ${Te.horizontalPadding};
1641
+ ${w(Be.size,Ie.iconSize)};
1642
+ --chip-internal-vertical-padding: ${Ie.verticalPadding};
1643
+ --chip-internal-horizontal-padding: ${Ie.horizontalPadding};
1646
1644
  --chip-internal-icon-padding: 3px;
1647
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${Te.iconSize});
1645
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ie.iconSize});
1648
1646
 
1649
- border: 1px solid ${Te.borderColor};
1650
- color: ${Te.color};
1651
- ${w(J.color,Te.rippleColor)};
1652
- border-radius: var(${dr(Te.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1647
+ border: 1px solid ${Ie.borderColor};
1648
+ color: ${Ie.color};
1649
+ ${w(X.color,Ie.rippleColor)};
1650
+ border-radius: var(${dr(Ie.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1653
1651
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1654
- background-color: ${Te.backgroundColor};
1652
+ background-color: ${Ie.backgroundColor};
1655
1653
  line-height: var(--chip-internal-content-height);
1656
1654
  }
1657
1655
 
@@ -1661,28 +1659,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1661
1659
 
1662
1660
  .ft-chip--dense {
1663
1661
  --chip-internal-icon-padding: 3px;
1664
- --chip-internal-vertical-padding: ${Vp.verticalPadding};
1665
- --chip-internal-horizontal-padding: ${Vp.horizontalPadding};
1662
+ --chip-internal-vertical-padding: ${Hu.verticalPadding};
1663
+ --chip-internal-horizontal-padding: ${Hu.horizontalPadding};
1666
1664
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1667
1665
  }
1668
1666
 
1669
1667
  .ft-chip--no-content {
1670
- --chip-internal-horizontal-padding: ${Te.horizontalPadding.get(O`var(--chip-internal-vertical-padding)`)};
1668
+ --chip-internal-horizontal-padding: ${Ie.horizontalPadding.get(O`var(--chip-internal-vertical-padding)`)};
1671
1669
  }
1672
1670
 
1673
1671
  .ft-chip--disabled {
1674
1672
  cursor: default;
1675
1673
  pointer-events: none;
1676
1674
  filter: grayscale(1);
1677
- opacity: ${Te.opacityDisabled};
1675
+ opacity: ${Ie.opacityDisabled};
1678
1676
  }
1679
1677
 
1680
1678
  .ft-chip--highlighted {
1681
1679
  border: none;
1682
1680
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1683
- background-color: ${Sl.backgroundColor};
1684
- ${w(J.color,Sl.rippleColor)};
1685
- color: ${Sl.color};
1681
+ background-color: ${Cl.backgroundColor};
1682
+ ${w(X.color,Cl.rippleColor)};
1683
+ color: ${Cl.color};
1686
1684
  }
1687
1685
 
1688
1686
  .ft-chip--clickable {
@@ -1713,7 +1711,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1713
1711
  }
1714
1712
 
1715
1713
  .ft-chip--icon-button {
1716
- ${w(H.iconSize,Te.iconSize)};
1714
+ ${w(H.iconSize,Ie.iconSize)};
1717
1715
  ${w(H.horizontalPadding,"var(--chip-internal-icon-padding)")};
1718
1716
  ${w(H.verticalPadding,"var(--chip-internal-icon-padding)")};
1719
1717
  margin: calc((-1) * var(--chip-internal-icon-padding));
@@ -1761,7 +1759,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1761
1759
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1762
1760
  order: -1;
1763
1761
  }
1764
- `];var $e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},In=class extends CustomEvent{constructor(){super("icon-click")}},ue=class extends D{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.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"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":Tr};return b`
1762
+ `];var Fe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Tn=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends D{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.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"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":Tr};return b`
1765
1763
  <div class="${oe(r)}"
1766
1764
  aria-label="${this.labelOnIconOnly?_:this.getLabel()}"
1767
1765
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1789,7 +1787,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1789
1787
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1790
1788
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1791
1789
  </div>
1792
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new In))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new In))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Li(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ue.elementDefinitions={"ft-ripple":j,"ft-typography":re,"ft-icon":se,"ft-button":F};ue.styles=Hp;$e([f({type:Boolean})],ue.prototype,"highlighted",void 0);$e([f({type:Boolean})],ue.prototype,"removable",void 0);$e([f({type:Boolean})],ue.prototype,"disabled",void 0);$e([f({type:Boolean})],ue.prototype,"clickable",void 0);$e([f({type:Boolean})],ue.prototype,"iconClickable",void 0);$e([f({type:Boolean})],ue.prototype,"dense",void 0);$e([f({type:Boolean})],ue.prototype,"multiLine",void 0);$e([f()],ue.prototype,"label",void 0);$e([f()],ue.prototype,"iconLabel",void 0);$e([f({type:Boolean})],ue.prototype,"hideIconTooltip",void 0);$e([f({type:Boolean})],ue.prototype,"accessibleLabelOnIcon",void 0);$e([f()],ue.prototype,"icon",void 0);$e([f()],ue.prototype,"iconVariant",void 0);$e([f({type:Boolean})],ue.prototype,"trailingIcon",void 0);$e([f()],ue.prototype,"typographyVariant",void 0);$e([P("ft-typography slot")],ue.prototype,"slottedContent",void 0);var Wp={"ft-chip":ue};W(Wp);var Y={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",S.colorOutline),textColor:o.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:o.external(S.colorError,"Design system")},Gp=O`
1790
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Tn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Tn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Ti(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":j,"ft-typography":te,"ft-icon":se,"ft-button":F};de.styles=Wu;Fe([f({type:Boolean})],de.prototype,"highlighted",void 0);Fe([f({type:Boolean})],de.prototype,"removable",void 0);Fe([f({type:Boolean})],de.prototype,"disabled",void 0);Fe([f({type:Boolean})],de.prototype,"clickable",void 0);Fe([f({type:Boolean})],de.prototype,"iconClickable",void 0);Fe([f({type:Boolean})],de.prototype,"dense",void 0);Fe([f({type:Boolean})],de.prototype,"multiLine",void 0);Fe([f()],de.prototype,"label",void 0);Fe([f()],de.prototype,"iconLabel",void 0);Fe([f({type:Boolean})],de.prototype,"hideIconTooltip",void 0);Fe([f({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);Fe([f()],de.prototype,"icon",void 0);Fe([f()],de.prototype,"iconVariant",void 0);Fe([f({type:Boolean})],de.prototype,"trailingIcon",void 0);Fe([f()],de.prototype,"typographyVariant",void 0);Fe([P("ft-typography slot")],de.prototype,"slottedContent",void 0);var Gu={"ft-chip":de};W(Gu);var Y={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",S.colorOutline),textColor:o.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:o.external(S.colorError,"Design system")},ju=O`
1793
1791
  .ft-input-label {
1794
1792
  position: absolute;
1795
1793
  inset: 0;
@@ -1883,16 +1881,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1883
1881
  border-radius: ${Y.borderRadius};
1884
1882
  top: calc((${je.lineHeight} / -2) + 2px);
1885
1883
  }
1886
- `;var jp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},jr=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1884
+ `;var Ku=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Kr=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1887
1885
  <div class="${oe(this.inputLabelClasses)}">
1888
- ${Lr(this.text,()=>b`
1886
+ ${kr(this.text,()=>b`
1889
1887
  <div class="ft-input-label--text ft-typography--caption">
1890
1888
  <label class="ft-input-label--floating-text">${this.text}</label>
1891
1889
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1892
1890
  </div>
1893
1891
  `)}
1894
1892
  </div>
1895
- `}};jr.elementDefinitions={};jp([f({type:String})],jr.prototype,"text",void 0);jp([f({type:Boolean})],jr.prototype,"raised",void 0);var Cl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},St=class extends jr{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}}};St.elementDefinitions={};St.styles=[ir,Gp];Cl([f({type:Boolean})],St.prototype,"outlined",void 0);Cl([f({type:Boolean})],St.prototype,"error",void 0);Cl([f({type:Boolean})],St.prototype,"disabled",void 0);var Kp={"ft-input-label":St};W(Kp);var K={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),elevation02:o.external(S.elevation02,"Design system"),colorError:o.external(S.colorError,"Design system")},qp=O`
1893
+ `}};Kr.elementDefinitions={};Ku([f({type:String})],Kr.prototype,"text",void 0);Ku([f({type:Boolean})],Kr.prototype,"raised",void 0);var El=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},St=class extends Kr{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}}};St.elementDefinitions={};St.styles=[ir,ju];El([f({type:Boolean})],St.prototype,"outlined",void 0);El([f({type:Boolean})],St.prototype,"error",void 0);El([f({type:Boolean})],St.prototype,"disabled",void 0);var qu={"ft-input-label":St};W(qu);var K={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),elevation02:o.external(S.elevation02,"Design system"),colorError:o.external(S.colorError,"Design system")},Zu=O`
1896
1894
  *:focus {
1897
1895
  outline: none;
1898
1896
  }
@@ -1920,13 +1918,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1920
1918
  padding-right: ${K.horizontalSpacing};
1921
1919
  gap: 8px;
1922
1920
  color: ${K.selectedOptionColor};
1923
- ${w(J.color,K.selectedOptionColor)};
1921
+ ${w(X.color,K.selectedOptionColor)};
1924
1922
  }
1925
1923
 
1926
1924
  .ft-select--input-panel,
1927
1925
  .ft-select--options {
1928
- ${w(J.opacityContentOnSurfaceHover,"0.08")};
1929
- ${w(J.opacityContentOnSurfacePressed,"0.04")};
1926
+ ${w(X.opacityContentOnSurfaceHover,"0.08")};
1927
+ ${w(X.opacityContentOnSurfacePressed,"0.04")};
1930
1928
  }
1931
1929
 
1932
1930
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1949,7 +1947,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1949
1947
  ${w(Y.verticalSpacing,K.verticalSpacing)};
1950
1948
  ${w(Y.horizontalSpacing,K.horizontalSpacing)};
1951
1949
  ${w(Y.backgroundColor,K.backgroundColor)};
1952
- ${w(Y.labelMaxWidth,`calc(100% - ${Ue.size} - 8px)`)};
1950
+ ${w(Y.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
1953
1951
  }
1954
1952
 
1955
1953
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
@@ -1968,8 +1966,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1968
1966
  overflow: hidden;
1969
1967
  white-space: nowrap;
1970
1968
  text-overflow: ellipsis;
1971
- ${w(kt.fontSize,K.selectedOptionSize)};
1972
- ${w(kt.lineHeight,K.selectedOptionSize)};
1969
+ ${w(Lt.fontSize,K.selectedOptionSize)};
1970
+ ${w(Lt.lineHeight,K.selectedOptionSize)};
1973
1971
  }
1974
1972
 
1975
1973
  .ft-select--in-error .ft-select--selected-option {
@@ -2028,10 +2026,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2028
2026
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
2029
2027
  opacity: 0;
2030
2028
  }
2031
- `;var Zp=O`
2029
+ `;var Yu=O`
2032
2030
  .ft-select--option {
2033
- ${w(J.opacityContentOnSurfaceHover,"0.08")};
2034
- ${w(J.opacityContentOnSurfacePressed,"0.04")};
2031
+ ${w(X.opacityContentOnSurfaceHover,"0.08")};
2032
+ ${w(X.opacityContentOnSurfacePressed,"0.04")};
2035
2033
  }
2036
2034
 
2037
2035
  .ft-select--option > *:not(ft-ripple) {
@@ -2055,7 +2053,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2055
2053
  overflow: hidden;
2056
2054
  }
2057
2055
 
2058
- `;var hi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2056
+ `;var yi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},$e=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2059
2057
  <div class="${oe(i)}"
2060
2058
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
2061
2059
  tabindex="0"
@@ -2067,8 +2065,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2067
2065
  </slot>
2068
2066
  ${this.isSlotEmpty?b`<span>${this.label}</span>`:b``}
2069
2067
  </div>
2070
- `}onSlotChange(){this.isSlotEmpty=Wo(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}))}};Me.elementDefinitions={"ft-ripple":j};Me.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};Me.styles=[Zp,or];hi([f({type:String})],Me.prototype,"label",void 0);hi([f({type:Object,converter:t=>t})],Me.prototype,"value",void 0);hi([f({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);hi([P("slot")],Me.prototype,"slotElement",void 0);hi([A()],Me.prototype,"isSlotEmpty",void 0);var Pe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var ne=class t extends D{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 ns(this.optionsList)}render(){var e,r,i,n,s;let a=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":a,"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`
2071
- <div class="${oe(p)}" part="container">
2068
+ `}onSlotChange(){this.isSlotEmpty=jo(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}))}};$e.elementDefinitions={"ft-ripple":j};$e.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};$e.styles=[Yu,or];yi([f({type:String})],$e.prototype,"label",void 0);yi([f({type:Object,converter:t=>t})],$e.prototype,"value",void 0);yi([f({type:Boolean,reflect:!0})],$e.prototype,"selected",void 0);yi([P("slot")],$e.prototype,"slotElement",void 0);yi([A()],$e.prototype,"isSlotEmpty",void 0);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var ne=class t extends D{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 ss(this.optionsList)}render(){var e,r,i,n,s;let a=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":a,"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`
2069
+ <div class="${oe(u)}" part="container">
2072
2070
  <div class="ft-select--main-panel" part="main-panel">
2073
2071
  <ft-input-label text="${this.label}"
2074
2072
  part="label"
@@ -2084,14 +2082,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2084
2082
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2085
2083
  @keydown=${this.onMainPanelKeyDown}
2086
2084
  aria-label="${xt(this.ariaLabel)}"
2087
- aria-labelledby="${Lr(!this.ariaLabel,()=>"label")}"
2085
+ aria-labelledby="${kr(!this.ariaLabel,()=>"label")}"
2088
2086
  aria-haspopup="listbox"
2089
2087
  aria-expanded="${a}"
2090
2088
  aria-activedescendant="${xt(this.getOptionId(this.selectedOption))}"
2091
2089
  role="combobox">
2092
2090
  <ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
2093
2091
  <slot name="input-value">
2094
- <ft-typography variant="${me.body1}"
2092
+ <ft-typography variant="${fe.body1}"
2095
2093
  aria-hidden="${d?"false":"true"}"
2096
2094
  class="ft-select--selected-option">
2097
2095
  ${(s=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&s!==void 0?s:this.label}
@@ -2108,12 +2106,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2108
2106
  @option-change=${this.updateOptionsFromSlot}
2109
2107
  >
2110
2108
  </slot>
2111
- ${Lr(this.isSlotEmpty,()=>le(this.options,m=>m.value,m=>this.renderOption(m)))}
2109
+ ${kr(this.isSlotEmpty,()=>ae(this.options,m=>m.value,m=>this.renderOption(m)))}
2112
2110
  </div>
2113
2111
  </div>
2114
2112
  <slot name="helper" part="helper">
2115
2113
  ${this.helper?b`
2116
- <ft-typography class="ft-select--helper-text" variant="${me.caption}">${this.helper}
2114
+ <ft-typography class="ft-select--helper-text" variant="${fe.caption}">${this.helper}
2117
2115
  </ft-typography>`:_}
2118
2116
  </slot>
2119
2117
  </div>
@@ -2123,34 +2121,34 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2123
2121
  label="${e.label}"
2124
2122
  .value=${e.value}
2125
2123
  ></ft-select-option>
2126
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Bs(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",K.optionsHeight,0).then(({x:s,y:a})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${a}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=Wo(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":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 r,i;let n,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s+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 r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var s;return((s=n.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>ge(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>ge(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!ge((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":St,"ft-typography":re,"ft-ripple":j,"ft-icon":se,"ft-select-option":Me};ne.searchTimeoutMilliseconds=2e3;ne.styles=[ir,qp];Pe([f({type:String})],ne.prototype,"label",void 0);Pe([f({type:String})],ne.prototype,"ariaLabel",void 0);Pe([f({type:String})],ne.prototype,"helper",void 0);Pe([f({type:Boolean})],ne.prototype,"outlined",void 0);Pe([f({type:Boolean})],ne.prototype,"disabled",void 0);Pe([f({type:Boolean})],ne.prototype,"error",void 0);Pe([f({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Pe([f({type:Array})],ne.prototype,"options",void 0);Pe([A()],ne.prototype,"selectedOption",void 0);Pe([A()],ne.prototype,"optionsDisplayed",void 0);Pe([A()],ne.prototype,"focusOptions",void 0);Pe([A()],ne.prototype,"currentSearch",void 0);Pe([A()],ne.prototype,"lastSearchInputDate",void 0);Pe([P(".ft-select")],ne.prototype,"container",void 0);Pe([P(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Pe([P(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Pe([P("slot:not([name])")],ne.prototype,"optionsSlot",void 0);var Yp={"ft-select":ne,"ft-select-option":Me};W(Yp);var Ne={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(S.borderRadiusM,"Design system")},Qp=O`
2124
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Us(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",K.optionsHeight,0).then(({x:s,y:a})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${a}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=jo(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":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 r,i;let n,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s+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 r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var s;return((s=n.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>he(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>he(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!he((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":St,"ft-typography":te,"ft-ripple":j,"ft-icon":se,"ft-select-option":$e};ne.searchTimeoutMilliseconds=2e3;ne.styles=[ir,Zu];Te([f({type:String})],ne.prototype,"label",void 0);Te([f({type:String})],ne.prototype,"ariaLabel",void 0);Te([f({type:String})],ne.prototype,"helper",void 0);Te([f({type:Boolean})],ne.prototype,"outlined",void 0);Te([f({type:Boolean})],ne.prototype,"disabled",void 0);Te([f({type:Boolean})],ne.prototype,"error",void 0);Te([f({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Te([f({type:Array})],ne.prototype,"options",void 0);Te([A()],ne.prototype,"selectedOption",void 0);Te([A()],ne.prototype,"optionsDisplayed",void 0);Te([A()],ne.prototype,"focusOptions",void 0);Te([A()],ne.prototype,"currentSearch",void 0);Te([A()],ne.prototype,"lastSearchInputDate",void 0);Te([P(".ft-select")],ne.prototype,"container",void 0);Te([P(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Te([P(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Te([P("slot:not([name])")],ne.prototype,"optionsSlot",void 0);var Qu={"ft-select":ne,"ft-select-option":$e};W(Qu);var Pe={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(S.borderRadiusM,"Design system")},Xu=O`
2127
2125
  :host {
2128
- width: ${Ne.width};
2129
- height: ${Ne.height};
2130
- display: ${Ne.display};
2126
+ width: ${Pe.width};
2127
+ height: ${Pe.height};
2128
+ display: ${Pe.display};
2131
2129
  overflow: hidden;
2132
- border-radius: ${Ne.borderRadiusM};
2130
+ border-radius: ${Pe.borderRadiusM};
2133
2131
  background: linear-gradient(
2134
2132
  90deg,
2135
2133
  transparent,
2136
- ${Ne.glareColor} calc(0.45 * ${Ne.glareWidth}),
2137
- ${Ne.glareColor} calc(0.55 * ${Ne.glareWidth}),
2138
- transparent ${Ne.glareWidth}
2139
- ), ${Ne.backgroundColor};
2134
+ ${Pe.glareColor} calc(0.45 * ${Pe.glareWidth}),
2135
+ ${Pe.glareColor} calc(0.55 * ${Pe.glareWidth}),
2136
+ transparent ${Pe.glareWidth}
2137
+ ), ${Pe.backgroundColor};
2140
2138
  background-repeat: repeat-y;
2141
2139
  background-size: 100vw 100vh;
2142
2140
  background-attachment: fixed;
2143
- background-position: calc(${Ne.glareWidth} * -1) 0;
2144
- animation: shine ${Ne.animationDuration} infinite;
2141
+ background-position: calc(${Pe.glareWidth} * -1) 0;
2142
+ animation: shine ${Pe.animationDuration} infinite;
2145
2143
  animation-timing-function: linear;
2146
2144
  }
2147
2145
 
2148
2146
  @keyframes shine {
2149
2147
  to {
2150
- background-position: calc(100vw + ${Ne.glareWidth}) 0, calc(${Ne.glareWidth} * -1) 0;
2148
+ background-position: calc(100vw + ${Pe.glareWidth}) 0, calc(${Pe.glareWidth} * -1) 0;
2151
2149
  }
2152
2150
  }
2153
- `;var B={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(S.colorSurface,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(S.colorOutline,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),elevation02:o.external(S.elevation02,"Design system"),buttonColor:o.external(H.color,"Button"),buttonRippleColor:o.external(H.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},Xp=O`
2151
+ `;var B={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(S.colorSurface,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(S.colorOutline,"Design system"),colorPrimary:o.external(S.colorPrimary,"Design system"),elevation02:o.external(S.elevation02,"Design system"),buttonColor:o.external(H.color,"Button"),buttonRippleColor:o.external(H.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},Ju=O`
2154
2152
  * {
2155
2153
  box-sizing: border-box;
2156
2154
  }
@@ -2198,8 +2196,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2198
2196
  }
2199
2197
 
2200
2198
  .ft-search-bar--skeleton {
2201
- ${w(Ne.height,B.height)};
2202
- ${w(Ne.borderRadiusM,B.borderRadius)};
2199
+ ${w(Pe.height,B.height)};
2200
+ ${w(Pe.borderRadiusM,B.borderRadius)};
2203
2201
  }
2204
2202
 
2205
2203
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2331,7 +2329,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2331
2329
  flex-shrink: 0;
2332
2330
  padding: 0 10px;
2333
2331
  margin-bottom: 8px;
2334
- ${w(k.fontSize,"14px")};
2332
+ ${w(L.fontSize,"14px")};
2335
2333
  }
2336
2334
 
2337
2335
  [part="content-locale-selector-label"] {
@@ -2339,11 +2337,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2339
2337
  flex-shrink: 1;
2340
2338
  flex-grow: 1;
2341
2339
  word-break: break-word;
2342
- ${w(k.lineHeight,"22px")};
2343
- ${w(k.fontWeight,"bold")};
2340
+ ${w(L.lineHeight,"22px")};
2341
+ ${w(L.fontWeight,"bold")};
2344
2342
  }
2345
2343
 
2346
- `,Jp=O`
2344
+ `,ef=O`
2347
2345
  .ft-search-bar--presets {
2348
2346
  min-width: 200px;
2349
2347
  }
@@ -2505,13 +2503,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2505
2503
  margin: 0;
2506
2504
  }
2507
2505
  `;var lr=class extends D{render(){return b`
2508
- `}};lr.elementDefinitions={};lr.styles=Qp;var ef={"ft-skeleton":lr};W(ef);var Nt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ee(r)}render(){let e=this.recentSearchesMatchingQuery;return b`
2506
+ `}};lr.elementDefinitions={};lr.styles=Xu;var tf={"ft-skeleton":lr};W(tf);var Nt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new J(r)}render(){let e=this.recentSearchesMatchingQuery;return b`
2509
2507
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2510
2508
  id="${this.listboxId}"
2511
2509
  role="listbox"
2512
2510
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2513
2511
  part="suggestions-container">
2514
- ${le(e.slice(0,5),r=>r,(r,i)=>b`
2512
+ ${ae(e.slice(0,5),r=>r,(r,i)=>b`
2515
2513
  <div part="suggestion-container"
2516
2514
  class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":_}">
2517
2515
  <a href="${this.getRequestWithQuery(r)}"
@@ -2540,7 +2538,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2540
2538
  </ft-button>
2541
2539
  </div>
2542
2540
  `)}
2543
- ${le(this.searchBar.suggestions,r=>r.value,(r,i)=>b`
2541
+ ${ae(this.searchBar.suggestions,r=>r.value,(r,i)=>b`
2544
2542
  <div part="suggestion-container"
2545
2543
  class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":_}">
2546
2544
  <a href="${this.getRequestWithQuery(r.value)}"
@@ -2558,9 +2556,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2558
2556
  </div>
2559
2557
  `)}
2560
2558
  </div>
2561
- `}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":i=wn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ve.TOPICS;break;case"HTML_PACKAGE":i=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ve.FILE_CODE;break}return b`
2559
+ `}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":i=An(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ve.TOPICS;break;case"HTML_PACKAGE":i=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ve.FILE_CODE;break}return b`
2562
2560
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2563
- `}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};Nt.styles=[Ko,O`
2561
+ `}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};Nt.styles=[Zo,O`
2564
2562
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2565
2563
  flex-grow: 1;
2566
2564
  flex-shrink: 1;
@@ -2648,7 +2646,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2648
2646
  }
2649
2647
 
2650
2648
  ft-ripple {
2651
- ${w(J.opacityContentOnSurfaceHover,J.opacityContentOnSurfaceSelected)}
2649
+ ${w(X.opacityContentOnSurfaceHover,X.opacityContentOnSurfaceSelected)}
2652
2650
  }
2653
2651
  `];var Dt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=b`
2654
2652
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?b`
@@ -2661,7 +2659,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2661
2659
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2662
2660
  </ft-chip>
2663
2661
  `:null}
2664
- ${le(this.searchBar.facets,n=>n.key,n=>{let s=wp(n);return le(s,a=>{let l=n.label+": "+Cp(a),d=n.key.replace(":","-"),p=b`
2662
+ ${ae(this.searchBar.facets,n=>n.key,n=>{let s=Au(n);return ae(s,a=>{let l=n.label+": "+Eu(a),d=n.key.replace(":","-"),u=b`
2665
2663
  <ft-chip
2666
2664
  part="selected-filters selected-filter-${d}"
2667
2665
  ?dense=${this.searchBar.dense&&!e}
@@ -2674,11 +2672,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2674
2672
  @icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(m=>m!==a))}
2675
2673
  data-key="${n.key}"
2676
2674
  data-value="${a}">
2677
- ${Sp(a)}
2675
+ ${Cu(a)}
2678
2676
  </ft-chip>
2679
- `;return r?p:b`
2677
+ `;return r?u:b`
2680
2678
  <ft-tooltip inline text="${l}">
2681
- ${p}
2679
+ ${u}
2682
2680
  </ft-tooltip>
2683
2681
  `})})}
2684
2682
  ${e?b`
@@ -2719,8 +2717,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2719
2717
  }
2720
2718
 
2721
2719
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2722
- ${w(Te.iconSize,"17px")};
2723
- ${w(Te.fontSize,"12px")};
2720
+ ${w(Ie.iconSize,"17px")};
2721
+ ${w(Ie.fontSize,"12px")};
2724
2722
  }
2725
2723
 
2726
2724
  .ft-search-bar--selected-filters * {
@@ -2730,7 +2728,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2730
2728
  .ft-search-bar--selected-filters ft-chip {
2731
2729
  flex-grow: 0;
2732
2730
  }
2733
- `;var Ag=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Co=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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`
2731
+ `;var Rg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Oo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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`
2734
2732
  <div class="${oe(r)}" part="container" tabindex="-1">
2735
2733
  <div class="ft-search-bar" role="search">
2736
2734
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2787,9 +2785,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2787
2785
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2788
2786
  ></ft-button>
2789
2787
  </div>
2790
- `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Co.styles=O`
2788
+ `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Oo.styles=O`
2791
2789
 
2792
- `;Ag([Zt()],Co.prototype,"onSearchBarKeyDown",null);var Rg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Eo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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`
2790
+ `;Rg([Zt()],Oo.prototype,"onSearchBarKeyDown",null);var _g=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},wo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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`
2793
2791
  <div class="${oe(r)}" part="container" tabindex="-1">
2794
2792
  <div class="ft-search-bar" part="search-bar" role="search">
2795
2793
  ${this.renderSearchBarLeftAction()}
@@ -2837,7 +2835,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2837
2835
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2838
2836
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2839
2837
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2840
- ${le(this.searchBar.availableContentLocales,e=>e.lang,e=>b`
2838
+ ${ae(this.searchBar.availableContentLocales,e=>e.lang,e=>b`
2841
2839
  <ft-select-option .value=${e.lang}
2842
2840
  label="${e.label}"
2843
2841
  ?selected=${e.lang==this.searchBar.contentLocale}>
@@ -2866,9 +2864,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2866
2864
  @click=${()=>this.searchBar.onLaunchSearch()}
2867
2865
  ></ft-button>
2868
2866
  </div>
2869
- `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Eo.styles=O`
2867
+ `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};wo.styles=O`
2870
2868
 
2871
- `;Rg([Zt()],Eo.prototype,"onSearchBarKeyDown",null);var Z=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};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");var tf={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"},El=class extends CustomEvent{constructor(e){super("change",{detail:e})}},_g=()=>{},z=class extends D{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 Xt(tf,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new pt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=lt.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 Nt(this),this.selectedFacetsManager=new Dt(this),this.desktopSearchBarManager=new Eo(this),this.mobileSearchBarManager=new Co(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ee(10),this.updateLocalesDebouncer=new ee(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(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ee(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,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(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...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===lt.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2869
+ `;_g([Zt()],wo.prototype,"onSearchBarKeyDown",null);var Z=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};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");var rf={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Ol=class extends CustomEvent{constructor(e){super("change",{detail:e})}},kg=()=>{},z=class extends D{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 Xt(rf,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new ut(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=lt.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 Nt(this),this.selectedFacetsManager=new Dt(this),this.desktopSearchBarManager=new wo(this),this.mobileSearchBarManager=new Oo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new J(10),this.updateLocalesDebouncer=new J(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(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new J(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,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(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...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===lt.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2872
2870
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2873
2871
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2874
2872
  ${this.renderLiveText()}
@@ -2896,7 +2894,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2896
2894
  </div>
2897
2895
  </ft-accordion-item>
2898
2896
  `:null}
2899
- ${le(this.facets,r=>r.key,r=>{let i=gl(r),n=r.key.replace(":","-"),s=Op(i);return r.rootNodes.length>0?b`
2897
+ ${ae(this.facets,r=>r.key,r=>{let i=yl(r),n=r.key.replace(":","-"),s=wu(i);return r.rootNodes.length>0?b`
2900
2898
  <ft-accordion-item data-facet-key="${r.key}">
2901
2899
  <div class="ft-search-bar--filter-label" slot="toggle">
2902
2900
  <ft-typography variant="button">${r.label}</ft-typography>
@@ -2908,12 +2906,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2908
2906
  </div>
2909
2907
  <ft-filter
2910
2908
  part="filters filter filter-${n}"
2909
+ label="${r.label}"
2911
2910
  .exportpartsPrefixes=${["filter","filter-"+n]}
2912
2911
  id="${i.id}"
2913
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2914
- clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2915
- moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2916
- noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
2917
2912
  ?multivalued=${i.multivalued}
2918
2913
  raiseSelectedOptions
2919
2914
  .options=${i.options}
@@ -2926,7 +2921,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2926
2921
  `}getContentLocaleRadioGroup(){var e;return b`
2927
2922
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2928
2923
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2929
- ${le((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return b`
2924
+ ${ae((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return b`
2930
2925
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2931
2926
  ?checked=${r.lang==this.contentLocale}>
2932
2927
  ${r.label}
@@ -2957,7 +2952,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2957
2952
  label="${this.labelResolver.resolve("presetsSelector")}"
2958
2953
  outlined
2959
2954
  @change=${r=>this.selectedPreset=r.detail}>
2960
- ${le((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>b`
2955
+ ${ae((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>b`
2961
2956
  <ft-select-option value="${r.name}"
2962
2957
  label="${r.name}"
2963
2958
  ?selected=${r.name===this.selectedPreset}>
@@ -2989,17 +2984,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2989
2984
  ${this.getContentLocaleRadioGroup()}
2990
2985
  </div>
2991
2986
  `:_}
2992
- ${le(this.facets,e=>e.key,e=>{let r=gl(e),i=r.options.some(s=>{var a,l;return((l=(a=s.subOptions)===null||a===void 0?void 0:a.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
2987
+ ${ae(this.facets,e=>e.key,e=>{let r=yl(e),i=r.options.some(s=>{var a,l;return((l=(a=s.subOptions)===null||a===void 0?void 0:a.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
2993
2988
  <ft-filter
2994
2989
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2995
2990
  part="filters filter filter-${n}"
2996
2991
  .exportpartsPrefixes=${["filter","filter-"+n]}
2997
2992
  id="${r.id}"
2998
2993
  label="${r.label}"
2999
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
3000
- clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
3001
- moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
3002
- noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
3003
2994
  ?multivalued=${r.multivalued}
3004
2995
  raiseSelectedOptions
3005
2996
  .options=${r.options}
@@ -3008,14 +2999,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3008
2999
  ></ft-filter>
3009
3000
  `})}
3010
3001
  </ft-snap-scroll>
3011
- `:_}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,a;if(e.has("labels")&&(this.labelResolver=new Xt(tf,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(p=>p.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(p=>_n(p)))})),e.has("presets")||e.has("selectedPreset")){let l=((s=this.presets)!==null&&s!==void 0?s:[]).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=(i=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||i===void 0?void 0:i.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 El(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 r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(a=>a.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.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 r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(_g)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<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),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&_i(()=>this.input,50).then(e=>{Ir.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ye(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ye(r.rootNodes,i=>i.childNodes).forEach(i=>i.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?_:b`
3002
+ `:_}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,a;if(e.has("labels")&&(this.labelResolver=new Xt(rf,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(u=>u.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(u=>kn(u)))})),e.has("presets")||e.has("selectedPreset")){let l=((s=this.presets)!==null&&s!==void 0?s:[]).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=(i=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||i===void 0?void 0:i.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 Ol(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 r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(a=>a.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.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 r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(kg)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<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),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&Ii(()=>this.input,50).then(e=>{Ir.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ye(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ye(r.rootNodes,i=>i.childNodes).forEach(i=>i.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?_:b`
3012
3003
  <div class="ft-search-bar--floating-panel"
3013
3004
  id="ft-search-bar-floating-panel"
3014
3005
  @keyup=${this.onFloatingContainerKeyUp}
3015
3006
  part="floating-panel"
3016
3007
  tabindex="-1">
3017
3008
  ${this.renderDesktopMenu()}
3018
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};z.elementDefinitions={"ft-accordion":Pt,"ft-accordion-item":ct,"ft-button":F,"ft-chip":ue,"ft-filter":X,"ft-filter-option":rt,"ft-icon":se,"ft-ripple":j,"ft-select":ne,"ft-select-option":Me,"ft-size-watcher":Je,"ft-skeleton":lr,"ft-snap-scroll":Se,"ft-tooltip":be,"ft-typography":re,"ft-radio-group":tt,"ft-radio":Le};z.styles=[or,wr,Xp,Jp,Dt.styles,Nt.styles,fo];Z([f({type:Boolean})],z.prototype,"dense",void 0);Z([f()],z.prototype,"mode",void 0);Z([f({type:Boolean})],z.prototype,"forceMobileMenuOpen",void 0);Z([f({type:Boolean})],z.prototype,"forceMenuOpen",void 0);Z([f()],z.prototype,"baseUrl",void 0);Z([f()],z.prototype,"apiIntegrationIdentifier",void 0);Z([f()],z.prototype,"contentLocale",void 0);Z([A()],z.prototype,"availableContentLocales",void 0);Z([A()],z.prototype,"availableContentLocalesInitialized",void 0);Z([f()],z.prototype,"uiLocale",void 0);Z([ce({})],z.prototype,"labels",void 0);Z([ce([])],z.prototype,"displayedFilters",void 0);Z([ce([])],z.prototype,"presets",void 0);Z([f({type:String,reflect:!0})],z.prototype,"selectedPreset",void 0);Z([ce([])],z.prototype,"priors",void 0);Z([f()],z.prototype,"searchRequestSerializer",void 0);Z([f({type:Boolean})],z.prototype,"focusOnDisplay",void 0);Z([A()],z.prototype,"metadataFilters",void 0);Z([A()],z.prototype,"sizeCategory",void 0);Z([A()],z.prototype,"displayFacets",void 0);Z([A()],z.prototype,"mobileMenuOpen",void 0);Z([A()],z.prototype,"facets",void 0);Z([A()],z.prototype,"facetsInitialized",void 0);Z([P(".ft-search-bar--container")],z.prototype,"container",void 0);Z([P(".ft-search-bar--filters-opener")],z.prototype,"filtersOpener",void 0);Z([P(".ft-search-bar--floating-panel")],z.prototype,"floatingContainer",void 0);Z([P("ft-snap-scroll.ft-search-bar--filters-container")],z.prototype,"scrollingFiltersContainer",void 0);Z([P(".ft-search-bar--input")],z.prototype,"input",void 0);Z([P(".ft-search-bar--launch-search")],z.prototype,"launchSearchButton",void 0);Z([A()],z.prototype,"query",void 0);Z([A()],z.prototype,"suggestions",void 0);Z([A()],z.prototype,"recentSearches",void 0);Z([A()],z.prototype,"scrollToFacet",void 0);Z([A()],z.prototype,"api",void 0);Z([A()],z.prototype,"displaySuggestListbox",void 0);Z([A()],z.prototype,"selectedSuggestOptionId",void 0);Z([A()],z.prototype,"selectedSuggestRemoveRecent",void 0);Z([A()],z.prototype,"facetsLoaded",void 0);var rf={"ft-search-bar":z};W(rf);var of=O`
3009
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};z.elementDefinitions={"ft-accordion":Pt,"ft-accordion-item":ct,"ft-button":F,"ft-chip":de,"ft-filter":re,"ft-filter-option":rt,"ft-icon":se,"ft-ripple":j,"ft-select":ne,"ft-select-option":$e,"ft-size-watcher":Je,"ft-skeleton":lr,"ft-snap-scroll":Se,"ft-tooltip":ge,"ft-typography":te,"ft-radio-group":tt,"ft-radio":ke};z.styles=[or,wr,Ju,ef,Dt.styles,Nt.styles,ho];Z([f({type:Boolean})],z.prototype,"dense",void 0);Z([f()],z.prototype,"mode",void 0);Z([f({type:Boolean})],z.prototype,"forceMobileMenuOpen",void 0);Z([f({type:Boolean})],z.prototype,"forceMenuOpen",void 0);Z([f()],z.prototype,"baseUrl",void 0);Z([f()],z.prototype,"apiIntegrationIdentifier",void 0);Z([f()],z.prototype,"contentLocale",void 0);Z([A()],z.prototype,"availableContentLocales",void 0);Z([A()],z.prototype,"availableContentLocalesInitialized",void 0);Z([f()],z.prototype,"uiLocale",void 0);Z([le({})],z.prototype,"labels",void 0);Z([le([])],z.prototype,"displayedFilters",void 0);Z([le([])],z.prototype,"presets",void 0);Z([f({type:String,reflect:!0})],z.prototype,"selectedPreset",void 0);Z([le([])],z.prototype,"priors",void 0);Z([f()],z.prototype,"searchRequestSerializer",void 0);Z([f({type:Boolean})],z.prototype,"focusOnDisplay",void 0);Z([A()],z.prototype,"metadataFilters",void 0);Z([A()],z.prototype,"sizeCategory",void 0);Z([A()],z.prototype,"displayFacets",void 0);Z([A()],z.prototype,"mobileMenuOpen",void 0);Z([A()],z.prototype,"facets",void 0);Z([A()],z.prototype,"facetsInitialized",void 0);Z([P(".ft-search-bar--container")],z.prototype,"container",void 0);Z([P(".ft-search-bar--filters-opener")],z.prototype,"filtersOpener",void 0);Z([P(".ft-search-bar--floating-panel")],z.prototype,"floatingContainer",void 0);Z([P("ft-snap-scroll.ft-search-bar--filters-container")],z.prototype,"scrollingFiltersContainer",void 0);Z([P(".ft-search-bar--input")],z.prototype,"input",void 0);Z([P(".ft-search-bar--launch-search")],z.prototype,"launchSearchButton",void 0);Z([A()],z.prototype,"query",void 0);Z([A()],z.prototype,"suggestions",void 0);Z([A()],z.prototype,"recentSearches",void 0);Z([A()],z.prototype,"scrollToFacet",void 0);Z([A()],z.prototype,"api",void 0);Z([A()],z.prototype,"displaySuggestListbox",void 0);Z([A()],z.prototype,"selectedSuggestOptionId",void 0);Z([A()],z.prototype,"selectedSuggestRemoveRecent",void 0);Z([A()],z.prototype,"facetsLoaded",void 0);var of={"ft-search-bar":z};W(of);var nf=O`
3019
3010
  * {
3020
3011
  box-sizing: border-box;
3021
3012
  }
@@ -3067,7 +3058,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3067
3058
  }
3068
3059
 
3069
3060
  ft-ripple {
3070
- ${w(J.opacityContentOnSurfaceHover,J.opacityContentOnSurfaceSelected)}
3061
+ ${w(X.opacityContentOnSurfaceHover,X.opacityContentOnSurfaceSelected)}
3071
3062
  }
3072
3063
  `;var cr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Ht.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return b`
3073
3064
  <div class="ft-search-input-suggestion ft-word-wrap"
@@ -3075,13 +3066,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3075
3066
  role="listbox"
3076
3067
  aria-label="${Wt.messages.suggestionsLabel()}"
3077
3068
  part="container">
3078
- ${le(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
3079
- ${le((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
3069
+ ${ae(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
3070
+ ${ae((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
3080
3071
  </div>
3081
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",ze.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":s=wn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ve.TOPICS;break;case"HTML_PACKAGE":s=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ve.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,a){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,p=this.ftSearchInput.launchSearchPath?a.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):_;return b`
3072
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ue.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":s=An(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ve.TOPICS;break;case"HTML_PACKAGE":s=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ve.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,a){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?a.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):_;return b`
3082
3073
  <div part="suggestion-container"
3083
3074
  class="ft-search-input-suggestion--container">
3084
- <a href="${p}"
3075
+ <a href="${u}"
3085
3076
  part="suggestion"
3086
3077
  class="ft-search-input-suggestion--suggestion"
3087
3078
  role="option"
@@ -3092,7 +3083,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3092
3083
  >
3093
3084
  <ft-ripple ?activated=${l&&!d}></ft-ripple>
3094
3085
  <ft-icon variant="${n}" value="${i}" part="suggestion-icon"></ft-icon>
3095
- <ft-typography variant="${me.body1}">${r}</ft-typography>
3086
+ <ft-typography variant="${fe.body1}">${r}</ft-typography>
3096
3087
  </a>
3097
3088
  ${s?b`
3098
3089
  <ft-button icon="${ve.CLOSE}"
@@ -3108,7 +3099,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3108
3099
  </ft-button>
3109
3100
  `:_}
3110
3101
  </div>
3111
- `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r: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()}};cr.elementDefinitions={"ft-ripple":j,"ft-typography":re,"ft-icon":se,"ft-button":F};cr.styles=[Ko,of];var De=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Lg=5;function kg(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Lg)}var fe=class extends xo(Rn){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 cr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Wt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,a=Ht.get().serializeToCurrentPageIfPossible(n,s),l=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return b`
3102
+ `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r: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()}};cr.elementDefinitions={"ft-ripple":j,"ft-typography":te,"ft-icon":se,"ft-button":F};cr.styles=[Zo,nf];var Ne=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Lg=5;function Ig(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Lg)}var pe=class extends vo(_n){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 cr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Wt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,a=Ht.get().serializeToCurrentPageIfPossible(n,s),l=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return b`
3112
3103
  <div class="${oe(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3113
3104
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3114
3105
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3155,7 +3146,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3155
3146
  ></ft-button>
3156
3147
  </div>
3157
3148
  </div>
3158
- `}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 r=this.suggestions.activeElement;if(r){r.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 r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Ir.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};fe.elementDefinitions={"ft-button":F,...cr.elementDefinitions};fe.styles=[or,wr,yp,...cr.styles,fo];De([mt()],fe.prototype,"request",void 0);De([mt()],fe.prototype,"liveQuery",void 0);De([mt()],fe.prototype,"suggestResults",void 0);De([mt({selector:kg})],fe.prototype,"recentQuerySuggestions",void 0);De([A()],fe.prototype,"forceCloseSuggestion",void 0);De([A()],fe.prototype,"displaySuggestListbox",void 0);De([A()],fe.prototype,"selectedSuggestOptionIndex",void 0);De([A()],fe.prototype,"selectedSuggestOptionRemove",void 0);De([f()],fe.prototype,"launchSearchPath",void 0);De([En()],fe.prototype,"placeholder",void 0);De([f({type:Boolean})],fe.prototype,"useCustomSearchPath",void 0);De([f({type:Boolean})],fe.prototype,"triggerSearchOnClear",void 0);De([f({type:Boolean})],fe.prototype,"focusOnDisplay",void 0);De([P(".ft-search-input--input")],fe.prototype,"input",void 0);De([P('[part="launch-search-in-input"]')],fe.prototype,"launchSearchButton",void 0);De([Zt()],fe.prototype,"onSearchBarKeyDown",null);De([Zt()],fe.prototype,"onSearchBarKeyUp",null);var nf={"ft-search-input":fe};W(nf);})();
3149
+ `}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 r=this.suggestions.activeElement;if(r){r.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 r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Ir.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};pe.elementDefinitions={"ft-button":F,...cr.elementDefinitions};pe.styles=[or,wr,bu,...cr.styles,ho];Ne([mt()],pe.prototype,"request",void 0);Ne([mt()],pe.prototype,"liveQuery",void 0);Ne([mt()],pe.prototype,"suggestResults",void 0);Ne([mt({selector:Ig})],pe.prototype,"recentQuerySuggestions",void 0);Ne([A()],pe.prototype,"forceCloseSuggestion",void 0);Ne([A()],pe.prototype,"displaySuggestListbox",void 0);Ne([A()],pe.prototype,"selectedSuggestOptionIndex",void 0);Ne([A()],pe.prototype,"selectedSuggestOptionRemove",void 0);Ne([f()],pe.prototype,"launchSearchPath",void 0);Ne([wn()],pe.prototype,"placeholder",void 0);Ne([f({type:Boolean})],pe.prototype,"useCustomSearchPath",void 0);Ne([f({type:Boolean})],pe.prototype,"triggerSearchOnClear",void 0);Ne([f({type:Boolean})],pe.prototype,"focusOnDisplay",void 0);Ne([P(".ft-search-input--input")],pe.prototype,"input",void 0);Ne([P('[part="launch-search-in-input"]')],pe.prototype,"launchSearchButton",void 0);Ne([Zt()],pe.prototype,"onSearchBarKeyDown",null);Ne([Zt()],pe.prototype,"onSearchBarKeyUp",null);var sf={"ft-search-input":pe};W(sf);})();
3159
3150
  /*! Bundled license information:
3160
3151
 
3161
3152
  .store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js: