@fluid-topics/ft-filter 2.1.23 → 2.2.0

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,7 +1,62 @@
1
- "use strict";(()=>{var Lc=Object.create;var to=Object.defineProperty;var Pc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var Ft=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Ic=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kc(e))!Nc.call(t,i)&&i!==r&&to(t,i,{get:()=>e[i],enumerable:!(n=Pc(e,i))||n.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Lc(Dc(t)):{},Ic(e||!t||!t.__esModule?to(r,"default",{value:t,enumerable:!0}):r,t));var E=Ft((sd,ro)=>{ro.exports=ftGlobals.wcUtils});var L=Ft((ad,no)=>{no.exports=ftGlobals.lit});var z=Ft((ld,io)=>{io.exports=ftGlobals.litDecorators});var Uo=Ft((Ld,$o)=>{$o.exports=ftGlobals.litRepeat});var Qt=Ft((Pd,Bo)=>{Bo.exports=ftGlobals.litClassMap});var Ml=Ft((Ay,Il)=>{Il.exports=ftGlobals.litUnsafeHTML});var Rc=f(E());var Ht=f(L()),N=f(z()),F=f(E());var qn=globalThis,oo=t=>t,Gr=qn.trustedTypes,so=Gr?Gr.createPolicy("lit-html",{createHTML:t=>t}):void 0,fo="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,ho="?"+it,Mc=`<${ho}>`,Ct=document,qr=()=>Ct.createComment(""),yr=t=>t===null||typeof t!="object"&&typeof t!="function",Yn=Array.isArray,$c=t=>Yn(t)||typeof t?.[Symbol.iterator]=="function",Fn=`[
2
- \f\r]`,vr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ao=/-->/g,lo=/>/g,St=RegExp(`>|${Fn}(?:([^\\s"'>=/]+)(${Fn}*=${Fn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,uo=/"/g,mo=/^(?:script|style|textarea|title)$/i,Xn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vo=Xn(1),yo=Xn(2),go=Xn(3),gr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),po=new WeakMap,Et=Ct.createTreeWalker(Ct,129);function bo(t,e){if(!Yn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return so!==void 0?so.createHTML(e):e}var Uc=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=vr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===vr?u[1]==="!--"?s=ao:u[1]!==void 0?s=lo:u[2]!==void 0?(mo.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=St):u[3]!==void 0&&(s=St):s===St?u[0]===">"?(s=i??vr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?St:u[3]==='"'?uo:co):s===uo||s===co?s=St:s===ao||s===lo?s=vr:(s=St,i=void 0);let h=s===St&&t[a+1].startsWith("/>")?" ":"";o+=s===vr?l+Mc:d>=0?(n.push(c),l.slice(0,d)+fo+l.slice(d)+it+h):l+it+(d===-2?a:h)}return[bo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},br=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Uc(e,r);if(this.el=t.createElement(c,n),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Et.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(fo)){let p=u[s++],h=i.getAttribute(d).split(it),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?zn:m[1]==="?"?Wn:m[1]==="@"?Kn:zt}),i.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(mo.test(i.tagName)){let d=i.textContent.split(it),p=d.length-1;if(p>0){i.textContent=Gr?Gr.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],qr()),Et.nextNode(),l.push({type:2,index:++o});i.append(d[p],qr())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:o}),d+=it.length-1}o++}}static createElement(e,r){let n=Ct.createElement("template");return n.innerHTML=e,n}};function Vt(t,e,r=t,n){if(e===gr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=yr(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Vt(t,i._$AS(t,e.values),i,n)),e}var Vn=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:n}=this._$AD,i=(e?.creationScope??Ct).importNode(r,!0);Et.currentNode=i;let o=Et.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Yr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Gn(o,this,e)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=Et.nextNode(),s++)}return Et.currentNode=Ct,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Yr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=Vt(this,e,r),yr(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==gr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$c(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!==W&&yr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=br.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Vn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=po.get(e.strings);return r===void 0&&po.set(e.strings,r=new br(e)),r}k(e){Yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(qr()),this.O(qr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=oo(e).nextSibling;oo(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=Vt(this,e,r,0),s=!yr(e)||e!==this._$AH&&e!==gr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Vt(this,a[n+l],r,l),c===gr&&(c=this._$AH[l]),s||=!yr(c)||c!==this._$AH[l],c===W?e=W:e!==W&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},zn=class extends zt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},Wn=class extends zt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Kn=class extends zt{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=Vt(this,e,r,0)??W)===gr)return;let n=this._$AH,i=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==W&&(n===W||i);i&&this.element.removeEventListener(this.name,this,n),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)}},Gn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Vt(this,e)}};var Bc=qn.litHtmlPolyfillSupport;Bc?.(br,Yr),(qn.litHtmlVersions??=[]).push("3.3.3");var Ao=Symbol.for(""),Hc=t=>{if(t?.r===Ao)return t?._$litStatic$},Jn=t=>({_$litStatic$:t,r:Ao});var xo=new Map,Zn=t=>(e,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&(o=r[c],(i=Hc(o))!==void 0);)l+=i+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){let d=s.join("$$lit$$");(e=xo.get(d))===void 0&&(s.raw=s,xo.set(d,e=s)),r=a}return t(e,...r)},Qn=Zn(vo),dd=Zn(yo),pd=Zn(go);var ei=f(z()),No=f(E());var Q;(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"})(Q||(Q={}));var Ce=f(L()),g=f(E()),So=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Xe=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),A={fontFamily:Xe,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Wt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},ye={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},ze={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},Eo=Ce.css`
1
+ "use strict";(()=>{var jc=Object.create;var as=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Kc=Object.getOwnPropertyNames;var Gc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Yc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kc(t))!qc.call(e,s)&&s!==r&&as(e,s,{get:()=>t[s],enumerable:!(n=Wc(t,s))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?jc(Gc(e)):{},Yc(t||!e||!e.__esModule?as(r,"default",{value:e,enumerable:!0}):r,e));var S=$t((kd,ls)=>{ls.exports=ftGlobals.wcUtils});var k=$t((Pd,cs)=>{cs.exports=ftGlobals.lit});var K=$t((Nd,us)=>{us.exports=ftGlobals.litDecorators});var zs=$t((tp,Vs)=>{Vs.exports=ftGlobals.litRepeat});var qt=$t((rp,js)=>{js.exports=ftGlobals.litClassMap});var ql=$t((wg,Gl)=>{Gl.exports=ftGlobals.litUnsafeHTML});var Fc=f(S());var Mt=f(k()),I=f(K()),W=f(S());var oi=globalThis,ds=e=>e,Wr=oi.trustedTypes,ps=Wr?Wr.createPolicy("lit-html",{createHTML:e=>e}):void 0,vs="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,bs="?"+nt,Xc=`<${bs}>`,xt=document,Kr=()=>xt.createComment(""),dr=e=>e===null||typeof e!="object"&&typeof e!="function",ai=Array.isArray,Jc=e=>ai(e)||typeof e?.[Symbol.iterator]=="function",ei=`[
2
+ \f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fs=/-->/g,hs=/>/g,vt=RegExp(`>|${ei}(?:([^\\s"'>=/]+)(${ei}*=${ei}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ms=/'/g,ys=/"/g,xs=/^(?:script|style|textarea|title)$/i,li=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ss=li(1),Es=li(2),As=li(3),pr=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),gs=new WeakMap,bt=xt.createTreeWalker(xt,129);function _s(e,t){if(!ai(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(t):t}var Zc=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=ur;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===ur?u[1]==="!--"?o=fs:u[1]!==void 0?o=hs:u[2]!==void 0?(xs.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=vt):u[3]!==void 0&&(o=vt):o===vt?u[0]===">"?(o=s??ur,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?vt:u[3]==='"'?ys:ms):o===ys||o===ms?o=vt:o===fs||o===hs?o=ur:(o=vt,s=void 0);let y=o===vt&&e[a+1].startsWith("/>")?" ":"";i+=o===ur?l+Xc:d>=0?(n.push(c),l.slice(0,d)+vs+l.slice(d)+nt+y):l+nt+(d===-2?a:y)}return[_s(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},fr=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,l=this.parts,[c,u]=Zc(t,r);if(this.el=e.createElement(c,n),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=bt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(vs)){let p=u[o++],y=s.getAttribute(d).split(nt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:b[2],strings:y,ctor:b[1]==="."?ri:b[1]==="?"?ni:b[1]==="@"?ii:Bt}),s.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:i}),s.removeAttribute(d));if(xs.test(s.tagName)){let d=s.textContent.split(nt),p=d.length-1;if(p>0){s.textContent=Wr?Wr.emptyScript:"";for(let y=0;y<p;y++)s.append(d[y],Kr()),bt.nextNode(),l.push({type:2,index:++i});s.append(d[p],Kr())}}}else if(s.nodeType===8)if(s.data===bs)l.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:i}),d+=nt.length-1}i++}}static createElement(t,r){let n=xt.createElement("template");return n.innerHTML=t,n}};function Ut(e,t,r=e,n){if(t===pr)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=dr(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Ut(e,s._$AS(e,t.values),s,n)),t}var ti=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??xt).importNode(r,!0);bt.currentNode=s;let i=bt.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Gr(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new si(i,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(i=bt.nextNode(),o++)}return bt.currentNode=xt,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ut(this,t,r),dr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==pr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==G&&dr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=fr.createElement(_s(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new ti(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=gs.get(t.strings);return r===void 0&&gs.set(t.strings,r=new fr(t)),r}k(t){ai(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Kr()),this.O(Kr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ds(t).nextSibling;ds(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=Ut(this,t,r,0),o=!dr(t)||t!==this._$AH&&t!==pr,o&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=Ut(this,a[n+l],r,l),c===pr&&(c=this._$AH[l]),o||=!dr(c)||c!==this._$AH[l],c===G?t=G:t!==G&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ri=class extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},ni=class extends Bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},ii=class extends Bt{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Ut(this,t,r,0)??G)===pr)return;let n=this._$AH,s=t===G&&n!==G||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==G&&(n===G||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}};var Qc=oi.litHtmlPolyfillSupport;Qc?.(fr,Gr),(oi.litHtmlVersions??=[]).push("3.3.3");var ws=Symbol.for(""),eu=e=>{if(e?.r===ws)return e?._$litStatic$},ci=e=>({_$litStatic$:e,r:ws});var Cs=new Map,ui=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(i=r[c],(s=eu(i))!==void 0);)l+=s+t[++c],u=!0;c!==n&&a.push(i),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Cs.get(d))===void 0&&(o.raw=o,Cs.set(d,t=o)),r=a}return e(t,...r)},di=ui(Ss),Id=ui(Es),$d=ui(As);var pi=f(K()),Bs=f(S());var ee;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(ee||(ee={}));var Ce=f(k()),m=f(S()),Os=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Xe=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),g={fontFamily:Xe,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},Ft={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},Vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},ge={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},Kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},Gt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Ve={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},Ts=Ce.css`
4
4
  .ft-typography--title {
5
+ font-family: ${Ht.fontFamily};
6
+ font-size: ${Ht.fontSize};
7
+ font-weight: ${Ht.fontWeight};
8
+ letter-spacing: ${Ht.letterSpacing};
9
+ line-height: ${Ht.lineHeight};
10
+ text-transform: ${Ht.textTransform};
11
+ }
12
+ `,Rs=Ce.css`
13
+ .ft-typography--title-dense {
14
+ font-family: ${Ft.fontFamily};
15
+ font-size: ${Ft.fontSize};
16
+ font-weight: ${Ft.fontWeight};
17
+ letter-spacing: ${Ft.letterSpacing};
18
+ line-height: ${Ft.lineHeight};
19
+ text-transform: ${Ft.textTransform};
20
+ }
21
+ `,Ls=Ce.css`
22
+ .ft-typography--subtitle1 {
23
+ font-family: ${Vt.fontFamily};
24
+ font-size: ${Vt.fontSize};
25
+ font-weight: ${Vt.fontWeight};
26
+ letter-spacing: ${Vt.letterSpacing};
27
+ line-height: ${Vt.lineHeight};
28
+ text-transform: ${Vt.textTransform};
29
+ }
30
+ `,ks=Ce.css`
31
+ .ft-typography--subtitle2 {
32
+ font-family: ${zt.fontFamily};
33
+ font-size: ${zt.fontSize};
34
+ font-weight: ${zt.fontWeight};
35
+ letter-spacing: ${zt.letterSpacing};
36
+ line-height: ${zt.lineHeight};
37
+ text-transform: ${zt.textTransform};
38
+ }
39
+
40
+ `,Ps=Ce.css`
41
+ .ft-typography--body1 {
42
+ font-family: ${jt.fontFamily};
43
+ font-size: ${jt.fontSize};
44
+ font-weight: ${jt.fontWeight};
45
+ letter-spacing: ${jt.letterSpacing};
46
+ line-height: ${jt.lineHeight};
47
+ text-transform: ${jt.textTransform};
48
+ }
49
+ `,Ns=Ce.css`
50
+ .ft-typography--body2 {
51
+ font-family: ${ge.fontFamily};
52
+ font-size: ${ge.fontSize};
53
+ font-weight: ${ge.fontWeight};
54
+ letter-spacing: ${ge.letterSpacing};
55
+ line-height: ${ge.lineHeight};
56
+ text-transform: ${ge.textTransform};
57
+ }
58
+ `,qr=Ce.css`
59
+ .ft-typography--caption {
5
60
  font-family: ${Wt.fontFamily};
6
61
  font-size: ${Wt.fontSize};
7
62
  font-weight: ${Wt.fontWeight};
@@ -9,8 +64,8 @@
9
64
  line-height: ${Wt.lineHeight};
10
65
  text-transform: ${Wt.textTransform};
11
66
  }
12
- `,Co=Ce.css`
13
- .ft-typography--title-dense {
67
+ `,Ds=Ce.css`
68
+ .ft-typography--breadcrumb {
14
69
  font-family: ${Kt.fontFamily};
15
70
  font-size: ${Kt.fontSize};
16
71
  font-weight: ${Kt.fontWeight};
@@ -18,8 +73,8 @@
18
73
  line-height: ${Kt.lineHeight};
19
74
  text-transform: ${Kt.textTransform};
20
75
  }
21
- `,Oo=Ce.css`
22
- .ft-typography--subtitle1 {
76
+ `,Ms=Ce.css`
77
+ .ft-typography--overline {
23
78
  font-family: ${Gt.fontFamily};
24
79
  font-size: ${Gt.fontSize};
25
80
  font-weight: ${Gt.fontWeight};
@@ -27,83 +82,28 @@
27
82
  line-height: ${Gt.lineHeight};
28
83
  text-transform: ${Gt.textTransform};
29
84
  }
30
- `,wo=Ce.css`
31
- .ft-typography--subtitle2 {
32
- font-family: ${qt.fontFamily};
33
- font-size: ${qt.fontSize};
34
- font-weight: ${qt.fontWeight};
35
- letter-spacing: ${qt.letterSpacing};
36
- line-height: ${qt.lineHeight};
37
- text-transform: ${qt.textTransform};
38
- }
39
-
40
- `,To=Ce.css`
41
- .ft-typography--body1 {
42
- font-family: ${Yt.fontFamily};
43
- font-size: ${Yt.fontSize};
44
- font-weight: ${Yt.fontWeight};
45
- letter-spacing: ${Yt.letterSpacing};
46
- line-height: ${Yt.lineHeight};
47
- text-transform: ${Yt.textTransform};
48
- }
49
- `,_o=Ce.css`
50
- .ft-typography--body2 {
51
- font-family: ${ye.fontFamily};
52
- font-size: ${ye.fontSize};
53
- font-weight: ${ye.fontWeight};
54
- letter-spacing: ${ye.letterSpacing};
55
- line-height: ${ye.lineHeight};
56
- text-transform: ${ye.textTransform};
57
- }
58
- `,Xr=Ce.css`
59
- .ft-typography--caption {
60
- font-family: ${Xt.fontFamily};
61
- font-size: ${Xt.fontSize};
62
- font-weight: ${Xt.fontWeight};
63
- letter-spacing: ${Xt.letterSpacing};
64
- line-height: ${Xt.lineHeight};
65
- text-transform: ${Xt.textTransform};
66
- }
67
- `,Ro=Ce.css`
68
- .ft-typography--breadcrumb {
69
- font-family: ${Jt.fontFamily};
70
- font-size: ${Jt.fontSize};
71
- font-weight: ${Jt.fontWeight};
72
- letter-spacing: ${Jt.letterSpacing};
73
- line-height: ${Jt.lineHeight};
74
- text-transform: ${Jt.textTransform};
75
- }
76
- `,Lo=Ce.css`
77
- .ft-typography--overline {
78
- font-family: ${Zt.fontFamily};
79
- font-size: ${Zt.fontSize};
80
- font-weight: ${Zt.fontWeight};
81
- letter-spacing: ${Zt.letterSpacing};
82
- line-height: ${Zt.lineHeight};
83
- text-transform: ${Zt.textTransform};
84
- }
85
- `,Po=Ce.css`
85
+ `,Is=Ce.css`
86
86
  .ft-typography--button {
87
- font-family: ${ze.fontFamily};
88
- font-size: ${ze.fontSize};
89
- font-weight: ${ze.fontWeight};
90
- letter-spacing: ${ze.letterSpacing};
91
- line-height: ${ze.lineHeight};
92
- text-transform: ${ze.textTransform};
93
- }
94
- `,ko=Ce.css`
87
+ font-family: ${Ve.fontFamily};
88
+ font-size: ${Ve.fontSize};
89
+ font-weight: ${Ve.fontWeight};
90
+ letter-spacing: ${Ve.letterSpacing};
91
+ line-height: ${Ve.lineHeight};
92
+ text-transform: ${Ve.textTransform};
93
+ }
94
+ `,$s=Ce.css`
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
98
- `;var Do=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Y=class extends No.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?Qn`
99
- <${Jn(this.element)}
98
+ `;var Us=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},X=class extends Bs.FtLitElement{constructor(){super(...arguments),this.variant=ee.body1}render(){return this.element?di`
99
+ <${ci(this.element)}
100
100
  part="text"
101
101
  class="ft-typography ft-typography--${this.variant}">
102
102
  <slot></slot>
103
- </${Jn(this.element)}>
104
- `:Qn`
103
+ </${ci(this.element)}>
104
+ `:di`
105
105
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};Y.styles=[Eo,Co,Oo,wo,To,_o,Xr,Ro,Lo,Po,ko];Do([(0,ei.property)()],Y.prototype,"element",void 0);Do([(0,ei.property)()],Y.prototype,"variant",void 0);var Mo=f(E());var Io={"ft-typography":Y};(0,Mo.customElements)(Io);var Ae=f(L()),J=f(z()),gc=f(Uo()),he=f(E());var Le=f(E());var Go=f(L()),ee=f(z()),qo=f(Qt()),xr=f(E());var Wo=f(L()),K=f(E()),Ho=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ce={color:Ho,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ho),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},jo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Fo={color:jo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",jo)},Vo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),zo={color:Vo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vo)},Ko=Wo.css`
106
+ `}};X.styles=[Ts,Rs,Ls,ks,Ps,Ns,qr,Ds,Ms,Is,$s];Us([(0,pi.property)()],X.prototype,"element",void 0);Us([(0,pi.property)()],X.prototype,"variant",void 0);var Fs=f(S());var Hs={"ft-typography":X};(0,Fs.customElements)(Hs);var Ee=f(k()),Z=f(K()),Lc=f(zs()),ye=f(S());var Ge=f(S());var Zs=f(k()),te=f(K()),Qs=f(qt()),hr=f(S());var Xs=f(k()),q=f(S()),Ws=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorContent),de={color:Ws,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ws),opacityContentOnSurfacePressed:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ks=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorPrimary),Gs={color:Ks,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ks)},qs=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorSecondary),Ys={color:qs,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",qs)},Js=Xs.css`
107
107
  :host {
108
108
  display: contents;
109
109
  }
@@ -116,7 +116,7 @@
116
116
 
117
117
  .ft-ripple:not(.ft-ripple--unbounded) {
118
118
  overflow: hidden;
119
- border-radius: ${ce.borderRadius};
119
+ border-radius: ${de.borderRadius};
120
120
  }
121
121
 
122
122
  .ft-ripple .ft-ripple--background,
@@ -150,27 +150,27 @@
150
150
  }
151
151
 
152
152
  .ft-ripple .ft-ripple--background {
153
- background-color: ${ce.backgroundColor};
153
+ background-color: ${de.backgroundColor};
154
154
  }
155
155
 
156
156
  .ft-ripple .ft-ripple--effect {
157
- background-color: ${ce.color};
157
+ background-color: ${de.color};
158
158
  }
159
159
 
160
160
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
161
- background-color: ${zo.backgroundColor};
161
+ background-color: ${Ys.backgroundColor};
162
162
  }
163
163
 
164
164
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
165
- background-color: ${zo.color};
165
+ background-color: ${Ys.color};
166
166
  }
167
167
 
168
168
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
169
- background-color: ${Fo.backgroundColor};
169
+ background-color: ${Gs.backgroundColor};
170
170
  }
171
171
 
172
172
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
173
- background-color: ${Fo.color};
173
+ background-color: ${Gs.color};
174
174
  }
175
175
 
176
176
  .ft-ripple .ft-ripple--background {
@@ -200,33 +200,33 @@
200
200
  }
201
201
 
202
202
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
203
- opacity: ${ce.opacityContentOnSurfaceHover};
203
+ opacity: ${de.opacityContentOnSurfaceHover};
204
204
  }
205
205
 
206
206
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
207
- opacity: ${ce.opacityContentOnSurfaceSelected};
207
+ opacity: ${de.opacityContentOnSurfaceSelected};
208
208
  }
209
209
 
210
210
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
211
- opacity: ${ce.opacityContentOnSurfaceFocused};
211
+ opacity: ${de.opacityContentOnSurfaceFocused};
212
212
  }
213
213
 
214
214
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
215
- opacity: ${ce.opacityContentOnSurfacePressed};
215
+ opacity: ${de.opacityContentOnSurfacePressed};
216
216
  transform: translate(-50%, -50%) scale(1);
217
217
  }
218
- `;var ue=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},P=class extends xr.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 xr.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 xr.Debouncer(10),this.moveRipple=e=>{var r,n;let{x:i,y:o}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-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 Go.html`
218
+ `;var pe=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},P=class extends hr.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 hr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new hr.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:s,y:i}=this.getCoordinates(t),o=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-o.x:o.width/2),this.originY=Math.round(i!=null?i-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Zs.html`
219
219
  <style>
220
220
  .ft-ripple .ft-ripple--effect {
221
221
  left: ${this.originX}px;
222
222
  top: ${this.originY}px;
223
223
  }
224
224
  </style>
225
- <div class="${(0,qo.classMap)(e)}">
225
+ <div class="${(0,Qs.classMap)(t)}">
226
226
  <div class="ft-ripple--background"></div>
227
227
  <div class="ft-ripple--effect"></div>
228
228
  </div>
229
- `}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,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}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)},n=r("mouseup","contextmenu"),i=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",n,s),e.addEventListener("touchstart",i,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",n,s),e.removeEventListener("touchstart",i,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,n=e,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,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()}};P.elementDefinitions={};P.styles=Ko;ue([(0,ee.property)({type:Boolean})],P.prototype,"primary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"secondary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"unbounded",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"activated",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"selected",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"disabled",void 0);ue([(0,ee.state)()],P.prototype,"hovered",void 0);ue([(0,ee.state)()],P.prototype,"focused",void 0);ue([(0,ee.state)()],P.prototype,"pressed",void 0);ue([(0,ee.state)()],P.prototype,"rippling",void 0);ue([(0,ee.state)()],P.prototype,"originX",void 0);ue([(0,ee.state)()],P.prototype,"originY",void 0);ue([(0,ee.query)(".ft-ripple")],P.prototype,"ripple",void 0);ue([(0,ee.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Xo=f(E());var Yo={"ft-ripple":P};(0,Xo.customElements)(Yo);var Ll=f(L()),Re=f(z()),_e=f(E());var Jo=f(L()),ot=f(E()),Ar={distance:ot.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ot.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ot.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ot.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ot.designSystemVariables.borderRadiusS),maxWidth:ot.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Zo=Jo.css`
229
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),i=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",s,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",i,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",s,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",i,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,s,i;return r.x!=null?{x:s,y:i}=r:n.touches!=null&&(s=n.touches[0].clientX,i=n.touches[0].clientY),{x:s,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.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()}};P.elementDefinitions={};P.styles=Js;pe([(0,te.property)({type:Boolean})],P.prototype,"primary",void 0);pe([(0,te.property)({type:Boolean})],P.prototype,"secondary",void 0);pe([(0,te.property)({type:Boolean})],P.prototype,"unbounded",void 0);pe([(0,te.property)({type:Boolean})],P.prototype,"activated",void 0);pe([(0,te.property)({type:Boolean})],P.prototype,"selected",void 0);pe([(0,te.property)({type:Boolean})],P.prototype,"disabled",void 0);pe([(0,te.state)()],P.prototype,"hovered",void 0);pe([(0,te.state)()],P.prototype,"focused",void 0);pe([(0,te.state)()],P.prototype,"pressed",void 0);pe([(0,te.state)()],P.prototype,"rippling",void 0);pe([(0,te.state)()],P.prototype,"originX",void 0);pe([(0,te.state)()],P.prototype,"originY",void 0);pe([(0,te.query)(".ft-ripple")],P.prototype,"ripple",void 0);pe([(0,te.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var to=f(S());var eo={"ft-ripple":P};(0,to.customElements)(eo);var Vl=f(k()),Re=f(K()),Te=f(S());var ro=f(k()),it=f(S()),mr={distance:it.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:it.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:it.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:it.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",it.designSystemVariables.borderRadiusS),maxWidth:it.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=ro.css`
230
230
  .ft-tooltip--container {
231
231
  display: block;
232
232
  }
@@ -244,28 +244,28 @@
244
244
  box-sizing: border-box;
245
245
  overflow: hidden;
246
246
  width: max-content;
247
- max-width: ${Ar.maxWidth};
247
+ max-width: ${mr.maxWidth};
248
248
  text-align: center;
249
- padding: ${Ar.distance};
249
+ padding: ${mr.distance};
250
250
  }
251
251
 
252
252
  .ft-tooltip--content {
253
253
  padding: 4px 8px;
254
- border-radius: ${Ar.borderRadiusS};
255
- background-color: ${Ar.backgroundColor};
256
- color: ${Ar.color};
254
+ border-radius: ${mr.borderRadiusS};
255
+ background-color: ${mr.backgroundColor};
256
+ color: ${mr.color};
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `;var es=["top","right","bottom","left"],Qo=["start","end"],ri=es.reduce((t,e)=>t.concat(e,e+"-"+Qo[0],e+"-"+Qo[1]),[]),Sr=Math.min,st=Math.max,Er=Math.round;var We=t=>({x:t,y:t}),jc={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(t,e,r){return st(t,Sr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function Cr(t){return t.split("-")[0]}function at(t){return t.split("-")[1]}function ni(t){return t==="x"?"y":"x"}function ii(t){return t==="y"?"height":"width"}function Zr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function oi(t){return ni(Zr(t))}function rs(t,e,r){r===void 0&&(r=!1);let n=at(t),i=oi(t),o=ii(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ti(s)),[s,ti(s)]}function ns(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ti(t){let e=Cr(t);return jc[e]+t.slice(e.length)}function Fc(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function is(t){return typeof t!="number"?Fc(t):{top:t,right:t,bottom:t,left:t}}function Ot(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function os(t,e,r){let{reference:n,floating:i}=t,o=Zr(e),s=oi(e),a=ii(s),l=Cr(e),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}let m=at(e);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function ss(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Jr(e,t),m=is(h),b=a[p?d==="floating"?"reference":"floating":d],x=Ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(C))&&await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1},q=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:l}):S);return{top:(x.top-q.top+m.top)/w.y,bottom:(q.bottom-x.bottom+m.bottom)/w.y,left:(x.left-q.left+m.left)/w.x,right:(q.right-x.right+m.right)/w.x}}var Vc=50,as=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ss},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=os(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let b=o[v];if(!b)continue;let{name:x,fn:S}=b,{x:C,y:w,data:q,reset:V}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=C??u,d=w??d,m[x]={...m[x],...q},V&&h<Vc&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=os(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function zc(t,e,r){return(t?[...r.filter(i=>at(i)===t),...r.filter(i=>at(i)!==t)]:r.filter(i=>Cr(i)===i)).filter(i=>t?at(i)===t||(e?ns(i)!==i:!1):!0)}var ls=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=ri,autoAlignment:h=!0,...m}=Jr(t,e),v=d!==void 0||p===ri?zc(d||null,h,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,x=v[b];if(x==null)return{};if(a!==x)return{reset:{placement:v[0]}};let S=await l.detectOverflow(e,m),C=rs(x,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[S[Cr(x)],S[C[0]],S[C[1]]],q=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:w}],V=v[b+1];if(V)return{data:{index:b+1,overflows:q},reset:{placement:V}};let rt=q.map(me=>{let Ee=at(me.placement);return[me.placement,Ee&&u?me.overflows.slice(0,2).reduce((ve,At)=>ve+At,0):me.overflows[0],me.overflows]}).sort((me,Ee)=>me[1]-Ee[1]),nt=((i=rt.filter(me=>me[2].slice(0,at(me[0])?2:3).every(Ee=>Ee<=0))[0])==null?void 0:i[0])||rt[0][0];return nt!==a?{data:{index:b+1,overflows:q},reset:{placement:nt}}:{}}}};var cs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:C,y:w}=S;return{x:C,y:w}}},...c}=Jr(t,e),u={x:r,y:n},d=await o.detectOverflow(e,c),p=Zr(i),h=ni(p),m=u[h],v=u[p],b=(S,C)=>ts(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);s&&(m=b(h,m)),a&&(v=b(p,v));let x=l.fn({...e,[h]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:s,[p]:a}}}}}};function en(){return typeof window<"u"}function Tt(t){return ds(t)?(t.nodeName||"").toLowerCase():"#document"}function de(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(ds(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ds(t){return en()?t instanceof Node||t instanceof de(t).Node:!1}function ke(t){return en()?t instanceof Element||t instanceof de(t).Element:!1}function Ze(t){return en()?t instanceof HTMLElement||t instanceof de(t).HTMLElement:!1}function us(t){return!en()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof de(t).ShadowRoot}function Or(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=De(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function ps(t){return/^(table|td|th)$/.test(Tt(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Wc=/transform|translate|scale|rotate|perspective|filter/,Kc=/paint|layout|strict|content/,wt=t=>!!t&&t!=="none",si;function er(t){let e=ke(t)?De(t):t;return wt(e.transform)||wt(e.translate)||wt(e.scale)||wt(e.rotate)||wt(e.perspective)||!tn()&&(wt(e.backdropFilter)||wt(e.filter))||Wc.test(e.willChange||"")||Kc.test(e.contain||"")}function fs(t){let e=lt(t);for(;Ze(e)&&!tr(e);){if(er(e))return e;if(wr(e))return null;e=lt(e)}return null}function tn(){return si==null&&(si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),si}function tr(t){return/^(html|body|#document)$/.test(Tt(t))}function De(t){return de(t).getComputedStyle(t)}function Tr(t){return ke(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lt(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||us(t)&&t.host||Je(t);return us(e)?e.host:e}function hs(t){let e=lt(t);return tr(e)?(t.ownerDocument||t).body:Ze(e)&&Or(e)?e:hs(e)}function Qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=hs(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=rn(s);return e.concat(s,s.visualViewport||[],Or(i)?i:[],a&&r?Qr(a):[])}else return e.concat(i,Qr(i,[],r))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){let e=De(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ze(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=Er(r)!==o||Er(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function gs(t){return ke(t)?t:t.contextElement}function rr(t){let e=gs(t);if(!Ze(e))return We(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=ys(e),s=(o?Er(r.width):r.width)/n,a=(o?Er(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Gc=We(0);function bs(t){let e=de(t);return!tn()||!e.visualViewport?Gc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===de(t)}function _r(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=gs(t),s=We(1);e&&(n?ke(n)&&(s=rr(n)):s=rr(t));let a=qc(o,r,n)?bs(o):We(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=de(o),h=ke(n)?de(n):n,m=p,v=rn(m);for(;v&&h!==m;){let b=rr(v),x=v.getBoundingClientRect(),S=De(v),C=x.left+(v.clientLeft+parseFloat(S.paddingLeft))*b.x,w=x.top+(v.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=C,c+=w,m=de(v),v=rn(m)}}return Ot({width:u,height:d,x:l,y:c})}function nn(t,e){let r=Tr(t).scrollLeft;return e?e.left+r:_r(Je(t)).left+r}function xs(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-nn(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Yc(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=Je(n),a=e?wr(e.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=We(1),u=We(0),d=Ze(n);if((d||!o)&&((Tt(n)!=="body"||Or(s))&&(l=Tr(n)),d)){let h=_r(n);c=rr(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?xs(s,l):We(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Xc(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Jc(t){let e=Tr(t),r=t.ownerDocument.body,n=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+nn(t),s=-e.scrollTop;return De(r).direction==="rtl"&&(o+=st(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Zc=25;function Qc(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=de(t),o=Je(t),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!tn()||e==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(nn(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-v),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;x<=Zc&&(a-=x)}return{width:a,height:l,x:c,y:u}}function eu(t,e){let r=_r(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=rr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ms(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=Qc(t,r,e);else if(e==="document")n=Jc(Je(t));else if(ke(e))n=eu(e,r);else{let i=bs(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ot(n)}function tu(t,e){let r=e.get(t);if(r)return r;let n=Qr(t,[],!1).filter(a=>ke(a)&&Tt(a)!=="body"),i=null,o=De(t).position==="fixed",s=o?lt(t):t;for(;ke(s)&&!tr(s);){let a=De(s),l=er(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=lt(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wr(e)?[]:tu(e,this._c):[].concat(r),n],a=ms(e,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ms(e,s[p],i);l=st(h.top,l),c=Sr(h.right,c),u=Sr(h.bottom,u),d=st(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function nu(t){let{width:e,height:r}=ys(t);return{width:e,height:r}}function iu(t,e,r){let n=Ze(e),i=Je(e),o=r==="fixed",s=_r(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=We(0);if((n||!o)&&((Tt(e)!=="body"||Or(i))&&(a=Tr(e)),n)){let p=_r(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!n&&i&&(l.x=nn(i));let c=i&&!n&&!o?xs(i,a):We(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function ai(t){return De(t).position==="static"}function vs(t,e){if(!Ze(t)||De(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function As(t,e){let r=de(t);if(wr(t))return r;if(!Ze(t)){let i=lt(t);for(;i&&!tr(i);){if(ke(i)&&!ai(i))return i;i=lt(i)}return r}let n=vs(t,e);for(;n&&ps(n)&&ai(n);)n=vs(n,e);return n&&tr(n)&&ai(n)&&!er(n)?r:n||fs(t)||r}var ou=async function(t){let e=this.getOffsetParent||As,r=this.getDimensions,n=await r(t.floating);return{reference:iu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function su(t){return De(t).direction==="rtl"}var on={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:Je,getClippingRect:ru,getOffsetParent:As,getElementRects:ou,getClientRects:Xc,getDimensions:nu,getScale:rr,isElement:ke,isRTL:su};var Ss=ls,Es=cs;var Cs=(t,e,r)=>{let n=new Map,i=r??{},o={...on,...i.platform,_c:n};return as(t,e,{...i,platform:o})};function Os(t){return au(t)}function li(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=li(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=li(t);e;e=li(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||er(r)||e.tagName==="BODY"))return e}return null}async function ws(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Cs(t,e,{strategy:n.strategy,platform:{...on,getOffsetParent:i=>on.getOffsetParent(i,Os)},middleware:[Es({crossAxis:!0}),Ss({allowedPlacements:[n.placement]})]})}var hr=f(E());var Ni=f(z());var Ts=f(z(),1);var ci=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _s(t,e){return(0,Ts.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Rr(t);try{return JSON.parse(r)}catch{return Rr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Lr,...e??{}})}function lu(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,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!sn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!sn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(t);if(r=o.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return lu(t,e)}catch{return!1}}function Lr(t,e){return!sn(t,e)}function Rr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function an(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Rs=f(z(),1);var ui=t=>{let e=t??{};return(r,n)=>{var i;let o={hasChanged:Lr,attribute:!1,...e};(0,Rs.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var ln=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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 _t=f(z(),1);var cn=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(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 n)try{await s()}catch(a){i(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 Ps=f(L(),1);var un=globalThis,cu=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ls=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=un.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var dn=class extends Ps.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},n=this.renderOptions.creationScope=this.attachShadow(r);return Ls(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){ci(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 ks(t,e,...r){var n;let i=t.querySelector(e);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var ir=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ms,Ds=Symbol("constructorPrototype"),Ns=Symbol("constructorName"),$s=Symbol("exportpartsDebouncer"),Is=Symbol("dynamicDependenciesLoaded"),nr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};nr.eventName="exportparts-updated";var Ke=class extends dn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ms]=new cn(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$s].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[Ns]=this.constructor.name,this[Ds]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ns]&&Object.setPrototypeOf(this,this[Ds])}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(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Is]||(r[Is]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nr.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 nr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=ks(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(b=>b.trim());for(let b of v)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ms=$s;ir([(0,_t.property)()],Ke.prototype,"exportpartsPrefix",void 0);ir([_s([])],Ke.prototype,"exportpartsPrefixes",void 0);ir([(0,_t.property)({reflect:!0})],Ke.prototype,"exportparts",void 0);ir([(0,_t.property)()],Ke.prototype,"customStylesheet",void 0);ir([(0,_t.property)()],Ke.prototype,"elementToFocus",void 0);ir([(0,_t.state)()],Ke.prototype,"useAdoptedStyleSheets",void 0);function pn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),uu=an(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=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[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Rt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Rt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Rt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Rt].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[ct].has(s.store):this[ct].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ct].set(s,a.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),pn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Pr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ct].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ct].has(s)&&this[ct].get(s)(),this[ct].delete(s),(a=this[Pr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ct,r=Rt,n=Pr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Us=class extends uu(Ke){};function Oe(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,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 Qe(t){return!!t&&!!t[U]}function Ne(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gu})(t)||Array.isArray(t)||!!t[Ws]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ws])||bi(t)||xi(t))}function Lt(t,e,r){r===void 0&&(r=!1),ar(t)===0?(r?Object.keys:sr)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function ar(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bi(t)?2:xi(t)?3:0}function or(t,e){return ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return ar(t)===2?t.get(e):t[e]}function Ks(t,e,r){var n=ar(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Gs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bi(t){return vu&&t instanceof Map}function xi(t){return yu&&t instanceof Set}function ut(t){return t.o||t.t}function Ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xs(t);delete e[U];for(var r=sr(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Si(t,e){return e===void 0&&(e=!1),Ei(t)||Qe(t)||!Ne(t)||(ar(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Lt(t,(function(r,n){return Si(n,!0)}),!0)),t}function pu(){Oe(2)}function Ei(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ge(t){var e=gi[t];return e||Oe(18,t),e}function fu(t,e){gi[t]||(gi[t]=e)}function mi(){return Dr}function di(t,e){e&&(Ge("Patches"),t.u=[],t.s=[],t.v=e)}function fn(t){vi(t),t.p.forEach(hu),t.p=null}function vi(t){t===Dr&&(Dr=t.l)}function Bs(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function hu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function pi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ge("ES5").S(e,t,n),n?(r[U].P&&(fn(e),Oe(4)),Ne(t)&&(t=hn(e,t),e.l||mn(e,t)),e.u&&Ge("Patches").M(r[U].t,t,e.u,e.s)):t=hn(e,r,[]),fn(e),e.u&&e.v(e.u,e.s),t!==Ys?t:void 0}function hn(t,e,r){if(Ei(e))return e;var n=e[U];if(!n)return Lt(e,(function(a,l){return Hs(t,n,e,a,l,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ai(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),Lt(o,(function(a,l){return Hs(t,n,i,a,l,r,s)})),mn(t,i,!1),r&&t.u&&Ge("Patches").N(n,r,t.u,t.s)}return n.o}function Hs(t,e,r,n,i,o,s){if(Qe(i)){var a=hn(t,i,o&&e&&e.i!==3&&!or(e.R,n)?o.concat(n):void 0);if(Ks(r,n,a),!Qe(a))return;t.m=!1}else s&&r.add(i);if(Ne(i)&&!Ei(i)){if(!t.h.D&&t._<1)return;hn(t,i),e&&e.A.l||mn(t,i)}}function mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Si(e,r)}function fi(t,e){var r=t[U];return(r?ut(r):t)[e]}function js(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function hi(t){t.o||(t.o=Ai(t.t))}function yi(t,e,r){var n=bi(e)?Ge("MapSet").F(e,r):xi(e)?Ge("MapSet").T(e,r):t.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:mi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Nr;s&&(l=[a],c=kr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):Ge("ES5").J(e,r);return(r?r.A:mi()).p.push(n),n}function mu(t){return Qe(t)||Oe(22,t),(function e(r){if(!Ne(r))return r;var n,i=r[U],o=ar(r);if(i){if(!i.P&&(i.i<4||!Ge("ES5").K(i)))return i.t;i.I=!0,n=Fs(r,o),i.I=!1}else n=Fs(r,o);return Lt(n,(function(s,a){i&&du(i.t,s)===a||Ks(n,s,e(a))})),o===3?new Set(n):n})(t)}function Fs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ai(t)}function qs(){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[U];return Nr.get(c,s)},set:function(c){var u=this[U];Nr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][U];if(!l.P)switch(l.i){case 5:n(l)&&dt(l);break;case 4:r(l)&&dt(l)}}}function r(s){for(var a=s.t,l=s.k,c=sr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==U){var p=a[d];if(p===void 0&&!or(a,d))return!0;var h=l[d],m=h&&h[U];if(m?m.t!==p:!Gs(h,p))return!0}}var v=!!a[U];return c.length!==sr(a).length+(v?0:1)}function n(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 i(s){s.g&&Oe(3,JSON.stringify(ut(s)))}var o={};fu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=Xs(p);delete v[U];for(var b=sr(v),x=0;x<b.length;x++){var S=b[x];v[S]=t(S,d||!!v[S].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:mi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,U,{value:u,writable:!0}),c},S:function(s,a,l){l?Qe(a)&&a[U].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[U];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)Lt(h,(function(w){w!==U&&(p[w]!==void 0||or(p,w)?m[w]||c(h[w]):(m[w]=!0,dt(d)))})),Lt(p,(function(w){h[w]!==void 0||or(h,w)||(m[w]=!1,dt(d))}));else if(v===5){if(n(d)&&(dt(d),m.length=!0),h.length<p.length)for(var b=h.length;b<p.length;b++)m[b]=!1;else for(var x=p.length;x<h.length;x++)m[x]=!0;for(var S=Math.min(h.length,p.length),C=0;C<S;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Vs,Dr,Ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",yu=typeof Set<"u",zs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=Ci?Symbol.for("immer-nothing"):((Vs={})["immer-nothing"]=!0,Vs),Ws=Ci?Symbol.for("immer-draftable"):"__$immer_draftable",U=Ci?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(t){var e={};return sr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},gi={},Nr={get:function(t,e){if(e===U)return t;var r=ut(t);if(!or(r,e))return(function(i,o,s){var a,l=js(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Ne(n)?n:n===fi(t.t,e)?(hi(t),t.o[e]=yi(t.A.h,n,t)):n},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var n=js(ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=fi(ut(t),e),o=i?.[U];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Gs(r,i)&&(r!==void 0||or(t.t,e)))return!0;hi(t),dt(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 fi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,hi(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Oe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oe(12)}},kr={};Lt(Nr,(function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,r){return Nr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var n=this;this.O=zs,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var b=this;v===void 0&&(v=a);for(var x=arguments.length,S=Array(x>1?x-1:0),C=1;C<x;C++)S[C-1]=arguments[C];return l.produce(v,(function(w){var q;return(q=o).call.apply(q,[b,w].concat(S))}))}}var c;if(typeof o!="function"&&Oe(6),s!==void 0&&typeof s!="function"&&Oe(7),Ne(i)){var u=Bs(n),d=yi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?fn(u):vi(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return di(u,s),pi(v,u)}),(function(v){throw fn(u),v})):(di(u,s),pi(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Ys&&(c=void 0),n.D&&Si(c,!0),s){var h=[],m=[];Ge("Patches").M(i,c,h,m),s(h,m)}return c}Oe(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));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){Ne(r)||Oe(8),Qe(r)&&(r=mu(r));var n=Bs(this),i=yi(this,r,void 0);return i[U].C=!0,vi(n),i},e.finishDraft=function(r,n){var i=r&&r[U],o=i.A;return di(o,n),pi(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!zs&&Oe(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=Ge("Patches").$;return Qe(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},t})(),ge=new bu,xu=ge.produce,Hp=ge.produceWithPatches.bind(ge),jp=ge.setAutoFreeze.bind(ge),Fp=ge.setUseProxies.bind(ge),Vp=ge.applyPatches.bind(ge),zp=ge.createDraft.bind(ge),Wp=ge.finishDraft.bind(ge),vn=xu;function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function Js(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zs(t){var e=Js(t,"string");return Pt(e)=="symbol"?e:e+""}function Qs(t,e,r){return(e=Zs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ea(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Oi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(n){Qs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oe(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 ta=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wi=function(){return Math.random().toString(36).substring(7).split("").join(".")},yn={INIT:"@@redux/INIT"+wi(),REPLACE:"@@redux/REPLACE"+wi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wi()}};function Au(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 Ti(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(oe(1));return r(Ti)(t,e)}if(typeof t!="function")throw new Error(oe(2));var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(oe(3));return o}function d(v){if(typeof v!="function")throw new Error(oe(4));if(l)throw new Error(oe(5));var b=!0;return c(),a.push(v),function(){if(b){if(l)throw new Error(oe(6));b=!1,c();var S=a.indexOf(v);a.splice(S,1),s=null}}}function p(v){if(!Au(v))throw new Error(oe(7));if(typeof v.type>"u")throw new Error(oe(8));if(l)throw new Error(oe(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var b=s=a,x=0;x<b.length;x++){var S=b[x];S()}return v}function h(v){if(typeof v!="function")throw new Error(oe(10));i=v,p({type:yn.REPLACE})}function m(){var v,b=d;return v={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(oe(11));function C(){S.next&&S.next(u())}C();var w=b(C);return{unsubscribe:w}}},v[ta]=function(){return this},v}return p({type:yn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[ta]=m,n}function Su(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:yn.INIT});if(typeof n>"u")throw new Error(oe(12));if(typeof r(void 0,{type:yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function ra(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s,a;try{Su(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],b=r[v],x=c[v],S=b(x,u);if(typeof S>"u"){var C=u&&u.type;throw new Error(oe(14))}h[v]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?h:c}}function lr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function na(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(oe(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=lr.apply(void 0,a)(i.dispatch),Oi(Oi({},i),{},{dispatch:o})}}}function ia(t){var e=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var oa=ia();oa.withExtraArgument=ia;var _i=oa;var ua=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,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(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=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++,i=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(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Cu=Object.defineProperty,Ou=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,aa=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&aa(t,r,e[r]);if(sa)for(var n=0,i=sa(e);n<i.length;n++){var r=i[n];_u.call(e,r)&&aa(t,r,e[r])}return t},Ri=function(t,e){return Ou(t,wu(e))},Ru=function(t,e,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lr:lr.apply(null,arguments)},uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pu(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 ft(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return pt(pt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var ku=(function(t){ua(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,cr([void 0],r[0].concat(this)))):new(e.bind.apply(e,cr([void 0],r.concat(this))))},e})(Array),Du=(function(t){ua(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,cr([void 0],r[0].concat(this)))):new(e.bind.apply(e,cr([void 0],r.concat(this))))},e})(Array);function ki(t){return Ne(t)?vn(t,function(){}):t}function Nu(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new ku;if(r&&(Nu(r)?c.push(_i):c.push(_i.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Li=!0;function da(t){var e=Iu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Pu(i))h=ra(i);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),!Li&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Li&&m.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=na.apply(void 0,m),b=lr;l&&(b=Lu(pt({trace:!Li},typeof l=="object"&&l)));var x=new Du(v),S=x;Array.isArray(p)?S=cr([v],p):typeof p=="function"&&(S=p(x));var C=b.apply(void 0,S);return Ti(h,u,C)}function pa(t){var e={},r=[],n,i={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,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return t(i),[e,r,n]}function $u(t){return typeof t=="function"}function Uu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?pa(e):[e,r,n],o=i[0],s=i[1],a=i[2],l;if($u(t))l=function(){return ki(t())};else{var c=ki(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=cr([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(Qe(m)){var b=m,x=v(b,p);return x===void 0?m:x}else{if(Ne(m))return vn(m,function(S){return v(S,p)});var x=v(m,p);if(x===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return m},d)}return u.getInitialState=l,u}function Bu(t,e){return t+"/"+e}function fa(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:ki(t.initialState),n=t.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Bu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?ft(p,m):ft(p)});function l(){var u=typeof t.extraReducers=="function"?pa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],b=v===void 0?void 0:v,x=pt(pt({},p),s);return Uu(r,function(S){for(var C in x)S.addCase(C,x[C]);for(var w=0,q=m;w<q.length;w++){var V=q[w];S.addMatcher(V.matcher,V.reducer)}b&&S.addDefaultCase(b)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],Pi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),la=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Fu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hf=(function(){function t(e,r,n){var i=ft(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Ri(pt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=ft(e+"/pending",function(u,d,p){return{payload:void 0,meta:Ri(pt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Vu)(u||"Rejected"),meta:Ri(pt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):ju(),v=new l,b,x=!1;function S(w){b=w,v.abort()}var C=(function(){return Ru(this,null,function(){var w,q,V,rt,jn,nt,me;return Eu(this,function(Ee){switch(Ee.label){case 0:return Ee.trys.push([0,4,,5]),rt=(w=n?.condition)==null?void 0:w.call(n,u,{getState:p,extra:h}),Wu(rt)?[4,rt]:[3,2];case 1:rt=Ee.sent(),Ee.label=2;case 2:if(rt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,jn=new Promise(function(ve,At){return v.signal.addEventListener("abort",function(){return At({name:"AbortError",message:b||"Aborted"})})}),d(o(m,u,(q=n?.getPendingMeta)==null?void 0:q.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([jn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:S,rejectWithValue:function(ve,At){return new Pi(ve,At)},fulfillWithValue:function(ve,At){return new la(ve,At)}})).then(function(ve){if(ve instanceof Pi)throw ve;return ve instanceof la?i(ve.payload,m,u,ve.meta):i(ve,m,u)})])];case 3:return V=Ee.sent(),[3,5];case 4:return nt=Ee.sent(),V=nt instanceof Pi?s(null,m,u,nt.payload,nt.meta):s(nt,m,u),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(V)&&V.meta.condition,me||d(V),[2,V]}})})})();return Object.assign(C,{abort:S,requestId:m,arg:u,unwrap:function(){return C.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ha="listener",ma="completed",va="cancelled",mf="task-"+va,vf="task-"+ma,yf=ha+"-"+va,gf=ha+"-"+ma;var Di="listenerMiddleware";var bf=ft(Di+"/add"),xf=ft(Di+"/removeAll"),Af=ft(Di+"/remove");var ca,Sf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ca||(ca=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Ef=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);qs();var Gu=an(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),gn=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ya=class t extends gn{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,o=window.ftReduxStores[n];if(pn(o))return o;if(i==null)return;let s=fa({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=da({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Rr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new t(s,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ln;let i=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?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??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 bn=class{static format(e,r,n,i,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(e,r,n,i,!!o)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var xn=f(E()),qu="ft-app-info",ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ur.eventName="authentication-change";var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,xn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ur(e.payload)),0))}},T=xn.FtReduxStore.get({name:qu,reducers:Yu,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 ga=f(E()),An=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Jf=(0,ga.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>bn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return An([(0,Ni.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),An([(0,Ni.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),An([ui({store:T.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),An([ui({store:T.name})],e.prototype,"uiLocale",void 0),e});var ba;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ba||(ba={}));var xa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xa||(xa={}));var Aa;(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"})(Aa||(Aa={}));var Sa;(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"})(Sa||(Sa={}));var Ea;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ea||(Ea={}));var Ca;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ca||(Ca={}));var Oa;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Oa||(Oa={}));var wa;(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"})(wa||(wa={}));var Ta;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ta||(Ta={}));var _a;(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"})(_a||(_a={}));var Ra;(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"})(Ra||(Ra={}));var La;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(La||(La={}));var Pa;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pa||(Pa={}));var ka;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ka||(ka={}));var Da;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Da||(Da={}));var Na;(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"})(Na||(Na={}));var Ia;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ia||(Ia={}));var Ma;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ma||(Ma={}));var $a;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($a||($a={}));var Ua;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ua||(Ua={}));var Ba;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ba||(Ba={}));var Ha;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ha||(Ha={}));var ja;(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"})(ja||(ja={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fa||(Fa={}));var Va;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Va||(Va={}));var za;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(za||(za={}));var Wa;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wa||(Wa={}));var G;(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"})(G||(G={}));var we;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(we||(we={}));var Ka;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ka||(Ka={}));var Ga;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ga||(Ga={}));var qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qa||(qa={}));var Ya;(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"})(Ya||(Ya={}));var Xa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xa||(Xa={}));var Ja;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ja||(Ja={}));var Za;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Za||(Za={}));var Qa;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qa||(Qa={}));var el;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(el||(el={}));var tl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nl||(nl={}));var Xu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function il(t,e){return t===e||(Xu[t]??[]).some(r=>il(r,e))}function ol(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(n=>il(n,e))}var wn=f(E());var Ii=f(E());var kt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=T.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var dr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var be=class extends dr{constructor(e=!0,r){var n;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 i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ii.CacheRegistry,this.cache=e?i.commonCache:new Ii.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Sn=class extends be{async listMySearches(){let{session:e}=T.getState();return ol(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends be{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 Cn=class extends be{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 On=class extends be{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 Ju="ft-user-assets",Zu={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(we).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:n,asset:i}=e.payload;$i(t,r,[...Mi(t,r),i]),sl(t,r,1,n),al(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;$i(t,r,Mi(t,r).map(i=>i.id===n.id?n:i)),al(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;$i(t,r,Mi(t,r).filter(o=>o.id!==i)),sl(t,r,-1,n)}},ll={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Mi=(t,e)=>{var r;let n=ll[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},$i=(t,e,r)=>{let n=ll[e];n&&(t[n]=r)},sl=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===we.BOOKMARKS&&n)){let o=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},al=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ae=wn.FtReduxStore.get({name:Ju,reducers:Zu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ui=class{constructor(e=new Cn,r=new On){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new Sn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,wn.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(),ae.actions.clearAssetCount(),ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ae.getState().assetCounts.allAsset[e]!==r.count&&ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ae.getState().assetCounts.bookmarkByMap).length!==0;e===we.BOOKMARKS&&r&&ae.actions.clearBookmarkCountByMap(),ae.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;ae.actions.bookmarks(r)}}},Qu=new Ui;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var Bi=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bi;var Te=f(E());var cl,pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),Tn=class extends(0,Te.withEventBus)(be){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cl]=()=>{this.defaultMessages={},this.cache=new Te.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,Te.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let o=e.toLowerCase(),s=this.resolveContext(o);return new Te.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Te.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new pr({loadedContexts:e})),this.dispatchEvent(new pr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new pr({loadedContexts:[e]})),this.dispatchEvent(new pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Te.delay)(0).then(()=>n()).catch(()=>null)))}};cl=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mr=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var ul=f(E()),ji=class{highlightHtml(e,r,n){(0,ul.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new ji;var dl=f(E());var Fi=class{isDate(e){var r,n,i,o;return(o=(i=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var n,i,o,s;if(e==null)return"";try{return dl.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!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 Fi;var pl=f(E());var $r=class{static get(e,r){var n,i,o,s;let a=T.getState(),{lang:l,region:c}=(o=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new pl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Vi=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new Vi;var et=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Dt.eventName="change";var zi=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))}},fl=new zi;var _n=class t extends et.WithEventBus{static build(){return new t(window.history,fl,()=>window.location,!1)}constructor(e,r,n,i){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,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(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,et.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Dt(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[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};n.apply(i,[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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Dt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Dt.eventName,e)}currentItem(){return(0,et.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,et.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,et.deepCopy)(r.find(n=>e(n)))}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,et.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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};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 hl=f(L());var ml=hl.css`
261
- `;var gl=f(L()),pe=f(z()),Mt=f(E());var Nt=f(E());function vl(t,e){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Rn=class extends dr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Wi=class t extends Nt.FtStateManager{static build(e){return new t(T,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Rn,this.cleanSessionDebouncer=new Nt.Debouncer,this.reloadDebouncer=new Nt.Debouncer(500),this.apiProvider=r??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ur.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",()=>vl(()=>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(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ir(n)))}).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)}},yl=Wi.build();var It=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Ur=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:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new It(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}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 te=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},B=class extends Mt.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=yl,this.contextRoot=new Ur}render(){return gl.html`
260
+ `;var so=["top","right","bottom","left"],io=["start","end"],hi=so.reduce((e,t)=>e.concat(t,t+"-"+io[0],t+"-"+io[1]),[]),yr=Math.min,st=Math.max,gr=Math.round;var ze=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"};function oo(e,t,r){return st(e,yr(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function mi(e){return e==="x"?"y":"x"}function yi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function gi(e){return mi(Xr(e))}function ao(e,t,r){r===void 0&&(r=!1);let n=ot(e),s=gi(e),i=yi(s),o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=fi(o)),[o,fi(o)]}function lo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function fi(e){let t=vr(e);return tu[t]+e.slice(t.length)}function ru(e){var t,r,n,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(s=e.left)!=null?s:0}}function co(e){return typeof e!="number"?ru(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function uo(e,t,r){let{reference:n,floating:s}=e,i=Xr(t),o=gi(t),a=yi(o),l=vr(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-s.width,y:d};break;default:y={x:n.x,y:n.y}}let b=ot(t);return b&&(y[o]+=p*(b==="end"?1:-1)*(r&&c?-1:1)),y}async function po(e,t){var r;t===void 0&&(t={});let{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Yr(t,e),b=co(y),v=a[p?d==="floating"?"reference":"floating":d],A=St(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},T=St(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:x,strategy:l}):L);return{top:(A.top-T.top+b.top)/C.y,bottom:(T.bottom-A.bottom+b.bottom)/C.y,left:(A.left-T.left+b.left)/C.x,right:(T.right-A.right+b.right)/C.x}}var nu=50,fo=async(e,t,r)=>{let{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:po},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=uo(c,n,l),p=n,y=0,b={};for(let E=0;E<i.length;E++){let v=i[E];if(!v)continue;let{name:A,fn:L}=v,{x,y:C,data:T,reset:z}=await L({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=C??d,b[A]={...b[A],...T},z&&y<nu&&(y++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:u,y:d}=uo(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:b}};function iu(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>vr(s)===s)).filter(s=>e?ot(s)===e||(t?lo(s)!==s:!1):!0)}var ho=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,s;let{rects:i,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=hi,autoAlignment:y=!0,...b}=Yr(e,t),E=d!==void 0||p===hi?iu(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[v];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,b),x=ao(A,i,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[vr(A)],L[x[0]],L[x[1]]],T=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],z=E[v+1];if(z)return{data:{index:v+1,overflows:T},reset:{placement:z}};let $=T.map(_e=>{let gt=ot(_e.placement);return[_e.placement,gt&&u?_e.overflows.slice(0,2).reduce((Vc,zc)=>Vc+zc,0):_e.overflows[0],_e.overflows]}).sort((_e,gt)=>_e[1]-gt[1]),cr=((s=$.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:s[0])||$[0][0];return cr!==a?{data:{index:v+1,overflows:T},reset:{placement:cr}}:{}}}};var mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...c}=Yr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Xr(s),y=mi(p),b=u[y],E=u[p],v=(L,x)=>oo(x+d[L==="y"?"top":"left"],x,x-d[L==="y"?"bottom":"right"]);o&&(b=v(y,b)),a&&(E=v(p,E));let A=l.fn({...t,[y]:b,[p]:E});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[y]:o,[p]:a}}}}}};function Zr(){return typeof window<"u"}function At(e){return go(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function go(e){return Zr()?e instanceof Node||e instanceof fe(e).Node:!1}function ke(e){return Zr()?e instanceof Element||e instanceof fe(e).Element:!1}function Ze(e){return Zr()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function yo(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function br(e){let{overflow:t,overflowX:r,overflowY:n,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function vo(e){return/^(table|td|th)$/.test(At(e))}function xr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var su=/transform|translate|scale|rotate|perspective|filter/,ou=/paint|layout|strict|content/,Et=e=>!!e&&e!=="none",vi;function Yt(e){let t=ke(e)?Pe(e):e;return Et(t.transform)||Et(t.translate)||Et(t.scale)||Et(t.rotate)||Et(t.perspective)||!Qr()&&(Et(t.backdropFilter)||Et(t.filter))||su.test(t.willChange||"")||ou.test(t.contain||"")}function bo(e){let t=at(e);for(;Ze(t)&&!Xt(t);){if(Yt(t))return t;if(xr(t))return null;t=at(t)}return null}function Qr(){return vi==null&&(vi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vi}function Xt(e){return/^(html|body|#document)$/.test(At(e))}function Pe(e){return fe(e).getComputedStyle(e)}function Sr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(At(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Je(e);return yo(t)?t.host:t}function xo(e){let t=at(e);return Xt(t)?(e.ownerDocument||e).body:Ze(t)&&br(t)?t:xo(t)}function Jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=xo(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=fe(s);if(i){let a=en(o);return t.concat(o,o.visualViewport||[],br(s)?s:[],a&&r?Jr(a):[])}else return t.concat(s,Jr(s,[],r))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ao(e){let t=Pe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,s=Ze(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=gr(r)!==i||gr(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function _o(e){return ke(e)?e:e.contextElement}function Jt(e){let t=_o(e);if(!Ze(t))return ze(1);let r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Ao(t),o=(i?gr(r.width):r.width)/n,a=(i?gr(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var au=ze(0);function Co(e){let t=fe(e);return!Qr()||!t.visualViewport?au:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===fe(e)}function Er(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),i=_o(e),o=ze(1);t&&(n?ke(n)&&(o=Jt(n)):o=Jt(e));let a=lu(i,r,n)?Co(i):ze(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i&&n){let p=fe(i),y=ke(n)?fe(n):n,b=p,E=en(b);for(;E&&y!==b;){let v=Jt(E),A=E.getBoundingClientRect(),L=Pe(E),x=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*v.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,b=fe(E),E=en(b)}}return St({width:u,height:d,x:l,y:c})}function tn(e,t){let r=Sr(e).scrollLeft;return t?t.left+r:Er(Je(e)).left+r}function wo(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-tn(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function cu(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e,i=s==="fixed",o=Je(n),a=t?xr(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ze(1),u=ze(0),d=Ze(n);if((d||!i)&&((At(n)!=="body"||br(o))&&(l=Sr(n)),d)){let y=Er(n);c=Jt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=o&&!d&&!i?wo(o,l):ze(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function uu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function du(e){let t=Sr(e),r=e.ownerDocument.body,n=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),i=-t.scrollLeft+tn(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(i+=st(e.clientWidth,r.clientWidth)-n),{width:n,height:s,x:i,y:o}}var pu=25;function fu(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",s=fe(e),i=Je(e),o=s.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(o){let p=!Qr()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(tn(i)<=0){let p=i.ownerDocument,y=p.body,b=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(i.clientWidth-y.clientWidth-E),A=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;A<=pu&&(a-=A)}return{width:a,height:l,x:c,y:u}}function hu(e,t){let r=Er(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Jt(e),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=n*i.y;return{width:o,height:a,x:l,y:c}}function So(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=fu(e,r,t);else if(t==="document")n=du(Je(e));else if(ke(t))n=hu(t,r);else{let s=Co(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return St(n)}function mu(e,t){let r=t.get(e);if(r)return r;let n=Jr(e,[],!1).filter(a=>ke(a)&&At(a)!=="body"),s=null,i=Pe(e).position==="fixed",o=i?at(e):e;for(;ke(o)&&!Xt(o);){let a=Pe(o),l=Yt(o),c=s?s.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,n),n}function yu(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e,o=[...r==="clippingAncestors"?xr(t)?[]:mu(t,this._c):[].concat(r),n],a=So(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=So(t,o[p],s);l=st(y.top,l),c=yr(y.right,c),u=yr(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function gu(e){let{width:t,height:r}=Ao(e);return{width:t,height:r}}function vu(e,t,r){let n=Ze(t),s=Je(t),i=r==="fixed",o=Er(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=ze(0);if((n||!i)&&((At(t)!=="body"||br(s))&&(a=Sr(t)),n)){let p=Er(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&s&&(l.x=tn(s));let c=s&&!n&&!i?wo(s,a):ze(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function bi(e){return Pe(e).position==="static"}function Eo(e,t){if(!Ze(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Je(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){let r=fe(e);if(xr(e))return r;if(!Ze(e)){let s=at(e);for(;s&&!Xt(s);){if(ke(s)&&!bi(s))return s;s=at(s)}return r}let n=Eo(e,t);for(;n&&vo(n)&&bi(n);)n=Eo(n,t);return n&&Xt(n)&&bi(n)&&!Yt(n)?r:n||bo(e)||r}var bu=async function(e){let t=this.getOffsetParent||Oo,r=this.getDimensions,n=await r(e.floating);return{reference:vu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xu(e){return Pe(e).direction==="rtl"}var rn={convertOffsetParentRelativeRectToViewportRelativeRect:cu,getDocumentElement:Je,getClippingRect:yu,getOffsetParent:Oo,getElementRects:bu,getClientRects:uu,getDimensions:gu,getScale:Jt,isElement:ke,isRTL:xu};var To=ho,Ro=mo;var Lo=(e,t,r)=>{let n=new Map,s=r??{},i={...rn,...s.platform,_c:n};return fo(e,t,{...s,platform:i})};function ko(e){return Su(e)}function xi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Su(e){for(let t=e;t;t=xi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=xi(e);t;t=xi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Yt(r)||t.tagName==="BODY"))return t}return null}async function Po(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Lo(e,t,{strategy:n.strategy,platform:{...rn,getOffsetParent:s=>rn.getOffsetParent(s,ko)},middleware:[Ro({crossAxis:!0}),To({allowedPlacements:[n.placement]})]})}var ar=f(S());var Vi=f(K());var No=f(K(),1);var Si=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Do(e,t){return(0,No.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ar(e);try{return JSON.parse(r)}catch{return Ar(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:_r,...t??{}})}function Eu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Zt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Zt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Zt(e,t){try{return Eu(e,t)}catch{return!1}}function _r(e,t){return!Zt(e,t)}function Ar(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function nn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Mo=f(K(),1);var Ei=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:_r,attribute:!1,...t};(0,Mo.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var sn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(K(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var $o=f(k(),1);var an=globalThis,Au=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Io=(e,t)=>{if(Au)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=an.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var ln=class extends $o.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Si(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Uo(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var er=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Vo,Bo=Symbol("constructorPrototype"),Ho=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer"),Fo=Symbol("dynamicDependenciesLoaded"),Qt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var je=class extends ln{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vo]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[zo].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ho]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ho]&&Object.setPrototypeOf(this,this[Bo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Fo]||(r[Fo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Uo(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],b=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...b].filter(l).map(v=>v.trim());for(let v of E)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Vo=zo;er([(0,_t.property)()],je.prototype,"exportpartsPrefix",void 0);er([Do([])],je.prototype,"exportpartsPrefixes",void 0);er([(0,_t.property)({reflect:!0})],je.prototype,"exportparts",void 0);er([(0,_t.property)()],je.prototype,"customStylesheet",void 0);er([(0,_t.property)()],je.prototype,"elementToFocus",void 0);er([(0,_t.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function cn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Cr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),_u=nn(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ct].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Cr].set(o,[]),cn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Cr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Cr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Cr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Ct,n=Cr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),jo=class extends _u(je){};function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Cu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wo=Cu,Ai=()=>Math.random().toString(36).substring(7).split("").join("."),wu={INIT:`@@redux/INIT${Ai()}`,REPLACE:`@@redux/REPLACE${Ai()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ai()}`},un=wu;function dn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _i(e,t,r){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(re(1));return r(_i)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((v,A)=>{o.set(A,v)}))}function u(){if(l)throw new Error(re(3));return s}function d(v){if(typeof v!="function")throw new Error(re(4));if(l)throw new Error(re(5));let A=!0;c();let L=a++;return o.set(L,v),function(){if(A){if(l)throw new Error(re(6));A=!1,c(),o.delete(L),i=null}}}function p(v){if(!dn(v))throw new Error(re(7));if(typeof v.type>"u")throw new Error(re(8));if(typeof v.type!="string")throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,s=n(s,v)}finally{l=!1}return(i=o).forEach(L=>{L()}),v}function y(v){if(typeof v!="function")throw new Error(re(10));n=v,p({type:un.REPLACE})}function b(){let v=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(re(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:v(L)}},[Wo](){return this}}}return p({type:un.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Wo]:b}}function Ou(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(re(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Ko(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{Ou(r)}catch(o){i=o}return function(a={},l){if(i)throw i;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],b=a[p],E=y(b,l);if(typeof E>"u"){let v=l&&l.type;throw new Error(re(14))}u[p]=E,c=c||E!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function wr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Go(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(re(15))},o={getState:s.getState,dispatch:(l,...c)=>i(l,...c)},a=e.map(l=>l(o));return i=wr(...a)(s.dispatch),{...s,dispatch:i}}}function qo(e){return dn(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Yo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Ne(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,rr=ve.getPrototypeOf,mn="constructor",Sn="prototype",Ti="configurable",yn="enumerable",fn="writable",Or="value",We=e=>!!e&&!!e[ae];function be(e){return e?ia(e)||An(e)||!!e[Yo]||!!e[mn]?.[Yo]||_n(e)||Cn(e):!1}var Tu=ve[Sn][mn].toString(),Xo=new WeakMap;function ia(e){if(!e||!Ii(e))return!1;let t=rr(e);if(t===null||t===ve[Sn])return!0;let r=ve.hasOwnProperty.call(t,mn)&&t[mn];if(r===Object)return!0;if(!tr(r))return!1;let n=Xo.get(r);return n===void 0&&(n=Function.toString.call(r),Xo.set(r,n)),n===Tu}function En(e,t,r=!0){Lr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Lr(e){let t=e[ae];return t?t.type_:An(e)?1:_n(e)?2:Cn(e)?3:0}var Ci=(e,t,r=Lr(e))=>r===2?e.has(t):ve[Sn].hasOwnProperty.call(e,t),Ri=(e,t,r=Lr(e))=>r===2?e.get(t):e[t],gn=(e,t,r,n=Lr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Ru(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var An=Array.isArray,_n=e=>e instanceof Map,Cn=e=>e instanceof Set,Ii=e=>typeof e=="object",tr=e=>typeof e=="function",wi=e=>typeof e=="boolean";function Lu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>e.copy_||e.base_;var $i=e=>e.modified_?e.copy_:e.base_;function Li(e,t){if(_n(e))return new Map(e);if(Cn(e))return new Set(e);if(An(e))return Array[Sn].slice.call(e);let r=ia(e);if(t===!0||t==="class_only"&&!r){let n=ve.getOwnPropertyDescriptors(e);delete n[ae];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[fn]===!1&&(a[fn]=!0,a[Ti]=!0),(a.get||a.set)&&(n[o]={[Ti]:!0,[fn]:!0,[yn]:a[yn],[Or]:e[o]})}return ve.create(rr(e),n)}else{let n=rr(e);if(n!==null&&r)return{...e};let s=ve.create(n);return ve.assign(s,e)}}function Ui(e,t=!1){return wn(e)||We(e)||!be(e)||(Lr(e)>1&&ve.defineProperties(e,{set:pn,add:pn,clear:pn,delete:pn}),ve.freeze(e),t&&En(e,(r,n)=>{Ui(n,!0)},!1)),e}function ku(){Ne(2)}var pn={[Or]:ku};function wn(e){return e===null||!Ii(e)?!0:ve.isFrozen(e)}var vn="MapSet",ki="Patches",Jo="ArrayMethods",sa={};function wt(e){let t=sa[e];return t||Ne(0,e),t}var Zo=e=>!!sa[e];var Tr,oa=()=>Tr,Pu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zo(vn)?wt(vn):void 0,arrayMethodsPlugin_:Zo(Jo)?wt(Jo):void 0});function Qo(e,t){t&&(e.patchPlugin_=wt(ki),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pi(e){Ni(e),e.drafts_.forEach(Nu),e.drafts_=null}function Ni(e){e===Tr&&(Tr=e.parent_)}var ea=e=>Tr=Pu(Tr,e);function Nu(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ta(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Pi(t),Ne(4)),be(e)&&(e=ra(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[ae].base_,e,t)}else e=ra(t,r);return Du(t,e,!0),Pi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ra(e,t){if(wn(t))return t;let r=t[ae];if(!r)return bn(t,e.handledSet_,e);if(!On(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);ca(r,e)}return r.copy_}function Du(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ui(t,r)}function aa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var On=(e,t)=>e.scope_===t,Mu=[];function la(e,t,r,n){let s=Qe(e),i=e.type_;if(n!==void 0&&Ri(s,n,i)===t){gn(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(s,(l,c)=>{if(We(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Mu;for(let a of o)gn(s,a,r,i)}function Iu(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!On(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=$i(i);la(e,i.draft_??i,o,r),ca(i,s)})}function ca(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}aa(e)}}function $u(e,t,r){let{scope_:n}=e;if(We(r)){let s=r[ae];On(s,n)&&s.callbacks_.push(function(){hn(e);let o=$i(s);la(e,r,o,t)})}else be(r)&&e.callbacks_.push(function(){let i=Qe(e);e.type_===3?i.has(r)&&bn(r,n.handledSet_,n):Ri(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bn(Ri(e.copy_,t,e.type_),n.handledSet_,n)})}function bn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||We(e)||t.has(e)||!be(e)||wn(e)||(t.add(e),En(e,(n,s)=>{if(We(s)){let i=s[ae];if(On(i,r)){let o=$i(i);gn(e,n,o,e.type_),aa(i)}}else be(s)&&bn(s,t,r)})),e}function Uu(e,t){let r=An(e),n={type_:r?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=xn;r&&(s=[n],i=Rr);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var xn={get(e,t){if(t===ae)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Qe(e);if(!Ci(s,t,e.type_))return Hu(e,s,t);let i=s[t];if(e.finalized_||!be(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Lu(t))return i;if(i===Oi(e.base_,t)||Bu(e,t,i)){hn(e);let o=e.type_===1?+t:t,a=Mi(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Qe(e)},ownKeys(e){return Reflect.ownKeys(Qe(e))},set(e,t,r){let n=ua(Qe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Oi(Qe(e),t),i=s?.[ae];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Ru(r,s)&&(r!==void 0||Ci(e.base_,t,e.type_)))return!0;hn(e),Di(e)}return e.copy_[t]===r&&(r!==void 0||Ci(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),$u(e,t,r)),!0},deleteProperty(e,t){return hn(e),Oi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Di(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Qe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[fn]:!0,[Ti]:e.type_!==1||t!=="length",[yn]:n[yn],[Or]:r[t]}},defineProperty(){Ne(11)},getPrototypeOf(e){return rr(e.base_)},setPrototypeOf(){Ne(12)}},Rr={};for(let e in xn){let t=xn[e];Rr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Rr.deleteProperty=function(e,t){return Rr.set.call(this,e,t,void 0)};Rr.set=function(e,t,r){return xn.set.call(this,e[0],t,r,e[0])};function Oi(e,t){let r=e[ae];return(r?Qe(r):e)[t]}function Bu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!be(r)||r[ae]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let n=ua(t,r);return n?Or in n?n[Or]:n.get?.call(e.draft_):void 0}function ua(e,t){if(!(t in e))return;let r=rr(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=rr(r)}}function Di(e){e.modified_||(e.modified_=!0,e.parent_&&Di(e.parent_))}function hn(e){e.copy_||(e.assigned_=new Map,e.copy_=Li(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(tr(t)&&!tr(r)){let i=r;r=t;let o=this;return function(l=i,...c){return o.produce(l,u=>r.call(this,u,...c))}}tr(r)||Ne(6),n!==void 0&&!tr(n)&&Ne(7);let s;if(be(t)){let i=ea(this),o=Mi(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Pi(i):Ni(i)}return Qo(i,n),ta(s,i)}else if(!t||!Ii(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Ui(s,!0),n){let i=[],o=[];wt(ki).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else Ne(1,t)},this.produceWithPatches=(t,r)=>{if(tr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},wi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),wi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),wi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){be(e)||Ne(8),We(e)&&(e=da(e));let t=ea(this),r=Mi(t,e,void 0);return r[ae].isManual_=!0,Ni(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&Ne(9);let{scope_:n}=r;return Qo(n,t),ta(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=wt(ki).applyPatches_;return We(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Mi(e,t,r,n){let[s,i]=_n(t)?wt(vn).proxyMap_(t,r):Cn(t)?wt(vn).proxySet_(t,r):Uu(t,r);return(r?.scope_??oa()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Iu(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),s}function da(e){return We(e)||Ne(10,e),pa(e)}function pa(e){if(!be(e)||wn(e))return e;let t=e[ae],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Li(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Li(e,!0);return En(r,(s,i)=>{gn(r,s,pa(i))},n),t&&(t.finalized_=!1),r}var Vu=new Fu,Bi=Vu.produce;function fa(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var ha=fa(),ma=fa;var zu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wr:wr.apply(null,arguments)},bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},ju=e=>e&&typeof e.match=="function";function ct(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(et(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>qo(n)&&n.type===e,r}var xa=class kr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kr.prototype)}static get[Symbol.species](){return kr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kr(...t[0].concat(this)):new kr(...t.concat(this))}};function ya(e){return be(e)?Bi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Wu(e){return typeof e=="boolean"}var Ku=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new xa;return r&&(Wu(r)?o.push(ha):o.push(ma(r.extraArgument))),o},Gu="RTK_autoBatch";var ga=e=>t=>{setTimeout(t,e)},qu=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())},i=e(s),o=setTimeout(s,t)},Yu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?qu(window.requestAnimationFrame,100):ga(10):e.type==="callback"?e.queueNotification:ga(e.timeout),c=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Gu],i=!s,i&&(o||(o=!0,l(c))),n.dispatch(u)}finally{s=!0}}})},Xu=e=>function(r){let{autoBatch:n=!0}=r??{},s=new xa(e);return n&&s.push(Yu(typeof n=="object"?n:void 0)),s};function Sa(e){let t=Ku(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(dn(r))l=Ko(r);else throw new Error(et(1));let c;typeof n=="function"?c=n(t):c=t();let u=wr;s&&(u=zu({trace:!1,...typeof s=="object"&&s}));let d=Go(...c),p=Xu(d),y=typeof a=="function"?a(p):p(),b=u(...y);return _i(l,o,b)}function Ea(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(et(28));if(a in t)throw new Error(et(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Ju(e){return typeof e=="function"}function Zu(e,t){let[r,n,s]=Ea(t),i;if(Ju(e))i=()=>ya(e());else{let a=ya(e);i=()=>a}function o(a=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(We(u)){let y=d(u,l);return y===void 0?u:y}else{if(be(u))return Bi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=i,o}var Qu=(e,t)=>ju(e)?e.match(t):e(t);function ed(...e){return t=>e.some(r=>Qu(r,t))}var td="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rd=(e=21)=>{let t="",r=e;for(;r--;)t+=td[Math.random()*64|0];return t},nd=["name","message","stack","code"],Hi=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},id=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of nd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",sd=(()=>{function e(t,r,n){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||id)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):rd(),b=new AbortController,E,v;function A(x){v=x,b.abort()}c&&(c.aborted?A(ba):c.addEventListener("abort",()=>A(ba),{once:!0}));let L=(async function(){let x;try{let T=n?.condition?.(l,{getState:d,extra:p});if(ad(T)&&(T=await T),T===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise(($,j)=>{E=()=>{j({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",E,{once:!0})});u(i(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),x=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:b.signal,abort:A,rejectWithValue:(($,j)=>new Hi($,j)),fulfillWithValue:(($,j)=>new va($,j))})).then($=>{if($ instanceof Hi)throw $;return $ instanceof va?s($.payload,y,l,$.meta):s($,y,l)})])}catch(T){x=T instanceof Hi?o(null,y,l,T.payload,T.meta):o(T,y,l)}finally{E&&b.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&o.match(x)&&x.meta.condition||u(x),x})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(od)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:ed(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function od(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ad(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),Sf={[Aa]:sd};function ld(e,t){return`${e}/${t}`}function cd({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(et(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(dd()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){let T=typeof x=="string"?x:x.type;if(!T)throw new Error(et(12));if(T in l.sliceCaseReducersByType)throw new Error(et(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(x,C){return l.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return l.actionCreators[x]=C,c},exposeCaseReducer(x,C){return l.sliceCaseReducersByName[x]=C,c}};a.forEach(x=>{let C=o[x],T={reducerName:x,type:ld(s,x),createNotation:typeof n.reducers=="function"};fd(C)?md(T,C,c,t):pd(T,C,c)});function u(){let[x={},C=[],T=void 0]=typeof n.extraReducers=="function"?Ea(n.extraReducers):[n.extraReducers],z={...x,...l.sliceCaseReducersByType};return Zu(n.initialState,$=>{for(let j in z)$.addCase(j,z[j]);for(let j of l.sliceMatchers)$.addMatcher(j.matcher,j.reducer);for(let j of C)$.addMatcher(j.matcher,j.reducer);T&&$.addDefaultCase(T)})}let d=x=>x,p=new Map,y=new WeakMap,b;function E(x,C){return b||(b=u()),b(x,C)}function v(){return b||(b=u()),b.getInitialState()}function A(x,C=!1){function T($){let j=$[x];return typeof j>"u"&&C&&(j=Tn(y,T,v)),j}function z($=d){let j=Tn(p,C,()=>new WeakMap);return Tn(j,$,()=>{let cr={};for(let[_e,gt]of Object.entries(n.selectors??{}))cr[_e]=ud(gt,$,()=>Tn(y,$,v),C);return cr})}return{reducerPath:x,getSelectors:z,get selectors(){return z(T)},selectSlice:T}}let L={name:s,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...A(i),injectInto(x,{reducerPath:C,...T}={}){let z=C??i;return x.inject({reducerPath:z,reducer:E},T),{...L,...A(z,!0)}}};return L}}function ud(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var _a=cd();function dd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function pd({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!hd(n))throw new Error(et(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?ct(e,o):ct(e))}function fd(e){return e._reducerDefinitionType==="asyncThunk"}function hd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function md({type:e,reducerName:t},r,n,s){if(!s)throw new Error(et(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Rn,pending:a||Rn,rejected:l||Rn,settled:c||Rn})}function Rn(){}var Ca="listener",wa="completed",Oa="cancelled",Ef=`task-${Oa}`,Af=`task-${wa}`,_f=`${Ca}-${Oa}`,Cf=`${Ca}-${wa}`;var{assign:Ta}=Object;var Fi="listenerMiddleware";var yd=Ta(ct(`${Fi}/add`),{withTypes:()=>yd}),wf=ct(`${Fi}/removeAll`),gd=Ta(ct(`${Fi}/remove`),{withTypes:()=>gd});function et(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vd=nn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ln=class extends vd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ra=class e extends Ln{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(cn(i))return i;if(s==null)return;let o=_a({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Sa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ar(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new sn,this.injectInto=(i,o)=>this.reduxSlice.injectInto(i,o),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,o,a)=>{let l=o,c=i[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Zt(p,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var kn=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Pn=f(S()),bd="ft-app-info",nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};nr.eventName="authentication-change";var Pr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pr.eventName="ui-locale-changed";var xd={session:(e,t)=>{(0,Pn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new nr(t.payload)),0))}},w=Pn.FtReduxStore.get({name:bd,reducers:xd,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 La=f(S()),Nn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},rh=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>kn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([(0,Vi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Nn([(0,Vi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Nn([Ei({store:w.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Nn([Ei({store:w.name})],t.prototype,"uiLocale",void 0),t});var ka;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ka||(ka={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Pa||(Pa={}));var Na;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Na||(Na={}));var Da;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Da||(Da={}));var Ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ma||(Ma={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var $a;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})($a||($a={}));var Ua;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ua||(Ua={}));var Ba;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ba||(Ba={}));var Ha;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ha||(Ha={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var Va;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Va||(Va={}));var za;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(za||(za={}));var ja;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ja||(ja={}));var Wa;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Wa||(Wa={}));var Ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ka||(Ka={}));var Ga;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ga||(Ga={}));var qa;(function(e){e.ASC="ASC",e.DESC="DESC"})(qa||(qa={}));var Ya;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ya||(Ya={}));var Xa;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Xa||(Xa={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Za;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Za||(Za={}));var Qa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qa||(Qa={}));var el;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(tl||(tl={}));var rl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rl||(rl={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var Y;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var il;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(il||(il={}));var sl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(sl||(sl={}));var ol;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ol||(ol={}));var al;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(dl||(dl={}));var pl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(pl||(pl={}));var fl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(fl||(fl={}));var hl;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(hl||(hl={}));var ml;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ml||(ml={}));var Sd={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Sd[e]??[]).some(r=>yl(r,t))}function gl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>yl(n,t))}var Un=f(S());var zi=f(S());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=w.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var ir=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ot.await()}};var xe=class extends ir{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new zi.CacheRegistry,this.cache=t?s.commonCache:new zi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Dn=class extends xe{async listMySearches(){let{session:t}=w.getState();return gl(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Mn=class extends xe{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var In=class extends xe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var $n=class extends xe{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 t=w.getState().session;return!!t?.sessionAuthenticated}};var Ed="ft-user-assets",Ad={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Wi(e,r,[...ji(e,r),s]),vl(e,r,1,n),bl(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Wi(e,r,ji(e,r).map(s=>s.id===n.id?n:s)),bl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Wi(e,r,ji(e,r).filter(i=>i.id!==s)),vl(e,r,-1,n)}},xl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},ji=(e,t)=>{var r;let n=xl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Wi=(e,t,r)=>{let n=xl[t];n&&(e[n]=r)},vl=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},bl=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},ce=Un.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ki=class{constructor(t=new In,r=new $n){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mn,this.savedSearchesService=new Dn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Un.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ce.actions.bookmarks(r)}}},_d=new Ki;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=_d);var Gi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gi;var Oe=f(S());var Sl,sr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Cd=Symbol("clearAfterUnitTest"),Bn=class extends(0,Oe.withEventBus)(xe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sl]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new sr({loadedContexts:t})),this.dispatchEvent(new sr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new sr({loadedContexts:[t]})),this.dispatchEvent(new sr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Oe.delay)(0).then(()=>n()).catch(()=>null)))}};Sl=Cd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Nr=window.FluidTopicsI18nService,qi=window.FluidTopicsCustomI18nService;var El=f(S()),Yi=class{highlightHtml(t,r,n){(0,El.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var Al=f(S());var Xi=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return Al.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xi;var _l=f(S());var Dr=class{static get(t,r){var n,s,i,o;let a=w.getState(),{lang:l,region:c}=(i=(s=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new _l.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Ji=class{urlToSearchRequest(t){return Dr.get().parse(t)}searchRequestToUrl(t){return Dr.get().serialize(t)}};window.FluidTopicsUrlService=new Ji;var tt=f(S());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var Zi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Cl=new Zi;var Hn=class e extends tt.WithEventBus{static build(){return new e(window.history,Cl,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(s,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,tt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,tt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var wl=f(k());var Ol=wl.css`
261
+ `;var Ll=f(k()),he=f(K()),kt=f(S());var Rt=f(S());function Tl(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Fn=class extends ir{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Qi=class e extends Rt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Rt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Fn,this.cleanSessionDebouncer=new Rt.Debouncer,this.reloadDebouncer=new Rt.Debouncer(500),this.apiProvider=r??(()=>Ot.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=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(t)}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 t;let r=await this.cache.get("availableContentLocales",()=>Tl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Pr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Rl=Qi.build();var Lt=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Mr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new Lt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var ne=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},F=class extends kt.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=Rl,this.contextRoot=new Mr}render(){return Ll.html`
262
262
  <slot></slot>
263
- `}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(n=>Mr.addContext(n)),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())}};B.elementDefinitions={};B.styles=ml;te([(0,pe.property)()],B.prototype,"baseUrl",void 0);te([(0,pe.property)()],B.prototype,"tenantId",void 0);te([(0,pe.property)()],B.prototype,"apiIntegrationIdentifier",void 0);te([(0,pe.property)()],B.prototype,"apiIntegrationAppVersion",void 0);te([(0,pe.property)()],B.prototype,"uiLocale",void 0);te([(0,Mt.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);te([(0,Mt.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"editorMode",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"noCustom",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);te([(0,pe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],B.prototype,"noCustomComponent",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"withManualResources",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);te([(0,pe.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);te([(0,Mt.jsonProperty)([])],B.prototype,"messageContexts",void 0);te([(0,Mt.jsonProperty)(void 0)],B.prototype,"session",void 0);var xl=f(E());var bl={"ft-app-context":B};(0,xl.customElements)(bl);var Al=f(z());var Ki=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,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},fr=new Ki;var nd=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Hr=Symbol("i18nAttributes"),Sl=Symbol("i18nListAttributes"),El=Symbol("i18nProperties"),Ln=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Dn=(0,hr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hi:Mr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}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(fr.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=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Hr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Sl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[El])===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[Ln].set(l,{isCustomContext:a}),this[Br].has(l)||this[Br].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Ln].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ln].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(o=>o()),this[Br].clear()}}return e=Ln,r=Br,nd([(0,Al.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Pn=class extends Dn(hr.FtLitElement){},kn=class extends Dn(hr.FtLitElementRedux){};var Cl=f(E());var Gi=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?fr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},id=new Gi;var Ol=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Cl.hasChanged,converter:fr,...e}),r[Hr]=(i=r[Hr])!==null&&i!==void 0?i:new Map,r[Hr].set(n,t??{})};var wl=f(L());var Tl=wl.css`
264
- `;var Nn=f(L()),In=f(z()),Mn=f(E());var jr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ie=class extends kn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Nn.nothing:Nn.html`
263
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Nr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Ol;ne([(0,he.property)()],F.prototype,"baseUrl",void 0);ne([(0,he.property)()],F.prototype,"tenantId",void 0);ne([(0,he.property)()],F.prototype,"apiIntegrationIdentifier",void 0);ne([(0,he.property)()],F.prototype,"apiIntegrationAppVersion",void 0);ne([(0,he.property)()],F.prototype,"uiLocale",void 0);ne([(0,kt.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);ne([(0,kt.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"editorMode",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"noCustom",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,he.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"withManualResources",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);ne([(0,he.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);ne([(0,kt.jsonProperty)([])],F.prototype,"messageContexts",void 0);ne([(0,kt.jsonProperty)(void 0)],F.prototype,"session",void 0);var Pl=f(S());var kl={"ft-app-context":F};(0,Pl.customElements)(kl);var Nl=f(K());var es=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},or=new es;var Td=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$r=Symbol("i18nAttributes"),Dl=Symbol("i18nListAttributes"),Ml=Symbol("i18nProperties"),Vn=Symbol("i18nContexts"),Ir=Symbol("i18nUnsubs"),Wn=(0,ar.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?qi:Nr}i18n(i){let{context:o,key:a,message:l}=i,{custom:c,args:u,argsProvider:d}=i;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(i){let{context:o,custom:a}=i;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(i)}customI18n(i,o){if(or.isI18nKey(i)){let[a,l]=i.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((o,a,l)=>i.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===i}),this.updateI18nProperties(o=>o.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&i(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[$r])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Dl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(i){var o;(o=this[Ml])===null||o===void 0||o.forEach((a,l)=>{i(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(i,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,o,a)}addI18nContext(i,o,a){let l=(typeof i=="string"?i:i.name).toLowerCase();a=typeof i=="string"?a:i.custom,this[Vn].set(l,{isCustomContext:a}),this[Ir].has(l)||this[Ir].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(i){return this[Vn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vn].forEach((i,o)=>this.addI18nContext(o,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ir].forEach(i=>i()),this[Ir].clear()}}return t=Vn,r=Ir,Td([(0,Nl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),zn=class extends Wn(ar.FtLitElement){},jn=class extends Wn(ar.FtLitElementRedux){};var Il=f(S());var ts=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?or.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Rd=new ts;var $l=(e,t)=>(r,n)=>{var s;r.constructor.createProperty(n,{type:Object,hasChanged:Il.hasChanged,converter:or,...t}),r[$r]=(s=r[$r])!==null&&s!==void 0?s:new Map,r[$r].set(n,e??{})};var Ul=f(k());var Bl=Ul.css`
264
+ `;var Kn=f(k()),Gn=f(K()),qn=f(S());var Ur=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},De=class extends jn{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Kn.nothing:Kn.html`
265
265
  <span class="ft-i18n">
266
266
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
267
267
  </span>
268
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ie.elementDefinitions={};Ie.styles=Tl;jr([(0,Mn.redux)()],Ie.prototype,"editorMode",void 0);jr([(0,In.property)()],Ie.prototype,"context",void 0);jr([(0,In.property)()],Ie.prototype,"key",void 0);jr([(0,Mn.jsonProperty)([])],Ie.prototype,"args",void 0);jr([(0,In.property)()],Ie.prototype,"defaultMessage",void 0);var Rl=f(E());var _l={"ft-i18n":Ie};(0,Rl.customElements)(_l);var Me=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},X=class extends Pn{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 _e.Debouncer,this.revealDebouncer=new _e.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 Ll.html`
268
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};De.elementDefinitions={};De.styles=Bl;Ur([(0,qn.redux)()],De.prototype,"editorMode",void 0);Ur([(0,Gn.property)()],De.prototype,"context",void 0);Ur([(0,Gn.property)()],De.prototype,"key",void 0);Ur([(0,qn.jsonProperty)([])],De.prototype,"args",void 0);Ur([(0,Gn.property)()],De.prototype,"defaultMessage",void 0);var Fl=f(S());var Hl={"ft-i18n":De};(0,Fl.customElements)(Hl);var Me=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},J=class extends zn{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 Te.Debouncer,this.revealDebouncer=new Te.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Vl.html`
269
269
  <div part="container"
270
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
271
  <slot part="slot"></slot>
@@ -274,13 +274,13 @@
274
274
  popover="manual">
275
275
  <div part="tooltip-content" class="ft-tooltip--content">
276
276
  <slot name="text"></slot>
277
- <ft-typography variant="${Q.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
277
+ <ft-typography variant="${ee.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
278
278
  ${(r=this.text)===null||r===void 0?void 0:r.message}
279
279
  </ft-typography>
280
280
  </div>
281
281
  </div>
282
282
  </div>
283
- `}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,n;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.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 n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=n}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&&ws(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 ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,_e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":Y};X.styles=Zo;Me([Ol()],X.prototype,"text",void 0);Me([(0,Re.property)({type:Boolean})],X.prototype,"manual",void 0);Me([(0,Re.property)({type:Boolean})],X.prototype,"inline",void 0);Me([(0,_e.numberProperty)()],X.prototype,"delay",void 0);Me([(0,Re.property)()],X.prototype,"position",void 0);Me([(0,_e.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Me([(0,Re.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Me([(0,Re.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Me([(0,Re.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Me([(0,Re.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Me([(0,Re.state)()],X.prototype,"visible",void 0);var kl=f(E());var Pl={"ft-tooltip":X};(0,kl.customElements)(Pl);var Dl=f(L()),Ue=f(E()),$e={size:Ue.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Nl=[Dl.css`
283
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,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(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let s=this.text;this.text={message:t},await this.show(r),this.text=s,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Po(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Te.designSystemVariables.transitionDuration}, left ${Te.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Te.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};J.elementDefinitions={"ft-typography":X};J.styles=no;Me([$l()],J.prototype,"text",void 0);Me([(0,Re.property)({type:Boolean})],J.prototype,"manual",void 0);Me([(0,Re.property)({type:Boolean})],J.prototype,"inline",void 0);Me([(0,Te.numberProperty)()],J.prototype,"delay",void 0);Me([(0,Re.property)()],J.prototype,"position",void 0);Me([(0,Te.jsonProperty)([])],J.prototype,"ignoreMatchingElements",void 0);Me([(0,Re.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);Me([(0,Re.query)(".ft-tooltip--container")],J.prototype,"container",void 0);Me([(0,Re.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);Me([(0,Re.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);Me([(0,Re.state)()],J.prototype,"visible",void 0);var jl=f(S());var zl={"ft-tooltip":J};(0,jl.customElements)(zl);var Wl=f(k()),$e=f(S()),Ie={size:$e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:$e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Kl=[Wl.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -289,14 +289,14 @@
289
289
  }
290
290
 
291
291
  :host {
292
- width: ${$e.size};
293
- height: ${$e.size};
292
+ width: ${Ie.size};
293
+ height: ${Ie.size};
294
294
  }
295
295
 
296
296
  i.ft-icon {
297
297
  width: 100%;
298
298
  height: 100%;
299
- font-size: ${$e.size};
299
+ font-size: ${Ie.size};
300
300
  line-height: 1;
301
301
  font-weight: normal;
302
302
  text-transform: none;
@@ -307,33 +307,33 @@
307
307
  text-rendering: auto;
308
308
  -webkit-font-smoothing: antialiased;
309
309
  -moz-osx-font-smoothing: grayscale;
310
- vertical-align: ${$e.verticalAlign};
310
+ vertical-align: ${Ie.verticalAlign};
311
311
  }
312
312
 
313
313
  i.ft-icon.ft-icon--fluid-topics {
314
- font-family: ${$e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
314
+ font-family: ${Ie.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
315
315
 
316
316
  /* Ugly fix because font is broken */
317
- font-size: calc(0.75 * ${$e.size});
318
- line-height: ${$e.size};
317
+ font-size: calc(0.75 * ${Ie.size});
318
+ line-height: ${Ie.size};
319
319
  position: relative;
320
320
  top: -4%;
321
321
  justify-content: center;
322
322
  }
323
323
 
324
324
  .ft-icon--file-format {
325
- font-family: ${$e.fileFormatFontFamily}, ft-mime, sans-serif;
325
+ font-family: ${Ie.fileFormatFontFamily}, ft-mime, sans-serif;
326
326
  }
327
327
 
328
328
  .ft-icon--material {
329
- font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
329
+ font-family: ${Ie.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,Ue.noTextSelect];var ht;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ht||(ht={}));var Fr=f(L()),mt=f(z()),$l=f(E()),Ul=f(Ml());var $n;(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;"})($n||($n={}));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 Sy=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])]);var Ey={[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 Vr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},le=class extends $l.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Fr.nothing}render(){let e=this.variant&&Object.values(ht).includes(this.variant)?this.variant:ht.fluid_topics,r=e!==ht.material||!!this.value;return Fr.html`
332
- <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
333
- ${(0,Ul.unsafeHTML)(this.resolvedIcon)}
331
+ `,$e.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Br=f(k()),dt=f(K()),Yl=f(S()),Xl=f(ql());var Yn;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Yn||(Yn={}));var h;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(h||(h={}));var Og=new Map([...["abw"].map(e=>[e,h.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(e=>[e,h.AUDIO]),...["avi"].map(e=>[e,h.AVI]),...["chm","xhs"].map(e=>[e,h.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(e=>[e,h.CODE]),...["csv"].map(e=>[e,h.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,h.DITA]),...["epub"].map(e=>[e,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,h.EXCEL]),...["flac"].map(e=>[e,h.FLAC]),...["gif"].map(e=>[e,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,h.GZIP]),...["html","htm","xhtml"].map(e=>[e,h.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(e=>[e,h.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,h.JPEG]),...["json"].map(e=>[e,h.JSON]),...["m4a","m4p"].map(e=>[e,h.M4A]),...["mov","qt"].map(e=>[e,h.MOV]),...["mp3"].map(e=>[e,h.MP3]),...["mp4","m4v"].map(e=>[e,h.MP4]),...["ogg","oga"].map(e=>[e,h.OGG]),...["pdf","ps"].map(e=>[e,h.PDF]),...["png"].map(e=>[e,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,h.POWERPOINT]),...["rar"].map(e=>[e,h.RAR]),...["stp"].map(e=>[e,h.STP]),...["txt","rtf","md","mdown"].map(e=>[e,h.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(e=>[e,h.VIDEO]),...["wav"].map(e=>[e,h.WAV]),...["wma"].map(e=>[e,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,h.WORD]),...["xml","xsl","rdf"].map(e=>[e,h.XML]),...["yaml","yml","x-yaml"].map(e=>[e,h.YAML]),...["zip"].map(e=>[e,h.ZIP])]);var Tg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var Hr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ue=class extends Yl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Br.nothing}render(){let t=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=t!==ut.material||!!this.value;return Br.html`
332
+ <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
333
+ ${(0,Xl.unsafeHTML)(this.resolvedIcon)}
334
334
  <slot ?hidden=${r}></slot>
335
335
  </i>
336
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.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 n=this.value||this.getTextContent();switch(this.variant){case ht.file_format:this.resolvedIcon=(e=y[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case ht.material:this.resolvedIcon=this.value||Fr.nothing;break;default:this.resolvedIcon=(r=$n[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};le.elementDefinitions={};le.styles=Nl;Vr([(0,mt.property)()],le.prototype,"variant",void 0);Vr([(0,mt.property)()],le.prototype,"value",void 0);Vr([(0,mt.property)({reflect:!0,attribute:"aria-hidden"})],le.prototype,"ariaHidden",void 0);Vr([(0,mt.state)()],le.prototype,"resolvedIcon",void 0);Vr([(0,mt.query)("slot")],le.prototype,"slottedContent",void 0);var Hl=f(E());var Bl={"ft-icon":le};(0,Hl.customElements)(Bl);var jl=f(L()),zr=f(E()),$t={color:zr.FtCssVariableFactory.extend("--ft-loader-color","",zr.designSystemVariables.colorPrimary),size:zr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fl=jl.css`
336
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case ut.file_format:this.resolvedIcon=(t=h[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ut.material:this.resolvedIcon=this.value||Br.nothing;break;default:this.resolvedIcon=(r=Yn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ue.elementDefinitions={};ue.styles=Kl;Hr([(0,dt.property)()],ue.prototype,"variant",void 0);Hr([(0,dt.property)()],ue.prototype,"value",void 0);Hr([(0,dt.property)({reflect:!0,attribute:"aria-hidden"})],ue.prototype,"ariaHidden",void 0);Hr([(0,dt.state)()],ue.prototype,"resolvedIcon",void 0);Hr([(0,dt.query)("slot")],ue.prototype,"slottedContent",void 0);var Zl=f(S());var Jl={"ft-icon":ue};(0,Zl.customElements)(Jl);var Ql=f(k()),Fr=f(S()),Pt={color:Fr.FtCssVariableFactory.extend("--ft-loader-color","",Fr.designSystemVariables.colorPrimary),size:Fr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ec=Ql.css`
337
337
  :host {
338
338
  line-height: 0;
339
339
  }
@@ -342,8 +342,8 @@
342
342
  display: inline-block;
343
343
  position: relative;
344
344
 
345
- width: ${$t.size};
346
- height: ${$t.size};
345
+ width: ${Pt.size};
346
+ height: ${Pt.size};
347
347
  }
348
348
 
349
349
  .ft-loader div {
@@ -352,7 +352,7 @@
352
352
  width: 25%;
353
353
  height: 25%;
354
354
  border-radius: 50%;
355
- background: ${$t.color};
355
+ background: ${Pt.color};
356
356
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
357
357
  }
358
358
 
@@ -399,17 +399,17 @@
399
399
  transform: translate(0, 0);
400
400
  }
401
401
  100% {
402
- transform: translate(calc(0.35 * ${$t.size}), 0);
402
+ transform: translate(calc(0.35 * ${Pt.size}), 0);
403
403
  }
404
404
  }
405
- `;var Vl=f(L()),zl=f(E());var Ut=class extends zl.FtLitElement{render(){return Vl.html`
405
+ `;var tc=f(k()),rc=f(S());var Nt=class extends rc.FtLitElement{render(){return tc.html`
406
406
  <div class="ft-loader">
407
407
  <div></div>
408
408
  <div></div>
409
409
  <div></div>
410
410
  <div></div>
411
411
  </div>
412
- `}};Ut.styles=Fl;var Kl=f(E());var Wl={"ft-loader":Ut};(0,Kl.customElements)(Wl);var vt=f(L()),Xi=f(Qt()),I=f(z());var qi=t=>t??W;var Yl=f(L()),O=f(E());var Gl=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),k={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:Gl,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",ze.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gl),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},ql=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),Yi={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:ql,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ql)},Be={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xl=Yl.css`
412
+ `}};Nt.styles=ec;var ic=f(S());var nc={"ft-loader":Nt};(0,ic.customElements)(nc);var pt=f(k()),Xn=f(qt()),N=f(K());var Vr=e=>e??G;var ac=f(k()),_=f(S());var sc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),D={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:sc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",sc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},oc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),rs={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:oc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",oc)},Ke={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},lc=ac.css`
413
413
  :host {
414
414
  display: inline-block;
415
415
  max-width: 100%;
@@ -420,7 +420,7 @@
420
420
  box-shadow: 0px 0px 0px transparent;
421
421
  border: 0px solid transparent;
422
422
  text-shadow: 0px 0px 0px transparent;
423
- font-size: ${k.fontSize};
423
+ font-size: ${D.fontSize};
424
424
  text-decoration: none;
425
425
  }
426
426
 
@@ -440,7 +440,7 @@
440
440
  }
441
441
 
442
442
  .ft-button:focus-visible {
443
- outline: 2px solid ${O.designSystemVariables.colorPrimary};
443
+ outline: 2px solid ${_.designSystemVariables.colorPrimary};
444
444
  outline-offset: 2px;
445
445
  }
446
446
 
@@ -454,32 +454,31 @@
454
454
  border: none;
455
455
  pointer-events: auto;
456
456
 
457
- --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
458
- --button-internal-color: ${k.color};
459
- ${(0,O.setVariable)($e.size,k.iconSize)};
460
- ${(0,O.setVariable)(ce.color,k.rippleColor)};
461
- ${(0,O.setVariable)(ce.borderRadius,k.borderRadius)};
457
+ --button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
458
+ --button-internal-color: ${D.color};
459
+ ${(0,_.setVariable)(Ie.size,D.iconSize)};
460
+ ${(0,_.setVariable)(de.color,D.rippleColor)};
461
+ ${(0,_.setVariable)(de.borderRadius,D.borderRadius)};
462
462
 
463
- border-radius: ${k.borderRadius};
464
- padding: ${k.verticalPadding} ${k.horizontalPadding};
465
- background-color: ${k.backgroundColor};
463
+ border-radius: ${D.borderRadius};
464
+ padding: ${D.verticalPadding} ${D.horizontalPadding};
465
+ background-color: ${D.backgroundColor};
466
466
  color: var(--button-internal-color);
467
467
  }
468
468
 
469
469
  .ft-button.ft-button--outlined {
470
470
  border: 1px solid var(--button-internal-color);
471
- padding: calc(${k.verticalPadding} - 1px) calc(${k.horizontalPadding} - 1px);
471
+ padding: calc(${D.verticalPadding} - 1px) calc(${D.horizontalPadding} - 1px);
472
472
  }
473
473
 
474
474
  .ft-button.ft-button--dense {
475
- padding: ${Be.verticalPadding} ${Be.horizontalPadding};
476
- border-radius: ${Be.borderRadius};
477
- gap: ${Be.iconPadding};
478
- ${(0,O.setVariable)(ce.borderRadius,Be.borderRadius)};
475
+ padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
476
+ border-radius: ${Ke.borderRadius};
477
+ ${(0,_.setVariable)(de.borderRadius,Ke.borderRadius)};
479
478
  }
480
479
 
481
480
  .ft-button.ft-button--dense.ft-button--outlined {
482
- padding: calc(${Be.verticalPadding} - 1px) calc(${Be.horizontalPadding} - 1px);
481
+ padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
483
482
  }
484
483
 
485
484
  .ft-button:not([disabled]):hover {
@@ -487,22 +486,22 @@
487
486
  }
488
487
 
489
488
  .ft-button--round {
490
- border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
489
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${D.verticalPadding});
491
490
  }
492
491
 
493
492
  .ft-button--round.ft-button--dense {
494
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Be.verticalPadding});
493
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding});
495
494
  }
496
495
 
497
496
  .ft-button[disabled] {
498
497
  filter: grayscale(1);
499
- opacity: ${k.opacityDisabled};
498
+ opacity: ${D.opacityDisabled};
500
499
  }
501
500
 
502
501
  .ft-button.ft-button--primary {
503
- background-color: ${Yi.backgroundColor};
504
- --button-internal-color: ${Yi.color};
505
- ${(0,O.setVariable)(ce.color,Yi.rippleColor)};
502
+ background-color: ${rs.backgroundColor};
503
+ --button-internal-color: ${rs.color};
504
+ ${(0,_.setVariable)(de.color,rs.rippleColor)};
506
505
  }
507
506
 
508
507
  .ft-button--label {
@@ -511,17 +510,17 @@
511
510
  white-space: nowrap;
512
511
  text-overflow: ellipsis;
513
512
  display: block;
514
- margin: 0 ${k.iconPadding};
515
- ${(0,O.setVariable)(ze.fontSize,"1em")};
516
- ${(0,O.setVariable)(ze.lineHeight,"var(--button-internal-line-height)")};
513
+ margin: 0 ${D.iconPadding};
514
+ ${(0,_.setVariable)(Ve.fontSize,"1em")};
515
+ ${(0,_.setVariable)(Ve.lineHeight,"var(--button-internal-line-height)")};
517
516
  }
518
517
 
519
518
  .ft-button--dense .ft-button--label {
520
- margin: 0 ${Be.iconPadding};
519
+ margin: 0 ${Ke.iconPadding};
521
520
  }
522
521
 
523
- .ft-button--label[hidden] {
524
- display: none;
522
+ .ft-button--label.ft-button--label-no-text {
523
+ margin: 0;
525
524
  }
526
525
 
527
526
  [part="icon"] {
@@ -530,13 +529,13 @@
530
529
  }
531
530
 
532
531
  .ft-button--label[hidden] + [part="icon"] {
533
- margin: 0 calc(${k.horizontalPadding} * -1);
534
- padding: 0 ${k.verticalPadding};
532
+ margin: 0 calc(${D.horizontalPadding} * -1);
533
+ padding: 0 ${D.verticalPadding};
535
534
  }
536
535
 
537
536
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
538
- margin: 0 calc(${Be.horizontalPadding} * -1);
539
- padding: 0 ${Be.verticalPadding};
537
+ margin: 0 calc(${Ke.horizontalPadding} * -1);
538
+ padding: 0 ${Ke.verticalPadding};
540
539
  }
541
540
 
542
541
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -544,60 +543,59 @@
544
543
  }
545
544
 
546
545
  ft-loader {
547
- ${(0,O.setVariable)($t.size,k.iconSize)};
548
- ${(0,O.setVariable)($t.color,"var(--button-internal-color)")};
546
+ ${(0,_.setVariable)(Pt.size,D.iconSize)};
547
+ ${(0,_.setVariable)(Pt.color,"var(--button-internal-color)")};
549
548
  }
550
- `;var H=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},_=class extends(0,Le.toFtFormComponent)(Le.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,n;let i=vt.html`
549
+ `;var U=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},O=class e extends(0,Ge.toFtFormComponent)(Ge.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",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ge.isSafari,"ft-button--label-no-text":!this.hasTextContent},i=pt.html`
551
550
  <ft-ripple part="ripple"
552
551
  ?disabled=${this.isDisabled()}
553
552
  ?activated=${this.activated}
554
553
  ></ft-ripple>
555
554
  <ft-typography part="label"
556
- variant="${Q.button}"
555
+ variant="${ee.button}"
557
556
  element="span"
558
- class="ft-button--label ${Le.isSafari?"ft-safari-ellipsis-fix":""}"
559
- ?hidden=${!this.hasTextContent()}>
560
- <slot @slotchange=${this.onSlotchange}></slot>
557
+ class="${(0,Xn.classMap)(s)}">
558
+ <slot></slot>
561
559
  </ft-typography>
562
560
  ${this.resolveIcon()}
563
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?vt.html`
561
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?pt.html`
564
562
  <a href="${o}"
565
- target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
563
+ target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
566
564
  part="button"
567
- class="${(0,Xi.classMap)(this.buttonClasses)}"
568
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
565
+ class="${(0,Xn.classMap)(this.buttonClasses)}"
566
+ aria-label="${Vr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
569
567
  ?disabled=${this.isDisabled()}>
570
568
  ${i}
571
569
  </a>
572
- `:vt.html`
570
+ `:pt.html`
573
571
  <button part="button"
574
- class="${(0,Xi.classMap)(this.buttonClasses)}"
575
- aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
576
- aria-haspopup="${qi(this.ariaHasPopup)}"
577
- aria-pressed="${qi(this.ariaPressed)}"
572
+ class="${(0,Xn.classMap)(this.buttonClasses)}"
573
+ aria-label="${Vr((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
574
+ aria-haspopup="${Vr(this.ariaHasPopup)}"
575
+ aria-pressed="${Vr(this.ariaPressed)}"
578
576
  ?disabled=${this.isDisabled()}>
579
577
  ${i}
580
578
  </button>
581
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?vt.html`
579
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?pt.html`
582
580
  <ft-tooltip part="tooltip"
583
- text="${this.getLabel()}"
581
+ text="${this.label}"
584
582
  position="${this.tooltipPosition}">
585
- ${e}
583
+ ${t}
586
584
  </ft-tooltip>
587
- `:e}resolveIcon(){return this.loading?vt.html`
588
- <ft-loader part="loader icon"></ft-loader> `:this.icon?vt.html`
585
+ `:t}resolveIcon(){return this.loading?pt.html`
586
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?pt.html`
589
587
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
590
- `:vt.html`
588
+ `:pt.html`
591
589
  <slot part="icon" name="icon"></slot>
592
- `}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 n;return(n=this.tooltip)===null||n===void 0?void 0:n.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,Le.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":P,"ft-tooltip":X,"ft-icon":le,"ft-loader":Ut,"ft-typography":Y};_.styles=[Le.safariEllipsisFix,Xl,Le.noTextSelect];H([(0,I.property)({type:Boolean})],_.prototype,"primary",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"outlined",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"dense",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"round",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"disabled",void 0);H([(0,I.property)()],_.prototype,"icon",void 0);H([(0,I.property)()],_.prototype,"iconVariant",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);H([(0,I.property)()],_.prototype,"label",void 0);H([(0,I.property)()],_.prototype,"type",void 0);H([(0,I.property)()],_.prototype,"href",void 0);H([(0,I.property)()],_.prototype,"target",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"loading",void 0);H([(0,I.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);H([(0,I.property)()],_.prototype,"ariaHasPopup",void 0);H([(0,I.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);H([(0,I.property)()],_.prototype,"tooltipPosition",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);H([(0,I.property)({type:Boolean})],_.prototype,"activated",void 0);H([(0,I.query)(".ft-button")],_.prototype,"button",void 0);H([(0,I.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);H([(0,I.query)("[part=tooltip]")],_.prototype,"tooltip",void 0);var Zl=f(E());var Jl={"ft-button":_};(0,Zl.customElements)(Jl);var Un=f(L()),He=f(z()),tc=f(E()),rc=f(Qt());var re=f(E()),Ql=f(L());var xe={textColor:re.FtCssVariableFactory.extend("--ft-checkbox-text-color","",re.designSystemVariables.colorOnSurfaceHigh),fontSize:re.FtCssVariableFactory.extend("--ft-checkbox-font-size","",A.fontSize),activeColor:re.FtCssVariableFactory.extend("--ft-checkbox-active-color","",re.designSystemVariables.colorPrimary),checkColor:re.FtCssVariableFactory.extend("--ft-checkbox-check-color","",re.designSystemVariables.colorOnPrimary),borderColor:re.FtCssVariableFactory.extend("--ft-checkbox-border-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledColor:re.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",re.designSystemVariables.colorOnSurfaceDisabled),errorColor:re.FtCssVariableFactory.extend("--ft-checkbox-error-color","",re.designSystemVariables.colorError)},ec=Ql.css`
590
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":P,"ft-tooltip":J,"ft-icon":ue,"ft-loader":Nt,"ft-typography":X};O.styles=[Ge.safariEllipsisFix,lc,Ge.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,N.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,N.property)()],O.prototype,"icon",void 0);U([(0,N.property)()],O.prototype,"iconVariant",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,N.property)()],O.prototype,"label",void 0);U([(0,N.property)()],O.prototype,"type",void 0);U([(0,N.property)()],O.prototype,"href",void 0);U([(0,N.property)()],O.prototype,"target",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,N.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,N.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,N.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,N.property)()],O.prototype,"tooltipPosition",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,N.query)(".ft-button")],O.prototype,"button",void 0);U([(0,N.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,N.state)()],O.prototype,"hasTextContent",void 0);U([(0,N.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,N.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var uc=f(S());var cc={"ft-button":O};(0,uc.customElements)(cc);var Jn=f(k()),Ue=f(K()),fc=f(S()),hc=f(qt());var ie=f(S()),dc=f(k());var Se={textColor:ie.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ie.designSystemVariables.colorOnSurfaceHigh),fontSize:ie.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:ie.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ie.designSystemVariables.colorPrimary),checkColor:ie.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ie.designSystemVariables.colorOnPrimary),borderColor:ie.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ie.designSystemVariables.colorOnSurfaceMedium),disabledColor:ie.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ie.designSystemVariables.colorOnSurfaceDisabled),errorColor:ie.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ie.designSystemVariables.colorError)},pc=dc.css`
593
591
  * {
594
592
  box-sizing: border-box;
595
593
  }
596
594
 
597
595
  .ft-checkbox {
598
596
  box-sizing: border-box;
599
- color: ${xe.textColor};
600
- font-size: ${xe.fontSize};
597
+ color: ${Se.textColor};
598
+ font-size: ${Se.fontSize};
601
599
 
602
600
  display: inline-flex;
603
601
  align-items: center;
@@ -605,7 +603,7 @@
605
603
  }
606
604
 
607
605
  .ft-checkbox--disabled {
608
- color: ${xe.disabledColor};
606
+ color: ${Se.disabledColor};
609
607
  }
610
608
 
611
609
  input {
@@ -629,26 +627,26 @@
629
627
 
630
628
  .ft-checkbox--box {
631
629
  display: flex;
632
- border: 2px solid ${xe.borderColor};
630
+ border: 2px solid ${Se.borderColor};
633
631
  border-radius: 2px;
634
632
 
635
633
  width: 18px;
636
634
  height: 18px;
637
635
 
638
- color: ${xe.checkColor};
636
+ color: ${Se.checkColor};
639
637
  }
640
638
 
641
639
 
642
640
  .ft-checkbox--checked .ft-checkbox--box,
643
641
  .ft-checkbox--indeterminate .ft-checkbox--box {
644
- border-color: ${xe.activeColor};
645
- background-color: ${xe.activeColor};
642
+ border-color: ${Se.activeColor};
643
+ background-color: ${Se.activeColor};
646
644
  }
647
645
 
648
646
  .ft-checkbox--disabled .ft-checkbox--box {
649
- border-color: ${xe.disabledColor};
647
+ border-color: ${Se.disabledColor};
650
648
  background-color: transparent;
651
- color: ${xe.disabledColor};
649
+ color: ${Se.disabledColor};
652
650
  }
653
651
 
654
652
  .ft-checkbox--checkmark {
@@ -669,20 +667,20 @@
669
667
  }
670
668
 
671
669
  .ft-checkbox.ft-checkbox--error {
672
- color: ${xe.errorColor};
673
- ${(0,re.setVariable)(ce.color,xe.errorColor)};
670
+ color: ${Se.errorColor};
671
+ ${(0,ie.setVariable)(de.color,Se.errorColor)};
674
672
 
675
673
  .ft-checkbox--box {
676
- border-color: ${xe.errorColor};
674
+ border-color: ${Se.errorColor};
677
675
  }
678
676
 
679
677
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
680
678
  .ft-checkbox--box {
681
- background-color: ${xe.errorColor};
679
+ background-color: ${Se.errorColor};
682
680
  }
683
681
  }
684
682
  }
685
- `;var tt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ji=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ne=class extends tc.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 Un.html`
683
+ `;var rt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ns=class extends CustomEvent{constructor(t){super("change",{detail:t})}},se=class extends fc.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`
686
684
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
687
685
  <ft-ripple part="checkbox-ripple"
688
686
  ?disabled=${this.disabled}
@@ -704,27 +702,27 @@
704
702
  @change=${this.onChange}
705
703
  >
706
704
  </div>
707
- `}render(){return Un.html`
708
- <label class="${(0,rc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
705
+ `}render(){return Jn.html`
706
+ <label class="${(0,hc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
709
707
  ${this.renderBoxContainer()}
710
- <ft-typography variant="${Q.body2}" part="checkbox-body">
708
+ <ft-typography variant="${ee.body2}" part="checkbox-body">
711
709
  <slot @slotchange=${this.onSlotchange}></slot>
712
710
  </ft-typography>
713
711
  </label>
714
- `}renderBoxIcon(){return Un.html`
712
+ `}renderBoxIcon(){return Jn.html`
715
713
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
716
714
  <path class="ft-checkbox--checkmark-path" fill="none"
717
715
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
718
716
  </svg>
719
- `}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 Ji(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)}};ne.elementDefinitions={"ft-ripple":P,"ft-typography":Y};ne.styles=ec;tt([(0,He.property)()],ne.prototype,"name",void 0);tt([(0,He.property)()],ne.prototype,"value",void 0);tt([(0,He.property)({type:Boolean,reflect:!0})],ne.prototype,"checked",void 0);tt([(0,He.property)({type:Boolean})],ne.prototype,"indeterminate",void 0);tt([(0,He.property)({type:Boolean})],ne.prototype,"disabled",void 0);tt([(0,He.property)({type:Boolean})],ne.prototype,"error",void 0);tt([(0,He.query)(".ft-checkbox")],ne.prototype,"container",void 0);tt([(0,He.query)("ft-ripple")],ne.prototype,"ripple",void 0);tt([(0,He.query)("input")],ne.prototype,"input",void 0);var ic=f(E());var nc={"ft-checkbox":ne};(0,ic.customElements)(nc);var ac=f(L()),qe=f(z()),lc=f(E()),cc=f(Qt());var oc=f(L()),fe=f(E());var yt={textColor:fe.FtCssVariableFactory.extend("--ft-radio-text-color","",fe.designSystemVariables.colorOnSurfaceHigh),fontSize:fe.FtCssVariableFactory.extend("--ft-radio-font-size","",A.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")},sc=oc.css`
717
+ `}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new ns(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};se.elementDefinitions={"ft-ripple":P,"ft-typography":X};se.styles=pc;rt([(0,Ue.property)()],se.prototype,"name",void 0);rt([(0,Ue.property)()],se.prototype,"value",void 0);rt([(0,Ue.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"indeterminate",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"disabled",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"error",void 0);rt([(0,Ue.query)(".ft-checkbox")],se.prototype,"container",void 0);rt([(0,Ue.query)("ft-ripple")],se.prototype,"ripple",void 0);rt([(0,Ue.query)("input")],se.prototype,"input",void 0);var yc=f(S());var mc={"ft-checkbox":se};(0,yc.customElements)(mc);var bc=f(k()),qe=f(K()),xc=f(S()),Sc=f(qt());var gc=f(k()),me=f(S());var ft={textColor:me.FtCssVariableFactory.extend("--ft-radio-text-color","",me.designSystemVariables.colorOnSurfaceHigh),fontSize:me.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnPrimary,"Design system"),borderColor:me.FtCssVariableFactory.extend("--ft-radio-border-color","",me.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnSurfaceDisabled,"Design system")},vc=gc.css`
720
718
  * {
721
719
  box-sizing: border-box;
722
720
  }
723
721
 
724
722
  .ft-radio {
725
723
  box-sizing: border-box;
726
- color: ${yt.textColor};
727
- font-size: ${yt.fontSize};
724
+ color: ${ft.textColor};
725
+ font-size: ${ft.fontSize};
728
726
 
729
727
  display: inline-flex;
730
728
  align-items: center;
@@ -732,7 +730,7 @@
732
730
  }
733
731
 
734
732
  .ft-radio--disabled {
735
- color: ${yt.colorOnSurfaceDisabled};
733
+ color: ${ft.colorOnSurfaceDisabled};
736
734
  }
737
735
 
738
736
  input {
@@ -755,7 +753,7 @@
755
753
  }
756
754
 
757
755
  .ft-radio--box {
758
- border: 2px solid ${yt.borderColor};
756
+ border: 2px solid ${ft.borderColor};
759
757
  border-radius: 50%;
760
758
 
761
759
  display: flex;
@@ -768,7 +766,7 @@
768
766
 
769
767
  .ft-radio--box:after {
770
768
  content: " ";
771
- background-color: ${yt.colorPrimary};
769
+ background-color: ${ft.colorPrimary};
772
770
 
773
771
  border-radius: 50%;
774
772
 
@@ -780,7 +778,7 @@
780
778
  }
781
779
 
782
780
  .ft-radio--checked .ft-radio--box {
783
- border-color: ${yt.colorPrimary};
781
+ border-color: ${ft.colorPrimary};
784
782
  }
785
783
 
786
784
 
@@ -789,24 +787,24 @@
789
787
  }
790
788
 
791
789
  .ft-radio--disabled .ft-radio--box {
792
- border-color: ${yt.colorOnSurfaceDisabled};
790
+ border-color: ${ft.colorOnSurfaceDisabled};
793
791
  background-color: transparent;
794
792
  }
795
793
 
796
794
  .ft-radio--disabled .ft-radio--box:after {
797
- background-color: ${yt.colorOnSurfaceDisabled};
795
+ background-color: ${ft.colorOnSurfaceDisabled};
798
796
  }
799
797
 
800
798
  .ft-radio:has(:focus-visible) {
801
- outline: 2px solid ${fe.designSystemVariables.colorPrimary};
799
+ outline: 2px solid ${me.designSystemVariables.colorPrimary};
802
800
  outline-offset: -2px;
803
801
  }
804
802
 
805
803
  .ft-radio ft-typography {
806
804
  padding-right: 2px;
807
805
  }
808
- `;var gt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Bn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},se=class extends lc.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 ac.html`
809
- <div class="${(0,cc.classMap)(this.radioClasses)}"
806
+ `;var ht=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Zn=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},le=class extends xc.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 bc.html`
807
+ <div class="${(0,Sc.classMap)(this.radioClasses)}"
810
808
  @click=${this.onClick}>
811
809
  <div class="ft-radio--box-container">
812
810
  <ft-ripple
@@ -826,12 +824,12 @@
826
824
  >
827
825
  </div>
828
826
  <label for="radio-button" inert>
829
- <ft-typography variant="${Q.body2}">
827
+ <ft-typography variant="${ee.body2}">
830
828
  <slot></slot>
831
829
  </ft-typography>
832
830
  </label>
833
831
  </div>
834
- `}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 Bn(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 Bn(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())}};se.elementDefinitions={"ft-ripple":P,"ft-typography":Y};se.styles=sc;gt([(0,qe.property)()],se.prototype,"name",void 0);gt([(0,qe.property)()],se.prototype,"value",void 0);gt([(0,qe.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);gt([(0,qe.property)({attribute:"aria-checked",reflect:!0})],se.prototype,"ariaChecked",void 0);gt([(0,qe.property)({type:Boolean})],se.prototype,"disabled",void 0);gt([(0,qe.query)(".ft-radio")],se.prototype,"container",void 0);gt([(0,qe.query)("ft-ripple")],se.prototype,"ripple",void 0);gt([(0,qe.query)("input")],se.prototype,"input",void 0);var pc=f(E()),bt=f(z()),fc=f(L());var uc=f(L());var dc=uc.css`
832
+ `}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zn(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zn(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":P,"ft-typography":X};le.styles=vc;ht([(0,qe.property)()],le.prototype,"name",void 0);ht([(0,qe.property)()],le.prototype,"value",void 0);ht([(0,qe.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);ht([(0,qe.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);ht([(0,qe.property)({type:Boolean})],le.prototype,"disabled",void 0);ht([(0,qe.query)(".ft-radio")],le.prototype,"container",void 0);ht([(0,qe.query)("ft-ripple")],le.prototype,"ripple",void 0);ht([(0,qe.query)("input")],le.prototype,"input",void 0);var _c=f(S()),mt=f(K()),Cc=f(k());var Ec=f(k());var Ac=Ec.css`
835
833
  :host {
836
834
  display: block;
837
835
  }
@@ -839,12 +837,12 @@
839
837
  :host(:focus-visible) {
840
838
  outline: none;
841
839
  }
842
- `;var Wr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},je=class extends pc.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(n=>n.matches("ft-radio,ftds-radio")?[n]:[...n.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return fc.html`
840
+ `;var zr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Be=class extends _c.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(n=>n.matches("ft-radio,ftds-radio")?[n]:[...n.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Cc.html`
843
841
  <slot @slotchange=${this.onSlotChange}
844
842
  @change=${this.onChange}
845
843
  @keydown=${this.onKeyDown}
846
844
  ></slot>
847
- `}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 n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].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()}};je.elementDefinitions={};je.styles=dc;Wr([(0,bt.property)()],je.prototype,"name",void 0);Wr([(0,bt.property)({reflect:!0,attribute:"role"})],je.prototype,"role",void 0);Wr([(0,bt.property)({reflect:!0,attribute:"aria-labelledby"})],je.prototype,"ariaLabelledBy",void 0);Wr([(0,bt.queryAssignedElements)()],je.prototype,"assignedElements",void 0);Wr([(0,bt.state)()],je.prototype,"currentSelectedIndex",void 0);var mc=f(E());var hc={"ft-radio":se,"ft-radio-group":je};(0,mc.customElements)(hc);var vc=f(L()),D=f(E());var Kr={buttonMoreColor:D.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",D.designSystemVariables.colorOnSurface),borderRadiusM:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusM,"Design system"),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:D.FtCssVariableFactory.external(ye.fontFamily,"Body2 typography"),fontSize:D.FtCssVariableFactory.external(ye.fontSize,"Body2 typography"),fontWeight:D.FtCssVariableFactory.external(ye.fontWeight,"Body2 typography"),letterSpacing:D.FtCssVariableFactory.external(ye.letterSpacing,"Body2 typography"),lineHeight:D.FtCssVariableFactory.external(ye.lineHeight,"Body2 typography"),textTransform:D.FtCssVariableFactory.external(ye.textTransform,"Body2 typography")},yc=vc.css`
845
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(r=>r.checked=t.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let r=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(r=>r.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Be.elementDefinitions={};Be.styles=Ac;zr([(0,mt.property)()],Be.prototype,"name",void 0);zr([(0,mt.property)({reflect:!0,attribute:"role"})],Be.prototype,"role",void 0);zr([(0,mt.property)({reflect:!0,attribute:"aria-labelledby"})],Be.prototype,"ariaLabelledBy",void 0);zr([(0,mt.queryAssignedElements)()],Be.prototype,"assignedElements",void 0);zr([(0,mt.state)()],Be.prototype,"currentSelectedIndex",void 0);var Oc=f(S());var wc={"ft-radio":le,"ft-radio-group":Be};(0,Oc.customElements)(wc);var Tc=f(k()),M=f(S());var jr={buttonMoreColor:M.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",M.designSystemVariables.colorOnSurface),borderRadiusM:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusM,"Design system"),colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:M.FtCssVariableFactory.external(ge.fontFamily,"Body2 typography"),fontSize:M.FtCssVariableFactory.external(ge.fontSize,"Body2 typography"),fontWeight:M.FtCssVariableFactory.external(ge.fontWeight,"Body2 typography"),letterSpacing:M.FtCssVariableFactory.external(ge.letterSpacing,"Body2 typography"),lineHeight:M.FtCssVariableFactory.external(ge.lineHeight,"Body2 typography"),textTransform:M.FtCssVariableFactory.external(ge.textTransform,"Body2 typography")},Rc=Tc.css`
848
846
  .ft-filter-level--container {
849
847
  display: flex;
850
848
  flex-direction: column;
@@ -859,14 +857,14 @@
859
857
  flex-shrink: 0;
860
858
  text-decoration: none;
861
859
  position: relative;
862
- border-radius: ${Kr.borderRadiusM};
860
+ border-radius: ${jr.borderRadiusM};
863
861
  overflow: hidden;
864
862
  display: flex;
865
863
  align-items: center;
866
864
  padding: 4px 4px;
867
865
  gap: 4px;
868
866
  cursor: pointer;
869
- color: ${Kr.colorOnSurface};
867
+ color: ${jr.colorOnSurface};
870
868
  }
871
869
 
872
870
  .ft-filter-level--go-back:focus {
@@ -895,11 +893,11 @@
895
893
  }
896
894
 
897
895
  ft-button {
898
- ${(0,D.setVariable)(k.color,Kr.colorOnSurface)};
896
+ ${(0,M.setVariable)(D.color,jr.colorOnSurface)};
899
897
  }
900
898
 
901
899
  ft-button.ft-filter-level--display-more {
902
- ${(0,D.setVariable)(k.color,Kr.buttonMoreColor)};
900
+ ${(0,M.setVariable)(D.color,jr.buttonMoreColor)};
903
901
  }
904
902
 
905
903
  ft-radio, ft-checkbox {
@@ -913,11 +911,11 @@
913
911
 
914
912
  .ft-filter-level--no-values {
915
913
  margin: 10px 0;
916
- color: ${Kr.colorOnSurfaceMedium};
914
+ color: ${jr.colorOnSurfaceMedium};
917
915
  }
918
- `;var ie=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Zi={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},j=class extends(0,he.withAnalytics)(Dn((0,he.withAriaNotification)(he.FtLitElement)),Zi){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 he.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 Ae.html`
916
+ `;var oe=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},is={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},V=class extends(0,ye.withAnalytics)(Wn((0,ye.withAriaNotification)(ye.FtLitElement)),is){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 ye.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit);return Ee.html`
919
917
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
920
- ${this.parent==null?null:Ae.html`
918
+ ${this.parent==null?null:Ee.html`
921
919
  <div tabindex="0"
922
920
  part="controls go-back"
923
921
  class="ft-filter-level--go-back"
@@ -928,18 +926,18 @@
928
926
  @click=${this.goBackOnClick}>
929
927
  <ft-ripple></ft-ripple>
930
928
  <ft-icon>thin_arrow_left</ft-icon>
931
- <ft-typography variant="${Q.body2}">${this.parent.label}</ft-typography>
929
+ <ft-typography variant="${ee.body2}">${this.parent.label}</ft-typography>
932
930
  </div>
933
931
  `}
934
- ${this.filteredOptions.length===0&&this.noValuesLabel?Ae.html`
935
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${Q.body2}">
932
+ ${this.filteredOptions.length===0&&this.noValuesLabel?Ee.html`
933
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${ee.body2}">
936
934
  ${this.noValuesLabel}
937
935
  </ft-typography>
938
- `:Ae.nothing}
939
- ${(0,gc.repeat)(e,r=>r.value,r=>{var n;return Ae.html`
936
+ `:Ee.nothing}
937
+ ${(0,Lc.repeat)(t,r=>r.value,r=>{var n;return Ee.html`
940
938
  <div class="ft-filter-level--option" part="options" tabindex="-1">
941
939
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
942
- ${this.preventNavigation||r.selected||((n=r.subOptions)!==null&&n!==void 0?n:[]).length===0?Ae.nothing:Ae.html`
940
+ ${this.preventNavigation||r.selected||((n=r.subOptions)!==null&&n!==void 0?n:[]).length===0?Ee.nothing:Ee.html`
943
941
  <ft-button icon="thin_arrow_right"
944
942
  part="controls navigate-hierarchy"
945
943
  aria-label="Expand node"
@@ -950,7 +948,7 @@
950
948
  `}
951
949
  </div>
952
950
  `})}
953
- ${e.length<this.filteredOptions.length?Ae.html`
951
+ ${t.length<this.filteredOptions.length?Ee.html`
954
952
  <ft-button
955
953
  class="ft-filter-level--display-more"
956
954
  icon="thin_arrow"
@@ -959,31 +957,31 @@
959
957
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
960
958
  ${this.moreValuesButtonLabel}
961
959
  </ft-button>
962
- `:Ae.nothing}
960
+ `:Ee.nothing}
963
961
  </div>
964
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,n=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(n?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Ae.html`
962
+ `}goBackOnKeyPress(t){(t.key==="Enter"||t.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var t;let r=(t=this.limit)!==null&&t!==void 0?t:0,n=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(n?2:1)}) [part~="option"]`}}buildMultiValuedOption(t){var r;return Ee.html`
965
963
  <ft-checkbox name="${this.filterId}"
966
964
  part="multivalued-option option"
967
965
  .exportpartsPrefixes=${["multivalued-option","option"]}
968
- data-value="${e.value}"
969
- .checked=${e.selected}
966
+ data-value="${t.value}"
967
+ .checked=${t.selected}
970
968
  .disabled=${this.disabled}
971
- .indeterminate=${(0,he.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],n=>{var i;return(i=n.subOptions)!==null&&i!==void 0?i:[]}).some(n=>n.selected)}
972
- @change=${n=>this.optionsChanged(n,e)}>
973
- ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
969
+ .indeterminate=${(0,ye.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],n=>{var s;return(s=n.subOptions)!==null&&s!==void 0?s:[]}).some(n=>n.selected)}
970
+ @change=${n=>this.optionsChanged(n,t)}>
971
+ ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
974
972
  </ft-checkbox>
975
- `}buildMonoValuedOption(e){return Ae.html`
973
+ `}buildMonoValuedOption(t){return Ee.html`
976
974
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
977
975
  part="monovalued-option option"
978
- data-value="${e.value}"
979
- value="${e.value}"
980
- .checked=${e.selected}
976
+ data-value="${t.value}"
977
+ value="${t.value}"
978
+ .checked=${t.selected}
981
979
  .disabled=${this.disabled}
982
- @keydown=${r=>this.onRadioKeyDown(r,e)}
983
- @change=${r=>this.optionsChanged(r,e)}>
984
- ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
980
+ @keydown=${r=>this.onRadioKeyDown(r,t)}
981
+ @change=${r=>this.optionsChanged(r,t)}>
982
+ ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
985
983
  </ft-radio>
986
- `}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)})}};j.elementDefinitions={"ft-button":_,"ft-ripple":P,"ft-typography":Y,"ft-checkbox":ne,"ft-icon":le,"ft-radio":se};j.styles=yc;ie([(0,J.property)({type:String})],j.prototype,"filterId",void 0);ie([(0,J.property)({type:Object})],j.prototype,"parent",void 0);ie([(0,J.property)({type:Array,hasChanged:he.hasChanged})],j.prototype,"options",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"multivalued",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"disabled",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"hideSelectedOptions",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"displayCount",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"preventNavigation",void 0);ie([(0,J.property)({type:String})],j.prototype,"filter",void 0);ie([(0,J.property)({type:String})],j.prototype,"moreValuesButtonLabel",void 0);ie([(0,J.property)({type:String})],j.prototype,"noValuesLabel",void 0);ie([(0,J.property)()],j.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,he.numberProperty)()],j.prototype,"displayedValuesLimit",void 0);ie([(0,J.query)(".ft-filter-level--container")],j.prototype,"container",void 0);ie([(0,J.state)()],j.prototype,"radios",void 0);ie([(0,J.state)()],j.prototype,"displayedPages",void 0);ie([(0,J.state)()],j.prototype,"filteredOptions",void 0);var Ac=f(L()),Se=f(z()),Bt=f(E());var Sc=f(Qt());var bc=f(L()),Fe=f(E());var xt={buttonsColor:Fe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Fe.designSystemVariables.colorPrimary),buttonsZIndex:Fe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Fe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorSurface,"Design system")},xc=bc.css`
984
+ `}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.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)})}};V.elementDefinitions={"ft-button":O,"ft-ripple":P,"ft-typography":X,"ft-checkbox":se,"ft-icon":ue,"ft-radio":le};V.styles=Rc;oe([(0,Z.property)({type:String})],V.prototype,"filterId",void 0);oe([(0,Z.property)({type:Object})],V.prototype,"parent",void 0);oe([(0,Z.property)({type:Array,hasChanged:ye.hasChanged})],V.prototype,"options",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"multivalued",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"disabled",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"hideSelectedOptions",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"displayCount",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"preventNavigation",void 0);oe([(0,Z.property)({type:String})],V.prototype,"filter",void 0);oe([(0,Z.property)({type:String})],V.prototype,"moreValuesButtonLabel",void 0);oe([(0,Z.property)({type:String})],V.prototype,"noValuesLabel",void 0);oe([(0,Z.property)()],V.prototype,"filteredOptionsNumberAriaNotification",void 0);oe([(0,ye.numberProperty)()],V.prototype,"displayedValuesLimit",void 0);oe([(0,Z.query)(".ft-filter-level--container")],V.prototype,"container",void 0);oe([(0,Z.state)()],V.prototype,"radios",void 0);oe([(0,Z.state)()],V.prototype,"displayedPages",void 0);oe([(0,Z.state)()],V.prototype,"filteredOptions",void 0);var Nc=f(k()),Ae=f(K()),Dt=f(S());var Dc=f(qt());var kc=f(k()),He=f(S());var yt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},Pc=kc.css`
987
985
  .ft-snap-scroll {
988
986
  box-sizing: border-box;
989
987
  position: relative;
@@ -1018,7 +1016,7 @@
1018
1016
  flex-wrap: nowrap;
1019
1017
  align-items: flex-start;
1020
1018
  justify-content: flex-start;
1021
- gap: ${xt.gap};
1019
+ gap: ${yt.gap};
1022
1020
  }
1023
1021
 
1024
1022
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1061,11 +1059,11 @@
1061
1059
  .ft-snap-scroll--next {
1062
1060
  position: absolute;
1063
1061
  display: flex;
1064
- z-index: ${xt.buttonsZIndex};
1062
+ z-index: ${yt.buttonsZIndex};
1065
1063
  opacity: 1;
1066
1064
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1067
- ${(0,Fe.setVariable)(k.backgroundColor,"transparent")};
1068
- ${(0,Fe.setVariable)(k.color,xt.buttonsColor)};
1065
+ ${(0,He.setVariable)(D.backgroundColor,"transparent")};
1066
+ ${(0,He.setVariable)(D.color,yt.buttonsColor)};
1069
1067
  }
1070
1068
 
1071
1069
  .ft-snap-scroll--previous[hidden],
@@ -1078,38 +1076,38 @@
1078
1076
  top: 0;
1079
1077
  left: -1px;
1080
1078
  bottom: 0;
1081
- background: linear-gradient(to right, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1079
+ background: linear-gradient(to right, ${yt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1082
1080
  }
1083
1081
 
1084
1082
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1085
1083
  top: -1px;
1086
1084
  left: 0;
1087
1085
  right: 0;
1088
- background: linear-gradient(to bottom, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1086
+ background: linear-gradient(to bottom, ${yt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1089
1087
  }
1090
1088
 
1091
1089
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1092
1090
  top: 0;
1093
1091
  right: -1px;
1094
1092
  bottom: 0;
1095
- background: linear-gradient(to left, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1093
+ background: linear-gradient(to left, ${yt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1096
1094
  }
1097
1095
 
1098
1096
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1099
1097
  left: 0;
1100
1098
  right: 0;
1101
1099
  bottom: -1px;
1102
- background: linear-gradient(to top, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1100
+ background: linear-gradient(to top, ${yt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1103
1101
  }
1104
1102
 
1105
1103
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1106
1104
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1107
1105
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1108
1106
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1109
- background-color: ${xt.colorSurface};
1107
+ background-color: ${yt.colorSurface};
1110
1108
  }
1111
- `;var Ye=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Qi=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Z=class extends Bt.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 Bt.Debouncer(200),this.updateScrollDebouncer=new Bt.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<i||r[this.offsetAttribute]+r[this.sizeAttribute]>n)&&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,Sc.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":Bt.isSafari}),r=this.controls&&this.withScroll;return Ac.html`
1112
- <div part="container" class="${e}">
1109
+ `;var Ye=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ss=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},Q=class extends Dt.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 Dt.Debouncer(200),this.updateScrollDebouncer=new Dt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>n)&&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 t=(0,Dc.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":Dt.isSafari}),r=this.controls&&this.withScroll;return Nc.html`
1110
+ <div part="container" class="${t}">
1113
1111
  <ft-button
1114
1112
  class="ft-snap-scroll--previous"
1115
1113
  part="controls"
@@ -1132,7 +1130,7 @@
1132
1130
  @click=${this.next}
1133
1131
  ></ft-button>
1134
1132
  </div>
1135
- `}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 Qi(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,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.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(n=>n))!==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)}};Z.elementDefinitions={"ft-button":_};Z.styles=xc;Ye([(0,Se.property)({type:Boolean})],Z.prototype,"horizontal",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"hideScrollbar",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"controls",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"limitSize",void 0);Ye([(0,Se.state)()],Z.prototype,"elements",void 0);Ye([(0,Se.state)()],Z.prototype,"currentElement",void 0);Ye([(0,Se.state)()],Z.prototype,"withScroll",void 0);Ye([(0,Se.state)()],Z.prototype,"startReached",void 0);Ye([(0,Se.state)()],Z.prototype,"endReached",void 0);Ye([(0,Se.query)(".ft-snap-scroll--content")],Z.prototype,"contentSlot",void 0);var Cc=f(E());var Ec={"ft-snap-scroll":Z};(0,Cc.customElements)(Ec);var Oc=f(L()),M=f(E());var Pe={colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorSurface,"Design system"),transitionDuration:M.FtCssVariableFactory.external(M.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:M.FtCssVariableFactory.external(M.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:M.FtCssVariableFactory.extend("--ft-filter-label-color","",M.designSystemVariables.colorOnSurface),labelFontSize:M.FtCssVariableFactory.extend("--ft-filter-label-font-size","",A.fontSize,"16px")},wc=[Xr,M.noTextInputDefaultClearButton,Oc.css`
1133
+ `}update(t){super.update(t),t.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")),t.has("currentElement")&&this.dispatchEvent(new ss(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),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 t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,n;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}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 t=this.elements[0];return t?t[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(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};Q.elementDefinitions={"ft-button":O};Q.styles=Pc;Ye([(0,Ae.property)({type:Boolean})],Q.prototype,"horizontal",void 0);Ye([(0,Ae.property)({type:Boolean})],Q.prototype,"hideScrollbar",void 0);Ye([(0,Ae.property)({type:Boolean})],Q.prototype,"controls",void 0);Ye([(0,Ae.property)({type:Boolean})],Q.prototype,"limitSize",void 0);Ye([(0,Ae.state)()],Q.prototype,"elements",void 0);Ye([(0,Ae.state)()],Q.prototype,"currentElement",void 0);Ye([(0,Ae.state)()],Q.prototype,"withScroll",void 0);Ye([(0,Ae.state)()],Q.prototype,"startReached",void 0);Ye([(0,Ae.state)()],Q.prototype,"endReached",void 0);Ye([(0,Ae.query)(".ft-snap-scroll--content")],Q.prototype,"contentSlot",void 0);var Ic=f(S());var Mc={"ft-snap-scroll":Q};(0,Ic.customElements)(Mc);var $c=f(k()),B=f(S());var Le={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Uc=[qr,B.noTextInputDefaultClearButton,$c.css`
1136
1134
  :host {
1137
1135
  display: flex;
1138
1136
  max-height: 100%;
@@ -1160,7 +1158,7 @@
1160
1158
  .ft-filter--header ft-button {
1161
1159
  flex-shrink: 0;
1162
1160
  margin-left: auto;
1163
- ${(0,M.setVariable)(k.iconSize,"18px")};
1161
+ ${(0,B.setVariable)(D.iconSize,"18px")};
1164
1162
  }
1165
1163
 
1166
1164
  .filter-label {
@@ -1172,10 +1170,10 @@
1172
1170
  flex-shrink: 1;
1173
1171
  flex-grow: 1;
1174
1172
  word-break: break-word;
1175
- color: ${Pe.labelColor};
1176
- font-size: ${Pe.labelFontSize};
1177
- ${(0,M.setVariable)(A.lineHeight,"22px")};
1178
- ${(0,M.setVariable)(A.fontWeight,"bold")};
1173
+ color: ${Le.labelColor};
1174
+ font-size: ${Le.labelFontSize};
1175
+ ${(0,B.setVariable)(g.lineHeight,"22px")};
1176
+ ${(0,B.setVariable)(g.fontWeight,"bold")};
1179
1177
  }
1180
1178
 
1181
1179
  .ft-filter--filter {
@@ -1186,8 +1184,8 @@
1186
1184
  padding: 0 10px;
1187
1185
  overflow: hidden;
1188
1186
  height: 32px;
1189
- transition: height ${Pe.transitionDuration} ${Pe.transitionTimingFunction},
1190
- margin ${Pe.transitionDuration} ${Pe.transitionTimingFunction};
1187
+ transition: height ${Le.transitionDuration} ${Le.transitionTimingFunction},
1188
+ margin ${Le.transitionDuration} ${Le.transitionTimingFunction};
1191
1189
  transition-delay: 500ms;
1192
1190
  }
1193
1191
 
@@ -1200,15 +1198,15 @@
1200
1198
  display: block;
1201
1199
  width: 100%;
1202
1200
  border-radius: 4px;
1203
- border: 1px solid ${Pe.colorOutline};
1201
+ border: 1px solid ${Le.colorOutline};
1204
1202
  padding: 4px;
1205
- background-color: ${Pe.colorSurface};
1206
- color: ${Pe.colorOnSurface};
1207
- outline-color: ${Pe.colorPrimary};
1203
+ background-color: ${Le.colorSurface};
1204
+ color: ${Le.colorOnSurface};
1205
+ outline-color: ${Le.colorPrimary};
1208
1206
  }
1209
1207
 
1210
1208
  input::placeholder {
1211
- color: ${Pe.colorOnSurfaceMedium};
1209
+ color: ${Le.colorOnSurfaceMedium};
1212
1210
  }
1213
1211
 
1214
1212
  input:placeholder-shown {
@@ -1224,7 +1222,7 @@
1224
1222
  }
1225
1223
 
1226
1224
  .ft-filter--separator {
1227
- border-top: 1px solid ${Pe.colorOutline};
1225
+ border-top: 1px solid ${Le.colorOutline};
1228
1226
  margin: 4px 10px;
1229
1227
  }
1230
1228
 
@@ -1249,19 +1247,19 @@
1249
1247
  slot:not([name]) {
1250
1248
  display: none;
1251
1249
  }
1252
- `];var $=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},R=class extends(0,F.withAnalytics)(F.FtLitElement,Zi){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 F.Debouncer(300),this.changeDebouncer=new F.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,F.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,F.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(i=>i.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Ht.html`
1250
+ `];var H=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},os=class extends CustomEvent{constructor(t){super("change",{detail:t})}},R=class extends(0,W.withAnalytics)(W.FtLitElement,is){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 W.Debouncer(300),this.changeDebouncer=new W.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Mt.html`
1253
1251
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1254
1252
  part="container">
1255
- ${!this.label&&!e?null:Ht.html`
1253
+ ${!this.label&&!t?null:Mt.html`
1256
1254
 
1257
1255
  <div class="ft-filter--header" part="header">
1258
1256
  <div class="filter-label" id="id-group-${this.id}">
1259
- <ft-typography class="ft-filter--label" variant="${Q.overline}" part="label">
1257
+ <ft-typography class="ft-filter--label" variant="${ee.overline}" part="label">
1260
1258
  ${this.label}
1261
1259
  </ft-typography>
1262
1260
  <slot name="label"></slot>
1263
1261
  </div>
1264
- ${e&&!this.hideClearButton?Ht.html`
1262
+ ${t&&!this.hideClearButton?Mt.html`
1265
1263
  <ft-button icon="close"
1266
1264
  aria-label="${this.clearButtonLabel+" "+this.label}"
1267
1265
  dense
@@ -1289,8 +1287,8 @@
1289
1287
  @slotchange=${this.updateOptionsFromSlot}
1290
1288
  @option-change=${this.optionsChanged}></slot>
1291
1289
  </div>
1292
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(n=>n.value));this.displayedLevels=this.displayedLevels.filter(n=>r.has(n)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,n,i,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&&((n=this.levelsContainer)===null||n===void 0||n.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((i=this.levelsContainer)===null||i===void 0||i.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),n=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=n<0?"ft-filter--level-center":"ft-filter--level-left";return Ht.html`
1293
- ${this.raiseSelectedOptions&&r.length>0?Ht.html`
1290
+ `}update(t){if(super.update(t),t.has("options")){let r=new Set(this.flatOptions.map(n=>n.value));this.displayedLevels=this.displayedLevels.filter(n=>r.has(n)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var r,n,s,i,o,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&((n=this.levelsContainer)===null||n===void 0||n.next(),setTimeout(()=>{this.slideIn=void 0},300)),t.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let t=this.flatOptions,r=t.filter(i=>i.selected),n=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=n<0?"ft-filter--level-center":"ft-filter--level-left";return Mt.html`
1291
+ ${this.raiseSelectedOptions&&r.length>0?Mt.html`
1294
1292
  <ft-filter-level
1295
1293
  filterId="${this.id}"
1296
1294
  ?multivalued=${this.multivalued}
@@ -1307,19 +1305,19 @@
1307
1305
  `:null}
1308
1306
  <ft-snap-scroll horizontal hideScrollbar
1309
1307
  class="ft-filter--levels"
1310
- @current-element-change=${o=>this.levelsScrollDebouncer.run(()=>{for(;o.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1311
- ${this.renderLevel(i,this.options)}
1312
- ${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===n?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=o?.subOptions)!==null&&a!==void 0?a:[],o)})}
1308
+ @current-element-change=${i=>this.levelsScrollDebouncer.run(()=>{for(;i.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1309
+ ${this.renderLevel(s,this.options)}
1310
+ ${this.displayedLevels.map(i=>t.find(o=>o.value===i)).map((i,o)=>{var a;let l=i?.value===this.slideIn||i?.value===this.slideOut?"ft-filter--level-right":o===n?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=i?.subOptions)!==null&&a!==void 0?a:[],i)})}
1313
1311
  </ft-snap-scroll>
1314
- `}renderLevel(e,r,n){return Ht.html`
1312
+ `}renderLevel(t,r,n){return Mt.html`
1315
1313
  <ft-filter-level
1316
- class="${e}"
1314
+ class="${t}"
1317
1315
  filterId="${this.id}"
1318
1316
  .filter=${this.filter}
1319
1317
  .configuredAnalyticsActions=${this.configuredAnalyticsActions}
1320
1318
  moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1321
1319
  ?multivalued=${this.multivalued}
1322
- ?disabled=${this.disabled||e!=="ft-filter--level-center"}
1320
+ ?disabled=${this.disabled||t!=="ft-filter--level-center"}
1323
1321
  ?hideSelectedOptions=${this.raiseSelectedOptions}
1324
1322
  ?displayCount=${this.displayCount}
1325
1323
  .parent=${n}
@@ -1333,9 +1331,9 @@
1333
1331
  noValuesLabel="${this.noValuesLabel}"
1334
1332
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1335
1333
  ></ft-filter-level>
1336
- `}goBack(e){this.slideOut=e.detail.value,(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,F.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,F.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 n=this.flatOptions.find(o=>o.value===e.detail.value);n.selected=!n.selected;let i=o=>{var s;o!==n&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),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,F.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new eo(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)}};R.elementDefinitions={"ft-button":_,"ft-filter-level":j,"ft-snap-scroll":Z,"ft-typography":Y};R.styles=wc;$([(0,N.property)({type:String})],R.prototype,"id",void 0);$([(0,N.property)({type:String})],R.prototype,"label",void 0);$([(0,N.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);$([(0,N.property)({type:String})],R.prototype,"clearButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"noValuesLabel",void 0);$([(0,F.jsonProperty)([])],R.prototype,"options",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"multivalued",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"disabled",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"displayCount",void 0);$([(0,F.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);$([(0,F.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);$([(0,N.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);$([(0,N.query)(".ft-filter--container")],R.prototype,"container",void 0);$([(0,N.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);$([(0,N.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);$([(0,N.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);$([(0,N.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);$([(0,N.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);$([(0,N.state)()],R.prototype,"withScroll",void 0);$([(0,N.state)()],R.prototype,"filter",void 0);$([(0,N.state)()],R.prototype,"slideIn",void 0);$([(0,N.state)()],R.prototype,"slideOut",void 0);var Hn=f(E()),jt=f(z()),Tc=f(L()),mr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ve=class extends Hn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Tc.html`
1334
+ `}goBack(t){this.slideOut=t.detail.value,(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,W.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let n=this.flatOptions.find(i=>i.value===t.detail.value);n.selected=!n.selected;let s=i=>{var o;i!==n&&(i.selected=!1),(o=i.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,W.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new os(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":Q,"ft-typography":X};R.styles=Uc;H([(0,I.property)({type:String})],R.prototype,"id",void 0);H([(0,I.property)({type:String})],R.prototype,"label",void 0);H([(0,I.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);H([(0,I.property)({type:String})],R.prototype,"clearButtonLabel",void 0);H([(0,I.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);H([(0,I.property)({type:String})],R.prototype,"noValuesLabel",void 0);H([(0,W.jsonProperty)([])],R.prototype,"options",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"multivalued",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"disabled",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"displayCount",void 0);H([(0,W.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);H([(0,W.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);H([(0,I.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);H([(0,I.query)(".ft-filter--container")],R.prototype,"container",void 0);H([(0,I.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);H([(0,I.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);H([(0,I.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,I.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);H([(0,I.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);H([(0,I.state)()],R.prototype,"withScroll",void 0);H([(0,I.state)()],R.prototype,"filter",void 0);H([(0,I.state)()],R.prototype,"slideIn",void 0);H([(0,I.state)()],R.prototype,"slideOut",void 0);var Qn=f(S()),It=f(K()),Bc=f(k()),lr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Fe=class extends Qn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Bc.html`
1337
1335
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1338
- `}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}))}};Ve.elementDefinitions={};mr([(0,jt.property)({type:String})],Ve.prototype,"label",void 0);mr([(0,jt.property)({type:Object,converter:t=>t})],Ve.prototype,"value",void 0);mr([(0,jt.property)({type:Boolean,reflect:!0})],Ve.prototype,"selected",void 0);mr([(0,jt.property)({type:Object})],Ve.prototype,"subOptions",void 0);mr([(0,Hn.jsonProperty)({})],Ve.prototype,"renderOption",void 0);mr([(0,jt.query)(".ft-filter-option--slot")],Ve.prototype,"slotElement",void 0);var _c={"ft-filter":R,"ft-filter-option":Ve};(0,Rc.customElements)(_c);})();
1336
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Fe.elementDefinitions={};lr([(0,It.property)({type:String})],Fe.prototype,"label",void 0);lr([(0,It.property)({type:Object,converter:e=>e})],Fe.prototype,"value",void 0);lr([(0,It.property)({type:Boolean,reflect:!0})],Fe.prototype,"selected",void 0);lr([(0,It.property)({type:Object})],Fe.prototype,"subOptions",void 0);lr([(0,Qn.jsonProperty)({})],Fe.prototype,"renderOption",void 0);lr([(0,It.query)(".ft-filter-option--slot")],Fe.prototype,"slotElement",void 0);var Hc={"ft-filter":R,"ft-filter-option":Fe};(0,Fc.customElements)(Hc);})();
1339
1337
  /*! Bundled license information:
1340
1338
 
1341
1339
  lit-html/lit-html.js: