@fluid-topics/ft-search-bar 2.1.22 → 2.1.24

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,4 +1,4 @@
1
- "use strict";(()=>{var id=Object.create;var Cs=Object.defineProperty;var nd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var sd=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty;var Dr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ld=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of od(e))!ad.call(t,n)&&n!==r&&Cs(t,n,{get:()=>e[n],enumerable:!(i=nd(e,n))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?id(sd(t)):{},ld(e||!t||!t.__esModule?Cs(r,"default",{value:t,enumerable:!0}):r,t));var v=Dr((Bf,ws)=>{ws.exports=ftGlobals.wcUtils});var A=Dr((Ff,Rs)=>{Rs.exports=ftGlobals.lit});var j=Dr((Uf,Ts)=>{Ts.exports=ftGlobals.litDecorators});var cr=Dr((zf,_s)=>{_s.exports=ftGlobals.litRepeat});var it=Dr((Dh,$a)=>{$a.exports=ftGlobals.litClassMap});var Su=Dr((Sx,xu)=>{xu.exports=ftGlobals.litUnsafeHTML});var rd=u(v());var H=u(A()),U=u(j()),Yi=u(cr()),K=u(v());var Ps=u(A()),ur=u(j()),Zi=u(v());var tt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(tt||(tt={}));var Ls=u(A());var ks=Ls.css`
1
+ "use strict";(()=>{var id=Object.create;var Cs=Object.defineProperty;var nd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var sd=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty;var Ir=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ld=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of od(e))!ad.call(t,n)&&n!==r&&Cs(t,n,{get:()=>e[n],enumerable:!(i=nd(e,n))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?id(sd(t)):{},ld(e||!t||!t.__esModule?Cs(r,"default",{value:t,enumerable:!0}):r,t));var v=Ir((Bf,ws)=>{ws.exports=ftGlobals.wcUtils});var A=Ir((Ff,Rs)=>{Rs.exports=ftGlobals.lit});var j=Ir((Uf,Ts)=>{Ts.exports=ftGlobals.litDecorators});var ur=Ir((zf,_s)=>{_s.exports=ftGlobals.litRepeat});var it=Ir((Dh,$a)=>{$a.exports=ftGlobals.litClassMap});var Su=Ir((Sx,xu)=>{xu.exports=ftGlobals.litUnsafeHTML});var rd=u(v());var H=u(A()),U=u(j()),Zi=u(ur()),G=u(v());var Ps=u(A()),pr=u(j()),Ji=u(v());var tt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(tt||(tt={}));var Ls=u(A());var ks=Ls.css`
2
2
  .ft-size-watcher--pixel {
3
3
  width: 0;
4
4
  height: 0;
@@ -17,23 +17,14 @@
17
17
  .ft-size-watcher--local .ft-size-watcher--watcher {
18
18
  width: 100%;
19
19
  }
20
- `;var fi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qn=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ve=class extends Zi.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=tt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Zi.Debouncer}render(){return Ps.html`
20
+ `;var hi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},eo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ve=class extends Ji.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=tt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Ji.Debouncer}render(){return Ps.html`
21
21
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
22
22
  <div class="ft-size-watcher--watcher"></div>
23
23
  </div>
24
- `}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=tt.S:this.size<976?this.category=tt.M:this.size<1024?this.category=tt.L:this.size<1440?this.category=tt.XL:this.category=tt.XXL,this.dispatchEvent(new Qn(this.size,this.category)))},this.debounceTimeout)}};Ve.elementDefinitions={};Ve.styles=ks;fi([(0,ur.property)({type:Number})],Ve.prototype,"debounceTimeout",void 0);fi([(0,ur.property)({type:Boolean})],Ve.prototype,"local",void 0);fi([(0,ur.property)({type:Number,reflect:!0})],Ve.prototype,"size",void 0);fi([(0,ur.property)({type:String,reflect:!0})],Ve.prototype,"category",void 0);fi([(0,ur.query)(".ft-size-watcher--watcher")],Ve.prototype,"watcher",void 0);var Ds=u(v());var $s={"ft-size-watcher":Ve};(0,Ds.customElements)($s);var so=globalThis,Is=t=>t,Ji=so.trustedTypes,Ms=Ji?Ji.createPolicy("lit-html",{createHTML:t=>t}):void 0,Hs="$lit$",Vt=`lit$${Math.random().toFixed(9).slice(2)}$`,js="?"+Vt,cd=`<${js}>`,fr=document,Qi=()=>fr.createComment(""),mi=t=>t===null||typeof t!="object"&&typeof t!="function",ao=Array.isArray,ud=t=>ao(t)||typeof t?.[Symbol.iterator]=="function",eo=`[
25
- \f\r]`,hi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ns=/-->/g,Bs=/>/g,pr=RegExp(`>|${eo}(?:([^\\s"'>=/]+)(${eo}*=${eo}*(?:[^
26
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Fs=/'/g,Us=/"/g,Vs=/^(?:script|style|textarea|title)$/i,lo=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ws=lo(1),qs=lo(2),Ks=lo(3),gi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),zs=new WeakMap,dr=fr.createTreeWalker(fr,129);function Gs(t,e){if(!ao(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(e):e}var pd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=hi;for(let a=0;a<r;a++){let l=t[a],c,p,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,p=s.exec(l),p!==null);)f=s.lastIndex,s===hi?p[1]==="!--"?s=Ns:p[1]!==void 0?s=Bs:p[2]!==void 0?(Vs.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=pr):p[3]!==void 0&&(s=pr):s===pr?p[0]===">"?(s=n??hi,d=-1):p[1]===void 0?d=-2:(d=s.lastIndex-p[2].length,c=p[1],s=p[3]===void 0?pr:p[3]==='"'?Us:Fs):s===Us||s===Fs?s=pr:s===Ns||s===Bs?s=hi:(s=pr,n=void 0);let h=s===pr&&t[a+1].startsWith("/>")?" ":"";o+=s===hi?l+cd:d>=0?(i.push(c),l.slice(0,d)+Hs+l.slice(d)+Vt+h):l+Vt+(d===-2?a:h)}return[Gs(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},vi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,p]=pd(e,r);if(this.el=t.createElement(c,i),dr.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=dr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Hs)){let f=p[s++],h=n.getAttribute(d).split(Vt),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?ro:m[1]==="?"?io:m[1]==="@"?no:Mr}),n.removeAttribute(d)}else d.startsWith(Vt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Vs.test(n.tagName)){let d=n.textContent.split(Vt),f=d.length-1;if(f>0){n.textContent=Ji?Ji.emptyScript:"";for(let h=0;h<f;h++)n.append(d[h],Qi()),dr.nextNode(),l.push({type:2,index:++o});n.append(d[f],Qi())}}}else if(n.nodeType===8)if(n.data===js)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Vt,d+1))!==-1;)l.push({type:7,index:o}),d+=Vt.length-1}o++}}static createElement(e,r){let i=fr.createElement("template");return i.innerHTML=e,i}};function Ir(t,e,r=t,i){if(e===gi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=mi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Ir(t,n._$AS(t,e.values),n,i)),e}var to=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);dr.currentNode=n;let o=dr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new en(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new oo(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=dr.nextNode(),s++)}return dr.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++}},en=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ce,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=Ir(this,e,r),mi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==gi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ud(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!==ce&&mi(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=vi.createElement(Gs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new to(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=zs.get(e.strings);return r===void 0&&zs.set(e.strings,r=new vi(e)),r}k(e){ao(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Qi()),this.O(Qi()),this,this.options)):i=r[n],i._$AI(o),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=Is(e).nextSibling;Is(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,o){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Ir(this,e,r,0),s=!mi(e)||e!==this._$AH&&e!==gi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Ir(this,a[i+l],r,l),c===gi&&(c=this._$AH[l]),s||=!mi(c)||c!==this._$AH[l],c===ce?e=ce:e!==ce&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ro=class extends Mr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},io=class extends Mr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},no=class extends Mr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Ir(this,e,r,0)??ce)===gi)return;let i=this._$AH,n=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ce&&(i===ce||n);n&&this.element.removeEventListener(this.name,this,i),o&&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)}},oo=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){Ir(this,e)}};var dd=so.litHtmlPolyfillSupport;dd?.(vi,en),(so.litHtmlVersions??=[]).push("3.3.3");var Ys=Symbol.for(""),fd=t=>{if(t?.r===Ys)return t?._$litStatic$},co=t=>({_$litStatic$:t,r:Ys});var Xs=new Map,uo=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=fd(o))!==void 0);)l+=n+e[++c],p=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),p){let d=s.join("$$lit$$");(e=Xs.get(d))===void 0&&(s.raw=s,Xs.set(d,e=s)),r=a}return t(e,...r)},po=uo(Ws),ih=uo(qs),nh=uo(Ks);var fo=u(j()),la=u(v());var ue;(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"})(ue||(ue={}));var rt=u(A()),b=u(v()),Zs=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),Mt=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),x={fontFamily:Mt,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Nr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},Br={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Fr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},Ur={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},It={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},ge={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},We={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},zr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},Hr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},Ct={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Js=rt.css`
24
+ `}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=tt.S:this.size<976?this.category=tt.M:this.size<1024?this.category=tt.L:this.size<1440?this.category=tt.XL:this.category=tt.XXL,this.dispatchEvent(new eo(this.size,this.category)))},this.debounceTimeout)}};Ve.elementDefinitions={};Ve.styles=ks;hi([(0,pr.property)({type:Number})],Ve.prototype,"debounceTimeout",void 0);hi([(0,pr.property)({type:Boolean})],Ve.prototype,"local",void 0);hi([(0,pr.property)({type:Number,reflect:!0})],Ve.prototype,"size",void 0);hi([(0,pr.property)({type:String,reflect:!0})],Ve.prototype,"category",void 0);hi([(0,pr.query)(".ft-size-watcher--watcher")],Ve.prototype,"watcher",void 0);var Ds=u(v());var $s={"ft-size-watcher":Ve};(0,Ds.customElements)($s);var ao=globalThis,Is=t=>t,Qi=ao.trustedTypes,Ms=Qi?Qi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Hs="$lit$",Vt=`lit$${Math.random().toFixed(9).slice(2)}$`,js="?"+Vt,cd=`<${js}>`,hr=document,en=()=>hr.createComment(""),gi=t=>t===null||typeof t!="object"&&typeof t!="function",lo=Array.isArray,ud=t=>lo(t)||typeof t?.[Symbol.iterator]=="function",to=`[
25
+ \f\r]`,mi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ns=/-->/g,Bs=/>/g,dr=RegExp(`>|${to}(?:([^\\s"'>=/]+)(${to}*=${to}*(?:[^
26
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Fs=/'/g,Us=/"/g,Vs=/^(?:script|style|textarea|title)$/i,co=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ws=co(1),qs=co(2),Ks=co(3),vi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),zs=new WeakMap,fr=hr.createTreeWalker(hr,129);function Gs(t,e){if(!lo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(e):e}var pd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=mi;for(let a=0;a<r;a++){let l=t[a],c,p,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,p=s.exec(l),p!==null);)f=s.lastIndex,s===mi?p[1]==="!--"?s=Ns:p[1]!==void 0?s=Bs:p[2]!==void 0?(Vs.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=dr):p[3]!==void 0&&(s=dr):s===dr?p[0]===">"?(s=n??mi,d=-1):p[1]===void 0?d=-2:(d=s.lastIndex-p[2].length,c=p[1],s=p[3]===void 0?dr:p[3]==='"'?Us:Fs):s===Us||s===Fs?s=dr:s===Ns||s===Bs?s=mi:(s=dr,n=void 0);let h=s===dr&&t[a+1].startsWith("/>")?" ":"";o+=s===mi?l+cd:d>=0?(i.push(c),l.slice(0,d)+Hs+l.slice(d)+Vt+h):l+Vt+(d===-2?a:h)}return[Gs(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,p]=pd(e,r);if(this.el=t.createElement(c,i),fr.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=fr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Hs)){let f=p[s++],h=n.getAttribute(d).split(Vt),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?io:m[1]==="?"?no:m[1]==="@"?oo:Nr}),n.removeAttribute(d)}else d.startsWith(Vt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Vs.test(n.tagName)){let d=n.textContent.split(Vt),f=d.length-1;if(f>0){n.textContent=Qi?Qi.emptyScript:"";for(let h=0;h<f;h++)n.append(d[h],en()),fr.nextNode(),l.push({type:2,index:++o});n.append(d[f],en())}}}else if(n.nodeType===8)if(n.data===js)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Vt,d+1))!==-1;)l.push({type:7,index:o}),d+=Vt.length-1}o++}}static createElement(e,r){let i=hr.createElement("template");return i.innerHTML=e,i}};function Mr(t,e,r=t,i){if(e===vi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=gi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Mr(t,n._$AS(t,e.values),n,i)),e}var ro=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??hr).importNode(r,!0);fr.currentNode=n;let o=fr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new tn(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new so(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=fr.nextNode(),s++)}return fr.currentNode=hr,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++}},tn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ce,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=Mr(this,e,r),gi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==vi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ud(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!==ce&&gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(hr.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=yi.createElement(Gs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new ro(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=zs.get(e.strings);return r===void 0&&zs.set(e.strings,r=new yi(e)),r}k(e){lo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(en()),this.O(en()),this,this.options)):i=r[n],i._$AI(o),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=Is(e).nextSibling;Is(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Mr(this,e,r,0),s=!gi(e)||e!==this._$AH&&e!==vi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Mr(this,a[i+l],r,l),c===vi&&(c=this._$AH[l]),s||=!gi(c)||c!==this._$AH[l],c===ce?e=ce:e!==ce&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},io=class extends Nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},no=class extends Nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},oo=class extends Nr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Mr(this,e,r,0)??ce)===vi)return;let i=this._$AH,n=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ce&&(i===ce||n);n&&this.element.removeEventListener(this.name,this,i),o&&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)}},so=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){Mr(this,e)}};var dd=ao.litHtmlPolyfillSupport;dd?.(yi,tn),(ao.litHtmlVersions??=[]).push("3.3.3");var Ys=Symbol.for(""),fd=t=>{if(t?.r===Ys)return t?._$litStatic$},uo=t=>({_$litStatic$:t,r:Ys});var Xs=new Map,po=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=fd(o))!==void 0);)l+=n+e[++c],p=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),p){let d=s.join("$$lit$$");(e=Xs.get(d))===void 0&&(s.raw=s,Xs.set(d,e=s)),r=a}return t(e,...r)},fo=po(Ws),ih=po(qs),nh=po(Ks);var ho=u(j()),la=u(v());var ue;(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"})(ue||(ue={}));var rt=u(A()),b=u(v()),Zs=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),Mt=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),x={fontFamily:Mt,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Br={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},Fr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Ur={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},zr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},It={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},ge={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},We={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Hr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},jr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},At={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Js=rt.css`
27
27
  .ft-typography--title {
28
- font-family: ${Nr.fontFamily};
29
- font-size: ${Nr.fontSize};
30
- font-weight: ${Nr.fontWeight};
31
- letter-spacing: ${Nr.letterSpacing};
32
- line-height: ${Nr.lineHeight};
33
- text-transform: ${Nr.textTransform};
34
- }
35
- `,Qs=rt.css`
36
- .ft-typography--title-dense {
37
28
  font-family: ${Br.fontFamily};
38
29
  font-size: ${Br.fontSize};
39
30
  font-weight: ${Br.fontWeight};
@@ -41,8 +32,8 @@
41
32
  line-height: ${Br.lineHeight};
42
33
  text-transform: ${Br.textTransform};
43
34
  }
44
- `,ea=rt.css`
45
- .ft-typography--subtitle1 {
35
+ `,Qs=rt.css`
36
+ .ft-typography--title-dense {
46
37
  font-family: ${Fr.fontFamily};
47
38
  font-size: ${Fr.fontSize};
48
39
  font-weight: ${Fr.fontWeight};
@@ -50,8 +41,8 @@
50
41
  line-height: ${Fr.lineHeight};
51
42
  text-transform: ${Fr.textTransform};
52
43
  }
53
- `,ta=rt.css`
54
- .ft-typography--subtitle2 {
44
+ `,ea=rt.css`
45
+ .ft-typography--subtitle1 {
55
46
  font-family: ${Ur.fontFamily};
56
47
  font-size: ${Ur.fontSize};
57
48
  font-weight: ${Ur.fontWeight};
@@ -59,6 +50,15 @@
59
50
  line-height: ${Ur.lineHeight};
60
51
  text-transform: ${Ur.textTransform};
61
52
  }
53
+ `,ta=rt.css`
54
+ .ft-typography--subtitle2 {
55
+ font-family: ${zr.fontFamily};
56
+ font-size: ${zr.fontSize};
57
+ font-weight: ${zr.fontWeight};
58
+ letter-spacing: ${zr.letterSpacing};
59
+ line-height: ${zr.lineHeight};
60
+ text-transform: ${zr.textTransform};
61
+ }
62
62
 
63
63
  `,ra=rt.css`
64
64
  .ft-typography--body1 {
@@ -69,7 +69,7 @@
69
69
  line-height: ${It.lineHeight};
70
70
  text-transform: ${It.textTransform};
71
71
  }
72
- `,jr=rt.css`
72
+ `,Vr=rt.css`
73
73
  .ft-typography--body2 {
74
74
  font-family: ${ge.fontFamily};
75
75
  font-size: ${ge.fontSize};
@@ -89,15 +89,6 @@
89
89
  }
90
90
  `,ia=rt.css`
91
91
  .ft-typography--breadcrumb {
92
- font-family: ${zr.fontFamily};
93
- font-size: ${zr.fontSize};
94
- font-weight: ${zr.fontWeight};
95
- letter-spacing: ${zr.letterSpacing};
96
- line-height: ${zr.lineHeight};
97
- text-transform: ${zr.textTransform};
98
- }
99
- `,na=rt.css`
100
- .ft-typography--overline {
101
92
  font-family: ${Hr.fontFamily};
102
93
  font-size: ${Hr.fontSize};
103
94
  font-weight: ${Hr.fontWeight};
@@ -105,28 +96,37 @@
105
96
  line-height: ${Hr.lineHeight};
106
97
  text-transform: ${Hr.textTransform};
107
98
  }
99
+ `,na=rt.css`
100
+ .ft-typography--overline {
101
+ font-family: ${jr.fontFamily};
102
+ font-size: ${jr.fontSize};
103
+ font-weight: ${jr.fontWeight};
104
+ letter-spacing: ${jr.letterSpacing};
105
+ line-height: ${jr.lineHeight};
106
+ text-transform: ${jr.textTransform};
107
+ }
108
108
  `,oa=rt.css`
109
109
  .ft-typography--button {
110
- font-family: ${Ct.fontFamily};
111
- font-size: ${Ct.fontSize};
112
- font-weight: ${Ct.fontWeight};
113
- letter-spacing: ${Ct.letterSpacing};
114
- line-height: ${Ct.lineHeight};
115
- text-transform: ${Ct.textTransform};
110
+ font-family: ${At.fontFamily};
111
+ font-size: ${At.fontSize};
112
+ font-weight: ${At.fontWeight};
113
+ letter-spacing: ${At.letterSpacing};
114
+ line-height: ${At.lineHeight};
115
+ text-transform: ${At.textTransform};
116
116
  }
117
117
  `,sa=rt.css`
118
118
  .ft-typography {
119
119
  vertical-align: inherit;
120
120
  }
121
- `;var aa=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},V=class extends la.FtLitElement{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?po`
122
- <${co(this.element)}
121
+ `;var aa=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},W=class extends la.FtLitElement{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?fo`
122
+ <${uo(this.element)}
123
123
  part="text"
124
124
  class="ft-typography ft-typography--${this.variant}">
125
125
  <slot></slot>
126
- </${co(this.element)}>
127
- `:po`
126
+ </${uo(this.element)}>
127
+ `:fo`
128
128
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
129
- `}};V.styles=[Js,Qs,ea,ta,ra,jr,Wt,ia,na,oa,sa];aa([(0,fo.property)()],V.prototype,"element",void 0);aa([(0,fo.property)()],V.prototype,"variant",void 0);var ua=u(v());var ca={"ft-typography":V};(0,ua.customElements)(ca);var ho=u(v());function tn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pa(t){return tn(t).split("|").pop()}function da(t){return tn(t).split("|").join(" > ")}function fa(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>fa(r,t.selected)),value:t.value}}function ha(t){return(0,ho.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function mo(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>fa(e,!1))}}function ma(t){return(0,ho.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var ka=u(A()),q=u(v());var _a=u(A()),L=u(v());var Sa=u(A()),pe=u(v()),ga=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorContent),W={color:ga,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga),opacityContentOnSurfacePressed:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:pe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},va=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorPrimary),ya={color:va,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",va)},ba=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorSecondary),xa={color:ba,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ba)},Ea=Sa.css`
129
+ `}};W.styles=[Js,Qs,ea,ta,ra,Vr,Wt,ia,na,oa,sa];aa([(0,ho.property)()],W.prototype,"element",void 0);aa([(0,ho.property)()],W.prototype,"variant",void 0);var ua=u(v());var ca={"ft-typography":W};(0,ua.customElements)(ca);var mo=u(v());function rn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pa(t){return rn(t).split("|").pop()}function da(t){return rn(t).split("|").join(" > ")}function fa(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>fa(r,t.selected)),value:t.value}}function ha(t){return(0,mo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function go(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>fa(e,!1))}}function ma(t){return(0,mo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var ka=u(A()),K=u(v());var _a=u(A()),k=u(v());var Sa=u(A()),pe=u(v()),ga=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorContent),q={color:ga,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga),opacityContentOnSurfacePressed:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:pe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},va=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorPrimary),ya={color:va,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",va)},ba=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorSecondary),xa={color:ba,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ba)},Ea=Sa.css`
130
130
  :host {
131
131
  display: contents;
132
132
  }
@@ -139,7 +139,7 @@
139
139
 
140
140
  .ft-ripple:not(.ft-ripple--unbounded) {
141
141
  overflow: hidden;
142
- border-radius: ${W.borderRadius};
142
+ border-radius: ${q.borderRadius};
143
143
  }
144
144
 
145
145
  .ft-ripple .ft-ripple--background,
@@ -173,11 +173,11 @@
173
173
  }
174
174
 
175
175
  .ft-ripple .ft-ripple--background {
176
- background-color: ${W.backgroundColor};
176
+ background-color: ${q.backgroundColor};
177
177
  }
178
178
 
179
179
  .ft-ripple .ft-ripple--effect {
180
- background-color: ${W.color};
180
+ background-color: ${q.color};
181
181
  }
182
182
 
183
183
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -223,22 +223,22 @@
223
223
  }
224
224
 
225
225
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
226
- opacity: ${W.opacityContentOnSurfaceHover};
226
+ opacity: ${q.opacityContentOnSurfaceHover};
227
227
  }
228
228
 
229
229
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
230
- opacity: ${W.opacityContentOnSurfaceSelected};
230
+ opacity: ${q.opacityContentOnSurfaceSelected};
231
231
  }
232
232
 
233
233
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
234
- opacity: ${W.opacityContentOnSurfaceFocused};
234
+ opacity: ${q.opacityContentOnSurfaceFocused};
235
235
  }
236
236
 
237
237
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
238
- opacity: ${W.opacityContentOnSurfacePressed};
238
+ opacity: ${q.opacityContentOnSurfacePressed};
239
239
  transform: translate(-50%, -50%) scale(1);
240
240
  }
241
- `;var Aa=u(A()),yi=u(v()),hr={color:yi.FtCssVariableFactory.extend("--ft-loader-color","",yi.designSystemVariables.colorPrimary),size:yi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Oa=Aa.css`
241
+ `;var Aa=u(A()),bi=u(v()),mr={color:bi.FtCssVariableFactory.extend("--ft-loader-color","",bi.designSystemVariables.colorPrimary),size:bi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Oa=Aa.css`
242
242
  :host {
243
243
  line-height: 0;
244
244
  }
@@ -247,8 +247,8 @@
247
247
  display: inline-block;
248
248
  position: relative;
249
249
 
250
- width: ${hr.size};
251
- height: ${hr.size};
250
+ width: ${mr.size};
251
+ height: ${mr.size};
252
252
  }
253
253
 
254
254
  .ft-loader div {
@@ -257,7 +257,7 @@
257
257
  width: 25%;
258
258
  height: 25%;
259
259
  border-radius: 50%;
260
- background: ${hr.color};
260
+ background: ${mr.color};
261
261
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
262
262
  }
263
263
 
@@ -304,10 +304,10 @@
304
304
  transform: translate(0, 0);
305
305
  }
306
306
  100% {
307
- transform: translate(calc(0.35 * ${hr.size}), 0);
307
+ transform: translate(calc(0.35 * ${mr.size}), 0);
308
308
  }
309
309
  }
310
- `;var Ca=u(A()),dt=u(v()),Le={size:dt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:dt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wa=[Ca.css`
310
+ `;var Ca=u(A()),pt=u(v()),Le={size:pt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:pt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",pt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",pt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:pt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",pt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:pt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wa=[Ca.css`
311
311
  :host, i.ft-icon {
312
312
  display: inline-flex;
313
313
  align-items: center;
@@ -355,7 +355,7 @@
355
355
  .ft-icon--material {
356
356
  font-family: ${Le.materialFontFamily}, "Material Icons", sans-serif;
357
357
  }
358
- `,dt.noTextSelect];var Ra=L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorPrimary),F={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorSurface),borderRadius:L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusL),color:Ra,fontSize:L.FtCssVariableFactory.extend("--ft-button-font-size","",Ct.fontSize),iconSize:L.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:L.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ra),verticalPadding:L.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:L.FtCssVariableFactory.external(L.designSystemVariables.colorOpacityDisabled,"Design system")},Ta=L.FtCssVariableFactory.extend("--ft-button-primary-color","",L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorOnPrimary)),go={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-primary-background-color","",L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorPrimary)),color:Ta,rippleColor:L.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ta)},ft={borderRadius:L.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusM)),verticalPadding:L.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},La=_a.css`
358
+ `,pt.noTextSelect];var Ra=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),F={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:Ra,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",At.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ra),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},Ta=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),vo={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:Ta,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ta)},Ot={borderRadius:k.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusM)),verticalPadding:k.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},La=_a.css`
359
359
  :host {
360
360
  display: inline-block;
361
361
  max-width: 100%;
@@ -386,7 +386,7 @@
386
386
  }
387
387
 
388
388
  .ft-button:focus-visible {
389
- outline: 2px solid ${L.designSystemVariables.colorPrimary};
389
+ outline: 2px solid ${k.designSystemVariables.colorPrimary};
390
390
  outline-offset: 2px;
391
391
  }
392
392
 
@@ -402,9 +402,9 @@
402
402
 
403
403
  --button-internal-line-height: max(calc(${F.fontSize} + 2px), ${F.iconSize});
404
404
  --button-internal-color: ${F.color};
405
- ${(0,L.setVariable)(Le.size,F.iconSize)};
406
- ${(0,L.setVariable)(W.color,F.rippleColor)};
407
- ${(0,L.setVariable)(W.borderRadius,F.borderRadius)};
405
+ ${(0,k.setVariable)(Le.size,F.iconSize)};
406
+ ${(0,k.setVariable)(q.color,F.rippleColor)};
407
+ ${(0,k.setVariable)(q.borderRadius,F.borderRadius)};
408
408
 
409
409
  border-radius: ${F.borderRadius};
410
410
  padding: ${F.verticalPadding} ${F.horizontalPadding};
@@ -418,14 +418,13 @@
418
418
  }
419
419
 
420
420
  .ft-button.ft-button--dense {
421
- padding: ${ft.verticalPadding} ${ft.horizontalPadding};
422
- border-radius: ${ft.borderRadius};
423
- gap: ${ft.iconPadding};
424
- ${(0,L.setVariable)(W.borderRadius,ft.borderRadius)};
421
+ padding: ${Ot.verticalPadding} ${Ot.horizontalPadding};
422
+ border-radius: ${Ot.borderRadius};
423
+ ${(0,k.setVariable)(q.borderRadius,Ot.borderRadius)};
425
424
  }
426
425
 
427
426
  .ft-button.ft-button--dense.ft-button--outlined {
428
- padding: calc(${ft.verticalPadding} - 1px) calc(${ft.horizontalPadding} - 1px);
427
+ padding: calc(${Ot.verticalPadding} - 1px) calc(${Ot.horizontalPadding} - 1px);
429
428
  }
430
429
 
431
430
  .ft-button:not([disabled]):hover {
@@ -437,7 +436,7 @@
437
436
  }
438
437
 
439
438
  .ft-button--round.ft-button--dense {
440
- border-radius: calc(var(--button-internal-line-height) / 2 + ${ft.verticalPadding});
439
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ot.verticalPadding});
441
440
  }
442
441
 
443
442
  .ft-button[disabled] {
@@ -446,9 +445,9 @@
446
445
  }
447
446
 
448
447
  .ft-button.ft-button--primary {
449
- background-color: ${go.backgroundColor};
450
- --button-internal-color: ${go.color};
451
- ${(0,L.setVariable)(W.color,go.rippleColor)};
448
+ background-color: ${vo.backgroundColor};
449
+ --button-internal-color: ${vo.color};
450
+ ${(0,k.setVariable)(q.color,vo.rippleColor)};
452
451
  }
453
452
 
454
453
  .ft-button--label {
@@ -458,16 +457,16 @@
458
457
  text-overflow: ellipsis;
459
458
  display: block;
460
459
  margin: 0 ${F.iconPadding};
461
- ${(0,L.setVariable)(Ct.fontSize,"1em")};
462
- ${(0,L.setVariable)(Ct.lineHeight,"var(--button-internal-line-height)")};
460
+ ${(0,k.setVariable)(At.fontSize,"1em")};
461
+ ${(0,k.setVariable)(At.lineHeight,"var(--button-internal-line-height)")};
463
462
  }
464
463
 
465
464
  .ft-button--dense .ft-button--label {
466
- margin: 0 ${ft.iconPadding};
465
+ margin: 0 ${Ot.iconPadding};
467
466
  }
468
467
 
469
- .ft-button--label[hidden] {
470
- display: none;
468
+ .ft-button--label.ft-button--label-no-text {
469
+ margin: 0;
471
470
  }
472
471
 
473
472
  [part="icon"] {
@@ -481,8 +480,8 @@
481
480
  }
482
481
 
483
482
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
484
- margin: 0 calc(${ft.horizontalPadding} * -1);
485
- padding: 0 ${ft.verticalPadding};
483
+ margin: 0 calc(${Ot.horizontalPadding} * -1);
484
+ padding: 0 ${Ot.verticalPadding};
486
485
  }
487
486
 
488
487
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -490,10 +489,10 @@
490
489
  }
491
490
 
492
491
  ft-loader {
493
- ${(0,L.setVariable)(hr.size,F.iconSize)};
494
- ${(0,L.setVariable)(hr.color,"var(--button-internal-color)")};
492
+ ${(0,k.setVariable)(mr.size,F.iconSize)};
493
+ ${(0,k.setVariable)(mr.color,"var(--button-internal-color)")};
495
494
  }
496
- `;var bi={buttonMoreColor:q.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",q.designSystemVariables.colorOnSurface),borderRadiusM:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:q.FtCssVariableFactory.external(q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:q.FtCssVariableFactory.external(ge.fontFamily,"Body2 typography"),fontSize:q.FtCssVariableFactory.external(ge.fontSize,"Body2 typography"),fontWeight:q.FtCssVariableFactory.external(ge.fontWeight,"Body2 typography"),letterSpacing:q.FtCssVariableFactory.external(ge.letterSpacing,"Body2 typography"),lineHeight:q.FtCssVariableFactory.external(ge.lineHeight,"Body2 typography"),textTransform:q.FtCssVariableFactory.external(ge.textTransform,"Body2 typography")},Pa=ka.css`
495
+ `;var xi={buttonMoreColor:K.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",K.designSystemVariables.colorOnSurface),borderRadiusM:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusM,"Design system"),colorOutline:K.FtCssVariableFactory.external(K.designSystemVariables.colorOutline,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:K.FtCssVariableFactory.external(ge.fontFamily,"Body2 typography"),fontSize:K.FtCssVariableFactory.external(ge.fontSize,"Body2 typography"),fontWeight:K.FtCssVariableFactory.external(ge.fontWeight,"Body2 typography"),letterSpacing:K.FtCssVariableFactory.external(ge.letterSpacing,"Body2 typography"),lineHeight:K.FtCssVariableFactory.external(ge.lineHeight,"Body2 typography"),textTransform:K.FtCssVariableFactory.external(ge.textTransform,"Body2 typography")},Pa=ka.css`
497
496
  .ft-filter-level--container {
498
497
  display: flex;
499
498
  flex-direction: column;
@@ -508,14 +507,14 @@
508
507
  flex-shrink: 0;
509
508
  text-decoration: none;
510
509
  position: relative;
511
- border-radius: ${bi.borderRadiusM};
510
+ border-radius: ${xi.borderRadiusM};
512
511
  overflow: hidden;
513
512
  display: flex;
514
513
  align-items: center;
515
514
  padding: 4px 4px;
516
515
  gap: 4px;
517
516
  cursor: pointer;
518
- color: ${bi.colorOnSurface};
517
+ color: ${xi.colorOnSurface};
519
518
  }
520
519
 
521
520
  .ft-filter-level--go-back:focus {
@@ -544,11 +543,11 @@
544
543
  }
545
544
 
546
545
  ft-button {
547
- ${(0,q.setVariable)(F.color,bi.colorOnSurface)};
546
+ ${(0,K.setVariable)(F.color,xi.colorOnSurface)};
548
547
  }
549
548
 
550
549
  ft-button.ft-filter-level--display-more {
551
- ${(0,q.setVariable)(F.color,bi.buttonMoreColor)};
550
+ ${(0,K.setVariable)(F.color,xi.buttonMoreColor)};
552
551
  }
553
552
 
554
553
  ft-radio, ft-checkbox {
@@ -562,9 +561,9 @@
562
561
 
563
562
  .ft-filter-level--no-values {
564
563
  margin: 10px 0;
565
- color: ${bi.colorOnSurfaceMedium};
564
+ color: ${xi.colorOnSurfaceMedium};
566
565
  }
567
- `;var _r=u(A()),G=u(j()),ae=u(v());var Ze=u(A()),ve=u(j()),Yu=u(cr()),Ue=u(v());var ct=u(v());var Da=u(A()),be=u(j()),Ia=u(it()),xi=u(v());var Me=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},M=class extends xi.FtLitElement{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 xi.Debouncer(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 xi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(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-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Da.html`
566
+ `;var Lr=u(A()),X=u(j()),ae=u(v());var Ze=u(A()),ve=u(j()),Yu=u(ur()),Ue=u(v());var Tt=u(v());var Da=u(A()),be=u(j()),Ia=u(it()),Si=u(v());var Me=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},M=class extends Si.FtLitElement{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 Si.Debouncer(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 Si.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(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-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Da.html`
568
567
  <style>
569
568
  .ft-ripple .ft-ripple--effect {
570
569
  left: ${this.originX}px;
@@ -575,7 +574,7 @@
575
574
  <div class="ft-ripple--background"></div>
576
575
  <div class="ft-ripple--effect"></div>
577
576
  </div>
578
- `}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=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}};M.elementDefinitions={};M.styles=Ea;Me([(0,be.property)({type:Boolean})],M.prototype,"primary",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"secondary",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"unbounded",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"activated",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"selected",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"disabled",void 0);Me([(0,be.state)()],M.prototype,"hovered",void 0);Me([(0,be.state)()],M.prototype,"focused",void 0);Me([(0,be.state)()],M.prototype,"pressed",void 0);Me([(0,be.state)()],M.prototype,"rippling",void 0);Me([(0,be.state)()],M.prototype,"originX",void 0);Me([(0,be.state)()],M.prototype,"originY",void 0);Me([(0,be.query)(".ft-ripple")],M.prototype,"ripple",void 0);Me([(0,be.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Na=u(v());var Ma={"ft-ripple":M};(0,Na.customElements)(Ma);var vu=u(A()),lt=u(j()),at=u(v());var Ba=u(A()),qt=u(v()),Si={distance:qt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:qt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:qt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:qt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",qt.designSystemVariables.borderRadiusS),maxWidth:qt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fa=Ba.css`
577
+ `}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=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}};M.elementDefinitions={};M.styles=Ea;Me([(0,be.property)({type:Boolean})],M.prototype,"primary",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"secondary",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"unbounded",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"activated",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"selected",void 0);Me([(0,be.property)({type:Boolean})],M.prototype,"disabled",void 0);Me([(0,be.state)()],M.prototype,"hovered",void 0);Me([(0,be.state)()],M.prototype,"focused",void 0);Me([(0,be.state)()],M.prototype,"pressed",void 0);Me([(0,be.state)()],M.prototype,"rippling",void 0);Me([(0,be.state)()],M.prototype,"originX",void 0);Me([(0,be.state)()],M.prototype,"originY",void 0);Me([(0,be.query)(".ft-ripple")],M.prototype,"ripple",void 0);Me([(0,be.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Na=u(v());var Ma={"ft-ripple":M};(0,Na.customElements)(Ma);var vu=u(A()),lt=u(j()),at=u(v());var Ba=u(A()),qt=u(v()),Ei={distance:qt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:qt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:qt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:qt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",qt.designSystemVariables.borderRadiusS),maxWidth:qt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fa=Ba.css`
579
578
  .ft-tooltip--container {
580
579
  display: block;
581
580
  }
@@ -593,28 +592,28 @@
593
592
  box-sizing: border-box;
594
593
  overflow: hidden;
595
594
  width: max-content;
596
- max-width: ${Si.maxWidth};
595
+ max-width: ${Ei.maxWidth};
597
596
  text-align: center;
598
- padding: ${Si.distance};
597
+ padding: ${Ei.distance};
599
598
  }
600
599
 
601
600
  .ft-tooltip--content {
602
601
  padding: 4px 8px;
603
- border-radius: ${Si.borderRadiusS};
604
- background-color: ${Si.backgroundColor};
605
- color: ${Si.color};
602
+ border-radius: ${Ei.borderRadiusS};
603
+ background-color: ${Ei.backgroundColor};
604
+ color: ${Ei.color};
606
605
  position: relative;
607
606
  word-break: break-word;
608
607
  }
609
- `;var za=["top","right","bottom","left"],Ua=["start","end"],yo=za.reduce((t,e)=>t.concat(e,e+"-"+Ua[0],e+"-"+Ua[1]),[]),Ei=Math.min,Kt=Math.max,Ai=Math.round;var wt=t=>({x:t,y:t}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(t,e,r){return Kt(t,Ei(e,r))}function rn(t,e){return typeof t=="function"?t(e):t}function Oi(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function bo(t){return t==="x"?"y":"x"}function xo(t){return t==="y"?"height":"width"}function nn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function So(t){return bo(nn(t))}function ja(t,e,r){r===void 0&&(r=!1);let i=Gt(t),n=So(t),o=xo(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vo(s)),[s,vo(s)]}function Va(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vo(t){let e=Oi(t);return hd[e]+t.slice(e.length)}function md(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 Wa(t){return typeof t!="number"?md(t):{top:t,right:t,bottom:t,left:t}}function mr(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 qa(t,e,r){let{reference:i,floating:n}=t,o=nn(e),s=So(e),a=xo(s),l=Oi(e),c=o==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:p,y:i.y-n.height};break;case"bottom":h={x:p,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=Gt(e);return m&&(h[s]+=f*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Ka(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=rn(e,t),m=Wa(h),S=a[f?d==="floating"?"reference":"floating":d],E=mr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(S)))==null||r?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),O=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(_))&&await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1},me=mr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:_,strategy:l}):O);return{top:(E.top-me.top+m.top)/$.y,bottom:(me.bottom-E.bottom+m.bottom)/$.y,left:(E.left-me.left+m.left)/$.x,right:(me.right-E.right+m.right)/$.x}}var gd=50,Ga=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ka},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=qa(c,i,l),f=i,h=0,m={};for(let g=0;g<o.length;g++){let S=o[g];if(!S)continue;let{name:E,fn:O}=S,{x:_,y:$,data:me,reset:le}=await O({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});p=_??p,d=$??d,m[E]={...m[E],...me},le&&h<gd&&(h++,typeof le=="object"&&(le.placement&&(f=le.placement),le.rects&&(c=le.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):le.rects),{x:p,y:d}=qa(c,f,l)),g=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:m}};function vd(t,e,r){return(t?[...r.filter(n=>Gt(n)===t),...r.filter(n=>Gt(n)!==t)]:r.filter(n=>Oi(n)===n)).filter(n=>t?Gt(n)===t||(e?Va(n)!==n:!1):!0)}var Xa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=yo,autoAlignment:h=!0,...m}=rn(t,e),g=d!==void 0||f===yo?vd(d||null,h,f):f,S=((r=s.autoPlacement)==null?void 0:r.index)||0,E=g[S];if(E==null)return{};if(a!==E)return{reset:{placement:g[0]}};let O=await l.detectOverflow(e,m),_=ja(E,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),$=[O[Oi(E)],O[_[0]],O[_[1]]],me=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:E,overflows:$}],le=g[S+1];if(le)return{data:{index:S+1,overflows:me},reset:{placement:le}};let Ht=me.map(He=>{let et=Gt(He.placement);return[He.placement,et&&p?He.overflows.slice(0,2).reduce((je,lr)=>je+lr,0):He.overflows[0],He.overflows]}).sort((He,et)=>He[1]-et[1]),jt=((n=Ht.filter(He=>He[2].slice(0,Gt(He[0])?2:3).every(et=>et<=0))[0])==null?void 0:n[0])||Ht[0][0];return jt!==a?{data:{index:S+1,overflows:me},reset:{placement:jt}}:{}}}};var Ya=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:O=>{let{x:_,y:$}=O;return{x:_,y:$}}},...c}=rn(t,e),p={x:r,y:i},d=await o.detectOverflow(e,c),f=nn(n),h=bo(f),m=p[h],g=p[f],S=(O,_)=>Ha(_+d[O==="y"?"top":"left"],_,_-d[O==="y"?"bottom":"right"]);s&&(m=S(h,m)),a&&(g=S(f,g));let E=l.fn({...e,[h]:m,[f]:g});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[h]:s,[f]:a}}}}}};function sn(){return typeof window<"u"}function vr(t){return Ja(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nt(t){var e;return(e=(Ja(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ja(t){return sn()?t instanceof Node||t instanceof Ne(t).Node:!1}function ht(t){return sn()?t instanceof Element||t instanceof Ne(t).Element:!1}function Bt(t){return sn()?t instanceof HTMLElement||t instanceof Ne(t).HTMLElement:!1}function Za(t){return!sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function Ci(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Qa(t){return/^(table|td|th)$/.test(vr(t))}function wi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var yd=/transform|translate|scale|rotate|perspective|filter/,bd=/paint|layout|strict|content/,gr=t=>!!t&&t!=="none",Eo;function Vr(t){let e=ht(t)?mt(t):t;return gr(e.transform)||gr(e.translate)||gr(e.scale)||gr(e.rotate)||gr(e.perspective)||!an()&&(gr(e.backdropFilter)||gr(e.filter))||yd.test(e.willChange||"")||bd.test(e.contain||"")}function el(t){let e=Xt(t);for(;Bt(e)&&!Wr(e);){if(Vr(e))return e;if(wi(e))return null;e=Xt(e)}return null}function an(){return Eo==null&&(Eo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Eo}function Wr(t){return/^(html|body|#document)$/.test(vr(t))}function mt(t){return Ne(t).getComputedStyle(t)}function Ri(t){return ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Xt(t){if(vr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Za(t)&&t.host||Nt(t);return Za(e)?e.host:e}function tl(t){let e=Xt(t);return Wr(e)?(t.ownerDocument||t).body:Bt(e)&&Ci(e)?e:tl(e)}function on(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=tl(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ne(n);if(o){let a=ln(s);return e.concat(s,s.visualViewport||[],Ci(n)?n:[],a&&r?on(a):[])}else return e.concat(n,on(n,[],r))}function ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nl(t){let e=mt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Ai(r)!==o||Ai(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function ol(t){return ht(t)?t:t.contextElement}function qr(t){let e=ol(t);if(!Bt(e))return wt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=nl(e),s=(o?Ai(r.width):r.width)/i,a=(o?Ai(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var xd=wt(0);function sl(t){let e=Ne(t);return!an()||!e.visualViewport?xd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sd(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ne(t)}function Ti(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=ol(t),s=wt(1);e&&(i?ht(i)&&(s=qr(i)):s=qr(t));let a=Sd(o,r,i)?sl(o):wt(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,p=n.width/s.x,d=n.height/s.y;if(o&&i){let f=Ne(o),h=ht(i)?Ne(i):i,m=f,g=ln(m);for(;g&&h!==m;){let S=qr(g),E=g.getBoundingClientRect(),O=mt(g),_=E.left+(g.clientLeft+parseFloat(O.paddingLeft))*S.x,$=E.top+(g.clientTop+parseFloat(O.paddingTop))*S.y;l*=S.x,c*=S.y,p*=S.x,d*=S.y,l+=_,c+=$,m=Ne(g),g=ln(m)}}return mr({width:p,height:d,x:l,y:c})}function cn(t,e){let r=Ri(t).scrollLeft;return e?e.left+r:Ti(Nt(t)).left+r}function al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-cn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ed(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Nt(i),a=e?wi(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=wt(1),p=wt(0),d=Bt(i);if((d||!o)&&((vr(i)!=="body"||Ci(s))&&(l=Ri(i)),d)){let h=Ti(i);c=qr(i),p.x=h.x+i.clientLeft,p.y=h.y+i.clientTop}let f=s&&!d&&!o?al(s,l):wt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Ad(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Od(t){let e=Ri(t),r=t.ownerDocument.body,i=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+cn(t),s=-e.scrollTop;return mt(r).direction==="rtl"&&(o+=Kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var Cd=25;function wd(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ne(t),o=Nt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,p=0;if(s){let f=!an()||e==="fixed";i?f||(c=-s.offsetLeft,p=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,p=s.offsetTop))}if(cn(o)<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(o.clientWidth-h.clientWidth-g),E=getComputedStyle(o).scrollbarGutter==="stable both-edges"?S/2:S;E<=Cd&&(a-=E)}return{width:a,height:l,x:c,y:p}}function Rd(t,e){let r=Ti(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=qr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function rl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=wd(t,r,e);else if(e==="document")i=Od(Nt(t));else if(ht(e))i=Rd(e,r);else{let n=sl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return mr(i)}function Td(t,e){let r=e.get(t);if(r)return r;let i=on(t,[],!1).filter(a=>ht(a)&&vr(a)!=="body"),n=null,o=mt(t).position==="fixed",s=o?Xt(t):t;for(;ht(s)&&!Wr(s);){let a=mt(s),l=Vr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Xt(s)}return e.set(t,i),i}function _d(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?wi(e)?[]:Td(e,this._c):[].concat(r),i],a=rl(e,s[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<s.length;f++){let h=rl(e,s[f],n);l=Kt(h.top,l),c=Ei(h.right,c),p=Ei(h.bottom,p),d=Kt(h.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Ld(t){let{width:e,height:r}=nl(t);return{width:e,height:r}}function kd(t,e,r){let i=Bt(e),n=Nt(e),o=r==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=wt(0);if((i||!o)&&((vr(e)!=="body"||Ci(n))&&(a=Ri(e)),i)){let f=Ti(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=cn(n));let c=n&&!i&&!o?al(n,a):wt(0),p=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function Ao(t){return mt(t).position==="static"}function il(t,e){if(!Bt(t)||mt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Nt(t)===r&&(r=r.ownerDocument.body),r}function ll(t,e){let r=Ne(t);if(wi(t))return r;if(!Bt(t)){let n=Xt(t);for(;n&&!Wr(n);){if(ht(n)&&!Ao(n))return n;n=Xt(n)}return r}let i=il(t,e);for(;i&&Qa(i)&&Ao(i);)i=il(i,e);return i&&Wr(i)&&Ao(i)&&!Vr(i)?r:i||el(t)||r}var Pd=async function(t){let e=this.getOffsetParent||ll,r=this.getDimensions,i=await r(t.floating);return{reference:kd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $d(t){return mt(t).direction==="rtl"}var un={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:Nt,getClippingRect:_d,getOffsetParent:ll,getElementRects:Pd,getClientRects:Ad,getDimensions:Ld,getScale:qr,isElement:ht,isRTL:$d};var cl=Xa,ul=Ya;var pl=(t,e,r)=>{let i=new Map,n=r??{},o={...un,...n.platform,_c:i};return Ga(t,e,{...n,platform:o})};function dl(t){return Dd(t)}function Oo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Dd(t){for(let e=t;e;e=Oo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oo(t);e;e=Oo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Vr(r)||e.tagName==="BODY"))return e}return null}async function fl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},pl(t,e,{strategy:i.strategy,platform:{...un,getOffsetParent:n=>un.getOffsetParent(n,dl)},middleware:[ul({crossAxis:!0}),cl({allowedPlacements:[i.placement]})]})}var ni=u(v());var Yo=u(j());var hl=u(j(),1);var Co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ml(t,e){return(0,hl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return _i(t);try{return JSON.parse(r)}catch{return _i(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Li,...e??{}})}function Id(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(!pn(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(!pn(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=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!pn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function pn(t,e){try{return Id(t,e)}catch{return!1}}function Li(t,e){return!pn(t,e)}function _i(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function dn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var gl=u(j(),1);var wo=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Li,attribute:!1,...e};(0,gl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var fn=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))}};var yr=u(j(),1);var hn=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),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var yl=u(A(),1);var mn=globalThis,Md=mn.ShadowRoot&&(mn.ShadyCSS===void 0||mn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var vl=(t,e)=>{if(Md)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=mn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var gn=class extends yl.LitElement{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 vl(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){Co(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)}};function bl(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Gr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Al,xl=Symbol("constructorPrototype"),Sl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),El=Symbol("dynamicDependenciesLoaded"),Kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Kr.eventName="exportparts-updated";var Rt=class extends gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Al]=new hn(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[Ol].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Sl]=this.constructor.name,this[xl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Sl]&&Object.setPrototypeOf(this,this[xl])}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[El]||(r[El]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Kr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Kr.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 Kr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=bl(this.shadowRoot,...o)}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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(S=>S.trim());for(let S of g)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>c.map(h=>`${f}:${h}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};Al=Ol;Gr([(0,yr.property)()],Rt.prototype,"exportpartsPrefix",void 0);Gr([ml([])],Rt.prototype,"exportpartsPrefixes",void 0);Gr([(0,yr.property)({reflect:!0})],Rt.prototype,"exportparts",void 0);Gr([(0,yr.property)()],Rt.prototype,"customStylesheet",void 0);Gr([(0,yr.property)()],Rt.prototype,"elementToFocus",void 0);Gr([(0,yr.state)()],Rt.prototype,"useAdoptedStyleSheets",void 0);function vn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ki=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),br=Symbol("internalStores"),Nd=dn(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[br].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[br].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[br].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[br].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[br].delete(a)}setupStores(){this.unsubscribeFromStores(),this[br].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Yt].set(s,a.subscribe(()=>this.updateFromStores())),this[ki].set(s,[]),vn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,p)=>{if(typeof this[p]=="function"&&(!c.store||a.name===c.store)){let d=f=>this[p](f);a.addEventListener(c.eventName,d),this[ki].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Yt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].delete(s),(a=this[ki].get(s))===null||a===void 0||a.forEach(l=>l()),this[ki].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=br,i=ki,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cl=class extends Nd(Rt){};function nt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(t){return!!t&&!!t[ee]}function gt(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wd})(t)||Array.isArray(t)||!!t[Pl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Pl])||Io(t)||Mo(t))}function xr(t,e,r){r===void 0&&(r=!1),Zr(t)===0?(r?Object.keys:Yr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Zr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Io(t)?2:Mo(t)?3:0}function Xr(t,e){return Zr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return Zr(t)===2?t.get(e):t[e]}function $l(t,e,r){var i=Zr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Dl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Io(t){return jd&&t instanceof Map}function Mo(t){return Vd&&t instanceof Set}function Zt(t){return t.o||t.t}function No(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Nl(t);delete e[ee];for(var r=Yr(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Bo(t,e){return e===void 0&&(e=!1),Fo(t)||Ft(t)||!gt(t)||(Zr(t)>1&&(t.set=t.add=t.clear=t.delete=Fd),Object.freeze(t),e&&xr(t,(function(r,i){return Bo(i,!0)}),!0)),t}function Fd(){nt(2)}function Fo(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Tt(t){var e=Do[t];return e||nt(18,t),e}function Ud(t,e){Do[t]||(Do[t]=e)}function ko(){return $i}function Ro(t,e){e&&(Tt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){Po(t),t.p.forEach(zd),t.p=null}function Po(t){t===$i&&($i=t.l)}function wl(t){return $i={p:[],l:$i,h:t,m:!0,_:0}}function zd(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function To(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Tt("ES5").S(e,t,i),i?(r[ee].P&&(yn(e),nt(4)),gt(t)&&(t=bn(e,t),e.l||xn(e,t)),e.u&&Tt("Patches").M(r[ee].t,t,e.u,e.s)):t=bn(e,r,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Ml?t:void 0}function bn(t,e,r){if(Fo(e))return e;var i=e[ee];if(!i)return xr(e,(function(a,l){return Rl(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return xn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=No(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),xr(o,(function(a,l){return Rl(t,i,n,a,l,r,s)})),xn(t,n,!1),r&&t.u&&Tt("Patches").N(i,r,t.u,t.s)}return i.o}function Rl(t,e,r,i,n,o,s){if(Ft(n)){var a=bn(t,n,o&&e&&e.i!==3&&!Xr(e.R,i)?o.concat(i):void 0);if($l(r,i,a),!Ft(a))return;t.m=!1}else s&&r.add(n);if(gt(n)&&!Fo(n)){if(!t.h.D&&t._<1)return;bn(t,n),e&&e.A.l||xn(t,n)}}function xn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Bo(e,r)}function _o(t,e){var r=t[ee];return(r?Zt(r):t)[e]}function Tl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function Lo(t){t.o||(t.o=No(t.t))}function $o(t,e,r){var i=Io(e)?Tt("MapSet").F(e,r):Mo(e)?Tt("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:ko(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Di;s&&(l=[a],c=Pi);var p=Proxy.revocable(l,c),d=p.revoke,f=p.proxy;return a.k=f,a.j=d,f})(e,r):Tt("ES5").J(e,r);return(r?r.A:ko()).p.push(i),i}function Hd(t){return Ft(t)||nt(22,t),(function e(r){if(!gt(r))return r;var i,n=r[ee],o=Zr(r);if(n){if(!n.P&&(n.i<4||!Tt("ES5").K(n)))return n.t;n.I=!0,i=_l(r,o),n.I=!1}else i=_l(r,o);return xr(i,(function(s,a){n&&Bd(n.t,s)===a||$l(i,s,e(a))})),o===3?new Set(i):i})(t)}function _l(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return No(t)}function Il(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[ee];return Di.get(c,s)},set:function(c){var p=this[ee];Di.set(p,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][ee];if(!l.P)switch(l.i){case 5:i(l)&&Jt(l);break;case 4:r(l)&&Jt(l)}}}function r(s){for(var a=s.t,l=s.k,c=Yr(l),p=c.length-1;p>=0;p--){var d=c[p];if(d!==ee){var f=a[d];if(f===void 0&&!Xr(a,d))return!0;var h=l[d],m=h&&h[ee];if(m?m.t!==f:!Dl(h,f))return!0}}var g=!!a[ee];return c.length!==Yr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&nt(3,JSON.stringify(Zt(s)))}var o={};Ud("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,f){if(d){for(var h=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var g=Nl(f);delete g[ee];for(var S=Yr(g),E=0;E<S.length;E++){var O=S[E];g[O]=t(O,d||!!g[O].enumerable)}return Object.create(Object.getPrototypeOf(f),g)})(l,s),p={i:l?5:4,A:a?a.A:ko(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,ee,{value:p,writable:!0}),c},S:function(s,a,l){l?Ft(a)&&a[ee].A===s&&e(s.p):(s.u&&(function c(p){if(p&&typeof p=="object"){var d=p[ee];if(d){var f=d.t,h=d.k,m=d.R,g=d.i;if(g===4)xr(h,(function($){$!==ee&&(f[$]!==void 0||Xr(f,$)?m[$]||c(h[$]):(m[$]=!0,Jt(d)))})),xr(f,(function($){h[$]!==void 0||Xr(h,$)||(m[$]=!1,Jt(d))}));else if(g===5){if(i(d)&&(Jt(d),m.length=!0),h.length<f.length)for(var S=h.length;S<f.length;S++)m[S]=!1;else for(var E=f.length;E<h.length;E++)m[E]=!0;for(var O=Math.min(h.length,f.length),_=0;_<O;_++)h.hasOwnProperty(_)||(m[_]=!0),m[_]===void 0&&c(h[_])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ll,$i,Uo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jd=typeof Map<"u",Vd=typeof Set<"u",kl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ml=Uo?Symbol.for("immer-nothing"):((Ll={})["immer-nothing"]=!0,Ll),Pl=Uo?Symbol.for("immer-draftable"):"__$immer_draftable",ee=Uo?Symbol.for("immer-state"):"__$immer_state";var Wd=""+Object.prototype.constructor,Yr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(t){var e={};return Yr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Do={},Di={get:function(t,e){if(e===ee)return t;var r=Zt(t);if(!Xr(r,e))return(function(n,o,s){var a,l=Tl(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!gt(i)?i:i===_o(t.t,e)?(Lo(t),t.o[e]=$o(t.A.h,i,t)):i},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,r){var i=Tl(Zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=_o(Zt(t),e),o=n?.[ee];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dl(r,n)&&(r!==void 0||Xr(t.t,e)))return!0;Lo(t),Jt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return _o(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Lo(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){nt(12)}},Pi={};xr(Di,(function(t,e){Pi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Pi.deleteProperty=function(t,e){return Pi.set.call(this,t,e,void 0)},Pi.set=function(t,e,r){return Di.set.call(this,t[0],e,r,t[0])};var qd=(function(){function t(r){var i=this;this.O=kl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var S=this;g===void 0&&(g=a);for(var E=arguments.length,O=Array(E>1?E-1:0),_=1;_<E;_++)O[_-1]=arguments[_];return l.produce(g,(function($){var me;return(me=o).call.apply(me,[S,$].concat(O))}))}}var c;if(typeof o!="function"&&nt(6),s!==void 0&&typeof s!="function"&&nt(7),gt(n)){var p=wl(i),d=$o(i,n,void 0),f=!0;try{c=o(d),f=!1}finally{f?yn(p):Po(p)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return Ro(p,s),To(g,p)}),(function(g){throw yn(p),g})):(Ro(p,s),To(c,p))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Ml&&(c=void 0),i.D&&Bo(c,!0),s){var h=[],m=[];Tt("Patches").M(n,c,h,m),s(h,m)}return c}nt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),f=1;f<p;f++)d[f-1]=arguments[f];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,p){s=c,a=p}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){gt(r)||nt(8),Ft(r)&&(r=Hd(r));var i=wl(this),n=$o(this,r,void 0);return n[ee].C=!0,Po(i),n},e.finishDraft=function(r,i){var n=r&&r[ee],o=n.A;return Ro(o,i),To(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!kl&&nt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=Tt("Patches").$;return Ft(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),qe=new qd,Kd=qe.produce,Hm=qe.produceWithPatches.bind(qe),jm=qe.setAutoFreeze.bind(qe),Vm=qe.setUseProxies.bind(qe),Wm=qe.applyPatches.bind(qe),qm=qe.createDraft.bind(qe),Km=qe.finishDraft.bind(qe),Sn=Kd;function Sr(t){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(t)}function Bl(t,e){if(Sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Sr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fl(t){var e=Bl(t,"string");return Sr(e)=="symbol"?e:e+""}function Ul(t,e,r){return(e=Fl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function zo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zl(Object(r),!0).forEach(function(i){Ul(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Te(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 Hl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ho=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+Ho(),REPLACE:"@@redux/REPLACE"+Ho(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ho()}};function Gd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function jo(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Te(1));return r(jo)(t,e)}if(typeof t!="function")throw new Error(Te(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function p(){if(l)throw new Error(Te(3));return o}function d(g){if(typeof g!="function")throw new Error(Te(4));if(l)throw new Error(Te(5));var S=!0;return c(),a.push(g),function(){if(S){if(l)throw new Error(Te(6));S=!1,c();var O=a.indexOf(g);a.splice(O,1),s=null}}}function f(g){if(!Gd(g))throw new Error(Te(7));if(typeof g.type>"u")throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var S=s=a,E=0;E<S.length;E++){var O=S[E];O()}return g}function h(g){if(typeof g!="function")throw new Error(Te(10));n=g,f({type:En.REPLACE})}function m(){var g,S=d;return g={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Te(11));function _(){O.next&&O.next(p())}_();var $=S(_);return{unsubscribe:$}}},g[Hl]=function(){return this},g}return f({type:En.INIT}),i={dispatch:f,subscribe:d,getState:p,replaceReducer:h},i[Hl]=m,i}function Xd(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:En.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof r(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function jl(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{Xd(r)}catch(l){a=l}return function(c,p){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var f=!1,h={},m=0;m<o.length;m++){var g=o[m],S=r[g],E=c[g],O=S(E,p);if(typeof O>"u"){var _=p&&p.type;throw new Error(Te(14))}h[g]=O,f=f||O!==E}return f=f||o.length!==Object.keys(c).length,f?h:c}}function Jr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Vl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=Jr.apply(void 0,a)(n.dispatch),zo(zo({},n),{},{dispatch:o})}}}function Wl(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var ql=Wl();ql.withExtraArgument=Wl;var Vo=ql;var Zl=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),Yd=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return l([c,p])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(p){c=[6,p],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Qr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Zd=Object.defineProperty,Jd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Gl=function(t,e,r){return e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Qt=function(t,e){for(var r in e||(e={}))ef.call(e,r)&&Gl(t,r,e[r]);if(Kl)for(var i=0,n=Kl(e);i<n.length;i++){var r=n[i];tf.call(e,r)&&Gl(t,r,e[r])}return t},Wo=function(t,e){return Jd(t,Qd(e))},rf=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jr:Jr.apply(null,arguments)},pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function of(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function er(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Qt(Qt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var sf=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Qr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Qr([void 0],r.concat(this))))},e})(Array),af=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Qr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Qr([void 0],r.concat(this))))},e})(Array);function Go(t){return gt(t)?Sn(t,function(){}):t}function lf(t){return typeof t=="boolean"}function cf(){return function(e){return uf(e)}}function uf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new sf;if(r&&(lf(r)?c.push(Vo):c.push(Vo.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var d;if(l)var f}return c}var qo=!0;function Jl(t){var e=cf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,p=c===void 0?void 0:c,d=r.enhancers,f=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(of(n))h=jl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!qo&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qo&&m.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Vl.apply(void 0,m),S=Jr;l&&(S=nf(Qt({trace:!qo},typeof l=="object"&&l)));var E=new af(g),O=E;Array.isArray(f)?O=Qr([g],f):typeof f=="function"&&(O=f(E));var _=S.apply(void 0,O);return jo(h,p,_)}function Ql(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function pf(t){return typeof t=="function"}function df(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ql(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if(pf(t))l=function(){return Go(t())};else{var c=Go(t);l=function(){return c}}function p(d,f){d===void 0&&(d=l());var h=Qr([o[f.type]],s.filter(function(m){var g=m.matcher;return g(f)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Ft(m)){var S=m,E=g(S,f);return E===void 0?m:E}else{if(gt(m))return Sn(m,function(O){return g(O,f)});var E=g(m,f);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},d)}return p.getInitialState=l,p}function ff(t,e){return t+"/"+e}function ec(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Go(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(p){var d=i[p],f=ff(e,p),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[p]=h,s[f]=h,a[p]=m?er(f,m):er(f)});function l(){var p=typeof t.extraReducers=="function"?Ql(t.extraReducers):[t.extraReducers],d=p[0],f=d===void 0?{}:d,h=p[1],m=h===void 0?[]:h,g=p[2],S=g===void 0?void 0:g,E=Qt(Qt({},f),s);return df(r,function(O){for(var _ in E)O.addCase(_,E[_]);for(var $=0,me=m;$<me.length;$++){var le=me[$];O.addMatcher(le.matcher,le.reducer)}S&&O.addDefaultCase(S)})}var c;return{name:e,reducer:function(p,d){return c||(c=l()),c(p,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var hf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=hf[Math.random()*64|0];return e},gf=["name","message","stack","code"],Ko=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Xl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),vf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=gf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},mg=(function(){function t(e,r,i){var n=er(e+"/fulfilled",function(p,d,f,h){return{payload:p,meta:Wo(Qt({},h||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),o=er(e+"/pending",function(p,d,f){return{payload:void 0,meta:Wo(Qt({},f||{}),{arg:d,requestId:p,requestStatus:"pending"})}}),s=er(e+"/rejected",function(p,d,f,h,m){return{payload:h,error:(i&&i.serializeError||vf)(p||"Rejected"),meta:Wo(Qt({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p})();function c(p){return function(d,f,h){var m=i?.idGenerator?i.idGenerator(p):mf(),g=new l,S,E=!1;function O($){S=$,g.abort()}var _=(function(){return rf(this,null,function(){var $,me,le,Ht,Jn,jt,He;return Yd(this,function(et){switch(et.label){case 0:return et.trys.push([0,4,,5]),Ht=($=i?.condition)==null?void 0:$.call(i,p,{getState:f,extra:h}),bf(Ht)?[4,Ht]:[3,2];case 1:Ht=et.sent(),et.label=2;case 2:if(Ht===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Jn=new Promise(function(je,lr){return g.signal.addEventListener("abort",function(){return lr({name:"AbortError",message:S||"Aborted"})})}),d(o(m,p,(me=i?.getPendingMeta)==null?void 0:me.call(i,{requestId:m,arg:p},{getState:f,extra:h}))),[4,Promise.race([Jn,Promise.resolve(r(p,{dispatch:d,getState:f,extra:h,requestId:m,signal:g.signal,abort:O,rejectWithValue:function(je,lr){return new Ko(je,lr)},fulfillWithValue:function(je,lr){return new Xl(je,lr)}})).then(function(je){if(je instanceof Ko)throw je;return je instanceof Xl?n(je.payload,m,p,je.meta):n(je,m,p)})])];case 3:return le=et.sent(),[3,5];case 4:return jt=et.sent(),le=jt instanceof Ko?s(null,m,p,jt.payload,jt.meta):s(jt,m,p),[3,5];case 5:return He=i&&!i.dispatchConditionRejection&&s.match(le)&&le.meta.condition,He||d(le),[2,le]}})})})();return Object.assign(_,{abort:O,requestId:m,arg:p,unwrap:function(){return _.then(yf)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function yf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tc="listener",rc="completed",ic="cancelled",gg="task-"+ic,vg="task-"+rc,yg=tc+"-"+ic,bg=tc+"-"+rc;var Xo="listenerMiddleware";var xg=er(Xo+"/add"),Sg=er(Xo+"/removeAll"),Eg=er(Xo+"/remove");var Yl,Ag=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yl||(Yl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},xf=function(t){return function(e){setTimeout(e,t)}},Og=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xf(10);Il();var Sf=dn(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)}}}),An=class extends Sf(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class t extends An{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(vn(o))return o;if(n==null)return;let s=ec({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Jl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let p=_i(s.getInitialState());for(let d of c.keeping)p[d]=(l??p)[d];return p}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fn;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...p)=>{let d=c(...p.map(n));return this.reduxStore.dispatch(d),d}:p=>{this.setState({[l]:n(p)})}}}),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()}};var On=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}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 Cn=u(v()),Ef="ft-app-info",ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ei.eventName="authentication-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ii.eventName="ui-locale-changed";var Af={session:(t,e)=>{(0,Cn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>R.dispatchEvent(new ei(e.payload)),0))}},R=Cn.FtReduxStore.get({name:Ef,reducers:Af,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var oc=u(v()),wn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Jg=(0,oc.applyMixinOnce)(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(R)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>On.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return wn([(0,Yo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),wn([(0,Yo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),wn([wo({store:R.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),wn([wo({store:R.name})],e.prototype,"uiLocale",void 0),e});var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ac||(ac={}));var lc;(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"})(lc||(lc={}));var cc;(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"})(cc||(cc={}));var uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(uc||(uc={}));var pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pc||(pc={}));var dc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(dc||(dc={}));var fc;(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"})(fc||(fc={}));var hc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(hc||(hc={}));var mc;(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"})(mc||(mc={}));var gc;(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"})(gc||(gc={}));var vc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(vc||(vc={}));var yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(yc||(yc={}));var bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(bc||(bc={}));var xc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ec||(Ec={}));var Ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ac||(Ac={}));var Oc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Oc||(Oc={}));var Cc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Cc||(Cc={}));var wc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(wc||(wc={}));var Rc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var _c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_c||(_c={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Lc||(Lc={}));var kc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(kc||(kc={}));var Pc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Pc||(Pc={}));var de;(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"})(de||(de={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var $c;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})($c||($c={}));var Dc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Dc||(Dc={}));var Ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ic||(Ic={}));var Mc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Mc||(Mc={}));var Nc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Nc||(Nc={}));var Bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bc||(Bc={}));var Fc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fc||(Fc={}));var Uc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Uc||(Uc={}));var zc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(zc||(zc={}));var Hc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Hc||(Hc={}));var jc;(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"})(jc||(jc={}));var Vc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vc||(Vc={}));var Of={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN,de.BEHAVIOR_DATA_USER],[de.GENERATIVE_AI_EXPORT_USER]:[de.GENERATIVE_AI_USER]};function Wc(t,e){return t===e||(Of[t]??[]).some(r=>Wc(r,e))}function qc(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=>Wc(i,e))}var kn=u(v());var Zo=u(v());var Er=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=R.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=R.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ti=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Er.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Er.await()}};var Ke=class extends ti{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Zo.CacheRegistry,this.cache=e?n.commonCache:new Zo.CacheRegistry}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 Rn=class extends Ke{async listMySearches(){let{session:e}=R.getState();return qc(e,de.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Tn=class extends Ke{async listMyBookmarks(){let e=R.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var _n=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=R.getState().session;return!!e?.sessionAuthenticated}};var Ln=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=R.getState().session;return!!e?.sessionAuthenticated}};var Cf="ft-user-assets",wf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).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;Qo(t,r,[...Jo(t,r),n]),Kc(t,r,1,i),Gc(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Qo(t,r,Jo(t,r).map(n=>n.id===i.id?i:n)),Gc(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Qo(t,r,Jo(t,r).filter(o=>o.id!==n)),Kc(t,r,-1,i)}},Xc={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},Jo=(t,e)=>{var r;let i=Xc[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Qo=(t,e,r)=>{let i=Xc[e];i&&(t[i]=r)},Kc=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ot.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Gc=(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)},ke=kn.FtReduxStore.get({name:Cf,reducers:wf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),es=class{constructor(e=new _n,r=new Ln){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tn,this.savedSearchesService=new Rn,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=R.getState();(0,kn.deepEqual)((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(),ke.actions.clearAssetCount(),ke.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ke.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ke.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ke.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ke.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ke.getState().assetCounts.allAsset[e]!==r.count&&ke.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ke.getState().assetCounts.bookmarkByMap[e]!==r.count&&ke.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ke.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&ke.actions.clearBookmarkCountByMap(),ke.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;ke.actions.bookmarks(r)}}},Rf=new es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rf);var ts=class{addCommand(e,r=!1){R.commands.add(e,r)}consumeCommand(e){return R.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ts;var st=u(v());var Yc,ri=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Tf=Symbol("clearAfterUnitTest"),Pn=class extends(0,st.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yc]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=R.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};(0,st.deepEqual)(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 o=e.toLowerCase(),s=this.resolveContext(o);return new st.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).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 st.CanceledPromiseError)&&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 ri({loadedContexts:e})),this.dispatchEvent(new ri({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ri({loadedContexts:[e]})),this.dispatchEvent(new ri({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};Yc=Tf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,rs=window.FluidTopicsCustomI18nService;var Zc=u(v()),is=class{highlightHtml(e,r,i){(0,Zc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new is;var Jc=u(v());var ns=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=R.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Jc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:R.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ns;var Qc=u(v());var Ni=class{static get(e,r){var i,n,o,s;let a=R.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Qc.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var os=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new os;var Ut=u(v());var Ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ar.eventName="change";var ss=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))}},eu=new ss;var $n=class t extends Ut.WithEventBus{static build(){return new t(window.history,eu,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,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),(0,Ut.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ar(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!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)}addHistoryChangeListener(e){this.addEventListener(Ar.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ar.eventName,e)}currentItem(){return(0,Ut.deepCopy)(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(0,Ut.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ut.deepCopy)(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(0,Ut.deepCopy)(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,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;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,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.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)});var tu=u(A());var ru=tu.css`
610
- `;var ou=u(A()),Be=u(j()),wr=u(v());var Or=u(v());function iu(t,e){let{authenticationRequired:r,session:i}=R.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Dn=class extends ti{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var as=class t extends Or.FtStateManager{static build(e){return new t(R,e)}constructor(e,r){super(),this.store=e,this.cache=new Or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Dn,this.cleanSessionDebouncer=new Or.Debouncer,this.reloadDebouncer=new Or.Debouncer(500),this.apiProvider=r??(()=>Er.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ei.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",()=>iu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}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 Ii(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)}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)}},nu=as.build();var Cr=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 Bi=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:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Cr(e.context,s,a,!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 o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.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 xe=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},te=class extends wr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=nu,this.contextRoot=new Bi}render(){return ou.html`
608
+ `;var za=["top","right","bottom","left"],Ua=["start","end"],bo=za.reduce((t,e)=>t.concat(e,e+"-"+Ua[0],e+"-"+Ua[1]),[]),Ai=Math.min,Kt=Math.max,Oi=Math.round;var Ct=t=>({x:t,y:t}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(t,e,r){return Kt(t,Ai(e,r))}function nn(t,e){return typeof t=="function"?t(e):t}function Ci(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function xo(t){return t==="x"?"y":"x"}function So(t){return t==="y"?"height":"width"}function on(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Eo(t){return xo(on(t))}function ja(t,e,r){r===void 0&&(r=!1);let i=Gt(t),n=Eo(t),o=So(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=yo(s)),[s,yo(s)]}function Va(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function yo(t){let e=Ci(t);return hd[e]+t.slice(e.length)}function md(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 Wa(t){return typeof t!="number"?md(t):{top:t,right:t,bottom:t,left:t}}function gr(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 qa(t,e,r){let{reference:i,floating:n}=t,o=on(e),s=Eo(e),a=So(s),l=Ci(e),c=o==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:p,y:i.y-n.height};break;case"bottom":h={x:p,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=Gt(e);return m&&(h[s]+=f*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Ka(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=nn(e,t),m=Wa(h),S=a[f?d==="floating"?"reference":"floating":d],E=gr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(S)))==null||r?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),O=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),D=await(o.isElement==null?void 0:o.isElement(L))&&await(o.getScale==null?void 0:o.getScale(L))||{x:1,y:1},me=gr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:L,strategy:l}):O);return{top:(E.top-me.top+m.top)/D.y,bottom:(me.bottom-E.bottom+m.bottom)/D.y,left:(E.left-me.left+m.left)/D.x,right:(me.right-E.right+m.right)/D.x}}var gd=50,Ga=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ka},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=qa(c,i,l),f=i,h=0,m={};for(let g=0;g<o.length;g++){let S=o[g];if(!S)continue;let{name:E,fn:O}=S,{x:L,y:D,data:me,reset:le}=await O({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});p=L??p,d=D??d,m[E]={...m[E],...me},le&&h<gd&&(h++,typeof le=="object"&&(le.placement&&(f=le.placement),le.rects&&(c=le.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):le.rects),{x:p,y:d}=qa(c,f,l)),g=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:m}};function vd(t,e,r){return(t?[...r.filter(n=>Gt(n)===t),...r.filter(n=>Gt(n)!==t)]:r.filter(n=>Ci(n)===n)).filter(n=>t?Gt(n)===t||(e?Va(n)!==n:!1):!0)}var Xa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=bo,autoAlignment:h=!0,...m}=nn(t,e),g=d!==void 0||f===bo?vd(d||null,h,f):f,S=((r=s.autoPlacement)==null?void 0:r.index)||0,E=g[S];if(E==null)return{};if(a!==E)return{reset:{placement:g[0]}};let O=await l.detectOverflow(e,m),L=ja(E,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),D=[O[Ci(E)],O[L[0]],O[L[1]]],me=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:E,overflows:D}],le=g[S+1];if(le)return{data:{index:S+1,overflows:me},reset:{placement:le}};let Ht=me.map(He=>{let et=Gt(He.placement);return[He.placement,et&&p?He.overflows.slice(0,2).reduce((je,cr)=>je+cr,0):He.overflows[0],He.overflows]}).sort((He,et)=>He[1]-et[1]),jt=((n=Ht.filter(He=>He[2].slice(0,Gt(He[0])?2:3).every(et=>et<=0))[0])==null?void 0:n[0])||Ht[0][0];return jt!==a?{data:{index:S+1,overflows:me},reset:{placement:jt}}:{}}}};var Ya=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:O=>{let{x:L,y:D}=O;return{x:L,y:D}}},...c}=nn(t,e),p={x:r,y:i},d=await o.detectOverflow(e,c),f=on(n),h=xo(f),m=p[h],g=p[f],S=(O,L)=>Ha(L+d[O==="y"?"top":"left"],L,L-d[O==="y"?"bottom":"right"]);s&&(m=S(h,m)),a&&(g=S(f,g));let E=l.fn({...e,[h]:m,[f]:g});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[h]:s,[f]:a}}}}}};function an(){return typeof window<"u"}function yr(t){return Ja(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nt(t){var e;return(e=(Ja(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ja(t){return an()?t instanceof Node||t instanceof Ne(t).Node:!1}function dt(t){return an()?t instanceof Element||t instanceof Ne(t).Element:!1}function Bt(t){return an()?t instanceof HTMLElement||t instanceof Ne(t).HTMLElement:!1}function Za(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function wi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Qa(t){return/^(table|td|th)$/.test(yr(t))}function Ri(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var yd=/transform|translate|scale|rotate|perspective|filter/,bd=/paint|layout|strict|content/,vr=t=>!!t&&t!=="none",Ao;function Wr(t){let e=dt(t)?ft(t):t;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!ln()&&(vr(e.backdropFilter)||vr(e.filter))||yd.test(e.willChange||"")||bd.test(e.contain||"")}function el(t){let e=Xt(t);for(;Bt(e)&&!qr(e);){if(Wr(e))return e;if(Ri(e))return null;e=Xt(e)}return null}function ln(){return Ao==null&&(Ao=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ao}function qr(t){return/^(html|body|#document)$/.test(yr(t))}function ft(t){return Ne(t).getComputedStyle(t)}function Ti(t){return dt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Xt(t){if(yr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Za(t)&&t.host||Nt(t);return Za(e)?e.host:e}function tl(t){let e=Xt(t);return qr(e)?(t.ownerDocument||t).body:Bt(e)&&wi(e)?e:tl(e)}function sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=tl(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ne(n);if(o){let a=cn(s);return e.concat(s,s.visualViewport||[],wi(n)?n:[],a&&r?sn(a):[])}else return e.concat(n,sn(n,[],r))}function cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nl(t){let e=ft(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Oi(r)!==o||Oi(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function ol(t){return dt(t)?t:t.contextElement}function Kr(t){let e=ol(t);if(!Bt(e))return Ct(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=nl(e),s=(o?Oi(r.width):r.width)/i,a=(o?Oi(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var xd=Ct(0);function sl(t){let e=Ne(t);return!ln()||!e.visualViewport?xd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sd(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ne(t)}function _i(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=ol(t),s=Ct(1);e&&(i?dt(i)&&(s=Kr(i)):s=Kr(t));let a=Sd(o,r,i)?sl(o):Ct(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,p=n.width/s.x,d=n.height/s.y;if(o&&i){let f=Ne(o),h=dt(i)?Ne(i):i,m=f,g=cn(m);for(;g&&h!==m;){let S=Kr(g),E=g.getBoundingClientRect(),O=ft(g),L=E.left+(g.clientLeft+parseFloat(O.paddingLeft))*S.x,D=E.top+(g.clientTop+parseFloat(O.paddingTop))*S.y;l*=S.x,c*=S.y,p*=S.x,d*=S.y,l+=L,c+=D,m=Ne(g),g=cn(m)}}return gr({width:p,height:d,x:l,y:c})}function un(t,e){let r=Ti(t).scrollLeft;return e?e.left+r:_i(Nt(t)).left+r}function al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-un(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ed(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Nt(i),a=e?Ri(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ct(1),p=Ct(0),d=Bt(i);if((d||!o)&&((yr(i)!=="body"||wi(s))&&(l=Ti(i)),d)){let h=_i(i);c=Kr(i),p.x=h.x+i.clientLeft,p.y=h.y+i.clientTop}let f=s&&!d&&!o?al(s,l):Ct(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Ad(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Od(t){let e=Ti(t),r=t.ownerDocument.body,i=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+un(t),s=-e.scrollTop;return ft(r).direction==="rtl"&&(o+=Kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var Cd=25;function wd(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ne(t),o=Nt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,p=0;if(s){let f=!ln()||e==="fixed";i?f||(c=-s.offsetLeft,p=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,p=s.offsetTop))}if(un(o)<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(o.clientWidth-h.clientWidth-g),E=getComputedStyle(o).scrollbarGutter==="stable both-edges"?S/2:S;E<=Cd&&(a-=E)}return{width:a,height:l,x:c,y:p}}function Rd(t,e){let r=_i(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Kr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function rl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=wd(t,r,e);else if(e==="document")i=Od(Nt(t));else if(dt(e))i=Rd(e,r);else{let n=sl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return gr(i)}function Td(t,e){let r=e.get(t);if(r)return r;let i=sn(t,[],!1).filter(a=>dt(a)&&yr(a)!=="body"),n=null,o=ft(t).position==="fixed",s=o?Xt(t):t;for(;dt(s)&&!qr(s);){let a=ft(s),l=Wr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Xt(s)}return e.set(t,i),i}function _d(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Ri(e)?[]:Td(e,this._c):[].concat(r),i],a=rl(e,s[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<s.length;f++){let h=rl(e,s[f],n);l=Kt(h.top,l),c=Ai(h.right,c),p=Ai(h.bottom,p),d=Kt(h.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Ld(t){let{width:e,height:r}=nl(t);return{width:e,height:r}}function kd(t,e,r){let i=Bt(e),n=Nt(e),o=r==="fixed",s=_i(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ct(0);if((i||!o)&&((yr(e)!=="body"||wi(n))&&(a=Ti(e)),i)){let f=_i(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=un(n));let c=n&&!i&&!o?al(n,a):Ct(0),p=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function Oo(t){return ft(t).position==="static"}function il(t,e){if(!Bt(t)||ft(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Nt(t)===r&&(r=r.ownerDocument.body),r}function ll(t,e){let r=Ne(t);if(Ri(t))return r;if(!Bt(t)){let n=Xt(t);for(;n&&!qr(n);){if(dt(n)&&!Oo(n))return n;n=Xt(n)}return r}let i=il(t,e);for(;i&&Qa(i)&&Oo(i);)i=il(i,e);return i&&qr(i)&&Oo(i)&&!Wr(i)?r:i||el(t)||r}var Pd=async function(t){let e=this.getOffsetParent||ll,r=this.getDimensions,i=await r(t.floating);return{reference:kd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $d(t){return ft(t).direction==="rtl"}var pn={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:Nt,getClippingRect:_d,getOffsetParent:ll,getElementRects:Pd,getClientRects:Ad,getDimensions:Ld,getScale:Kr,isElement:dt,isRTL:$d};var cl=Xa,ul=Ya;var pl=(t,e,r)=>{let i=new Map,n=r??{},o={...pn,...n.platform,_c:i};return Ga(t,e,{...n,platform:o})};function dl(t){return Dd(t)}function Co(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Dd(t){for(let e=t;e;e=Co(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Co(t);e;e=Co(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wr(r)||e.tagName==="BODY"))return e}return null}async function fl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},pl(t,e,{strategy:i.strategy,platform:{...pn,getOffsetParent:n=>pn.getOffsetParent(n,dl)},middleware:[ul({crossAxis:!0}),cl({allowedPlacements:[i.placement]})]})}var si=u(v());var Zo=u(j());var hl=u(j(),1);var wo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ml(t,e){return(0,hl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Li(t);try{return JSON.parse(r)}catch{return Li(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ki,...e??{}})}function Id(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(!Gr(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(!Gr(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=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Gr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Gr(t,e){try{return Id(t,e)}catch{return!1}}function ki(t,e){return!Gr(t,e)}function Li(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function dn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var gl=u(j(),1);var Ro=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:ki,attribute:!1,...e};(0,gl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var fn=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))}};var br=u(j(),1);var hn=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),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var yl=u(A(),1);var mn=globalThis,Md=mn.ShadowRoot&&(mn.ShadyCSS===void 0||mn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var vl=(t,e)=>{if(Md)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=mn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var gn=class extends yl.LitElement{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 vl(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){wo(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)}};function bl(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Yr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Al,xl=Symbol("constructorPrototype"),Sl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),El=Symbol("dynamicDependenciesLoaded"),Xr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xr.eventName="exportparts-updated";var wt=class extends gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Al]=new hn(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[Ol].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Sl]=this.constructor.name,this[xl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Sl]&&Object.setPrototypeOf(this,this[xl])}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[El]||(r[El]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xr.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 Xr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=bl(this.shadowRoot,...o)}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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(S=>S.trim());for(let S of g)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>c.map(h=>`${f}:${h}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};Al=Ol;Yr([(0,br.property)()],wt.prototype,"exportpartsPrefix",void 0);Yr([ml([])],wt.prototype,"exportpartsPrefixes",void 0);Yr([(0,br.property)({reflect:!0})],wt.prototype,"exportparts",void 0);Yr([(0,br.property)()],wt.prototype,"customStylesheet",void 0);Yr([(0,br.property)()],wt.prototype,"elementToFocus",void 0);Yr([(0,br.state)()],wt.prototype,"useAdoptedStyleSheets",void 0);function vn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),xr=Symbol("internalStores"),Nd=dn(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[xr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[xr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xr].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Yt].set(s,a.subscribe(()=>this.updateFromStores())),this[Pi].set(s,[]),vn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,p)=>{if(typeof this[p]=="function"&&(!c.store||a.name===c.store)){let d=f=>this[p](f);a.addEventListener(c.eventName,d),this[Pi].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Yt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].delete(s),(a=this[Pi].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=xr,i=Pi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cl=class extends Nd(wt){};function nt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(t){return!!t&&!!t[te]}function ht(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wd})(t)||Array.isArray(t)||!!t[Pl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Pl])||Mo(t)||No(t))}function Sr(t,e,r){r===void 0&&(r=!1),Qr(t)===0?(r?Object.keys:Jr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Qr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mo(t)?2:No(t)?3:0}function Zr(t,e){return Qr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return Qr(t)===2?t.get(e):t[e]}function $l(t,e,r){var i=Qr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Dl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Mo(t){return jd&&t instanceof Map}function No(t){return Vd&&t instanceof Set}function Zt(t){return t.o||t.t}function Bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Nl(t);delete e[te];for(var r=Jr(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Fo(t,e){return e===void 0&&(e=!1),Uo(t)||Ft(t)||!ht(t)||(Qr(t)>1&&(t.set=t.add=t.clear=t.delete=Fd),Object.freeze(t),e&&Sr(t,(function(r,i){return Fo(i,!0)}),!0)),t}function Fd(){nt(2)}function Uo(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Rt(t){var e=Io[t];return e||nt(18,t),e}function Ud(t,e){Io[t]||(Io[t]=e)}function Po(){return Di}function To(t,e){e&&(Rt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){$o(t),t.p.forEach(zd),t.p=null}function $o(t){t===Di&&(Di=t.l)}function wl(t){return Di={p:[],l:Di,h:t,m:!0,_:0}}function zd(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function _o(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Rt("ES5").S(e,t,i),i?(r[te].P&&(yn(e),nt(4)),ht(t)&&(t=bn(e,t),e.l||xn(e,t)),e.u&&Rt("Patches").M(r[te].t,t,e.u,e.s)):t=bn(e,r,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Ml?t:void 0}function bn(t,e,r){if(Uo(e))return e;var i=e[te];if(!i)return Sr(e,(function(a,l){return Rl(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return xn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Bo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),Sr(o,(function(a,l){return Rl(t,i,n,a,l,r,s)})),xn(t,n,!1),r&&t.u&&Rt("Patches").N(i,r,t.u,t.s)}return i.o}function Rl(t,e,r,i,n,o,s){if(Ft(n)){var a=bn(t,n,o&&e&&e.i!==3&&!Zr(e.R,i)?o.concat(i):void 0);if($l(r,i,a),!Ft(a))return;t.m=!1}else s&&r.add(n);if(ht(n)&&!Uo(n)){if(!t.h.D&&t._<1)return;bn(t,n),e&&e.A.l||xn(t,n)}}function xn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Fo(e,r)}function Lo(t,e){var r=t[te];return(r?Zt(r):t)[e]}function Tl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function ko(t){t.o||(t.o=Bo(t.t))}function Do(t,e,r){var i=Mo(e)?Rt("MapSet").F(e,r):No(e)?Rt("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:Po(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Ii;s&&(l=[a],c=$i);var p=Proxy.revocable(l,c),d=p.revoke,f=p.proxy;return a.k=f,a.j=d,f})(e,r):Rt("ES5").J(e,r);return(r?r.A:Po()).p.push(i),i}function Hd(t){return Ft(t)||nt(22,t),(function e(r){if(!ht(r))return r;var i,n=r[te],o=Qr(r);if(n){if(!n.P&&(n.i<4||!Rt("ES5").K(n)))return n.t;n.I=!0,i=_l(r,o),n.I=!1}else i=_l(r,o);return Sr(i,(function(s,a){n&&Bd(n.t,s)===a||$l(i,s,e(a))})),o===3?new Set(i):i})(t)}function _l(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Bo(t)}function Il(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[te];return Ii.get(c,s)},set:function(c){var p=this[te];Ii.set(p,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][te];if(!l.P)switch(l.i){case 5:i(l)&&Jt(l);break;case 4:r(l)&&Jt(l)}}}function r(s){for(var a=s.t,l=s.k,c=Jr(l),p=c.length-1;p>=0;p--){var d=c[p];if(d!==te){var f=a[d];if(f===void 0&&!Zr(a,d))return!0;var h=l[d],m=h&&h[te];if(m?m.t!==f:!Dl(h,f))return!0}}var g=!!a[te];return c.length!==Jr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&nt(3,JSON.stringify(Zt(s)))}var o={};Ud("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,f){if(d){for(var h=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var g=Nl(f);delete g[te];for(var S=Jr(g),E=0;E<S.length;E++){var O=S[E];g[O]=t(O,d||!!g[O].enumerable)}return Object.create(Object.getPrototypeOf(f),g)})(l,s),p={i:l?5:4,A:a?a.A:Po(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,te,{value:p,writable:!0}),c},S:function(s,a,l){l?Ft(a)&&a[te].A===s&&e(s.p):(s.u&&(function c(p){if(p&&typeof p=="object"){var d=p[te];if(d){var f=d.t,h=d.k,m=d.R,g=d.i;if(g===4)Sr(h,(function(D){D!==te&&(f[D]!==void 0||Zr(f,D)?m[D]||c(h[D]):(m[D]=!0,Jt(d)))})),Sr(f,(function(D){h[D]!==void 0||Zr(h,D)||(m[D]=!1,Jt(d))}));else if(g===5){if(i(d)&&(Jt(d),m.length=!0),h.length<f.length)for(var S=h.length;S<f.length;S++)m[S]=!1;else for(var E=f.length;E<h.length;E++)m[E]=!0;for(var O=Math.min(h.length,f.length),L=0;L<O;L++)h.hasOwnProperty(L)||(m[L]=!0),m[L]===void 0&&c(h[L])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ll,Di,zo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jd=typeof Map<"u",Vd=typeof Set<"u",kl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ml=zo?Symbol.for("immer-nothing"):((Ll={})["immer-nothing"]=!0,Ll),Pl=zo?Symbol.for("immer-draftable"):"__$immer_draftable",te=zo?Symbol.for("immer-state"):"__$immer_state";var Wd=""+Object.prototype.constructor,Jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(t){var e={};return Jr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Io={},Ii={get:function(t,e){if(e===te)return t;var r=Zt(t);if(!Zr(r,e))return(function(n,o,s){var a,l=Tl(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!ht(i)?i:i===Lo(t.t,e)?(ko(t),t.o[e]=Do(t.A.h,i,t)):i},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,r){var i=Tl(Zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Lo(Zt(t),e),o=n?.[te];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dl(r,n)&&(r!==void 0||Zr(t.t,e)))return!0;ko(t),Jt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Lo(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ko(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){nt(12)}},$i={};Sr(Ii,(function(t,e){$i[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)},$i.set=function(t,e,r){return Ii.set.call(this,t[0],e,r,t[0])};var qd=(function(){function t(r){var i=this;this.O=kl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var S=this;g===void 0&&(g=a);for(var E=arguments.length,O=Array(E>1?E-1:0),L=1;L<E;L++)O[L-1]=arguments[L];return l.produce(g,(function(D){var me;return(me=o).call.apply(me,[S,D].concat(O))}))}}var c;if(typeof o!="function"&&nt(6),s!==void 0&&typeof s!="function"&&nt(7),ht(n)){var p=wl(i),d=Do(i,n,void 0),f=!0;try{c=o(d),f=!1}finally{f?yn(p):$o(p)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return To(p,s),_o(g,p)}),(function(g){throw yn(p),g})):(To(p,s),_o(c,p))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Ml&&(c=void 0),i.D&&Fo(c,!0),s){var h=[],m=[];Rt("Patches").M(n,c,h,m),s(h,m)}return c}nt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),f=1;f<p;f++)d[f-1]=arguments[f];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,p){s=c,a=p}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ht(r)||nt(8),Ft(r)&&(r=Hd(r));var i=wl(this),n=Do(this,r,void 0);return n[te].C=!0,$o(i),n},e.finishDraft=function(r,i){var n=r&&r[te],o=n.A;return To(o,i),_o(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!kl&&nt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=Rt("Patches").$;return Ft(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),qe=new qd,Kd=qe.produce,Hm=qe.produceWithPatches.bind(qe),jm=qe.setAutoFreeze.bind(qe),Vm=qe.setUseProxies.bind(qe),Wm=qe.applyPatches.bind(qe),qm=qe.createDraft.bind(qe),Km=qe.finishDraft.bind(qe),Sn=Kd;function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function Bl(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Er(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fl(t){var e=Bl(t,"string");return Er(e)=="symbol"?e:e+""}function Ul(t,e,r){return(e=Fl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zl(Object(r),!0).forEach(function(i){Ul(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Te(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 Hl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+jo(),REPLACE:"@@redux/REPLACE"+jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jo()}};function Gd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Vo(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Te(1));return r(Vo)(t,e)}if(typeof t!="function")throw new Error(Te(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function p(){if(l)throw new Error(Te(3));return o}function d(g){if(typeof g!="function")throw new Error(Te(4));if(l)throw new Error(Te(5));var S=!0;return c(),a.push(g),function(){if(S){if(l)throw new Error(Te(6));S=!1,c();var O=a.indexOf(g);a.splice(O,1),s=null}}}function f(g){if(!Gd(g))throw new Error(Te(7));if(typeof g.type>"u")throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var S=s=a,E=0;E<S.length;E++){var O=S[E];O()}return g}function h(g){if(typeof g!="function")throw new Error(Te(10));n=g,f({type:En.REPLACE})}function m(){var g,S=d;return g={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Te(11));function L(){O.next&&O.next(p())}L();var D=S(L);return{unsubscribe:D}}},g[Hl]=function(){return this},g}return f({type:En.INIT}),i={dispatch:f,subscribe:d,getState:p,replaceReducer:h},i[Hl]=m,i}function Xd(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:En.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof r(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function jl(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{Xd(r)}catch(l){a=l}return function(c,p){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var f=!1,h={},m=0;m<o.length;m++){var g=o[m],S=r[g],E=c[g],O=S(E,p);if(typeof O>"u"){var L=p&&p.type;throw new Error(Te(14))}h[g]=O,f=f||O!==E}return f=f||o.length!==Object.keys(c).length,f?h:c}}function ei(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Vl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=ei.apply(void 0,a)(n.dispatch),Ho(Ho({},n),{},{dispatch:o})}}}function Wl(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var ql=Wl();ql.withExtraArgument=Wl;var Wo=ql;var Zl=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),Yd=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return l([c,p])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(p){c=[6,p],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ti=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Zd=Object.defineProperty,Jd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Gl=function(t,e,r){return e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Qt=function(t,e){for(var r in e||(e={}))ef.call(e,r)&&Gl(t,r,e[r]);if(Kl)for(var i=0,n=Kl(e);i<n.length;i++){var r=n[i];tf.call(e,r)&&Gl(t,r,e[r])}return t},qo=function(t,e){return Jd(t,Qd(e))},rf=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ei:ei.apply(null,arguments)},pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function of(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function er(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Qt(Qt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var sf=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ti([void 0],r[0].concat(this)))):new(e.bind.apply(e,ti([void 0],r.concat(this))))},e})(Array),af=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ti([void 0],r[0].concat(this)))):new(e.bind.apply(e,ti([void 0],r.concat(this))))},e})(Array);function Xo(t){return ht(t)?Sn(t,function(){}):t}function lf(t){return typeof t=="boolean"}function cf(){return function(e){return uf(e)}}function uf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new sf;if(r&&(lf(r)?c.push(Wo):c.push(Wo.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var d;if(l)var f}return c}var Ko=!0;function Jl(t){var e=cf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,p=c===void 0?void 0:c,d=r.enhancers,f=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(of(n))h=jl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!Ko&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ko&&m.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Vl.apply(void 0,m),S=ei;l&&(S=nf(Qt({trace:!Ko},typeof l=="object"&&l)));var E=new af(g),O=E;Array.isArray(f)?O=ti([g],f):typeof f=="function"&&(O=f(E));var L=S.apply(void 0,O);return Vo(h,p,L)}function Ql(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function pf(t){return typeof t=="function"}function df(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ql(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if(pf(t))l=function(){return Xo(t())};else{var c=Xo(t);l=function(){return c}}function p(d,f){d===void 0&&(d=l());var h=ti([o[f.type]],s.filter(function(m){var g=m.matcher;return g(f)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Ft(m)){var S=m,E=g(S,f);return E===void 0?m:E}else{if(ht(m))return Sn(m,function(O){return g(O,f)});var E=g(m,f);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},d)}return p.getInitialState=l,p}function ff(t,e){return t+"/"+e}function ec(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Xo(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(p){var d=i[p],f=ff(e,p),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[p]=h,s[f]=h,a[p]=m?er(f,m):er(f)});function l(){var p=typeof t.extraReducers=="function"?Ql(t.extraReducers):[t.extraReducers],d=p[0],f=d===void 0?{}:d,h=p[1],m=h===void 0?[]:h,g=p[2],S=g===void 0?void 0:g,E=Qt(Qt({},f),s);return df(r,function(O){for(var L in E)O.addCase(L,E[L]);for(var D=0,me=m;D<me.length;D++){var le=me[D];O.addMatcher(le.matcher,le.reducer)}S&&O.addDefaultCase(S)})}var c;return{name:e,reducer:function(p,d){return c||(c=l()),c(p,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var hf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=hf[Math.random()*64|0];return e},gf=["name","message","stack","code"],Go=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Xl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),vf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=gf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},mg=(function(){function t(e,r,i){var n=er(e+"/fulfilled",function(p,d,f,h){return{payload:p,meta:qo(Qt({},h||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),o=er(e+"/pending",function(p,d,f){return{payload:void 0,meta:qo(Qt({},f||{}),{arg:d,requestId:p,requestStatus:"pending"})}}),s=er(e+"/rejected",function(p,d,f,h,m){return{payload:h,error:(i&&i.serializeError||vf)(p||"Rejected"),meta:qo(Qt({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p})();function c(p){return function(d,f,h){var m=i?.idGenerator?i.idGenerator(p):mf(),g=new l,S,E=!1;function O(D){S=D,g.abort()}var L=(function(){return rf(this,null,function(){var D,me,le,Ht,Qn,jt,He;return Yd(this,function(et){switch(et.label){case 0:return et.trys.push([0,4,,5]),Ht=(D=i?.condition)==null?void 0:D.call(i,p,{getState:f,extra:h}),bf(Ht)?[4,Ht]:[3,2];case 1:Ht=et.sent(),et.label=2;case 2:if(Ht===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Qn=new Promise(function(je,cr){return g.signal.addEventListener("abort",function(){return cr({name:"AbortError",message:S||"Aborted"})})}),d(o(m,p,(me=i?.getPendingMeta)==null?void 0:me.call(i,{requestId:m,arg:p},{getState:f,extra:h}))),[4,Promise.race([Qn,Promise.resolve(r(p,{dispatch:d,getState:f,extra:h,requestId:m,signal:g.signal,abort:O,rejectWithValue:function(je,cr){return new Go(je,cr)},fulfillWithValue:function(je,cr){return new Xl(je,cr)}})).then(function(je){if(je instanceof Go)throw je;return je instanceof Xl?n(je.payload,m,p,je.meta):n(je,m,p)})])];case 3:return le=et.sent(),[3,5];case 4:return jt=et.sent(),le=jt instanceof Go?s(null,m,p,jt.payload,jt.meta):s(jt,m,p),[3,5];case 5:return He=i&&!i.dispatchConditionRejection&&s.match(le)&&le.meta.condition,He||d(le),[2,le]}})})})();return Object.assign(L,{abort:O,requestId:m,arg:p,unwrap:function(){return L.then(yf)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function yf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tc="listener",rc="completed",ic="cancelled",gg="task-"+ic,vg="task-"+rc,yg=tc+"-"+ic,bg=tc+"-"+rc;var Yo="listenerMiddleware";var xg=er(Yo+"/add"),Sg=er(Yo+"/removeAll"),Eg=er(Yo+"/remove");var Yl,Ag=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yl||(Yl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},xf=function(t){return function(e){setTimeout(e,t)}},Og=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xf(10);Il();var Sf=dn(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)}}}),An=class extends Sf(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class t extends An{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(vn(o))return o;if(n==null)return;let s=ec({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Jl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let p=Li(s.getInitialState());for(let d of c.keeping)p[d]=(l??p)[d];return p}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fn;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...p)=>{let d=c(...p.map(n));return this.reduxStore.dispatch(d),d}:p=>{let d=l,f=this.getState()[d];Gr(f,p)||this.setState({[d]:n(p)})}}}),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()}};var On=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}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 Cn=u(v()),Ef="ft-app-info",ri=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ri.eventName="authentication-change";var Mi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mi.eventName="ui-locale-changed";var Af={session:(t,e)=>{(0,Cn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ri(e.payload)),0))}},T=Cn.FtReduxStore.get({name:Ef,reducers:Af,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var oc=u(v()),wn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Jg=(0,oc.applyMixinOnce)(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(T)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>On.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return wn([(0,Zo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),wn([(0,Zo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),wn([Ro({store:T.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),wn([Ro({store:T.name})],e.prototype,"uiLocale",void 0),e});var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ac||(ac={}));var lc;(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"})(lc||(lc={}));var cc;(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"})(cc||(cc={}));var uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(uc||(uc={}));var pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pc||(pc={}));var dc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(dc||(dc={}));var fc;(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"})(fc||(fc={}));var hc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(hc||(hc={}));var mc;(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"})(mc||(mc={}));var gc;(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"})(gc||(gc={}));var vc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(vc||(vc={}));var yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(yc||(yc={}));var bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(bc||(bc={}));var xc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ec||(Ec={}));var Ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ac||(Ac={}));var Oc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Oc||(Oc={}));var Cc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Cc||(Cc={}));var wc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(wc||(wc={}));var Rc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var _c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_c||(_c={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Lc||(Lc={}));var kc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(kc||(kc={}));var Pc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Pc||(Pc={}));var de;(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"})(de||(de={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var $c;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})($c||($c={}));var Dc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Dc||(Dc={}));var Ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ic||(Ic={}));var Mc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Mc||(Mc={}));var Nc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Nc||(Nc={}));var Bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bc||(Bc={}));var Fc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fc||(Fc={}));var Uc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Uc||(Uc={}));var zc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(zc||(zc={}));var Hc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Hc||(Hc={}));var jc;(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"})(jc||(jc={}));var Vc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vc||(Vc={}));var Of={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN,de.BEHAVIOR_DATA_USER],[de.GENERATIVE_AI_EXPORT_USER]:[de.GENERATIVE_AI_USER]};function Wc(t,e){return t===e||(Of[t]??[]).some(r=>Wc(r,e))}function qc(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=>Wc(i,e))}var kn=u(v());var Jo=u(v());var Ar=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=T.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=T.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ii=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ar.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ar.await()}};var Ke=class extends ii{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Jo.CacheRegistry,this.cache=e?n.commonCache:new Jo.CacheRegistry}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 Rn=class extends Ke{async listMySearches(){let{session:e}=T.getState();return qc(e,de.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Tn=class extends Ke{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var _n=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=T.getState().session;return!!e?.sessionAuthenticated}};var Ln=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=T.getState().session;return!!e?.sessionAuthenticated}};var Cf="ft-user-assets",wf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).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;es(t,r,[...Qo(t,r),n]),Kc(t,r,1,i),Gc(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;es(t,r,Qo(t,r).map(n=>n.id===i.id?i:n)),Gc(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;es(t,r,Qo(t,r).filter(o=>o.id!==n)),Kc(t,r,-1,i)}},Xc={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},Qo=(t,e)=>{var r;let i=Xc[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},es=(t,e,r)=>{let i=Xc[e];i&&(t[i]=r)},Kc=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ot.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Gc=(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)},ke=kn.FtReduxStore.get({name:Cf,reducers:wf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ts=class{constructor(e=new _n,r=new Ln){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tn,this.savedSearchesService=new Rn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,kn.deepEqual)((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(),ke.actions.clearAssetCount(),ke.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ke.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ke.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ke.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ke.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ke.getState().assetCounts.allAsset[e]!==r.count&&ke.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ke.getState().assetCounts.bookmarkByMap[e]!==r.count&&ke.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ke.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&ke.actions.clearBookmarkCountByMap(),ke.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;ke.actions.bookmarks(r)}}},Rf=new ts;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rf);var rs=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rs;var st=u(v());var Yc,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Tf=Symbol("clearAfterUnitTest"),Pn=class extends(0,st.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yc]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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};(0,st.deepEqual)(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 o=e.toLowerCase(),s=this.resolveContext(o);return new st.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).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 st.CanceledPromiseError)&&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 ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};Yc=Tf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Ni=window.FluidTopicsI18nService,is=window.FluidTopicsCustomI18nService;var Zc=u(v()),ns=class{highlightHtml(e,r,i){(0,Zc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ns;var Jc=u(v());var os=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Jc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new os;var Qc=u(v());var Bi=class{static get(e,r){var i,n,o,s;let a=T.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Qc.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var ss=class{urlToSearchRequest(e){return Bi.get().parse(e)}searchRequestToUrl(e){return Bi.get().serialize(e)}};window.FluidTopicsUrlService=new ss;var Ut=u(v());var Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Or.eventName="change";var as=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))}},eu=new as;var $n=class t extends Ut.WithEventBus{static build(){return new t(window.history,eu,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,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),(0,Ut.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Or(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!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)}addHistoryChangeListener(e){this.addEventListener(Or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Or.eventName,e)}currentItem(){return(0,Ut.deepCopy)(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(0,Ut.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ut.deepCopy)(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(0,Ut.deepCopy)(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,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;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,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.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)});var tu=u(A());var ru=tu.css`
609
+ `;var ou=u(A()),Be=u(j()),Rr=u(v());var Cr=u(v());function iu(t,e){let{authenticationRequired:r,session:i}=T.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Dn=class extends ii{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var ls=class t extends Cr.FtStateManager{static build(e){return new t(T,e)}constructor(e,r){super(),this.store=e,this.cache=new Cr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Dn,this.cleanSessionDebouncer=new Cr.Debouncer,this.reloadDebouncer=new Cr.Debouncer(500),this.apiProvider=r??(()=>Ar.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ri.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",()=>iu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}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 Mi(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)}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)}},nu=ls.build();var wr=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 Fi=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:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new wr(e.context,s,a,!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 o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.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 xe=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},re=class extends Rr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=nu,this.contextRoot=new Fi}render(){return ou.html`
611
610
  <slot></slot>
612
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mi.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())}};te.elementDefinitions={};te.styles=ru;xe([(0,Be.property)()],te.prototype,"baseUrl",void 0);xe([(0,Be.property)()],te.prototype,"tenantId",void 0);xe([(0,Be.property)()],te.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Be.property)()],te.prototype,"apiIntegrationAppVersion",void 0);xe([(0,Be.property)()],te.prototype,"uiLocale",void 0);xe([(0,wr.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);xe([(0,wr.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"editorMode",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"noCustom",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"withManualResources",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);xe([(0,Be.property)({type:Boolean})],te.prototype,"authenticationRequired",void 0);xe([(0,wr.jsonProperty)([])],te.prototype,"messageContexts",void 0);xe([(0,wr.jsonProperty)(void 0)],te.prototype,"session",void 0);var au=u(v());var su={"ft-app-context":te};(0,au.customElements)(su);var lu=u(j());var ls=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-]+$/)}},ii=new ls;var kf=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ui=Symbol("i18nAttributes"),cu=Symbol("i18nListAttributes"),uu=Symbol("i18nProperties"),In=Symbol("i18nContexts"),Fi=Symbol("i18nUnsubs"),Bn=(0,ni.applyMixinOnce)(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(o){return o??this.useCustomMessageContexts?rs:Mi}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:p,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let f=p??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(ii.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(p,d,f)=>f?.context&&f.key&&o(p,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...p})}:f;(s=this[Ui])===null||s===void 0||s.forEach((p,d)=>l[d]=c(p,d,l[d])),(a=this[cu])===null||a===void 0||a.forEach((p,d)=>{var f;return l[d]=(f=l[d])===null||f===void 0?void 0:f.map(h=>c(p,d,h))})}updateI18nProperties(o){var s;(s=this[uu])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[In].set(l,{isCustomContext:a}),this[Fi].has(l)||this[Fi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[In].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[In].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fi].forEach(o=>o()),this[Fi].clear()}}return e=In,r=Fi,kf([(0,lu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Mn=class extends Bn(ni.FtLitElement){},Nn=class extends Bn(ni.FtLitElementRedux){};var pu=u(v());var cs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ii.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Pf=new cs;var du=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:pu.hasChanged,converter:ii,...e}),r[Ui]=(n=r[Ui])!==null&&n!==void 0?n:new Map,r[Ui].set(i,t??{})};var fu=u(A());var hu=fu.css`
613
- `;var Fn=u(A()),Un=u(j()),zn=u(v());var zi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},vt=class extends Nn{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fn.nothing:Fn.html`
611
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Ni.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())}};re.elementDefinitions={};re.styles=ru;xe([(0,Be.property)()],re.prototype,"baseUrl",void 0);xe([(0,Be.property)()],re.prototype,"tenantId",void 0);xe([(0,Be.property)()],re.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Be.property)()],re.prototype,"apiIntegrationAppVersion",void 0);xe([(0,Be.property)()],re.prototype,"uiLocale",void 0);xe([(0,Rr.jsonProperty)(null)],re.prototype,"availableUiLocales",void 0);xe([(0,Rr.jsonProperty)(null)],re.prototype,"metadataConfiguration",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"editorMode",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"noCustom",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],re.prototype,"noCustomComponent",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"withManualResources",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"navigatorOnline",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"forcedOffline",void 0);xe([(0,Be.property)({type:Boolean})],re.prototype,"authenticationRequired",void 0);xe([(0,Rr.jsonProperty)([])],re.prototype,"messageContexts",void 0);xe([(0,Rr.jsonProperty)(void 0)],re.prototype,"session",void 0);var au=u(v());var su={"ft-app-context":re};(0,au.customElements)(su);var lu=u(j());var cs=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-]+$/)}},oi=new cs;var kf=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},zi=Symbol("i18nAttributes"),cu=Symbol("i18nListAttributes"),uu=Symbol("i18nProperties"),In=Symbol("i18nContexts"),Ui=Symbol("i18nUnsubs"),Bn=(0,si.applyMixinOnce)(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(o){return o??this.useCustomMessageContexts?is:Ni}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:p,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let f=p??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(oi.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(p,d,f)=>f?.context&&f.key&&o(p,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...p})}:f;(s=this[zi])===null||s===void 0||s.forEach((p,d)=>l[d]=c(p,d,l[d])),(a=this[cu])===null||a===void 0||a.forEach((p,d)=>{var f;return l[d]=(f=l[d])===null||f===void 0?void 0:f.map(h=>c(p,d,h))})}updateI18nProperties(o){var s;(s=this[uu])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[In].set(l,{isCustomContext:a}),this[Ui].has(l)||this[Ui].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[In].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[In].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ui].forEach(o=>o()),this[Ui].clear()}}return e=In,r=Ui,kf([(0,lu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Mn=class extends Bn(si.FtLitElement){},Nn=class extends Bn(si.FtLitElementRedux){};var pu=u(v());var us=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?oi.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Pf=new us;var du=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:pu.hasChanged,converter:oi,...e}),r[zi]=(n=r[zi])!==null&&n!==void 0?n:new Map,r[zi].set(i,t??{})};var fu=u(A());var hu=fu.css`
612
+ `;var Fn=u(A()),Un=u(j()),zn=u(v());var Hi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},mt=class extends Nn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fn.nothing:Fn.html`
614
613
  <span class="ft-i18n">
615
614
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
616
615
  </span>
617
- `}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:""})}};vt.elementDefinitions={};vt.styles=hu;zi([(0,zn.redux)()],vt.prototype,"editorMode",void 0);zi([(0,Un.property)()],vt.prototype,"context",void 0);zi([(0,Un.property)()],vt.prototype,"key",void 0);zi([(0,zn.jsonProperty)([])],vt.prototype,"args",void 0);zi([(0,Un.property)()],vt.prototype,"defaultMessage",void 0);var gu=u(v());var mu={"ft-i18n":vt};(0,gu.customElements)(mu);var yt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},se=class extends Mn{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 at.Debouncer,this.revealDebouncer=new at.Debouncer,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 vu.html`
616
+ `}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:""})}};mt.elementDefinitions={};mt.styles=hu;Hi([(0,zn.redux)()],mt.prototype,"editorMode",void 0);Hi([(0,Un.property)()],mt.prototype,"context",void 0);Hi([(0,Un.property)()],mt.prototype,"key",void 0);Hi([(0,zn.jsonProperty)([])],mt.prototype,"args",void 0);Hi([(0,Un.property)()],mt.prototype,"defaultMessage",void 0);var gu=u(v());var mu={"ft-i18n":mt};(0,gu.customElements)(mu);var gt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},se=class extends Mn{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 at.Debouncer,this.revealDebouncer=new at.Debouncer,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 vu.html`
618
617
  <div part="container"
619
618
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
620
619
  <slot part="slot"></slot>
@@ -629,19 +628,19 @@
629
628
  </div>
630
629
  </div>
631
630
  </div>
632
- `}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&&fl(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 ${at.designSystemVariables.transitionDuration}, left ${at.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,at.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":V};se.styles=Fa;yt([du()],se.prototype,"text",void 0);yt([(0,lt.property)({type:Boolean})],se.prototype,"manual",void 0);yt([(0,lt.property)({type:Boolean})],se.prototype,"inline",void 0);yt([(0,at.numberProperty)()],se.prototype,"delay",void 0);yt([(0,lt.property)()],se.prototype,"position",void 0);yt([(0,at.jsonProperty)([])],se.prototype,"ignoreMatchingElements",void 0);yt([(0,lt.queryAssignedNodes)()],se.prototype,"slotNodes",void 0);yt([(0,lt.query)(".ft-tooltip--container")],se.prototype,"container",void 0);yt([(0,lt.query)(".ft-tooltip")],se.prototype,"tooltip",void 0);yt([(0,lt.query)(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);yt([(0,lt.state)()],se.prototype,"visible",void 0);var bu=u(v());var yu={"ft-tooltip":se};(0,bu.customElements)(yu);var bt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(bt||(bt={}));var Hi=u(A()),tr=u(j()),Au=u(v()),Ou=u(Su());var Ge;(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;"})(Ge||(Ge={}));var y;(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;"})(y||(y={}));var us=new Map([...["abw"].map(t=>[t,y.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,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.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,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.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,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.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,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]),$f=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 Eu(t,e){var r,i,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=$f.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(n=(i=us.get(a))!==null&&i!==void 0?i:us.get(e))!==null&&n!==void 0?n:us.get(s))!==null&&o!==void 0?o:y.UNKNOWN}var Ex={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var ji=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},re=class extends Au.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Hi.nothing}render(){let e=this.variant&&Object.values(bt).includes(this.variant)?this.variant:bt.fluid_topics,r=e!==bt.material||!!this.value;return Hi.html`
631
+ `}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&&fl(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 ${at.designSystemVariables.transitionDuration}, left ${at.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,at.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":W};se.styles=Fa;gt([du()],se.prototype,"text",void 0);gt([(0,lt.property)({type:Boolean})],se.prototype,"manual",void 0);gt([(0,lt.property)({type:Boolean})],se.prototype,"inline",void 0);gt([(0,at.numberProperty)()],se.prototype,"delay",void 0);gt([(0,lt.property)()],se.prototype,"position",void 0);gt([(0,at.jsonProperty)([])],se.prototype,"ignoreMatchingElements",void 0);gt([(0,lt.queryAssignedNodes)()],se.prototype,"slotNodes",void 0);gt([(0,lt.query)(".ft-tooltip--container")],se.prototype,"container",void 0);gt([(0,lt.query)(".ft-tooltip")],se.prototype,"tooltip",void 0);gt([(0,lt.query)(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);gt([(0,lt.state)()],se.prototype,"visible",void 0);var bu=u(v());var yu={"ft-tooltip":se};(0,bu.customElements)(yu);var vt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(vt||(vt={}));var ji=u(A()),tr=u(j()),Au=u(v()),Ou=u(Su());var Ge;(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;"})(Ge||(Ge={}));var y;(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;"})(y||(y={}));var ps=new Map([...["abw"].map(t=>[t,y.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,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.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,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.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,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.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,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]),$f=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 Eu(t,e){var r,i,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=$f.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(n=(i=ps.get(a))!==null&&i!==void 0?i:ps.get(e))!==null&&n!==void 0?n:ps.get(s))!==null&&o!==void 0?o:y.UNKNOWN}var Ex={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var Vi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends Au.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ji.nothing}render(){let e=this.variant&&Object.values(vt).includes(this.variant)?this.variant:vt.fluid_topics,r=e!==vt.material||!!this.value;return ji.html`
633
632
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
634
633
  ${(0,Ou.unsafeHTML)(this.resolvedIcon)}
635
634
  <slot ?hidden=${r}></slot>
636
635
  </i>
637
- `}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 bt.file_format:this.resolvedIcon=(e=y[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case bt.material:this.resolvedIcon=this.value||Hi.nothing;break;default:this.resolvedIcon=(r=Ge[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.styles=wa;ji([(0,tr.property)()],re.prototype,"variant",void 0);ji([(0,tr.property)()],re.prototype,"value",void 0);ji([(0,tr.property)({reflect:!0,attribute:"aria-hidden"})],re.prototype,"ariaHidden",void 0);ji([(0,tr.state)()],re.prototype,"resolvedIcon",void 0);ji([(0,tr.query)("slot")],re.prototype,"slottedContent",void 0);var wu=u(v());var Cu={"ft-icon":re};(0,wu.customElements)(Cu);var Ru=u(A()),Tu=u(v());var Rr=class extends Tu.FtLitElement{render(){return Ru.html`
636
+ `}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 vt.file_format:this.resolvedIcon=(e=y[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case vt.material:this.resolvedIcon=this.value||ji.nothing;break;default:this.resolvedIcon=(r=Ge[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ie.elementDefinitions={};ie.styles=wa;Vi([(0,tr.property)()],ie.prototype,"variant",void 0);Vi([(0,tr.property)()],ie.prototype,"value",void 0);Vi([(0,tr.property)({reflect:!0,attribute:"aria-hidden"})],ie.prototype,"ariaHidden",void 0);Vi([(0,tr.state)()],ie.prototype,"resolvedIcon",void 0);Vi([(0,tr.query)("slot")],ie.prototype,"slottedContent",void 0);var wu=u(v());var Cu={"ft-icon":ie};(0,wu.customElements)(Cu);var Ru=u(A()),Tu=u(v());var Tr=class extends Tu.FtLitElement{render(){return Ru.html`
638
637
  <div class="ft-loader">
639
638
  <div></div>
640
639
  <div></div>
641
640
  <div></div>
642
641
  <div></div>
643
642
  </div>
644
- `}};Rr.styles=Oa;var Lu=u(v());var _u={"ft-loader":Rr};(0,Lu.customElements)(_u);var rr=u(A()),ps=u(it()),Y=u(j());var oi=t=>t??ce;var ie=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},D=class extends(0,ct.toFtFormComponent)(ct.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var 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=rr.html`
643
+ `}};Tr.styles=Oa;var Lu=u(v());var _u={"ft-loader":Tr};(0,Lu.customElements)(_u);var ir=u(A()),Hn=u(it()),V=u(j());var rr=t=>t??ce;var Z=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},R=class t extends(0,Tt.toFtFormComponent)(Tt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.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":Tt.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=ir.html`
645
644
  <ft-ripple part="ripple"
646
645
  ?disabled=${this.isDisabled()}
647
646
  ?activated=${this.activated}
@@ -649,41 +648,40 @@
649
648
  <ft-typography part="label"
650
649
  variant="${ue.button}"
651
650
  element="span"
652
- class="ft-button--label ${ct.isSafari?"ft-safari-ellipsis-fix":""}"
653
- ?hidden=${!this.hasTextContent()}>
654
- <slot @slotchange=${this.onSlotchange}></slot>
651
+ class="${(0,Hn.classMap)(n)}">
652
+ <slot></slot>
655
653
  </ft-typography>
656
654
  ${this.resolveIcon()}
657
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?rr.html`
658
- <a href="${o}"
655
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?ir.html`
656
+ <a href="${s}"
659
657
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
660
658
  part="button"
661
- class="${(0,ps.classMap)(this.buttonClasses)}"
662
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
659
+ class="${(0,Hn.classMap)(this.buttonClasses)}"
660
+ aria-label="${rr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
663
661
  ?disabled=${this.isDisabled()}>
664
- ${n}
662
+ ${o}
665
663
  </a>
666
- `:rr.html`
664
+ `:ir.html`
667
665
  <button part="button"
668
- class="${(0,ps.classMap)(this.buttonClasses)}"
669
- aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
670
- aria-haspopup="${oi(this.ariaHasPopup)}"
671
- aria-pressed="${oi(this.ariaPressed)}"
666
+ class="${(0,Hn.classMap)(this.buttonClasses)}"
667
+ aria-label="${rr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
668
+ aria-haspopup="${rr(this.ariaHasPopup)}"
669
+ aria-pressed="${rr(this.ariaPressed)}"
672
670
  ?disabled=${this.isDisabled()}>
673
- ${n}
671
+ ${o}
674
672
  </button>
675
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?rr.html`
673
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?ir.html`
676
674
  <ft-tooltip part="tooltip"
677
- text="${this.getLabel()}"
675
+ text="${this.label}"
678
676
  position="${this.tooltipPosition}">
679
677
  ${e}
680
678
  </ft-tooltip>
681
- `:e}resolveIcon(){return this.loading?rr.html`
682
- <ft-loader part="loader icon"></ft-loader> `:this.icon?rr.html`
679
+ `:e}resolveIcon(){return this.loading?ir.html`
680
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?ir.html`
683
681
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
684
- `:rr.html`
682
+ `:ir.html`
685
683
  <slot part="icon" name="icon"></slot>
686
- `}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()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};D.elementDefinitions={"ft-ripple":M,"ft-tooltip":se,"ft-icon":re,"ft-loader":Rr,"ft-typography":V};D.styles=[ct.safariEllipsisFix,La,ct.noTextSelect];ie([(0,Y.property)({type:Boolean})],D.prototype,"primary",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"outlined",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"dense",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"round",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"disabled",void 0);ie([(0,Y.property)()],D.prototype,"icon",void 0);ie([(0,Y.property)()],D.prototype,"iconVariant",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"trailingIcon",void 0);ie([(0,Y.property)()],D.prototype,"label",void 0);ie([(0,Y.property)()],D.prototype,"type",void 0);ie([(0,Y.property)()],D.prototype,"href",void 0);ie([(0,Y.property)()],D.prototype,"target",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"loading",void 0);ie([(0,Y.property)({attribute:"aria-label"})],D.prototype,"ariaLabel",void 0);ie([(0,Y.property)()],D.prototype,"ariaHasPopup",void 0);ie([(0,Y.property)({attribute:"aria-pressed"})],D.prototype,"ariaPressed",void 0);ie([(0,Y.property)()],D.prototype,"tooltipPosition",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"hideTooltip",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"forceTooltip",void 0);ie([(0,Y.property)({type:Boolean})],D.prototype,"activated",void 0);ie([(0,Y.query)(".ft-button")],D.prototype,"button",void 0);ie([(0,Y.query)(".ft-button--label slot")],D.prototype,"slottedContent",void 0);ie([(0,Y.query)("[part=tooltip]")],D.prototype,"tooltip",void 0);var Pu=u(v());var ku={"ft-button":D};(0,Pu.customElements)(ku);var Hn=u(A()),xt=u(j()),Iu=u(v()),Mu=u(it());var Se=u(v()),$u=u(A());var Xe={textColor:Se.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Se.designSystemVariables.colorOnSurfaceHigh),fontSize:Se.FtCssVariableFactory.extend("--ft-checkbox-font-size","",x.fontSize),activeColor:Se.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Se.designSystemVariables.colorPrimary),checkColor:Se.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Se.designSystemVariables.colorOnPrimary),borderColor:Se.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Se.designSystemVariables.colorOnSurfaceMedium),disabledColor:Se.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Se.designSystemVariables.colorOnSurfaceDisabled),errorColor:Se.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Se.designSystemVariables.colorError)},Du=$u.css`
684
+ `}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)}};R.elementDefinitions={"ft-ripple":M,"ft-tooltip":se,"ft-icon":ie,"ft-loader":Tr,"ft-typography":W};R.styles=[Tt.safariEllipsisFix,La,Tt.noTextSelect];R.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:R.labelsObserver.unobserve(e.target)}});Z([(0,V.property)({type:Boolean})],R.prototype,"primary",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"outlined",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"dense",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"round",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"disabled",void 0);Z([(0,V.property)()],R.prototype,"icon",void 0);Z([(0,V.property)()],R.prototype,"iconVariant",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);Z([(0,V.property)()],R.prototype,"label",void 0);Z([(0,V.property)()],R.prototype,"type",void 0);Z([(0,V.property)()],R.prototype,"href",void 0);Z([(0,V.property)()],R.prototype,"target",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"loading",void 0);Z([(0,V.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);Z([(0,V.property)()],R.prototype,"ariaHasPopup",void 0);Z([(0,V.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);Z([(0,V.property)()],R.prototype,"tooltipPosition",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);Z([(0,V.property)({type:Boolean})],R.prototype,"activated",void 0);Z([(0,V.query)(".ft-button")],R.prototype,"button",void 0);Z([(0,V.query)(".ft-button--label")],R.prototype,"labelContainer",void 0);Z([(0,V.state)()],R.prototype,"hasTextContent",void 0);Z([(0,V.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);Z([(0,V.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Pu=u(v());var ku={"ft-button":R};(0,Pu.customElements)(ku);var jn=u(A()),yt=u(j()),Iu=u(v()),Mu=u(it());var Se=u(v()),$u=u(A());var Xe={textColor:Se.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Se.designSystemVariables.colorOnSurfaceHigh),fontSize:Se.FtCssVariableFactory.extend("--ft-checkbox-font-size","",x.fontSize),activeColor:Se.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Se.designSystemVariables.colorPrimary),checkColor:Se.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Se.designSystemVariables.colorOnPrimary),borderColor:Se.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Se.designSystemVariables.colorOnSurfaceMedium),disabledColor:Se.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Se.designSystemVariables.colorOnSurfaceDisabled),errorColor:Se.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Se.designSystemVariables.colorError)},Du=$u.css`
687
685
  * {
688
686
  box-sizing: border-box;
689
687
  }
@@ -764,7 +762,7 @@
764
762
 
765
763
  .ft-checkbox.ft-checkbox--error {
766
764
  color: ${Xe.errorColor};
767
- ${(0,Se.setVariable)(W.color,Xe.errorColor)};
765
+ ${(0,Se.setVariable)(q.color,Xe.errorColor)};
768
766
 
769
767
  .ft-checkbox--box {
770
768
  border-color: ${Xe.errorColor};
@@ -776,7 +774,7 @@
776
774
  }
777
775
  }
778
776
  }
779
- `;var zt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ds=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ee=class extends Iu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Hn.html`
777
+ `;var zt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ds=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ee=class extends Iu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return jn.html`
780
778
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
781
779
  <ft-ripple part="checkbox-ripple"
782
780
  ?disabled=${this.disabled}
@@ -798,27 +796,27 @@
798
796
  @change=${this.onChange}
799
797
  >
800
798
  </div>
801
- `}render(){return Hn.html`
799
+ `}render(){return jn.html`
802
800
  <label class="${(0,Mu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
803
801
  ${this.renderBoxContainer()}
804
802
  <ft-typography variant="${ue.body2}" part="checkbox-body">
805
803
  <slot @slotchange=${this.onSlotchange}></slot>
806
804
  </ft-typography>
807
805
  </label>
808
- `}renderBoxIcon(){return Hn.html`
806
+ `}renderBoxIcon(){return jn.html`
809
807
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
810
808
  <path class="ft-checkbox--checkmark-path" fill="none"
811
809
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
812
810
  </svg>
813
- `}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 ds(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)}};Ee.elementDefinitions={"ft-ripple":M,"ft-typography":V};Ee.styles=Du;zt([(0,xt.property)()],Ee.prototype,"name",void 0);zt([(0,xt.property)()],Ee.prototype,"value",void 0);zt([(0,xt.property)({type:Boolean,reflect:!0})],Ee.prototype,"checked",void 0);zt([(0,xt.property)({type:Boolean})],Ee.prototype,"indeterminate",void 0);zt([(0,xt.property)({type:Boolean})],Ee.prototype,"disabled",void 0);zt([(0,xt.property)({type:Boolean})],Ee.prototype,"error",void 0);zt([(0,xt.query)(".ft-checkbox")],Ee.prototype,"container",void 0);zt([(0,xt.query)("ft-ripple")],Ee.prototype,"ripple",void 0);zt([(0,xt.query)("input")],Ee.prototype,"input",void 0);var Bu=u(v());var Nu={"ft-checkbox":Ee};(0,Bu.customElements)(Nu);var zu=u(A()),_t=u(j()),Hu=u(v()),ju=u(it());var Fu=u(A()),Fe=u(v());var ir={textColor:Fe.FtCssVariableFactory.extend("--ft-radio-text-color","",Fe.designSystemVariables.colorOnSurfaceHigh),fontSize:Fe.FtCssVariableFactory.extend("--ft-radio-font-size","",x.fontSize),colorPrimary:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Fe.FtCssVariableFactory.extend("--ft-radio-border-color","",Fe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Uu=Fu.css`
811
+ `}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 ds(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)}};Ee.elementDefinitions={"ft-ripple":M,"ft-typography":W};Ee.styles=Du;zt([(0,yt.property)()],Ee.prototype,"name",void 0);zt([(0,yt.property)()],Ee.prototype,"value",void 0);zt([(0,yt.property)({type:Boolean,reflect:!0})],Ee.prototype,"checked",void 0);zt([(0,yt.property)({type:Boolean})],Ee.prototype,"indeterminate",void 0);zt([(0,yt.property)({type:Boolean})],Ee.prototype,"disabled",void 0);zt([(0,yt.property)({type:Boolean})],Ee.prototype,"error",void 0);zt([(0,yt.query)(".ft-checkbox")],Ee.prototype,"container",void 0);zt([(0,yt.query)("ft-ripple")],Ee.prototype,"ripple",void 0);zt([(0,yt.query)("input")],Ee.prototype,"input",void 0);var Bu=u(v());var Nu={"ft-checkbox":Ee};(0,Bu.customElements)(Nu);var zu=u(A()),_t=u(j()),Hu=u(v()),ju=u(it());var Fu=u(A()),Fe=u(v());var nr={textColor:Fe.FtCssVariableFactory.extend("--ft-radio-text-color","",Fe.designSystemVariables.colorOnSurfaceHigh),fontSize:Fe.FtCssVariableFactory.extend("--ft-radio-font-size","",x.fontSize),colorPrimary:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Fe.FtCssVariableFactory.extend("--ft-radio-border-color","",Fe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Uu=Fu.css`
814
812
  * {
815
813
  box-sizing: border-box;
816
814
  }
817
815
 
818
816
  .ft-radio {
819
817
  box-sizing: border-box;
820
- color: ${ir.textColor};
821
- font-size: ${ir.fontSize};
818
+ color: ${nr.textColor};
819
+ font-size: ${nr.fontSize};
822
820
 
823
821
  display: inline-flex;
824
822
  align-items: center;
@@ -826,7 +824,7 @@
826
824
  }
827
825
 
828
826
  .ft-radio--disabled {
829
- color: ${ir.colorOnSurfaceDisabled};
827
+ color: ${nr.colorOnSurfaceDisabled};
830
828
  }
831
829
 
832
830
  input {
@@ -849,7 +847,7 @@
849
847
  }
850
848
 
851
849
  .ft-radio--box {
852
- border: 2px solid ${ir.borderColor};
850
+ border: 2px solid ${nr.borderColor};
853
851
  border-radius: 50%;
854
852
 
855
853
  display: flex;
@@ -862,7 +860,7 @@
862
860
 
863
861
  .ft-radio--box:after {
864
862
  content: " ";
865
- background-color: ${ir.colorPrimary};
863
+ background-color: ${nr.colorPrimary};
866
864
 
867
865
  border-radius: 50%;
868
866
 
@@ -874,7 +872,7 @@
874
872
  }
875
873
 
876
874
  .ft-radio--checked .ft-radio--box {
877
- border-color: ${ir.colorPrimary};
875
+ border-color: ${nr.colorPrimary};
878
876
  }
879
877
 
880
878
 
@@ -883,12 +881,12 @@
883
881
  }
884
882
 
885
883
  .ft-radio--disabled .ft-radio--box {
886
- border-color: ${ir.colorOnSurfaceDisabled};
884
+ border-color: ${nr.colorOnSurfaceDisabled};
887
885
  background-color: transparent;
888
886
  }
889
887
 
890
888
  .ft-radio--disabled .ft-radio--box:after {
891
- background-color: ${ir.colorOnSurfaceDisabled};
889
+ background-color: ${nr.colorOnSurfaceDisabled};
892
890
  }
893
891
 
894
892
  .ft-radio:has(:focus-visible) {
@@ -899,7 +897,7 @@
899
897
  .ft-radio ft-typography {
900
898
  padding-right: 2px;
901
899
  }
902
- `;var nr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},jn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ye=class extends Hu.FtLitElement{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 zu.html`
900
+ `;var or=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ye=class extends Hu.FtLitElement{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 zu.html`
903
901
  <div class="${(0,ju.classMap)(this.radioClasses)}"
904
902
  @click=${this.onClick}>
905
903
  <div class="ft-radio--box-container">
@@ -925,7 +923,7 @@
925
923
  </ft-typography>
926
924
  </label>
927
925
  </div>
928
- `}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 jn(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 jn(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())}};ye.elementDefinitions={"ft-ripple":M,"ft-typography":V};ye.styles=Uu;nr([(0,_t.property)()],ye.prototype,"name",void 0);nr([(0,_t.property)()],ye.prototype,"value",void 0);nr([(0,_t.property)({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0);nr([(0,_t.property)({attribute:"aria-checked",reflect:!0})],ye.prototype,"ariaChecked",void 0);nr([(0,_t.property)({type:Boolean})],ye.prototype,"disabled",void 0);nr([(0,_t.query)(".ft-radio")],ye.prototype,"container",void 0);nr([(0,_t.query)("ft-ripple")],ye.prototype,"ripple",void 0);nr([(0,_t.query)("input")],ye.prototype,"input",void 0);var qu=u(v()),or=u(j()),Ku=u(A());var Vu=u(A());var Wu=Vu.css`
926
+ `}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 Vn(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 Vn(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())}};ye.elementDefinitions={"ft-ripple":M,"ft-typography":W};ye.styles=Uu;or([(0,_t.property)()],ye.prototype,"name",void 0);or([(0,_t.property)()],ye.prototype,"value",void 0);or([(0,_t.property)({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0);or([(0,_t.property)({attribute:"aria-checked",reflect:!0})],ye.prototype,"ariaChecked",void 0);or([(0,_t.property)({type:Boolean})],ye.prototype,"disabled",void 0);or([(0,_t.query)(".ft-radio")],ye.prototype,"container",void 0);or([(0,_t.query)("ft-ripple")],ye.prototype,"ripple",void 0);or([(0,_t.query)("input")],ye.prototype,"input",void 0);var qu=u(v()),sr=u(j()),Ku=u(A());var Vu=u(A());var Wu=Vu.css`
929
927
  :host {
930
928
  display: block;
931
929
  }
@@ -933,12 +931,12 @@
933
931
  :host(:focus-visible) {
934
932
  outline: none;
935
933
  }
936
- `;var Vi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ye=class extends qu.FtLitElement{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 Ku.html`
934
+ `;var Wi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ye=class extends qu.FtLitElement{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 Ku.html`
937
935
  <slot @slotchange=${this.onSlotChange}
938
936
  @change=${this.onChange}
939
937
  @keydown=${this.onKeyDown}
940
938
  ></slot>
941
- `}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()}};Ye.elementDefinitions={};Ye.styles=Wu;Vi([(0,or.property)()],Ye.prototype,"name",void 0);Vi([(0,or.property)({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);Vi([(0,or.property)({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);Vi([(0,or.queryAssignedElements)()],Ye.prototype,"assignedElements",void 0);Vi([(0,or.state)()],Ye.prototype,"currentSelectedIndex",void 0);var Xu=u(v());var Gu={"ft-radio":ye,"ft-radio-group":Ye};(0,Xu.customElements)(Gu);var Ae=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},fs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ne=class extends(0,Ue.withAnalytics)(Bn((0,Ue.withAriaNotification)(Ue.FtLitElement)),fs){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 Ue.Debouncer(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 Ze.html`
939
+ `}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()}};Ye.elementDefinitions={};Ye.styles=Wu;Wi([(0,sr.property)()],Ye.prototype,"name",void 0);Wi([(0,sr.property)({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);Wi([(0,sr.property)({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);Wi([(0,sr.queryAssignedElements)()],Ye.prototype,"assignedElements",void 0);Wi([(0,sr.state)()],Ye.prototype,"currentSelectedIndex",void 0);var Xu=u(v());var Gu={"ft-radio":ye,"ft-radio-group":Ye};(0,Xu.customElements)(Gu);var Ae=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},fs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ne=class extends(0,Ue.withAnalytics)(Bn((0,Ue.withAriaNotification)(Ue.FtLitElement)),fs){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 Ue.Debouncer(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 Ze.html`
942
940
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
943
941
  ${this.parent==null?null:Ze.html`
944
942
  <div tabindex="0"
@@ -1006,7 +1004,7 @@
1006
1004
  @change=${r=>this.optionsChanged(r,e)}>
1007
1005
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1008
1006
  </ft-radio>
1009
- `}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)})}};ne.elementDefinitions={"ft-button":D,"ft-ripple":M,"ft-typography":V,"ft-checkbox":Ee,"ft-icon":re,"ft-radio":ye};ne.styles=Pa;Ae([(0,ve.property)({type:String})],ne.prototype,"filterId",void 0);Ae([(0,ve.property)({type:Object})],ne.prototype,"parent",void 0);Ae([(0,ve.property)({type:Array,hasChanged:Ue.hasChanged})],ne.prototype,"options",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"multivalued",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"disabled",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"hideSelectedOptions",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"displayCount",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"preventNavigation",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"filter",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"moreValuesButtonLabel",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"noValuesLabel",void 0);Ae([(0,ve.property)()],ne.prototype,"filteredOptionsNumberAriaNotification",void 0);Ae([(0,Ue.numberProperty)()],ne.prototype,"displayedValuesLimit",void 0);Ae([(0,ve.query)(".ft-filter-level--container")],ne.prototype,"container",void 0);Ae([(0,ve.state)()],ne.prototype,"radios",void 0);Ae([(0,ve.state)()],ne.prototype,"displayedPages",void 0);Ae([(0,ve.state)()],ne.prototype,"filteredOptions",void 0);var Qu=u(A()),Je=u(j()),Tr=u(v());var ep=u(it());var Zu=u(A()),St=u(v());var Pe={buttonsColor:St.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",St.designSystemVariables.colorPrimary),buttonsZIndex:St.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:St.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:St.FtCssVariableFactory.external(St.designSystemVariables.colorSurface,"Design system")},Ju=Zu.css`
1007
+ `}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)})}};ne.elementDefinitions={"ft-button":R,"ft-ripple":M,"ft-typography":W,"ft-checkbox":Ee,"ft-icon":ie,"ft-radio":ye};ne.styles=Pa;Ae([(0,ve.property)({type:String})],ne.prototype,"filterId",void 0);Ae([(0,ve.property)({type:Object})],ne.prototype,"parent",void 0);Ae([(0,ve.property)({type:Array,hasChanged:Ue.hasChanged})],ne.prototype,"options",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"multivalued",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"disabled",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"hideSelectedOptions",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"displayCount",void 0);Ae([(0,ve.property)({type:Boolean})],ne.prototype,"preventNavigation",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"filter",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"moreValuesButtonLabel",void 0);Ae([(0,ve.property)({type:String})],ne.prototype,"noValuesLabel",void 0);Ae([(0,ve.property)()],ne.prototype,"filteredOptionsNumberAriaNotification",void 0);Ae([(0,Ue.numberProperty)()],ne.prototype,"displayedValuesLimit",void 0);Ae([(0,ve.query)(".ft-filter-level--container")],ne.prototype,"container",void 0);Ae([(0,ve.state)()],ne.prototype,"radios",void 0);Ae([(0,ve.state)()],ne.prototype,"displayedPages",void 0);Ae([(0,ve.state)()],ne.prototype,"filteredOptions",void 0);var Qu=u(A()),Je=u(j()),_r=u(v());var ep=u(it());var Zu=u(A()),bt=u(v());var Pe={buttonsColor:bt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",bt.designSystemVariables.colorPrimary),buttonsZIndex:bt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:bt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:bt.FtCssVariableFactory.external(bt.designSystemVariables.colorSurface,"Design system")},Ju=Zu.css`
1010
1008
  .ft-snap-scroll {
1011
1009
  box-sizing: border-box;
1012
1010
  position: relative;
@@ -1087,8 +1085,8 @@
1087
1085
  z-index: ${Pe.buttonsZIndex};
1088
1086
  opacity: 1;
1089
1087
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1090
- ${(0,St.setVariable)(F.backgroundColor,"transparent")};
1091
- ${(0,St.setVariable)(F.color,Pe.buttonsColor)};
1088
+ ${(0,bt.setVariable)(F.backgroundColor,"transparent")};
1089
+ ${(0,bt.setVariable)(F.color,Pe.buttonsColor)};
1092
1090
  }
1093
1091
 
1094
1092
  .ft-snap-scroll--previous[hidden],
@@ -1131,7 +1129,7 @@
1131
1129
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1132
1130
  background-color: ${Pe.colorSurface};
1133
1131
  }
1134
- `;var Lt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},hs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},fe=class extends Tr.FtLitElement{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 Tr.Debouncer(200),this.updateScrollDebouncer=new Tr.Debouncer(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=(0,ep.classMap)({"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.isSafari}),r=this.controls&&this.withScroll;return Qu.html`
1132
+ `;var Lt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},hs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},fe=class extends _r.FtLitElement{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 _r.Debouncer(200),this.updateScrollDebouncer=new _r.Debouncer(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=(0,ep.classMap)({"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":_r.isSafari}),r=this.controls&&this.withScroll;return Qu.html`
1135
1133
  <div part="container" class="${e}">
1136
1134
  <ft-button
1137
1135
  class="ft-snap-scroll--previous"
@@ -1155,7 +1153,7 @@
1155
1153
  @click=${this.next}
1156
1154
  ></ft-button>
1157
1155
  </div>
1158
- `}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 hs(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)}};fe.elementDefinitions={"ft-button":D};fe.styles=Ju;Lt([(0,Je.property)({type:Boolean})],fe.prototype,"horizontal",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"hideScrollbar",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"controls",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"limitSize",void 0);Lt([(0,Je.state)()],fe.prototype,"elements",void 0);Lt([(0,Je.state)()],fe.prototype,"currentElement",void 0);Lt([(0,Je.state)()],fe.prototype,"withScroll",void 0);Lt([(0,Je.state)()],fe.prototype,"startReached",void 0);Lt([(0,Je.state)()],fe.prototype,"endReached",void 0);Lt([(0,Je.query)(".ft-snap-scroll--content")],fe.prototype,"contentSlot",void 0);var rp=u(v());var tp={"ft-snap-scroll":fe};(0,rp.customElements)(tp);var ip=u(A()),Z=u(v());var ze={colorOutline:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorSurface,"Design system"),transitionDuration:Z.FtCssVariableFactory.external(Z.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:Z.FtCssVariableFactory.external(Z.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:Z.FtCssVariableFactory.extend("--ft-filter-label-color","",Z.designSystemVariables.colorOnSurface),labelFontSize:Z.FtCssVariableFactory.extend("--ft-filter-label-font-size","",x.fontSize,"16px")},np=[Wt,Z.noTextInputDefaultClearButton,ip.css`
1156
+ `}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 hs(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)}};fe.elementDefinitions={"ft-button":R};fe.styles=Ju;Lt([(0,Je.property)({type:Boolean})],fe.prototype,"horizontal",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"hideScrollbar",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"controls",void 0);Lt([(0,Je.property)({type:Boolean})],fe.prototype,"limitSize",void 0);Lt([(0,Je.state)()],fe.prototype,"elements",void 0);Lt([(0,Je.state)()],fe.prototype,"currentElement",void 0);Lt([(0,Je.state)()],fe.prototype,"withScroll",void 0);Lt([(0,Je.state)()],fe.prototype,"startReached",void 0);Lt([(0,Je.state)()],fe.prototype,"endReached",void 0);Lt([(0,Je.query)(".ft-snap-scroll--content")],fe.prototype,"contentSlot",void 0);var rp=u(v());var tp={"ft-snap-scroll":fe};(0,rp.customElements)(tp);var ip=u(A()),J=u(v());var ze={colorOutline:J.FtCssVariableFactory.external(J.designSystemVariables.colorOutline,"Design system"),colorOnSurface:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:J.FtCssVariableFactory.external(J.designSystemVariables.colorPrimary,"Design system"),colorSurface:J.FtCssVariableFactory.external(J.designSystemVariables.colorSurface,"Design system"),transitionDuration:J.FtCssVariableFactory.external(J.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:J.FtCssVariableFactory.external(J.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:J.FtCssVariableFactory.extend("--ft-filter-label-color","",J.designSystemVariables.colorOnSurface),labelFontSize:J.FtCssVariableFactory.extend("--ft-filter-label-font-size","",x.fontSize,"16px")},np=[Wt,J.noTextInputDefaultClearButton,ip.css`
1159
1157
  :host {
1160
1158
  display: flex;
1161
1159
  max-height: 100%;
@@ -1183,7 +1181,7 @@
1183
1181
  .ft-filter--header ft-button {
1184
1182
  flex-shrink: 0;
1185
1183
  margin-left: auto;
1186
- ${(0,Z.setVariable)(F.iconSize,"18px")};
1184
+ ${(0,J.setVariable)(F.iconSize,"18px")};
1187
1185
  }
1188
1186
 
1189
1187
  .filter-label {
@@ -1197,8 +1195,8 @@
1197
1195
  word-break: break-word;
1198
1196
  color: ${ze.labelColor};
1199
1197
  font-size: ${ze.labelFontSize};
1200
- ${(0,Z.setVariable)(x.lineHeight,"22px")};
1201
- ${(0,Z.setVariable)(x.fontWeight,"bold")};
1198
+ ${(0,J.setVariable)(x.lineHeight,"22px")};
1199
+ ${(0,J.setVariable)(x.fontWeight,"bold")};
1202
1200
  }
1203
1201
 
1204
1202
  .ft-filter--filter {
@@ -1272,10 +1270,10 @@
1272
1270
  slot:not([name]) {
1273
1271
  display: none;
1274
1272
  }
1275
- `];var J=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ms=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,ae.withAnalytics)(ae.FtLitElement,fs){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 ae.Debouncer(300),this.changeDebouncer=new ae.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ae.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ae.flatDeep)(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 _r.html`
1273
+ `];var Q=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ms=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,ae.withAnalytics)(ae.FtLitElement,fs){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 ae.Debouncer(300),this.changeDebouncer=new ae.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ae.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ae.flatDeep)(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 Lr.html`
1276
1274
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1277
1275
  part="container">
1278
- ${!this.label&&!e?null:_r.html`
1276
+ ${!this.label&&!e?null:Lr.html`
1279
1277
 
1280
1278
  <div class="ft-filter--header" part="header">
1281
1279
  <div class="filter-label" id="id-group-${this.id}">
@@ -1284,7 +1282,7 @@
1284
1282
  </ft-typography>
1285
1283
  <slot name="label"></slot>
1286
1284
  </div>
1287
- ${e&&!this.hideClearButton?_r.html`
1285
+ ${e&&!this.hideClearButton?Lr.html`
1288
1286
  <ft-button icon="close"
1289
1287
  aria-label="${this.clearButtonLabel+" "+this.label}"
1290
1288
  dense
@@ -1312,8 +1310,8 @@
1312
1310
  @slotchange=${this.updateOptionsFromSlot}
1313
1311
  @option-change=${this.optionsChanged}></slot>
1314
1312
  </div>
1315
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,o,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(o=>o.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return _r.html`
1316
- ${this.raiseSelectedOptions&&r.length>0?_r.html`
1313
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,o,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(o=>o.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return Lr.html`
1314
+ ${this.raiseSelectedOptions&&r.length>0?Lr.html`
1317
1315
  <ft-filter-level
1318
1316
  filterId="${this.id}"
1319
1317
  ?multivalued=${this.multivalued}
@@ -1334,7 +1332,7 @@
1334
1332
  ${this.renderLevel(n,this.options)}
1335
1333
  ${this.displayedLevels.map(o=>e.find(s=>s.value===o)).map((o,s)=>{var a;let l=o?.value===this.slideIn||o?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=o?.subOptions)!==null&&a!==void 0?a:[],o)})}
1336
1334
  </ft-snap-scroll>
1337
- `}renderLevel(e,r,i){return _r.html`
1335
+ `}renderLevel(e,r,i){return Lr.html`
1338
1336
  <ft-filter-level
1339
1337
  class="${e}"
1340
1338
  filterId="${this.id}"
@@ -1356,9 +1354,9 @@
1356
1354
  noValuesLabel="${this.noValuesLabel}"
1357
1355
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1358
1356
  ></ft-filter-level>
1359
- `}goBack(e){this.slideOut=e.detail.value,(0,ae.waitUntil)(()=>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,(0,ae.waitUntil)(()=>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(){(0,ae.waitUntil)(()=>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(o=>o.value===e.detail.value);i.selected=!i.selected;let n=o=>{var s;o!==i&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.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;(0,ae.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new ms(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)}};z.elementDefinitions={"ft-button":D,"ft-filter-level":ne,"ft-snap-scroll":fe,"ft-typography":V};z.styles=np;J([(0,G.property)({type:String})],z.prototype,"id",void 0);J([(0,G.property)({type:String})],z.prototype,"label",void 0);J([(0,G.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);J([(0,G.property)({type:String})],z.prototype,"clearButtonLabel",void 0);J([(0,G.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);J([(0,G.property)({type:String})],z.prototype,"noValuesLabel",void 0);J([(0,ae.jsonProperty)([])],z.prototype,"options",void 0);J([(0,G.property)({type:Boolean})],z.prototype,"multivalued",void 0);J([(0,G.property)({type:Boolean})],z.prototype,"disabled",void 0);J([(0,G.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);J([(0,G.property)({type:Boolean})],z.prototype,"displayCount",void 0);J([(0,ae.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);J([(0,ae.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);J([(0,G.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);J([(0,G.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);J([(0,G.query)(".ft-filter--container")],z.prototype,"container",void 0);J([(0,G.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);J([(0,G.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);J([(0,G.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);J([(0,G.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);J([(0,G.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);J([(0,G.state)()],z.prototype,"withScroll",void 0);J([(0,G.state)()],z.prototype,"filter",void 0);J([(0,G.state)()],z.prototype,"slideIn",void 0);J([(0,G.state)()],z.prototype,"slideOut",void 0);var Vn=u(v()),Lr=u(j()),op=u(A()),si=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qe=class extends Vn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return op.html`
1357
+ `}goBack(e){this.slideOut=e.detail.value,(0,ae.waitUntil)(()=>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,(0,ae.waitUntil)(()=>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(){(0,ae.waitUntil)(()=>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(o=>o.value===e.detail.value);i.selected=!i.selected;let n=o=>{var s;o!==i&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.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;(0,ae.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new ms(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)}};z.elementDefinitions={"ft-button":R,"ft-filter-level":ne,"ft-snap-scroll":fe,"ft-typography":W};z.styles=np;Q([(0,X.property)({type:String})],z.prototype,"id",void 0);Q([(0,X.property)({type:String})],z.prototype,"label",void 0);Q([(0,X.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);Q([(0,X.property)({type:String})],z.prototype,"clearButtonLabel",void 0);Q([(0,X.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);Q([(0,X.property)({type:String})],z.prototype,"noValuesLabel",void 0);Q([(0,ae.jsonProperty)([])],z.prototype,"options",void 0);Q([(0,X.property)({type:Boolean})],z.prototype,"multivalued",void 0);Q([(0,X.property)({type:Boolean})],z.prototype,"disabled",void 0);Q([(0,X.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);Q([(0,X.property)({type:Boolean})],z.prototype,"displayCount",void 0);Q([(0,ae.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);Q([(0,ae.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);Q([(0,X.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);Q([(0,X.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);Q([(0,X.query)(".ft-filter--container")],z.prototype,"container",void 0);Q([(0,X.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);Q([(0,X.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);Q([(0,X.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);Q([(0,X.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);Q([(0,X.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);Q([(0,X.state)()],z.prototype,"withScroll",void 0);Q([(0,X.state)()],z.prototype,"filter",void 0);Q([(0,X.state)()],z.prototype,"slideIn",void 0);Q([(0,X.state)()],z.prototype,"slideOut",void 0);var Wn=u(v()),kr=u(j()),op=u(A()),ai=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qe=class extends Wn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return op.html`
1360
1358
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1361
- `}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}))}};Qe.elementDefinitions={};si([(0,Lr.property)({type:String})],Qe.prototype,"label",void 0);si([(0,Lr.property)({type:Object,converter:t=>t})],Qe.prototype,"value",void 0);si([(0,Lr.property)({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);si([(0,Lr.property)({type:Object})],Qe.prototype,"subOptions",void 0);si([(0,Vn.jsonProperty)({})],Qe.prototype,"renderOption",void 0);si([(0,Lr.query)(".ft-filter-option--slot")],Qe.prototype,"slotElement",void 0);var ap=u(v());var sp={"ft-filter":z,"ft-filter-option":Qe};(0,ap.customElements)(sp);var pp=u(A()),Wn=u(j()),dp=u(v());var lp=u(A());var cp=lp.css`
1359
+ `}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}))}};Qe.elementDefinitions={};ai([(0,kr.property)({type:String})],Qe.prototype,"label",void 0);ai([(0,kr.property)({type:Object,converter:t=>t})],Qe.prototype,"value",void 0);ai([(0,kr.property)({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);ai([(0,kr.property)({type:Object})],Qe.prototype,"subOptions",void 0);ai([(0,Wn.jsonProperty)({})],Qe.prototype,"renderOption",void 0);ai([(0,kr.query)(".ft-filter-option--slot")],Qe.prototype,"slotElement",void 0);var ap=u(v());var sp={"ft-filter":z,"ft-filter-option":Qe};(0,ap.customElements)(sp);var pp=u(A()),qn=u(j()),dp=u(v());var lp=u(A());var cp=lp.css`
1362
1360
  .ft-accordion {
1363
1361
  box-sizing: border-box;
1364
1362
  }
@@ -1366,11 +1364,11 @@
1366
1364
  <div class="ft-accordion">
1367
1365
  <slot @activated=${this.onChange}></slot>
1368
1366
  </div>
1369
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};kt.elementDefinitions={};kt.styles=cp;up([(0,Wn.property)({type:Boolean})],kt.prototype,"multi",void 0);up([(0,Wn.query)("slot")],kt.prototype,"content",void 0);var Wi=u(A()),qi=u(j()),mp=u(v());var fp=u(A()),Pr=u(v()),kr={horizontalSpacing:Pr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Pr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Pr.FtCssVariableFactory.external(Pr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Pr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},hp=fp.css`
1367
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};kt.elementDefinitions={};kt.styles=cp;up([(0,qn.property)({type:Boolean})],kt.prototype,"multi",void 0);up([(0,qn.query)("slot")],kt.prototype,"content",void 0);var qi=u(A()),Ki=u(j()),mp=u(v());var fp=u(A()),$r=u(v()),Pr={horizontalSpacing:$r.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:$r.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:$r.FtCssVariableFactory.external($r.designSystemVariables.colorOutline,"Design system"),backgroundColor:$r.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},hp=fp.css`
1370
1368
  .ft-accordion-item {
1371
1369
  display: flex;
1372
1370
  flex-direction: column;
1373
- background-color: ${kr.backgroundColor};
1371
+ background-color: ${Pr.backgroundColor};
1374
1372
  }
1375
1373
 
1376
1374
  .ft-accordion-item--toggle {
@@ -1380,8 +1378,8 @@
1380
1378
  display: flex;
1381
1379
  align-items: center;
1382
1380
  cursor: pointer;
1383
- padding: ${kr.verticalSpacing} ${kr.horizontalSpacing};
1384
- gap: calc(${kr.horizontalSpacing} / 2);
1381
+ padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
1382
+ gap: calc(${Pr.horizontalSpacing} / 2);
1385
1383
  outline: none;
1386
1384
  }
1387
1385
 
@@ -1406,13 +1404,13 @@
1406
1404
  .ft-accordion-item--active .ft-accordion-item--content {
1407
1405
  height: initial;
1408
1406
  overflow: visible;
1409
- padding: ${kr.verticalSpacing} ${kr.horizontalSpacing};
1407
+ padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
1410
1408
  }
1411
1409
 
1412
1410
  .ft-accordion-item--separator {
1413
- border-bottom: 1px solid ${kr.colorOutline};
1411
+ border-bottom: 1px solid ${Pr.colorOutline};
1414
1412
  }
1415
- `;var qn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ut=class extends mp.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Wi.html`
1413
+ `;var Kn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ct=class extends mp.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return qi.html`
1416
1414
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1417
1415
  <div class="ft-accordion-item--toggle"
1418
1416
  part="toggle"
@@ -1423,13 +1421,13 @@
1423
1421
  aria-controls="ft-accordion-item-content"
1424
1422
  aria-expanded="${this.active}">
1425
1423
  <ft-ripple part="toggle-ripple"></ft-ripple>
1426
- ${this.icon?Wi.html`
1424
+ ${this.icon?qi.html`
1427
1425
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1428
1426
  `:null}
1429
- ${this.label?Wi.html`
1427
+ ${this.label?qi.html`
1430
1428
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1431
1429
  </ft-typography>
1432
- `:Wi.html`
1430
+ `:qi.html`
1433
1431
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1434
1432
  `}
1435
1433
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1442,7 +1440,7 @@
1442
1440
  </div>
1443
1441
  <div class="ft-accordion-item--separator" part="separator"></div>
1444
1442
  </div>
1445
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};ut.elementDefinitions={"ft-ripple":M,"ft-typography":V,"ft-icon":re};ut.styles=hp;qn([(0,qi.property)()],ut.prototype,"icon",void 0);qn([(0,qi.property)()],ut.prototype,"iconVariant",void 0);qn([(0,qi.property)()],ut.prototype,"label",void 0);qn([(0,qi.property)({type:Boolean,reflect:!0})],ut.prototype,"active",void 0);var vp=u(v());var gp={"ft-accordion":kt,"ft-accordion-item":ut};(0,vp.customElements)(gp);var Kn=u(A()),Ce=u(j()),Ep=u(it()),ai=u(v());var Ki=u(A()),I=u(v());var yp=I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnSurface),Oe={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorSurface),color:yp,fontSize:I.FtCssVariableFactory.extend("--ft-chip-font-size","",ge.fontSize),fontWeight:I.FtCssVariableFactory.extend("--ft-chip-font-weight","",ge.fontWeight),iconSize:I.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:I.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:I.FtCssVariableFactory.extend("--ft-chip-ripple-color","",yp),horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:I.FtCssVariableFactory.extend("--ft-chip-border-color","",I.designSystemVariables.colorOutline),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},bp=I.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnPrimary)),gs={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorPrimary)),color:bp,rippleColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",bp)},xp={horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Sp=[I.noTextSelect,Ki.css`
1443
+ `}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":M,"ft-typography":W,"ft-icon":ie};ct.styles=hp;Kn([(0,Ki.property)()],ct.prototype,"icon",void 0);Kn([(0,Ki.property)()],ct.prototype,"iconVariant",void 0);Kn([(0,Ki.property)()],ct.prototype,"label",void 0);Kn([(0,Ki.property)({type:Boolean,reflect:!0})],ct.prototype,"active",void 0);var vp=u(v());var gp={"ft-accordion":kt,"ft-accordion-item":ct};(0,vp.customElements)(gp);var Gn=u(A()),Ce=u(j()),Ep=u(it()),li=u(v());var Gi=u(A()),I=u(v());var yp=I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnSurface),Oe={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorSurface),color:yp,fontSize:I.FtCssVariableFactory.extend("--ft-chip-font-size","",ge.fontSize),fontWeight:I.FtCssVariableFactory.extend("--ft-chip-font-weight","",ge.fontWeight),iconSize:I.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:I.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:I.FtCssVariableFactory.extend("--ft-chip-ripple-color","",yp),horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:I.FtCssVariableFactory.extend("--ft-chip-border-color","",I.designSystemVariables.colorOutline),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},bp=I.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnPrimary)),gs={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorPrimary)),color:bp,rippleColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",bp)},xp={horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Sp=[I.noTextSelect,Gi.css`
1446
1444
  :host {
1447
1445
  display: inline-block;
1448
1446
  max-width: 100%;
@@ -1469,8 +1467,8 @@
1469
1467
 
1470
1468
  border: 1px solid ${Oe.borderColor};
1471
1469
  color: ${Oe.color};
1472
- ${(0,I.setVariable)(W.color,Oe.rippleColor)};
1473
- border-radius: var(${(0,Ki.unsafeCSS)(Oe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1470
+ ${(0,I.setVariable)(q.color,Oe.rippleColor)};
1471
+ border-radius: var(${(0,Gi.unsafeCSS)(Oe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1474
1472
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1475
1473
  background-color: ${Oe.backgroundColor};
1476
1474
  line-height: var(--chip-internal-content-height);
@@ -1488,7 +1486,7 @@
1488
1486
  }
1489
1487
 
1490
1488
  .ft-chip--no-content {
1491
- --chip-internal-horizontal-padding: ${Oe.horizontalPadding.get(Ki.css`var(--chip-internal-vertical-padding)`)};
1489
+ --chip-internal-horizontal-padding: ${Oe.horizontalPadding.get(Gi.css`var(--chip-internal-vertical-padding)`)};
1492
1490
  }
1493
1491
 
1494
1492
  .ft-chip--disabled {
@@ -1502,7 +1500,7 @@
1502
1500
  border: none;
1503
1501
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1504
1502
  background-color: ${gs.backgroundColor};
1505
- ${(0,I.setVariable)(W.color,gs.rippleColor)};
1503
+ ${(0,I.setVariable)(q.color,gs.rippleColor)};
1506
1504
  color: ${gs.color};
1507
1505
  }
1508
1506
 
@@ -1582,7 +1580,7 @@
1582
1580
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1583
1581
  order: -1;
1584
1582
  }
1585
- `];var $e=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Gn=class extends CustomEvent{constructor(){super("icon-click")}},oe=class extends ai.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let 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":ai.isSafari};return Kn.html`
1583
+ `];var $e=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Xn=class extends CustomEvent{constructor(){super("icon-click")}},oe=class extends li.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let 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":li.isSafari};return Gn.html`
1586
1584
  <div class="${(0,Ep.classMap)(r)}"
1587
1585
  aria-label="${this.getLabel()}"
1588
1586
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1594,7 +1592,7 @@
1594
1592
  </ft-typography>
1595
1593
  ${this.internalIcon?this.renderIcon():null}
1596
1594
  </div>
1597
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Kn.html`
1595
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Gn.html`
1598
1596
  <ft-button round
1599
1597
  class="ft-chip--icon-button"
1600
1598
  @click=${this.onIconClick}
@@ -1605,11 +1603,11 @@
1605
1603
  part="icon-button"
1606
1604
  ?hideTooltip=${this.hideIconTooltip}
1607
1605
  ></ft-button>
1608
- `:Kn.html`
1606
+ `:Gn.html`
1609
1607
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1610
1608
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1611
1609
  </div>
1612
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Gn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Gn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ai.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};oe.elementDefinitions={"ft-ripple":M,"ft-typography":V,"ft-icon":re,"ft-button":D};oe.styles=Sp;$e([(0,Ce.property)({type:Boolean})],oe.prototype,"highlighted",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"removable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"clickable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"iconClickable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"dense",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"multiLine",void 0);$e([(0,Ce.property)()],oe.prototype,"label",void 0);$e([(0,Ce.property)()],oe.prototype,"iconLabel",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"hideIconTooltip",void 0);$e([(0,Ce.property)()],oe.prototype,"icon",void 0);$e([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);$e([(0,Ce.property)()],oe.prototype,"typographyVariant",void 0);$e([(0,Ce.query)("ft-typography slot")],oe.prototype,"slottedContent",void 0);var Op=u(v());var Ap={"ft-chip":oe};(0,Op.customElements)(Ap);var ci=u(A()),he=u(j()),Np=u(it()),Bp=u(cr());function Gi(t,e,r){return t?e(t):r?.(t)}var pt=u(v());var Xn=u(j());var Cp=u(A()),Q=u(v());var N={fontSize:Q.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Q.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Q.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Q.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Q.FtCssVariableFactory.extend("--ft-input-label-border-color","",Q.designSystemVariables.colorOutline),textColor:Q.FtCssVariableFactory.extend("--ft-input-label-text-color","",Q.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Q.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Q.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:Q.FtCssVariableFactory.extend("--ft-input-label-background-color","",Q.designSystemVariables.colorSurface),borderRadius:Q.FtCssVariableFactory.extend("--ft-input-label-border-radius","",Q.designSystemVariables.borderRadiusS),colorError:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorError,"Design system")},wp=Cp.css`
1610
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Xn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Xn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,li.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};oe.elementDefinitions={"ft-ripple":M,"ft-typography":W,"ft-icon":ie,"ft-button":R};oe.styles=Sp;$e([(0,Ce.property)({type:Boolean})],oe.prototype,"highlighted",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"removable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"clickable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"iconClickable",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"dense",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"multiLine",void 0);$e([(0,Ce.property)()],oe.prototype,"label",void 0);$e([(0,Ce.property)()],oe.prototype,"iconLabel",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"hideIconTooltip",void 0);$e([(0,Ce.property)()],oe.prototype,"icon",void 0);$e([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);$e([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);$e([(0,Ce.property)()],oe.prototype,"typographyVariant",void 0);$e([(0,Ce.query)("ft-typography slot")],oe.prototype,"slottedContent",void 0);var Op=u(v());var Ap={"ft-chip":oe};(0,Op.customElements)(Ap);var ui=u(A()),he=u(j()),Np=u(it()),Bp=u(ur());function Xi(t,e,r){return t?e(t):r?.(t)}var ut=u(v());var Yn=u(j());var Cp=u(A()),ee=u(v());var N={fontSize:ee.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ee.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ee.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ee.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ee.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ee.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ee.FtCssVariableFactory.extend("--ft-input-label-border-color","",ee.designSystemVariables.colorOutline),textColor:ee.FtCssVariableFactory.extend("--ft-input-label-text-color","",ee.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ee.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ee.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ee.FtCssVariableFactory.extend("--ft-input-label-background-color","",ee.designSystemVariables.colorSurface),borderRadius:ee.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ee.designSystemVariables.borderRadiusS),colorError:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorError,"Design system")},wp=Cp.css`
1613
1611
  .ft-input-label {
1614
1612
  position: absolute;
1615
1613
  inset: 0;
@@ -1660,8 +1658,8 @@
1660
1658
  transition: font-size 250ms, line-height 250ms, color 250ms;
1661
1659
  max-width: calc(${N.labelMaxWidth} - 2 * (${N.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1662
1660
  text-overflow: ellipsis;
1663
- ${(0,Q.setVariable)(We.fontSize,N.fontSize)};
1664
- ${(0,Q.setVariable)(We.lineHeight,N.fontSize)};
1661
+ ${(0,ee.setVariable)(We.fontSize,N.fontSize)};
1662
+ ${(0,ee.setVariable)(We.lineHeight,N.fontSize)};
1665
1663
  }
1666
1664
 
1667
1665
  .ft-input-label--in-error .ft-input-label--text {
@@ -1693,8 +1691,8 @@
1693
1691
  }
1694
1692
 
1695
1693
  .ft-input-label--raised .ft-input-label--text {
1696
- ${(0,Q.setVariable)(We.fontSize,N.raisedFontSize)};
1697
- ${(0,Q.setVariable)(We.lineHeight,N.raisedFontSize)};
1694
+ ${(0,ee.setVariable)(We.fontSize,N.raisedFontSize)};
1695
+ ${(0,ee.setVariable)(We.lineHeight,N.raisedFontSize)};
1698
1696
  }
1699
1697
 
1700
1698
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1731,16 +1729,16 @@
1731
1729
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1732
1730
  border-top: none;
1733
1731
  }
1734
- `;var vs=u(A()),ys=u(j());var Tp=u(it()),_p=u(v()),Rp=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},$r=class extends _p.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return vs.html`
1732
+ `;var vs=u(A()),ys=u(j());var Tp=u(it()),_p=u(v()),Rp=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Dr=class extends _p.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return vs.html`
1735
1733
  <div class="${(0,Tp.classMap)(this.inputLabelClasses)}">
1736
- ${Gi(this.text,()=>vs.html`
1734
+ ${Xi(this.text,()=>vs.html`
1737
1735
  <div class="ft-input-label--text ft-typography--caption">
1738
1736
  <label class="ft-input-label--floating-text">${this.text}</label>
1739
1737
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1740
1738
  </div>
1741
1739
  `)}
1742
1740
  </div>
1743
- `}};$r.elementDefinitions={};Rp([(0,ys.property)({type:String})],$r.prototype,"text",void 0);Rp([(0,ys.property)({type:Boolean})],$r.prototype,"raised",void 0);var bs=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Et=class extends $r{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}}};Et.elementDefinitions={};Et.styles=[Wt,wp];bs([(0,Xn.property)({type:Boolean})],Et.prototype,"outlined",void 0);bs([(0,Xn.property)({type:Boolean})],Et.prototype,"error",void 0);bs([(0,Xn.property)({type:Boolean})],Et.prototype,"disabled",void 0);var kp=u(v());var Lp={"ft-input-label":Et};(0,kp.customElements)(Lp);var Pp=u(A()),P=u(v());var k={labelSize:P.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:P.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:P.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:P.FtCssVariableFactory.extend("--ft-select-selected-option-color","",P.designSystemVariables.colorOnSurface),helperColor:P.FtCssVariableFactory.extend("--ft-select-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),optionsColor:P.FtCssVariableFactory.extend("--ft-select-options-color","",P.designSystemVariables.colorOnSurface),optionsZIndex:P.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:P.FtCssVariableFactory.extend("--ft-select-background-color","",P.designSystemVariables.colorSurface),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system")},$p=Pp.css`
1741
+ `}};Dr.elementDefinitions={};Rp([(0,ys.property)({type:String})],Dr.prototype,"text",void 0);Rp([(0,ys.property)({type:Boolean})],Dr.prototype,"raised",void 0);var bs=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},xt=class extends Dr{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}}};xt.elementDefinitions={};xt.styles=[Wt,wp];bs([(0,Yn.property)({type:Boolean})],xt.prototype,"outlined",void 0);bs([(0,Yn.property)({type:Boolean})],xt.prototype,"error",void 0);bs([(0,Yn.property)({type:Boolean})],xt.prototype,"disabled",void 0);var kp=u(v());var Lp={"ft-input-label":xt};(0,kp.customElements)(Lp);var Pp=u(A()),$=u(v());var P={labelSize:$.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:$.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:$.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:$.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:$.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:$.FtCssVariableFactory.extend("--ft-select-selected-option-color","",$.designSystemVariables.colorOnSurface),helperColor:$.FtCssVariableFactory.extend("--ft-select-helper-color","",$.designSystemVariables.colorOnSurfaceMedium),optionsColor:$.FtCssVariableFactory.extend("--ft-select-options-color","",$.designSystemVariables.colorOnSurface),optionsZIndex:$.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:$.FtCssVariableFactory.extend("--ft-select-background-color","",$.designSystemVariables.colorSurface),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusS,"Design system"),elevation02:$.FtCssVariableFactory.external($.designSystemVariables.elevation02,"Design system"),colorError:$.FtCssVariableFactory.external($.designSystemVariables.colorError,"Design system")},$p=Pp.css`
1744
1742
  *:focus {
1745
1743
  outline: none;
1746
1744
  }
@@ -1755,7 +1753,7 @@
1755
1753
  .ft-select--main-panel {
1756
1754
  position: relative;
1757
1755
  display: flex;
1758
- height: calc(4 * ${k.verticalSpacing} + ${k.labelSize} + ${k.selectedOptionSize});
1756
+ height: calc(4 * ${P.verticalSpacing} + ${P.labelSize} + ${P.selectedOptionSize});
1759
1757
  }
1760
1758
 
1761
1759
  .ft-select--input-panel {
@@ -1764,17 +1762,17 @@
1764
1762
  display: flex;
1765
1763
  align-items: center;
1766
1764
  overflow: hidden;
1767
- padding-left: ${k.horizontalSpacing};
1768
- padding-right: ${k.horizontalSpacing};
1765
+ padding-left: ${P.horizontalSpacing};
1766
+ padding-right: ${P.horizontalSpacing};
1769
1767
  gap: 8px;
1770
- color: ${k.selectedOptionColor};
1771
- ${(0,P.setVariable)(W.color,k.selectedOptionColor)};
1768
+ color: ${P.selectedOptionColor};
1769
+ ${(0,$.setVariable)(q.color,P.selectedOptionColor)};
1772
1770
  }
1773
1771
 
1774
1772
  .ft-select--input-panel,
1775
1773
  .ft-select--options {
1776
- ${(0,P.setVariable)(W.opacityContentOnSurfaceHover,"0.08")};
1777
- ${(0,P.setVariable)(W.opacityContentOnSurfacePressed,"0.04")};
1774
+ ${(0,$.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1775
+ ${(0,$.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1778
1776
  }
1779
1777
 
1780
1778
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1783,7 +1781,7 @@
1783
1781
 
1784
1782
  .ft-select--disabled .ft-select--input-panel,
1785
1783
  .ft-select--disabled .ft-select--options {
1786
- color: ${k.colorOnSurfaceDisabled};
1784
+ color: ${P.colorOnSurfaceDisabled};
1787
1785
  }
1788
1786
 
1789
1787
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1792,21 +1790,21 @@
1792
1790
  }
1793
1791
 
1794
1792
  ft-input-label {
1795
- ${(0,P.setVariable)(N.fontSize,k.selectedOptionSize)};
1796
- ${(0,P.setVariable)(N.raisedFontSize,k.labelSize)};
1797
- ${(0,P.setVariable)(N.verticalSpacing,k.verticalSpacing)};
1798
- ${(0,P.setVariable)(N.horizontalSpacing,k.horizontalSpacing)};
1799
- ${(0,P.setVariable)(N.backgroundColor,k.backgroundColor)};
1800
- ${(0,P.setVariable)(N.labelMaxWidth,`calc(100% - ${Le.size} - 8px)`)};
1793
+ ${(0,$.setVariable)(N.fontSize,P.selectedOptionSize)};
1794
+ ${(0,$.setVariable)(N.raisedFontSize,P.labelSize)};
1795
+ ${(0,$.setVariable)(N.verticalSpacing,P.verticalSpacing)};
1796
+ ${(0,$.setVariable)(N.horizontalSpacing,P.horizontalSpacing)};
1797
+ ${(0,$.setVariable)(N.backgroundColor,P.backgroundColor)};
1798
+ ${(0,$.setVariable)(N.labelMaxWidth,`calc(100% - ${Le.size} - 8px)`)};
1801
1799
  }
1802
1800
 
1803
1801
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1804
- color: ${k.colorPrimary};
1802
+ color: ${P.colorPrimary};
1805
1803
  }
1806
1804
 
1807
1805
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1808
- ${(0,P.setVariable)(N.borderColor,k.colorPrimary)};
1809
- ${(0,P.setVariable)(N.textColor,k.colorPrimary)};
1806
+ ${(0,$.setVariable)(N.borderColor,P.colorPrimary)};
1807
+ ${(0,$.setVariable)(N.textColor,P.colorPrimary)};
1810
1808
  }
1811
1809
 
1812
1810
  .ft-select--selected-option {
@@ -1816,12 +1814,12 @@
1816
1814
  overflow: hidden;
1817
1815
  white-space: nowrap;
1818
1816
  text-overflow: ellipsis;
1819
- ${(0,P.setVariable)(It.fontSize,k.selectedOptionSize)};
1820
- ${(0,P.setVariable)(It.lineHeight,k.selectedOptionSize)};
1817
+ ${(0,$.setVariable)(It.fontSize,P.selectedOptionSize)};
1818
+ ${(0,$.setVariable)(It.lineHeight,P.selectedOptionSize)};
1821
1819
  }
1822
1820
 
1823
1821
  .ft-select--in-error .ft-select--selected-option {
1824
- color: ${k.colorError};
1822
+ color: ${P.colorError};
1825
1823
  }
1826
1824
 
1827
1825
  ft-icon {
@@ -1831,26 +1829,26 @@
1831
1829
 
1832
1830
 
1833
1831
  .ft-select--filled .ft-select--input-panel {
1834
- border-radius: ${k.borderRadiusS} ${k.borderRadiusS} 0 0;
1832
+ border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
1835
1833
  }
1836
1834
 
1837
1835
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1838
1836
  align-self: stretch;
1839
- padding-top: calc(${k.labelSize} + 2 * ${k.verticalSpacing});
1837
+ padding-top: calc(${P.labelSize} + 2 * ${P.verticalSpacing});
1840
1838
  }
1841
1839
 
1842
1840
  .ft-select--outlined .ft-select--input-panel {
1843
- border-radius: ${k.borderRadiusS};
1841
+ border-radius: ${P.borderRadiusS};
1844
1842
  }
1845
1843
 
1846
1844
  .ft-select--options {
1847
1845
  display: none;
1848
1846
  position: absolute;
1849
1847
  top: 100%;
1850
- color: ${k.optionsColor};
1851
- background: ${k.backgroundColor};
1852
- z-index: ${k.optionsZIndex};
1853
- box-shadow: ${k.elevation02};
1848
+ color: ${P.optionsColor};
1849
+ background: ${P.backgroundColor};
1850
+ z-index: ${P.optionsZIndex};
1851
+ box-shadow: ${P.elevation02};
1854
1852
  width: max-content;
1855
1853
  }
1856
1854
 
@@ -1860,26 +1858,26 @@
1860
1858
 
1861
1859
  .ft-select--options-displayed .ft-select--options {
1862
1860
  display: block;
1863
- max-height: ${k.optionsHeight};
1861
+ max-height: ${P.optionsHeight};
1864
1862
  overflow-y: auto;
1865
1863
  }
1866
1864
 
1867
1865
  .ft-select--helper-text {
1868
- padding: 0 ${k.horizontalSpacing};
1869
- color: ${k.helperColor};
1866
+ padding: 0 ${P.horizontalSpacing};
1867
+ color: ${P.helperColor};
1870
1868
  }
1871
1869
 
1872
1870
  .ft-select--in-error .ft-select--helper-text {
1873
- color: ${k.colorError};
1871
+ color: ${P.colorError};
1874
1872
  }
1875
1873
 
1876
1874
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1877
1875
  opacity: 0;
1878
1876
  }
1879
- `;var Yn=u(v());var li=u(A()),Mp=u(it()),sr=u(j());var xs=u(v());var Dp=u(A()),Ip=Dp.css`
1877
+ `;var Zn=u(v());var ci=u(A()),Mp=u(it()),ar=u(j());var xs=u(v());var Dp=u(A()),Ip=Dp.css`
1880
1878
  .ft-select--option {
1881
- ${(0,xs.setVariable)(W.opacityContentOnSurfaceHover,"0.08")};
1882
- ${(0,xs.setVariable)(W.opacityContentOnSurfacePressed,"0.04")};
1879
+ ${(0,xs.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1880
+ ${(0,xs.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1883
1881
  }
1884
1882
 
1885
1883
  .ft-select--option > *:not(ft-ripple) {
@@ -1888,14 +1886,14 @@
1888
1886
 
1889
1887
  .ft-select--option {
1890
1888
  position: relative;
1891
- padding: 4px ${k.horizontalSpacing};
1889
+ padding: 4px ${P.horizontalSpacing};
1892
1890
  min-height: 32px;
1893
1891
  display: flex;
1894
1892
  align-items: center;
1895
1893
  }
1896
1894
 
1897
1895
  .ft-select--option:hover {
1898
- border-left: 2px ${k.colorPrimary} solid;
1896
+ border-left: 2px ${P.colorPrimary} solid;
1899
1897
  }
1900
1898
 
1901
1899
  .ft-select--option span {
@@ -1903,7 +1901,7 @@
1903
1901
  overflow: hidden;
1904
1902
  }
1905
1903
 
1906
- `;var Xi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},_e=class extends Yn.FtLitElement{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 li.html`
1904
+ `;var Yi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},_e=class extends Zn.FtLitElement{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 ci.html`
1907
1905
  <div class="${(0,Mp.classMap)(i)}"
1908
1906
  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,"")}"
1909
1907
  tabindex="0"
@@ -1913,9 +1911,9 @@
1913
1911
  <ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
1914
1912
  <slot @slotchange=${this.onSlotChange}>
1915
1913
  </slot>
1916
- ${this.isSlotEmpty?li.html`<span>${this.label}</span>`:li.html``}
1914
+ ${this.isSlotEmpty?ci.html`<span>${this.label}</span>`:ci.html``}
1917
1915
  </div>
1918
- `}onSlotChange(){this.isSlotEmpty=(0,Yn.isSlotEmptyOrWithoutContent)(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":M};_e.shadowRootOptions={...li.LitElement.shadowRootOptions,delegatesFocus:!0};_e.styles=[Ip,jr];Xi([(0,sr.property)({type:String})],_e.prototype,"label",void 0);Xi([(0,sr.property)({type:Object,converter:t=>t})],_e.prototype,"value",void 0);Xi([(0,sr.property)({type:Boolean,reflect:!0})],_e.prototype,"selected",void 0);Xi([(0,sr.query)("slot")],_e.prototype,"slotElement",void 0);Xi([(0,sr.state)()],_e.prototype,"isSlotEmpty",void 0);var we=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};var X=class t extends pt.FtLitElement{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(0,pt.last)(this.optionsList)}render(){var e,r,i,n,o;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return ci.html`
1916
+ `}onSlotChange(){this.isSlotEmpty=(0,Zn.isSlotEmptyOrWithoutContent)(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":M};_e.shadowRootOptions={...ci.LitElement.shadowRootOptions,delegatesFocus:!0};_e.styles=[Ip,Vr];Yi([(0,ar.property)({type:String})],_e.prototype,"label",void 0);Yi([(0,ar.property)({type:Object,converter:t=>t})],_e.prototype,"value",void 0);Yi([(0,ar.property)({type:Boolean,reflect:!0})],_e.prototype,"selected",void 0);Yi([(0,ar.query)("slot")],_e.prototype,"slotElement",void 0);Yi([(0,ar.state)()],_e.prototype,"isSlotEmpty",void 0);var we=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};var Y=class t extends ut.FtLitElement{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(0,ut.last)(this.optionsList)}render(){var e,r,i,n,o;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return ui.html`
1919
1917
  <div class="${(0,Np.classMap)(c)}" part="container">
1920
1918
  <div class="ft-select--main-panel" part="main-panel">
1921
1919
  <ft-input-label text="${this.label}"
@@ -1931,11 +1929,11 @@
1931
1929
  tabindex="${a?"-1":"0"}"
1932
1930
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
1933
1931
  @keydown=${this.onMainPanelKeyDown}
1934
- aria-label="${oi(this.ariaLabel)}"
1935
- aria-labelledby="${Gi(!this.ariaLabel,()=>"label")}"
1932
+ aria-label="${rr(this.ariaLabel)}"
1933
+ aria-labelledby="${Xi(!this.ariaLabel,()=>"label")}"
1936
1934
  aria-haspopup="listbox"
1937
1935
  aria-expanded="${s}"
1938
- aria-activedescendant="${oi(this.getOptionId(this.selectedOption))}"
1936
+ aria-activedescendant="${rr(this.getOptionId(this.selectedOption))}"
1939
1937
  role="combobox">
1940
1938
  <ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
1941
1939
  <slot name="input-value">
@@ -1956,22 +1954,22 @@
1956
1954
  @option-change=${this.updateOptionsFromSlot}
1957
1955
  >
1958
1956
  </slot>
1959
- ${Gi(this.isSlotEmpty,()=>(0,Bp.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
1957
+ ${Xi(this.isSlotEmpty,()=>(0,Bp.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
1960
1958
  </div>
1961
1959
  </div>
1962
1960
  <slot name="helper" part="helper">
1963
- ${this.helper?ci.html`
1961
+ ${this.helper?ui.html`
1964
1962
  <ft-typography class="ft-select--helper-text" variant="${ue.caption}">${this.helper}
1965
- </ft-typography>`:ci.nothing}
1963
+ </ft-typography>`:ui.nothing}
1966
1964
  </slot>
1967
1965
  </div>
1968
- `}renderOption(e){let r=this.selectedOption===e;return ci.html`
1966
+ `}renderOption(e){let r=this.selectedOption===e;return ui.html`
1969
1967
  <ft-select-option
1970
1968
  ?selected=${r}
1971
1969
  label="${e.label}"
1972
1970
  .value=${e.value}
1973
1971
  ></ft-select-option>
1974
- `}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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,pt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",k.optionsHeight,0).then(({x:o,y:s})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,pt.isSlotEmptyOrWithoutContent)(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,o=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[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(o+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 o;return((o=n.label)===null||o===void 0?void 0:o.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=>(0,pt.deepEqual)(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=>(0,pt.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,pt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};X.elementDefinitions={"ft-input-label":Et,"ft-typography":V,"ft-ripple":M,"ft-icon":re,"ft-select-option":_e};X.searchTimeoutMilliseconds=2e3;X.styles=[Wt,$p];we([(0,he.property)({type:String})],X.prototype,"label",void 0);we([(0,he.property)({type:String})],X.prototype,"ariaLabel",void 0);we([(0,he.property)({type:String})],X.prototype,"helper",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"outlined",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"disabled",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"error",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"fixedMenuPosition",void 0);we([(0,he.property)({type:Array})],X.prototype,"options",void 0);we([(0,he.state)()],X.prototype,"selectedOption",void 0);we([(0,he.state)()],X.prototype,"optionsDisplayed",void 0);we([(0,he.state)()],X.prototype,"focusOptions",void 0);we([(0,he.state)()],X.prototype,"currentSearch",void 0);we([(0,he.state)()],X.prototype,"lastSearchInputDate",void 0);we([(0,he.query)(".ft-select")],X.prototype,"container",void 0);we([(0,he.query)(".ft-select--options")],X.prototype,"optionsMenu",void 0);we([(0,he.query)(".ft-select--input-panel")],X.prototype,"mainPanel",void 0);we([(0,he.query)("slot:not([name])")],X.prototype,"optionsSlot",void 0);var Up=u(v());var Fp={"ft-select":X,"ft-select-option":_e};(0,Up.customElements)(Fp);var T=u(v()),Ss=u(A());var zp=u(A()),At=u(v()),Re={display:At.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:At.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:At.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:At.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:At.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:At.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:At.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:At.FtCssVariableFactory.external(At.designSystemVariables.borderRadiusM,"Design system")},Hp=zp.css`
1972
+ `}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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.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"];(0,ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",P.optionsHeight,0).then(({x:o,y:s})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,ut.isSlotEmptyOrWithoutContent)(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,o=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[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(o+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 o;return((o=n.label)===null||o===void 0?void 0:o.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=>(0,ut.deepEqual)(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=>(0,ut.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};Y.elementDefinitions={"ft-input-label":xt,"ft-typography":W,"ft-ripple":M,"ft-icon":ie,"ft-select-option":_e};Y.searchTimeoutMilliseconds=2e3;Y.styles=[Wt,$p];we([(0,he.property)({type:String})],Y.prototype,"label",void 0);we([(0,he.property)({type:String})],Y.prototype,"ariaLabel",void 0);we([(0,he.property)({type:String})],Y.prototype,"helper",void 0);we([(0,he.property)({type:Boolean})],Y.prototype,"outlined",void 0);we([(0,he.property)({type:Boolean})],Y.prototype,"disabled",void 0);we([(0,he.property)({type:Boolean})],Y.prototype,"error",void 0);we([(0,he.property)({type:Boolean})],Y.prototype,"fixedMenuPosition",void 0);we([(0,he.property)({type:Array})],Y.prototype,"options",void 0);we([(0,he.state)()],Y.prototype,"selectedOption",void 0);we([(0,he.state)()],Y.prototype,"optionsDisplayed",void 0);we([(0,he.state)()],Y.prototype,"focusOptions",void 0);we([(0,he.state)()],Y.prototype,"currentSearch",void 0);we([(0,he.state)()],Y.prototype,"lastSearchInputDate",void 0);we([(0,he.query)(".ft-select")],Y.prototype,"container",void 0);we([(0,he.query)(".ft-select--options")],Y.prototype,"optionsMenu",void 0);we([(0,he.query)(".ft-select--input-panel")],Y.prototype,"mainPanel",void 0);we([(0,he.query)("slot:not([name])")],Y.prototype,"optionsSlot",void 0);var Up=u(v());var Fp={"ft-select":Y,"ft-select-option":_e};(0,Up.customElements)(Fp);var _=u(v()),Ss=u(A());var zp=u(A()),St=u(v()),Re={display:St.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:St.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:St.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:St.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:St.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:St.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:St.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:St.FtCssVariableFactory.external(St.designSystemVariables.borderRadiusM,"Design system")},Hp=zp.css`
1975
1973
  :host {
1976
1974
  width: ${Re.width};
1977
1975
  height: ${Re.height};
@@ -1998,7 +1996,7 @@
1998
1996
  background-position: calc(100vw + ${Re.glareWidth}) 0, calc(${Re.glareWidth} * -1) 0;
1999
1997
  }
2000
1998
  }
2001
- `;var C={height:T.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:T.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",T.designSystemVariables.borderRadiusS),mobileOpenPosition:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:T.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:T.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:T.FtCssVariableFactory.external(T.designSystemVariables.colorSurface,"Design system"),colorOnSurface:T.FtCssVariableFactory.external(T.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:T.FtCssVariableFactory.external(T.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:T.FtCssVariableFactory.external(T.designSystemVariables.colorOutline,"Design system"),colorPrimary:T.FtCssVariableFactory.external(T.designSystemVariables.colorPrimary,"Design system"),elevation02:T.FtCssVariableFactory.external(T.designSystemVariables.elevation02,"Design system"),buttonColor:T.FtCssVariableFactory.external(F.color,"Button"),buttonRippleColor:T.FtCssVariableFactory.external(F.rippleColor,"Button"),activeItemBorderColor:T.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",T.designSystemVariables.colorPrimary)},jp=Ss.css`
1999
+ `;var C={height:_.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:_.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",_.designSystemVariables.borderRadiusS),mobileOpenPosition:_.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:_.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:_.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:_.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:_.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:_.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:_.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorSurface,"Design system"),colorOnSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:_.FtCssVariableFactory.external(_.designSystemVariables.colorOutline,"Design system"),colorPrimary:_.FtCssVariableFactory.external(_.designSystemVariables.colorPrimary,"Design system"),elevation02:_.FtCssVariableFactory.external(_.designSystemVariables.elevation02,"Design system"),buttonColor:_.FtCssVariableFactory.external(F.color,"Button"),buttonRippleColor:_.FtCssVariableFactory.external(F.rippleColor,"Button"),activeItemBorderColor:_.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",_.designSystemVariables.colorPrimary)},jp=Ss.css`
2002
2000
  * {
2003
2001
  box-sizing: border-box;
2004
2002
  }
@@ -2046,8 +2044,8 @@
2046
2044
  }
2047
2045
 
2048
2046
  .ft-search-bar--skeleton {
2049
- ${(0,T.setVariable)(Re.height,C.height)};
2050
- ${(0,T.setVariable)(Re.borderRadiusM,C.borderRadius)};
2047
+ ${(0,_.setVariable)(Re.height,C.height)};
2048
+ ${(0,_.setVariable)(Re.borderRadiusM,C.borderRadius)};
2051
2049
  }
2052
2050
 
2053
2051
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2105,11 +2103,11 @@
2105
2103
  .ft-search-bar > ft-button,
2106
2104
  .ft-search-bar--actions ft-button {
2107
2105
  flex-shrink: 0;
2108
- ${(0,T.setVariable)(F.backgroundColor,"transparent")};
2106
+ ${(0,_.setVariable)(F.backgroundColor,"transparent")};
2109
2107
  }
2110
2108
 
2111
2109
  .ft-search-bar--left-action {
2112
- ${(0,T.setVariable)(F.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px)`)};
2110
+ ${(0,_.setVariable)(F.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px)`)};
2113
2111
  border-right: 1px solid ${C.colorOutline};
2114
2112
  height: 100%;
2115
2113
  }
@@ -2119,7 +2117,7 @@
2119
2117
  }
2120
2118
 
2121
2119
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2122
- ${(0,T.setVariable)(F.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 0`)};
2120
+ ${(0,_.setVariable)(F.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 0`)};
2123
2121
  }
2124
2122
 
2125
2123
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2133,9 +2131,9 @@
2133
2131
  }
2134
2132
 
2135
2133
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2136
- ${(0,T.setVariable)(N.borderColor,"transparent")};
2137
- ${(0,T.setVariable)(N.borderRadius,`calc(${C.borderRadius} - 1px)`)};
2138
- ${(0,T.setVariable)(k.selectedOptionColor,C.buttonColor)};
2134
+ ${(0,_.setVariable)(N.borderColor,"transparent")};
2135
+ ${(0,_.setVariable)(N.borderRadius,`calc(${C.borderRadius} - 1px)`)};
2136
+ ${(0,_.setVariable)(P.selectedOptionColor,C.buttonColor)};
2139
2137
  }
2140
2138
 
2141
2139
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2179,7 +2177,7 @@
2179
2177
  flex-shrink: 0;
2180
2178
  padding: 0 10px;
2181
2179
  margin-bottom: 8px;
2182
- ${(0,T.setVariable)(x.fontSize,"14px")};
2180
+ ${(0,_.setVariable)(x.fontSize,"14px")};
2183
2181
  }
2184
2182
 
2185
2183
  [part="content-locale-selector-label"] {
@@ -2187,8 +2185,8 @@
2187
2185
  flex-shrink: 1;
2188
2186
  flex-grow: 1;
2189
2187
  word-break: break-word;
2190
- ${(0,T.setVariable)(x.lineHeight,"22px")};
2191
- ${(0,T.setVariable)(x.fontWeight,"bold")};
2188
+ ${(0,_.setVariable)(x.lineHeight,"22px")};
2189
+ ${(0,_.setVariable)(x.fontWeight,"bold")};
2192
2190
  }
2193
2191
 
2194
2192
  `,Vp=Ss.css`
@@ -2198,7 +2196,7 @@
2198
2196
 
2199
2197
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2200
2198
  margin-right: auto;
2201
- ${(0,T.setVariable)(k.optionsZIndex,"2")};
2199
+ ${(0,_.setVariable)(P.optionsZIndex,"2")};
2202
2200
  }
2203
2201
 
2204
2202
  .ft-search-bar--desktop-menu {
@@ -2252,7 +2250,7 @@
2252
2250
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2253
2251
  display: block;
2254
2252
  height: ${C.desktopFiltersHeight};
2255
- ${(0,T.setVariable)(Pe.gap,"16px")};
2253
+ ${(0,_.setVariable)(Pe.gap,"16px")};
2256
2254
  }
2257
2255
 
2258
2256
  .ft-search-bar--desktop-menu ft-filter {
@@ -2352,8 +2350,8 @@
2352
2350
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2353
2351
  margin: 0;
2354
2352
  }
2355
- `;var Wp=u(A()),qp=u(v());var ar=class extends qp.FtLitElement{render(){return Wp.html`
2356
- `}};ar.elementDefinitions={};ar.styles=Hp;var Gp=u(v());var Kp={"ft-skeleton":ar};(0,Gp.customElements)(Kp);var Pt=u(A()),Es=u(cr());var ui=u(v());var $t=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ui.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Pt.html`
2353
+ `;var Wp=u(A()),qp=u(v());var lr=class extends qp.FtLitElement{render(){return Wp.html`
2354
+ `}};lr.elementDefinitions={};lr.styles=Hp;var Gp=u(v());var Kp={"ft-skeleton":lr};(0,Gp.customElements)(Kp);var Pt=u(A()),Es=u(ur());var pi=u(v());var $t=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new pi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Pt.html`
2357
2355
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2358
2356
  id="${this.listboxId}"
2359
2357
  role="listbox"
@@ -2406,9 +2404,9 @@
2406
2404
  </div>
2407
2405
  `)}
2408
2406
  </div>
2409
- `}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"?bt.file_format:bt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ge.BOOK:Ge.ARTICLE;break;case"DOCUMENT":i=Eu(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ge.TOPICS;break;case"HTML_PACKAGE":i=Ge.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ge.FILE_CODE;break}return Pt.html`
2407
+ `}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"?vt.file_format:vt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ge.BOOK:Ge.ARTICLE;break;case"DOCUMENT":i=Eu(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ge.TOPICS;break;case"HTML_PACKAGE":i=Ge.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ge.FILE_CODE;break}return Pt.html`
2410
2408
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2411
- `}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()))}};$t.styles=[ui.wordWrap,Pt.css`
2409
+ `}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()))}};$t.styles=[pi.wordWrap,Pt.css`
2412
2410
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2413
2411
  flex-grow: 1;
2414
2412
  flex-shrink: 1;
@@ -2496,9 +2494,9 @@
2496
2494
  }
2497
2495
 
2498
2496
  ft-ripple {
2499
- ${(0,ui.setVariable)(W.opacityContentOnSurfaceHover,W.opacityContentOnSurfaceSelected)}
2497
+ ${(0,pi.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2500
2498
  }
2501
- `];var De=u(A()),As=u(cr());var Zn=u(v());var Dt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return De.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=De.html`
2499
+ `];var De=u(A()),As=u(ur());var Jn=u(v());var Dt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return De.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=De.html`
2502
2500
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?De.html`
2503
2501
  <ft-chip part="selected-filters selected-filter-ft-locale"
2504
2502
  ?dense=${this.searchBar.dense&&!e}
@@ -2559,7 +2557,7 @@
2559
2557
 
2560
2558
  ft-snap-scroll.ft-search-bar--selected-filters {
2561
2559
  overflow: hidden;
2562
- ${(0,Zn.setVariable)(Pe.gap,"4px")};
2560
+ ${(0,Jn.setVariable)(Pe.gap,"4px")};
2563
2561
  }
2564
2562
 
2565
2563
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2567,8 +2565,8 @@
2567
2565
  }
2568
2566
 
2569
2567
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2570
- ${(0,Zn.setVariable)(Oe.iconSize,"17px")};
2571
- ${(0,Zn.setVariable)(Oe.fontSize,"12px")};
2568
+ ${(0,Jn.setVariable)(Oe.iconSize,"17px")};
2569
+ ${(0,Jn.setVariable)(Oe.fontSize,"12px")};
2572
2570
  }
2573
2571
 
2574
2572
  .ft-search-bar--selected-filters * {
@@ -2578,7 +2576,7 @@
2578
2576
  .ft-search-bar--selected-filters ft-chip {
2579
2577
  flex-grow: 0;
2580
2578
  }
2581
- `;var Ot=u(A());var Xp=u(it()),Yp=u(v()),Df=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},pi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new $t(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 Ot.html`
2579
+ `;var Et=u(A());var Xp=u(it()),Yp=u(v()),Df=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},di=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new $t(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 Et.html`
2582
2580
  <div class="${(0,Xp.classMap)(r)}" part="container" tabindex="-1">
2583
2581
  <div class="ft-search-bar" role="search">
2584
2582
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2588,7 +2586,7 @@
2588
2586
  aria-autocomplete="list"
2589
2587
  aria-controls="${this.suggestManager.listboxId}"
2590
2588
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2591
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Ot.nothing}"
2589
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Et.nothing}"
2592
2590
  part="input"
2593
2591
  type="search"
2594
2592
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2602,7 +2600,7 @@
2602
2600
  </div>
2603
2601
  ${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
2604
2602
  ${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
2605
- ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Ot.html`
2603
+ ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Et.html`
2606
2604
  <ft-button class="ft-search-bar--launch-search"
2607
2605
  href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
2608
2606
  part="launch-search-in-panel"
@@ -2610,11 +2608,11 @@
2610
2608
  @click=${()=>this.searchBar.onLaunchSearch()}>
2611
2609
  ${this.searchBar.labelResolver.resolve("searchButton")}
2612
2610
  </ft-button>
2613
- `:Ot.nothing}
2611
+ `:Et.nothing}
2614
2612
  </div>
2615
- `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Ot.html`
2613
+ `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Et.html`
2616
2614
  <div class="ft-search-bar--actions" part="search-bar-actions">
2617
- ${e?Ot.html`
2615
+ ${e?Et.html`
2618
2616
  <ft-button class="ft-search-bar--clear-query"
2619
2617
  part="clear-query"
2620
2618
  icon="close"
@@ -2624,7 +2622,7 @@
2624
2622
  @click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
2625
2623
  ></ft-button>
2626
2624
  <div class="ft-search-bar--separator"></div>
2627
- `:Ot.nothing}
2625
+ `:Et.nothing}
2628
2626
  <ft-button class="ft-search-bar--launch-search"
2629
2627
  href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
2630
2628
  part="launch-search-in-bar"
@@ -2635,9 +2633,9 @@
2635
2633
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2636
2634
  ></ft-button>
2637
2635
  </div>
2638
- `}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}};pi.styles=Ot.css`
2636
+ `}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}};di.styles=Et.css`
2639
2637
 
2640
- `;Df([(0,Yp.ignoreComposingEvents)()],pi.prototype,"onSearchBarKeyDown",null);var Ie=u(A()),Zp=u(cr());var Jp=u(it()),Qp=u(v()),If=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},di=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new $t(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 Ie.html`
2638
+ `;Df([(0,Yp.ignoreComposingEvents)()],di.prototype,"onSearchBarKeyDown",null);var Ie=u(A()),Zp=u(ur());var Jp=u(it()),Qp=u(v()),If=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},fi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new $t(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 Ie.html`
2641
2639
  <div class="${(0,Jp.classMap)(r)}" part="container" tabindex="-1">
2642
2640
  <div class="ft-search-bar" part="search-bar" role="search">
2643
2641
  ${this.renderSearchBarLeftAction()}
@@ -2714,9 +2712,9 @@
2714
2712
  @click=${()=>this.searchBar.onLaunchSearch()}
2715
2713
  ></ft-button>
2716
2714
  </div>
2717
- `}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)}};di.styles=Ie.css`
2715
+ `}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)}};fi.styles=Ie.css`
2718
2716
 
2719
- `;If([(0,Qp.ignoreComposingEvents)()],di.prototype,"onSearchBarKeyDown",null);var B=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};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 ed={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"},Os=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Mf=()=>{},w=class extends K.FtLitElement{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 K.ParametrizedLabelResolver(ed,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new K.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=tt.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 $t(this),this.selectedFacetsManager=new Dt(this),this.desktopSearchBarManager=new di(this),this.mobileSearchBarManager=new pi(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new K.Debouncer(10),this.updateLocalesDebouncer=new K.Debouncer(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 K.Debouncer(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===tt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,K.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
2717
+ `;If([(0,Qp.ignoreComposingEvents)()],fi.prototype,"onSearchBarKeyDown",null);var B=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};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 ed={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"},Os=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Mf=()=>{},w=class extends G.FtLitElement{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 G.ParametrizedLabelResolver(ed,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new G.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=tt.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 $t(this),this.selectedFacetsManager=new Dt(this),this.desktopSearchBarManager=new fi(this),this.mobileSearchBarManager=new di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new G.Debouncer(10),this.updateLocalesDebouncer=new G.Debouncer(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 G.Debouncer(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===tt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,G.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
2720
2718
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2721
2719
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2722
2720
  ${this.renderLiveText()}
@@ -2744,7 +2742,7 @@
2744
2742
  </div>
2745
2743
  </ft-accordion-item>
2746
2744
  `:null}
2747
- ${(0,Yi.repeat)(this.facets,r=>r.key,r=>{let i=mo(r),n=r.key.replace(":","-"),o=ha(i);return r.rootNodes.length>0?H.html`
2745
+ ${(0,Zi.repeat)(this.facets,r=>r.key,r=>{let i=go(r),n=r.key.replace(":","-"),o=ha(i);return r.rootNodes.length>0?H.html`
2748
2746
  <ft-accordion-item data-facet-key="${r.key}">
2749
2747
  <div class="ft-search-bar--filter-label" slot="toggle">
2750
2748
  <ft-typography variant="button">${r.label}</ft-typography>
@@ -2774,7 +2772,7 @@
2774
2772
  `}getContentLocaleRadioGroup(){var e;return H.html`
2775
2773
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2776
2774
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2777
- ${(0,Yi.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return H.html`
2775
+ ${(0,Zi.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return H.html`
2778
2776
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2779
2777
  ?checked=${r.lang==this.contentLocale}>
2780
2778
  ${r.label}
@@ -2805,7 +2803,7 @@
2805
2803
  label="${this.labelResolver.resolve("presetsSelector")}"
2806
2804
  outlined
2807
2805
  @change=${r=>this.selectedPreset=r.detail}>
2808
- ${(0,Yi.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>H.html`
2806
+ ${(0,Zi.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>H.html`
2809
2807
  <ft-select-option value="${r.name}"
2810
2808
  label="${r.name}"
2811
2809
  ?selected=${r.name===this.selectedPreset}>
@@ -2837,7 +2835,7 @@
2837
2835
  ${this.getContentLocaleRadioGroup()}
2838
2836
  </div>
2839
2837
  `:H.nothing}
2840
- ${(0,Yi.repeat)(this.facets,e=>e.key,e=>{let r=mo(e),i=r.options.some(o=>{var s,a;return((a=(s=o.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),n=e.key.replace(":","-");return H.html`
2838
+ ${(0,Zi.repeat)(this.facets,e=>e.key,e=>{let r=go(e),i=r.options.some(o=>{var s,a;return((a=(s=o.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),n=e.key.replace(":","-");return H.html`
2841
2839
  <ft-filter
2842
2840
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2843
2841
  part="filters filter filter-${n}"
@@ -2856,14 +2854,14 @@
2856
2854
  ></ft-filter>
2857
2855
  `})}
2858
2856
  </ft-snap-scroll>
2859
- `:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,o,s;if(e.has("labels")&&(this.labelResolver=new K.ParametrizedLabelResolver(ed,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 a=l=>this.availableContentLocales.some(c=>c.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(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")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(c=>tn(c)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(s=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Os(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(s=>s.key===this.scrollToFacet));let o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.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(Mf)),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),this.focusOnDisplay&&!K.isTouchScreen&&this.focusInput(),R.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),R.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&&(0,K.flatDeep)(n.rootNodes,o=>o.childNodes).forEach(o=>o.selected=r.includes(o.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=>(0,K.flatDeep)(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?H.nothing:H.html`
2857
+ `:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,o,s;if(e.has("labels")&&(this.labelResolver=new G.ParametrizedLabelResolver(ed,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 a=l=>this.availableContentLocales.some(c=>c.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(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")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(c=>rn(c)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(s=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Os(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(s=>s.key===this.scrollToFacet));let o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.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(Mf)),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),this.focusOnDisplay&&!G.isTouchScreen&&this.focusInput(),T.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),T.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&&(0,G.flatDeep)(n.rootNodes,o=>o.childNodes).forEach(o=>o.selected=r.includes(o.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=>(0,G.flatDeep)(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?H.nothing:H.html`
2860
2858
  <div class="ft-search-bar--floating-panel"
2861
2859
  id="ft-search-bar-floating-panel"
2862
2860
  @keyup=${this.onFloatingContainerKeyUp}
2863
2861
  part="floating-panel"
2864
2862
  tabindex="-1">
2865
2863
  ${this.renderDesktopMenu()}
2866
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":kt,"ft-accordion-item":ut,"ft-button":D,"ft-chip":oe,"ft-filter":z,"ft-filter-option":Qe,"ft-icon":re,"ft-ripple":M,"ft-select":X,"ft-select-option":_e,"ft-size-watcher":Ve,"ft-skeleton":ar,"ft-snap-scroll":fe,"ft-tooltip":se,"ft-typography":V,"ft-radio-group":Ye,"ft-radio":ye};w.styles=[jr,K.noTextInputDefaultClearButton,jp,Vp,Dt.styles,$t.styles,K.screenReaderStyles];B([(0,U.property)({type:Boolean})],w.prototype,"dense",void 0);B([(0,U.property)()],w.prototype,"mode",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);B([(0,U.property)()],w.prototype,"baseUrl",void 0);B([(0,U.property)()],w.prototype,"apiIntegrationIdentifier",void 0);B([(0,U.property)()],w.prototype,"contentLocale",void 0);B([(0,U.state)()],w.prototype,"availableContentLocales",void 0);B([(0,U.state)()],w.prototype,"availableContentLocalesInitialized",void 0);B([(0,U.property)()],w.prototype,"uiLocale",void 0);B([(0,K.jsonProperty)({})],w.prototype,"labels",void 0);B([(0,K.jsonProperty)([])],w.prototype,"displayedFilters",void 0);B([(0,K.jsonProperty)([])],w.prototype,"presets",void 0);B([(0,U.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);B([(0,K.jsonProperty)([])],w.prototype,"priors",void 0);B([(0,U.property)()],w.prototype,"searchRequestSerializer",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);B([(0,U.state)()],w.prototype,"metadataFilters",void 0);B([(0,U.state)()],w.prototype,"sizeCategory",void 0);B([(0,U.state)()],w.prototype,"displayFacets",void 0);B([(0,U.state)()],w.prototype,"mobileMenuOpen",void 0);B([(0,U.state)()],w.prototype,"facets",void 0);B([(0,U.state)()],w.prototype,"facetsInitialized",void 0);B([(0,U.query)(".ft-search-bar--container")],w.prototype,"container",void 0);B([(0,U.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);B([(0,U.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);B([(0,U.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);B([(0,U.query)(".ft-search-bar--input")],w.prototype,"input",void 0);B([(0,U.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);B([(0,U.state)()],w.prototype,"query",void 0);B([(0,U.state)()],w.prototype,"suggestions",void 0);B([(0,U.state)()],w.prototype,"recentSearches",void 0);B([(0,U.state)()],w.prototype,"scrollToFacet",void 0);B([(0,U.state)()],w.prototype,"api",void 0);B([(0,U.state)()],w.prototype,"displaySuggestListbox",void 0);B([(0,U.state)()],w.prototype,"selectedSuggestOptionId",void 0);B([(0,U.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);B([(0,U.state)()],w.prototype,"facetsLoaded",void 0);var td={"ft-search-bar":w};(0,rd.customElements)(td);})();
2864
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":kt,"ft-accordion-item":ct,"ft-button":R,"ft-chip":oe,"ft-filter":z,"ft-filter-option":Qe,"ft-icon":ie,"ft-ripple":M,"ft-select":Y,"ft-select-option":_e,"ft-size-watcher":Ve,"ft-skeleton":lr,"ft-snap-scroll":fe,"ft-tooltip":se,"ft-typography":W,"ft-radio-group":Ye,"ft-radio":ye};w.styles=[Vr,G.noTextInputDefaultClearButton,jp,Vp,Dt.styles,$t.styles,G.screenReaderStyles];B([(0,U.property)({type:Boolean})],w.prototype,"dense",void 0);B([(0,U.property)()],w.prototype,"mode",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);B([(0,U.property)()],w.prototype,"baseUrl",void 0);B([(0,U.property)()],w.prototype,"apiIntegrationIdentifier",void 0);B([(0,U.property)()],w.prototype,"contentLocale",void 0);B([(0,U.state)()],w.prototype,"availableContentLocales",void 0);B([(0,U.state)()],w.prototype,"availableContentLocalesInitialized",void 0);B([(0,U.property)()],w.prototype,"uiLocale",void 0);B([(0,G.jsonProperty)({})],w.prototype,"labels",void 0);B([(0,G.jsonProperty)([])],w.prototype,"displayedFilters",void 0);B([(0,G.jsonProperty)([])],w.prototype,"presets",void 0);B([(0,U.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);B([(0,G.jsonProperty)([])],w.prototype,"priors",void 0);B([(0,U.property)()],w.prototype,"searchRequestSerializer",void 0);B([(0,U.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);B([(0,U.state)()],w.prototype,"metadataFilters",void 0);B([(0,U.state)()],w.prototype,"sizeCategory",void 0);B([(0,U.state)()],w.prototype,"displayFacets",void 0);B([(0,U.state)()],w.prototype,"mobileMenuOpen",void 0);B([(0,U.state)()],w.prototype,"facets",void 0);B([(0,U.state)()],w.prototype,"facetsInitialized",void 0);B([(0,U.query)(".ft-search-bar--container")],w.prototype,"container",void 0);B([(0,U.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);B([(0,U.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);B([(0,U.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);B([(0,U.query)(".ft-search-bar--input")],w.prototype,"input",void 0);B([(0,U.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);B([(0,U.state)()],w.prototype,"query",void 0);B([(0,U.state)()],w.prototype,"suggestions",void 0);B([(0,U.state)()],w.prototype,"recentSearches",void 0);B([(0,U.state)()],w.prototype,"scrollToFacet",void 0);B([(0,U.state)()],w.prototype,"api",void 0);B([(0,U.state)()],w.prototype,"displaySuggestListbox",void 0);B([(0,U.state)()],w.prototype,"selectedSuggestOptionId",void 0);B([(0,U.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);B([(0,U.state)()],w.prototype,"facetsLoaded",void 0);var td={"ft-search-bar":w};(0,rd.customElements)(td);})();
2867
2865
  /*! Bundled license information:
2868
2866
 
2869
2867
  lit-html/lit-html.js: