@fluid-topics/ft-combobox 2.1.24 → 2.2.1

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,43 +1,43 @@
1
- "use strict";(()=>{var Lc=Object.create;var oo=Object.defineProperty;var Pc=Object.getOwnPropertyDescriptor;var Nc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Ic=Object.prototype.hasOwnProperty;var Bt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var kc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nc(e))!Ic.call(t,n)&&n!==r&&oo(t,n,{get:()=>e[n],enumerable:!(i=Pc(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Lc(Dc(t)):{},kc(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var E=Bt((sd,so)=>{so.exports=ftGlobals.wcUtils});var F=Bt((ad,ao)=>{ao.exports=ftGlobals.lit});var te=Bt((ld,lo)=>{lo.exports=ftGlobals.litDecorators});var Wi=Bt((cd,co)=>{co.exports=ftGlobals.litRepeat});var nt=Bt((ud,uo)=>{uo.exports=ftGlobals.litClassMap});var ds=Bt((xp,us)=>{us.exports=ftGlobals.litUnsafeHTML});var Rc=f(E());var me=f(F()),B=f(te()),no=f(Wi()),ji=f(nt());var Ji=globalThis,po=t=>t,Wr=Ji.trustedTypes,fo=Wr?Wr.createPolicy("lit-html",{createHTML:t=>t}):void 0,bo="$lit$",ot=`lit$${Math.random().toFixed(9).slice(2)}$`,xo="?"+ot,Mc=`<${xo}>`,St=document,Kr=()=>St.createComment(""),mr=t=>t===null||typeof t!="object"&&typeof t!="function",Qi=Array.isArray,$c=t=>Qi(t)||typeof t?.[Symbol.iterator]=="function",Ki=`[
2
- \f\r]`,hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ho=/-->/g,mo=/>/g,bt=RegExp(`>|${Ki}(?:([^\\s"'>=/]+)(${Ki}*=${Ki}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),go=/'/g,vo=/"/g,So=/^(?:script|style|textarea|title)$/i,en=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ao=en(1),Eo=en(2),Co=en(3),gr=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),yo=new WeakMap,xt=St.createTreeWalker(St,129);function wo(t,e){if(!Qi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fo!==void 0?fo.createHTML(e):e}var Uc=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=hr;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===hr?u[1]==="!--"?s=ho:u[1]!==void 0?s=mo:u[2]!==void 0?(So.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=bt):u[3]!==void 0&&(s=bt):s===bt?u[0]===">"?(s=n??hr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?bt:u[3]==='"'?vo:go):s===vo||s===go?s=bt:s===ho||s===mo?s=hr:(s=bt,n=void 0);let h=s===bt&&t[a+1].startsWith("/>")?" ":"";o+=s===hr?l+Mc:d>=0?(i.push(c),l.slice(0,d)+bo+l.slice(d)+ot+h):l+ot+(d===-2?a:h)}return[wo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},vr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Uc(e,r);if(this.el=t.createElement(c,i),xt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=xt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(bo)){let p=u[s++],h=n.getAttribute(d).split(ot),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?qi:m[1]==="?"?Yi:m[1]==="@"?Xi:Ft}),n.removeAttribute(d)}else d.startsWith(ot)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(So.test(n.tagName)){let d=n.textContent.split(ot),p=d.length-1;if(p>0){n.textContent=Wr?Wr.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],Kr()),xt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Kr())}}}else if(n.nodeType===8)if(n.data===xo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(ot,d+1))!==-1;)l.push({type:7,index:o}),d+=ot.length-1}o++}}static createElement(e,r){let i=St.createElement("template");return i.innerHTML=e,i}};function Vt(t,e,r=t,i){if(e===gr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=mr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Vt(t,n._$AS(t,e.values),n,i)),e}var Gi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??St).importNode(r,!0);xt.currentNode=n;let o=xt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Gr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Zi(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=xt.nextNode(),s++)}return xt.currentNode=St,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Gr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Vt(this,e,r),mr(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):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!==Z&&mr(this._$AH)?this._$AA.nextSibling.data=e:this.T(St.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=vr.createElement(wo(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Gi(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=yo.get(e.strings);return r===void 0&&yo.set(e.strings,r=new vr(e)),r}k(e){Qi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Kr()),this.O(Kr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=po(e).nextSibling;po(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ft=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Vt(this,e,r,0),s=!mr(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[i+l],r,l),c===gr&&(c=this._$AH[l]),s||=!mr(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qi=class extends Ft{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Yi=class extends Ft{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Xi=class extends Ft{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Vt(this,e,r,0)??Z)===gr)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zi=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Vt(this,e)}};var Hc=Ji.litHtmlPolyfillSupport;Hc?.(vr,Gr),(Ji.litHtmlVersions??=[]).push("3.3.3");var ue=t=>t??Z;function yr(t,e,r){return t?e(t):r?.(t)}var _e=f(E());var Cs=f(F()),de=f(E());var Mo=f(F()),j=f(E());var Pe=f(F()),y=f(E()),Oo=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),Ze=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:Ze,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Oo),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Oo),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Xe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},Le={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Ae={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},ze={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ze),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},To=Pe.css`
1
+ "use strict";(()=>{var jc=Object.create;var po=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Kc=Object.getOwnPropertyNames;var Gc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Yc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Kc(e))!qc.call(t,n)&&n!==r&&po(t,n,{get:()=>e[n],enumerable:!(i=Wc(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?jc(Gc(t)):{},Yc(e||!t||!t.__esModule?po(r,"default",{value:t,enumerable:!0}):r,t));var S=It((Pd,fo)=>{fo.exports=ftGlobals.wcUtils});var z=It((Nd,ho)=>{ho.exports=ftGlobals.lit});var re=It((Dd,mo)=>{mo.exports=ftGlobals.litDecorators});var tn=It((kd,go)=>{go.exports=ftGlobals.litRepeat});var it=It((Id,yo)=>{yo.exports=ftGlobals.litClassMap});var ys=It((Wp,gs)=>{gs.exports=ftGlobals.litUnsafeHTML});var Bc=f(S());var ye=f(z()),B=f(re()),uo=f(tn()),en=f(it());var cn=globalThis,bo=t=>t,Br=cn.trustedTypes,xo=Br?Br.createPolicy("lit-html",{createHTML:t=>t}):void 0,Co="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,wo="?"+nt,Xc=`<${wo}>`,yt=document,Fr=()=>yt.createComment(""),lr=t=>t===null||typeof t!="object"&&typeof t!="function",un=Array.isArray,Zc=t=>un(t)||typeof t?.[Symbol.iterator]=="function",rn=`[
2
+ \f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vo=/-->/g,So=/>/g,mt=RegExp(`>|${rn}(?:([^\\s"'>=/]+)(${rn}*=${rn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Eo=/'/g,Ao=/"/g,To=/^(?:script|style|textarea|title)$/i,dn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Oo=dn(1),Ro=dn(2),Lo=dn(3),cr=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),_o=new WeakMap,gt=yt.createTreeWalker(yt,129);function Po(t,e){if(!un(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return xo!==void 0?xo.createHTML(e):e}var Jc=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=ar;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===ar?u[1]==="!--"?s=vo:u[1]!==void 0?s=So:u[2]!==void 0?(To.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=mt):u[3]!==void 0&&(s=mt):s===mt?u[0]===">"?(s=n??ar,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?mt:u[3]==='"'?Ao:Eo):s===Ao||s===Eo?s=mt:s===vo||s===So?s=ar:(s=mt,n=void 0);let g=s===mt&&t[a+1].startsWith("/>")?" ":"";o+=s===ar?l+Xc:d>=0?(i.push(c),l.slice(0,d)+Co+l.slice(d)+nt+g):l+nt+(d===-2?a:g)}return[Po(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ur=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Jc(e,r);if(this.el=t.createElement(c,i),gt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=gt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Co)){let p=u[s++],g=n.getAttribute(d).split(nt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:b[2],strings:g,ctor:b[1]==="."?on:b[1]==="?"?sn:b[1]==="@"?an:$t}),n.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(To.test(n.tagName)){let d=n.textContent.split(nt),p=d.length-1;if(p>0){n.textContent=Br?Br.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Fr()),gt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Fr())}}}else if(n.nodeType===8)if(n.data===wo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:o}),d+=nt.length-1}o++}}static createElement(e,r){let i=yt.createElement("template");return i.innerHTML=e,i}};function Mt(t,e,r=t,i){if(e===cr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=lr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Mt(t,n._$AS(t,e.values),n,i)),e}var nn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??yt).importNode(r,!0);gt.currentNode=n;let o=gt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new zr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new ln(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=gt.nextNode(),s++)}return gt.currentNode=yt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},zr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Mt(this,e,r),lr(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==cr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Zc(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!==Q&&lr(this._$AH)?this._$AA.nextSibling.data=e:this.T(yt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ur.createElement(Po(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new nn(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=_o.get(e.strings);return r===void 0&&_o.set(e.strings,r=new ur(e)),r}k(e){un(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Fr()),this.O(Fr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=bo(e).nextSibling;bo(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},$t=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Mt(this,e,r,0),s=!lr(e)||e!==this._$AH&&e!==cr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Mt(this,a[i+l],r,l),c===cr&&(c=this._$AH[l]),s||=!lr(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},on=class extends $t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},sn=class extends $t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},an=class extends $t{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Mt(this,e,r,0)??Q)===cr)return;let i=this._$AH,n=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Q&&(i===Q||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ln=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mt(this,e)}};var Qc=cn.litHtmlPolyfillSupport;Qc?.(ur,zr),(cn.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??Q;function dr(t,e,r){return t?e(t):r?.(t)}var Re=f(S());var Ls=f(z()),fe=f(S());var Fo=f(z()),W=f(S());var Ne=f(z()),m=f(S()),No=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Ze=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),v={fontFamily:Ze,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")},Ut={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",No),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},Vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",No),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Bt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},Xe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},Pe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},Ee={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},Ft={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},je={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ze),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},Do=Ne.css`
4
4
  .ft-typography--title {
5
- font-family: ${jt.fontFamily};
6
- font-size: ${jt.fontSize};
7
- font-weight: ${jt.fontWeight};
8
- letter-spacing: ${jt.letterSpacing};
9
- line-height: ${jt.lineHeight};
10
- text-transform: ${jt.textTransform};
11
- }
12
- `,_o=Pe.css`
5
+ font-family: ${Ut.fontFamily};
6
+ font-size: ${Ut.fontSize};
7
+ font-weight: ${Ut.fontWeight};
8
+ letter-spacing: ${Ut.letterSpacing};
9
+ line-height: ${Ut.lineHeight};
10
+ text-transform: ${Ut.textTransform};
11
+ }
12
+ `,ko=Ne.css`
13
13
  .ft-typography--title-dense {
14
- font-family: ${zt.fontFamily};
15
- font-size: ${zt.fontSize};
16
- font-weight: ${zt.fontWeight};
17
- letter-spacing: ${zt.letterSpacing};
18
- line-height: ${zt.lineHeight};
19
- text-transform: ${zt.textTransform};
20
- }
21
- `,Ro=Pe.css`
14
+ font-family: ${Vt.fontFamily};
15
+ font-size: ${Vt.fontSize};
16
+ font-weight: ${Vt.fontWeight};
17
+ letter-spacing: ${Vt.letterSpacing};
18
+ line-height: ${Vt.lineHeight};
19
+ text-transform: ${Vt.textTransform};
20
+ }
21
+ `,Io=Ne.css`
22
22
  .ft-typography--subtitle1 {
23
- font-family: ${Wt.fontFamily};
24
- font-size: ${Wt.fontSize};
25
- font-weight: ${Wt.fontWeight};
26
- letter-spacing: ${Wt.letterSpacing};
27
- line-height: ${Wt.lineHeight};
28
- text-transform: ${Wt.textTransform};
29
- }
30
- `,Lo=Pe.css`
23
+ font-family: ${Ht.fontFamily};
24
+ font-size: ${Ht.fontSize};
25
+ font-weight: ${Ht.fontWeight};
26
+ letter-spacing: ${Ht.letterSpacing};
27
+ line-height: ${Ht.lineHeight};
28
+ text-transform: ${Ht.textTransform};
29
+ }
30
+ `,Mo=Ne.css`
31
31
  .ft-typography--subtitle2 {
32
- font-family: ${Kt.fontFamily};
33
- font-size: ${Kt.fontSize};
34
- font-weight: ${Kt.fontWeight};
35
- letter-spacing: ${Kt.letterSpacing};
36
- line-height: ${Kt.lineHeight};
37
- text-transform: ${Kt.textTransform};
32
+ font-family: ${Bt.fontFamily};
33
+ font-size: ${Bt.fontSize};
34
+ font-weight: ${Bt.fontWeight};
35
+ letter-spacing: ${Bt.letterSpacing};
36
+ line-height: ${Bt.lineHeight};
37
+ text-transform: ${Bt.textTransform};
38
38
  }
39
39
 
40
- `,Yt=Pe.css`
40
+ `,jt=Ne.css`
41
41
  .ft-typography--body1 {
42
42
  font-family: ${Xe.fontFamily};
43
43
  font-size: ${Xe.fontSize};
@@ -46,74 +46,74 @@
46
46
  line-height: ${Xe.lineHeight};
47
47
  text-transform: ${Xe.textTransform};
48
48
  }
49
- `,Po=Pe.css`
49
+ `,$o=Ne.css`
50
50
  .ft-typography--body2 {
51
- font-family: ${Le.fontFamily};
52
- font-size: ${Le.fontSize};
53
- font-weight: ${Le.fontWeight};
54
- letter-spacing: ${Le.letterSpacing};
55
- line-height: ${Le.lineHeight};
56
- text-transform: ${Le.textTransform};
57
- }
58
- `,qr=Pe.css`
51
+ font-family: ${Pe.fontFamily};
52
+ font-size: ${Pe.fontSize};
53
+ font-weight: ${Pe.fontWeight};
54
+ letter-spacing: ${Pe.letterSpacing};
55
+ line-height: ${Pe.lineHeight};
56
+ text-transform: ${Pe.textTransform};
57
+ }
58
+ `,jr=Ne.css`
59
59
  .ft-typography--caption {
60
- font-family: ${Ae.fontFamily};
61
- font-size: ${Ae.fontSize};
62
- font-weight: ${Ae.fontWeight};
63
- letter-spacing: ${Ae.letterSpacing};
64
- line-height: ${Ae.lineHeight};
65
- text-transform: ${Ae.textTransform};
66
- }
67
- `,No=Pe.css`
60
+ font-family: ${Ee.fontFamily};
61
+ font-size: ${Ee.fontSize};
62
+ font-weight: ${Ee.fontWeight};
63
+ letter-spacing: ${Ee.letterSpacing};
64
+ line-height: ${Ee.lineHeight};
65
+ text-transform: ${Ee.textTransform};
66
+ }
67
+ `,Uo=Ne.css`
68
68
  .ft-typography--breadcrumb {
69
- font-family: ${Gt.fontFamily};
70
- font-size: ${Gt.fontSize};
71
- font-weight: ${Gt.fontWeight};
72
- letter-spacing: ${Gt.letterSpacing};
73
- line-height: ${Gt.lineHeight};
74
- text-transform: ${Gt.textTransform};
75
- }
76
- `,Do=Pe.css`
69
+ font-family: ${Ft.fontFamily};
70
+ font-size: ${Ft.fontSize};
71
+ font-weight: ${Ft.fontWeight};
72
+ letter-spacing: ${Ft.letterSpacing};
73
+ line-height: ${Ft.lineHeight};
74
+ text-transform: ${Ft.textTransform};
75
+ }
76
+ `,Vo=Ne.css`
77
77
  .ft-typography--overline {
78
- font-family: ${qt.fontFamily};
79
- font-size: ${qt.fontSize};
80
- font-weight: ${qt.fontWeight};
81
- letter-spacing: ${qt.letterSpacing};
82
- line-height: ${qt.lineHeight};
83
- text-transform: ${qt.textTransform};
84
- }
85
- `,Io=Pe.css`
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
+ `,Ho=Ne.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=Pe.css`
87
+ font-family: ${je.fontFamily};
88
+ font-size: ${je.fontSize};
89
+ font-weight: ${je.fontWeight};
90
+ letter-spacing: ${je.letterSpacing};
91
+ line-height: ${je.lineHeight};
92
+ text-transform: ${je.textTransform};
93
+ }
94
+ `,Bo=Ne.css`
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
98
- `;var C={fontSize:j.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:j.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:j.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:j.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:j.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:j.FtCssVariableFactory.extend("--ft-input-label-border-color","",j.designSystemVariables.colorOutline),textColor:j.FtCssVariableFactory.extend("--ft-input-label-text-color","",j.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:j.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",j.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:j.FtCssVariableFactory.extend("--ft-input-label-background-color","",j.designSystemVariables.colorSurface),borderRadius:j.FtCssVariableFactory.extend("--ft-input-label-border-radius","",j.designSystemVariables.borderRadiusS),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},$o=Mo.css`
98
+ `;var E={fontSize:W.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:W.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:W.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:W.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:W.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:W.FtCssVariableFactory.extend("--ft-input-label-border-color","",W.designSystemVariables.colorOutline),textColor:W.FtCssVariableFactory.extend("--ft-input-label-text-color","",W.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:W.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",W.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:W.FtCssVariableFactory.extend("--ft-input-label-background-color","",W.designSystemVariables.colorSurface),borderRadius:W.FtCssVariableFactory.extend("--ft-input-label-border-radius","",W.designSystemVariables.borderRadiusS),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},zo=Fo.css`
99
99
  .ft-input-label {
100
100
  position: absolute;
101
101
  inset: 0;
102
102
  display: flex;
103
- background-color: ${C.backgroundColor};
104
- border-radius: ${C.borderRadius} ${C.borderRadius} 0 0;
103
+ background-color: ${E.backgroundColor};
104
+ border-radius: ${E.borderRadius} ${E.borderRadius} 0 0;
105
105
  }
106
106
 
107
107
  .ft-input-label--outlined {
108
- border-radius: ${C.borderRadius};
108
+ border-radius: ${E.borderRadius};
109
109
  }
110
110
 
111
111
  .ft-input-label {
112
- border-color: ${C.borderColor};
112
+ border-color: ${E.borderColor};
113
113
  }
114
114
 
115
115
  .ft-input-label.ft-input-label--in-error {
116
- border-color: ${C.colorError}
116
+ border-color: ${E.colorError}
117
117
  }
118
118
 
119
119
  .ft-input-label:before,
@@ -126,7 +126,7 @@
126
126
  }
127
127
 
128
128
  .ft-input-label:before {
129
- width: calc(${C.horizontalSpacing} - 4px);
129
+ width: calc(${E.horizontalSpacing} - 4px);
130
130
  flex-shrink: 0;
131
131
  }
132
132
 
@@ -142,20 +142,20 @@
142
142
  border-bottom-width: 1px;
143
143
  border-bottom-style: solid;
144
144
  border-color: inherit;
145
- color: ${C.textColor};
145
+ color: ${E.textColor};
146
146
  transition: font-size 250ms, line-height 250ms, color 250ms;
147
- max-width: calc(${C.labelMaxWidth} - 2 * (${C.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
147
+ max-width: calc(${E.labelMaxWidth} - 2 * (${E.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
148
148
  text-overflow: ellipsis;
149
- ${(0,j.setVariable)(Ae.fontSize,C.fontSize)};
150
- ${(0,j.setVariable)(Ae.lineHeight,C.fontSize)};
149
+ ${(0,W.setVariable)(Ee.fontSize,E.fontSize)};
150
+ ${(0,W.setVariable)(Ee.lineHeight,E.fontSize)};
151
151
  }
152
152
 
153
153
  .ft-input-label--in-error .ft-input-label--text {
154
- color: ${C.colorError}
154
+ color: ${E.colorError}
155
155
  }
156
156
 
157
157
  .ft-input-label--disabled .ft-input-label--text {
158
- color: ${C.disabledTextColor};
158
+ color: ${E.disabledTextColor};
159
159
  }
160
160
 
161
161
  .ft-input-label--hidden-text {
@@ -167,24 +167,24 @@
167
167
 
168
168
  .ft-input-label--floating-text {
169
169
  position: absolute;
170
- top: calc(50% - ${Ae.lineHeight} / 2);
170
+ top: calc(50% - ${Ee.lineHeight} / 2);
171
171
  transition: top 250ms;
172
172
  overflow: hidden;
173
173
  white-space: nowrap;
174
174
  text-overflow: ellipsis;
175
- padding: ${C.verticalSpacing} 4px;
176
- margin: calc(${C.verticalSpacing} * -1) 0;
175
+ padding: ${E.verticalSpacing} 4px;
176
+ margin: calc(${E.verticalSpacing} * -1) 0;
177
177
  max-width: 100%;
178
178
  box-sizing: border-box;
179
179
  }
180
180
 
181
181
  .ft-input-label--raised .ft-input-label--text {
182
- ${(0,j.setVariable)(Ae.fontSize,C.raisedFontSize)};
183
- ${(0,j.setVariable)(Ae.lineHeight,C.raisedFontSize)};
182
+ ${(0,W.setVariable)(Ee.fontSize,E.raisedFontSize)};
183
+ ${(0,W.setVariable)(Ee.lineHeight,E.raisedFontSize)};
184
184
  }
185
185
 
186
186
  .ft-input-label--raised .ft-input-label--floating-text {
187
- top: ${C.verticalSpacing};
187
+ top: ${E.verticalSpacing};
188
188
  }
189
189
 
190
190
  .ft-input-label--outlined .ft-input-label--text,
@@ -197,27 +197,27 @@
197
197
  .ft-input-label--outlined:before {
198
198
  border-left-width: 1px;
199
199
  border-left-style: solid;
200
- border-radius: ${C.borderRadius} 0 0 ${C.borderRadius};
200
+ border-radius: ${E.borderRadius} 0 0 ${E.borderRadius};
201
201
  }
202
202
 
203
203
  .ft-input-label--outlined:after {
204
204
  border-right-width: 1px;
205
205
  border-right-style: solid;
206
- border-radius: 0 ${C.borderRadius} ${C.borderRadius} 0;
206
+ border-radius: 0 ${E.borderRadius} ${E.borderRadius} 0;
207
207
  }
208
208
 
209
209
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
210
210
  padding: 2px 4px;
211
- z-index: ${C.raisedZIndex};
212
- background-color: ${C.backgroundColor};
213
- border-radius: ${C.borderRadius};
214
- top: calc((${Ae.lineHeight} / -2) + 2px);
211
+ z-index: ${E.raisedZIndex};
212
+ background-color: ${E.backgroundColor};
213
+ border-radius: ${E.borderRadius};
214
+ top: calc((${Ee.lineHeight} / -2) + 2px);
215
215
  }
216
216
 
217
217
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
218
218
  border-top: none;
219
219
  }
220
- `;var Yr=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Xr=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Zr=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var Go=f(F()),w=f(E());var jo=f(F()),J=f(E()),Uo=J.FtCssVariableFactory.extend("--ft-ripple-color","",J.designSystemVariables.colorContent),oe={color:Uo,backgroundColor:J.FtCssVariableFactory.extend("--ft-ripple-background-color","",Uo),opacityContentOnSurfacePressed:J.FtCssVariableFactory.external(J.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:J.FtCssVariableFactory.external(J.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:J.FtCssVariableFactory.external(J.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:J.FtCssVariableFactory.external(J.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:J.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ho=J.FtCssVariableFactory.extend("--ft-ripple-color","",J.designSystemVariables.colorPrimary),Bo={color:Ho,backgroundColor:J.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ho)},Vo=J.FtCssVariableFactory.extend("--ft-ripple-color","",J.designSystemVariables.colorSecondary),Fo={color:Vo,backgroundColor:J.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vo)},zo=jo.css`
220
+ `;var Wr=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Kr=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Gr=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var Qo=f(z()),A=f(S());var Yo=f(z()),ee=f(S()),jo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorContent),se={color:jo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",jo),opacityContentOnSurfacePressed:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Wo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorPrimary),Ko={color:Wo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wo)},Go=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorSecondary),qo={color:Go,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Go)},Xo=Yo.css`
221
221
  :host {
222
222
  display: contents;
223
223
  }
@@ -230,7 +230,7 @@
230
230
 
231
231
  .ft-ripple:not(.ft-ripple--unbounded) {
232
232
  overflow: hidden;
233
- border-radius: ${oe.borderRadius};
233
+ border-radius: ${se.borderRadius};
234
234
  }
235
235
 
236
236
  .ft-ripple .ft-ripple--background,
@@ -264,27 +264,27 @@
264
264
  }
265
265
 
266
266
  .ft-ripple .ft-ripple--background {
267
- background-color: ${oe.backgroundColor};
267
+ background-color: ${se.backgroundColor};
268
268
  }
269
269
 
270
270
  .ft-ripple .ft-ripple--effect {
271
- background-color: ${oe.color};
271
+ background-color: ${se.color};
272
272
  }
273
273
 
274
274
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
275
- background-color: ${Fo.backgroundColor};
275
+ background-color: ${qo.backgroundColor};
276
276
  }
277
277
 
278
278
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
279
- background-color: ${Fo.color};
279
+ background-color: ${qo.color};
280
280
  }
281
281
 
282
282
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
283
- background-color: ${Bo.backgroundColor};
283
+ background-color: ${Ko.backgroundColor};
284
284
  }
285
285
 
286
286
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
287
- background-color: ${Bo.color};
287
+ background-color: ${Ko.color};
288
288
  }
289
289
 
290
290
  .ft-ripple .ft-ripple--background {
@@ -314,22 +314,22 @@
314
314
  }
315
315
 
316
316
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
317
- opacity: ${oe.opacityContentOnSurfaceHover};
317
+ opacity: ${se.opacityContentOnSurfaceHover};
318
318
  }
319
319
 
320
320
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
321
- opacity: ${oe.opacityContentOnSurfaceSelected};
321
+ opacity: ${se.opacityContentOnSurfaceSelected};
322
322
  }
323
323
 
324
324
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
325
- opacity: ${oe.opacityContentOnSurfaceFocused};
325
+ opacity: ${se.opacityContentOnSurfaceFocused};
326
326
  }
327
327
 
328
328
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
329
- opacity: ${oe.opacityContentOnSurfacePressed};
329
+ opacity: ${se.opacityContentOnSurfacePressed};
330
330
  transform: translate(-50%, -50%) scale(1);
331
331
  }
332
- `;var Wo=f(F()),Ue=f(E()),se={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")},Ko=[Wo.css`
332
+ `;var Zo=f(z()),Ue=f(S()),ae={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")},Jo=[Zo.css`
333
333
  :host, i.ft-icon {
334
334
  display: inline-flex;
335
335
  align-items: center;
@@ -338,14 +338,14 @@
338
338
  }
339
339
 
340
340
  :host {
341
- width: ${se.size};
342
- height: ${se.size};
341
+ width: ${ae.size};
342
+ height: ${ae.size};
343
343
  }
344
344
 
345
345
  i.ft-icon {
346
346
  width: 100%;
347
347
  height: 100%;
348
- font-size: ${se.size};
348
+ font-size: ${ae.size};
349
349
  line-height: 1;
350
350
  font-weight: normal;
351
351
  text-transform: none;
@@ -356,28 +356,28 @@
356
356
  text-rendering: auto;
357
357
  -webkit-font-smoothing: antialiased;
358
358
  -moz-osx-font-smoothing: grayscale;
359
- vertical-align: ${se.verticalAlign};
359
+ vertical-align: ${ae.verticalAlign};
360
360
  }
361
361
 
362
362
  i.ft-icon.ft-icon--fluid-topics {
363
- font-family: ${se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
363
+ font-family: ${ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
364
364
 
365
365
  /* Ugly fix because font is broken */
366
- font-size: calc(0.75 * ${se.size});
367
- line-height: ${se.size};
366
+ font-size: calc(0.75 * ${ae.size});
367
+ line-height: ${ae.size};
368
368
  position: relative;
369
369
  top: -4%;
370
370
  justify-content: center;
371
371
  }
372
372
 
373
373
  .ft-icon--file-format {
374
- font-family: ${se.fileFormatFontFamily}, ft-mime, sans-serif;
374
+ font-family: ${ae.fileFormatFontFamily}, ft-mime, sans-serif;
375
375
  }
376
376
 
377
377
  .ft-icon--material {
378
- font-family: ${se.materialFontFamily}, "Material Icons", sans-serif;
378
+ font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
379
379
  }
380
- `,Ue.noTextSelect];var O={fontSize:w.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:w.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:w.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:w.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:w.FtCssVariableFactory.extend("--ft-text-field-helper-color","",w.designSystemVariables.colorOnSurfaceMedium),colorPrimary:w.FtCssVariableFactory.external(w.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:w.FtCssVariableFactory.external(w.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:w.FtCssVariableFactory.external(w.designSystemVariables.borderRadiusS,"Design system"),colorError:w.FtCssVariableFactory.external(w.designSystemVariables.colorError,"Design system"),prefixColor:w.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",w.designSystemVariables.colorOnSurfaceMedium),iconColor:w.FtCssVariableFactory.extend("--ft-text-field-icon-color","",w.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:w.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:w.FtCssVariableFactory.extend("--ft-text-field-background-color","",w.designSystemVariables.colorSurface),colorOutline:w.FtCssVariableFactory.external(w.designSystemVariables.colorOutline,"Design system"),elevation02:w.FtCssVariableFactory.external(w.designSystemVariables.elevation02,"Design system"),suggestSize:w.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},qo=Go.css`
380
+ `,Ue.noTextSelect];var C={fontSize:A.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:A.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:A.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:A.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:A.FtCssVariableFactory.extend("--ft-text-field-helper-color","",A.designSystemVariables.colorOnSurfaceMedium),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:A.FtCssVariableFactory.external(A.designSystemVariables.borderRadiusS,"Design system"),colorError:A.FtCssVariableFactory.external(A.designSystemVariables.colorError,"Design system"),prefixColor:A.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",A.designSystemVariables.colorOnSurfaceMedium),iconColor:A.FtCssVariableFactory.extend("--ft-text-field-icon-color","",A.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:A.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:A.FtCssVariableFactory.extend("--ft-text-field-background-color","",A.designSystemVariables.colorSurface),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),suggestSize:A.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},es=Qo.css`
381
381
  *:focus {
382
382
  outline: none;
383
383
  }
@@ -387,21 +387,21 @@
387
387
  flex-direction: column;
388
388
  align-items: stretch;
389
389
  position: relative;
390
- --text-field-internal-suggest-size: ${O.suggestSize};
390
+ --text-field-internal-suggest-size: ${C.suggestSize};
391
391
  }
392
392
 
393
393
  ft-input-label {
394
- ${(0,w.setVariable)(C.fontSize,O.fontSize)};
395
- ${(0,w.setVariable)(C.raisedFontSize,O.labelSize)};
396
- ${(0,w.setVariable)(C.verticalSpacing,O.verticalSpacing)};
397
- ${(0,w.setVariable)(C.horizontalSpacing,O.horizontalSpacing)};
398
- ${(0,w.setVariable)(C.backgroundColor,O.backgroundColor)};
394
+ ${(0,A.setVariable)(E.fontSize,C.fontSize)};
395
+ ${(0,A.setVariable)(E.raisedFontSize,C.labelSize)};
396
+ ${(0,A.setVariable)(E.verticalSpacing,C.verticalSpacing)};
397
+ ${(0,A.setVariable)(E.horizontalSpacing,C.horizontalSpacing)};
398
+ ${(0,A.setVariable)(E.backgroundColor,C.backgroundColor)};
399
399
  }
400
400
 
401
401
  .ft-text-field--main-panel {
402
402
  position: relative;
403
403
  display: flex;
404
- height: calc(4 * ${O.verticalSpacing} + ${O.labelSize} + ${O.fontSize});
404
+ height: calc(4 * ${C.verticalSpacing} + ${C.labelSize} + ${C.fontSize});
405
405
  }
406
406
 
407
407
  .ft-text-field--input-panel {
@@ -410,24 +410,24 @@
410
410
  display: flex;
411
411
  align-items: center;
412
412
  overflow: hidden;
413
- padding: 0 ${O.horizontalSpacing};
413
+ padding: 0 ${C.horizontalSpacing};
414
414
 
415
- ${(0,w.setVariable)(Xe.fontSize,O.fontSize)};
416
- ${(0,w.setVariable)(Xe.lineHeight,O.fontSize)};
415
+ ${(0,A.setVariable)(Xe.fontSize,C.fontSize)};
416
+ ${(0,A.setVariable)(Xe.lineHeight,C.fontSize)};
417
417
  }
418
418
 
419
419
  .ft-text-field--input-panel ft-ripple {
420
- ${(0,w.setVariable)(oe.opacityContentOnSurfaceHover,"0.08")};
421
- ${(0,w.setVariable)(oe.opacityContentOnSurfacePressed,"0.04")};
420
+ ${(0,A.setVariable)(se.opacityContentOnSurfaceHover,"0.08")};
421
+ ${(0,A.setVariable)(se.opacityContentOnSurfacePressed,"0.04")};
422
422
  }
423
423
 
424
424
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
425
425
  align-items: flex-end;
426
- padding: 0 ${O.horizontalSpacing} ${O.verticalSpacing} ${O.horizontalSpacing};
426
+ padding: 0 ${C.horizontalSpacing} ${C.verticalSpacing} ${C.horizontalSpacing};
427
427
  }
428
428
 
429
429
  .ft-text-field--prefix {
430
- color: ${O.prefixColor};
430
+ color: ${C.prefixColor};
431
431
  margin-right: 2px;
432
432
  flex-shrink: 1;
433
433
  overflow: hidden;
@@ -446,22 +446,22 @@
446
446
  flex-shrink: 1;
447
447
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
448
448
 
449
- color: ${O.colorOnSurface};
450
- padding: calc(2 * ${O.verticalSpacing}) 0;
449
+ color: ${C.colorOnSurface};
450
+ padding: calc(2 * ${C.verticalSpacing}) 0;
451
451
  border: none;
452
452
  background: none;
453
453
 
454
454
  &:-webkit-autofill,
455
455
  &:-webkit-autofill:hover,
456
456
  &:-webkit-autofill:focus {
457
- -webkit-text-fill-color: ${O.colorOnSurface};
457
+ -webkit-text-fill-color: ${C.colorOnSurface};
458
458
  transition: background-color 50000000s ease-in-out 100000s;
459
459
  }
460
460
  }
461
461
 
462
462
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
463
463
  padding-bottom: 0;
464
- padding-top: calc(${O.labelSize} + 2 * ${O.verticalSpacing});
464
+ padding-top: calc(${C.labelSize} + 2 * ${C.verticalSpacing});
465
465
  }
466
466
 
467
467
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -470,37 +470,37 @@
470
470
  }
471
471
 
472
472
  .ft-text-field--disabled .ft-text-field--input {
473
- color: ${O.colorOnSurfaceDisabled};
473
+ color: ${C.colorOnSurfaceDisabled};
474
474
  }
475
475
 
476
476
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
477
- ${(0,w.setVariable)(C.borderColor,O.colorPrimary)};
478
- ${(0,w.setVariable)(C.textColor,O.colorPrimary)};
477
+ ${(0,A.setVariable)(E.borderColor,C.colorPrimary)};
478
+ ${(0,A.setVariable)(E.textColor,C.colorPrimary)};
479
479
  }
480
480
 
481
481
  .ft-text-field--filled .ft-text-field--input-panel {
482
- border-radius: ${O.borderRadiusS} ${O.borderRadiusS} 0 0;
482
+ border-radius: ${C.borderRadiusS} ${C.borderRadiusS} 0 0;
483
483
  }
484
484
 
485
485
  .ft-text-field--outlined .ft-text-field--input-panel {
486
- border-radius: ${O.borderRadiusS};
486
+ border-radius: ${C.borderRadiusS};
487
487
  }
488
488
 
489
489
  .ft-text-field--helper-text {
490
- padding: 0 12px 0 ${O.horizontalSpacing};
491
- color: ${O.helperColor};
490
+ padding: 0 12px 0 ${C.horizontalSpacing};
491
+ color: ${C.helperColor};
492
492
  }
493
493
 
494
494
  .ft-text-field--in-error .ft-text-field--input,
495
495
  .ft-text-field--in-error .ft-text-field--helper-text,
496
496
  .ft-text-field--in-error .ft-text-field--prefix {
497
- color: ${O.colorError};
497
+ color: ${C.colorError};
498
498
  }
499
499
 
500
500
  .ft-text-field--icon {
501
501
  align-self: center;
502
502
  margin-left: 8px;
503
- color: ${O.iconColor};
503
+ color: ${C.iconColor};
504
504
  }
505
505
 
506
506
  .ft-text-field--container {
@@ -511,11 +511,11 @@
511
511
  display: none;
512
512
  flex-direction: column;
513
513
  position: absolute;
514
- z-index: ${O.floatingZIndex};
515
- background: ${O.backgroundColor};
516
- border: 1px solid ${O.colorOutline};
517
- border-radius: 0 0 ${O.borderRadiusS} ${O.borderRadiusS};
518
- box-shadow: ${O.elevation02};
514
+ z-index: ${C.floatingZIndex};
515
+ background: ${C.backgroundColor};
516
+ border: 1px solid ${C.colorOutline};
517
+ border-radius: 0 0 ${C.borderRadiusS} ${C.borderRadiusS};
518
+ box-shadow: ${C.elevation02};
519
519
  outline: none;
520
520
  max-height: var(--text-field-internal-suggest-size);
521
521
  overflow-y: auto;
@@ -530,46 +530,46 @@
530
530
  }
531
531
 
532
532
  .ft-text-field--with-icon {
533
- ${(0,w.setVariable)(C.labelMaxWidth,`calc(100% - ${se.size} - ${C.horizontalSpacing})`)};
533
+ ${(0,A.setVariable)(E.labelMaxWidth,`calc(100% - ${ae.size} - ${E.horizontalSpacing})`)};
534
534
  }
535
535
 
536
536
  .ft-text-field--with-password ft-icon:hover {
537
537
  cursor: pointer;
538
538
  }
539
- `;var ie=f(F()),k=f(te()),xs=f(Wi()),Ss=f(nt());var we=f(E());var Xo=Symbol.for(""),Bc=t=>{if(t?.r===Xo)return t?._$litStatic$},tn=t=>({_$litStatic$:t,r:Xo});var Yo=new Map,rn=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=Bc(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let d=s.join("$$lit$$");(e=Yo.get(d))===void 0&&(s.raw=s,Yo.set(d,e=s)),r=a}return t(e,...r)},nn=rn(Ao),Pd=rn(Eo),Nd=rn(Co);var on=f(te()),Jo=f(E());var Ee;(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"})(Ee||(Ee={}));var Zo=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},re=class extends Jo.FtLitElement{constructor(){super(...arguments),this.variant=Ee.body1}render(){return this.element?nn`
540
- <${tn(this.element)}
539
+ `;var ne=f(z()),k=f(re()),ws=f(tn()),Ts=f(it());var Ce=f(S());var rs=Symbol.for(""),eu=t=>{if(t?.r===rs)return t?._$litStatic$},pn=t=>({_$litStatic$:t,r:rs});var ts=new Map,fn=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=eu(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let d=s.join("$$lit$$");(e=ts.get(d))===void 0&&(s.raw=s,ts.set(d,e=s)),r=a}return t(e,...r)},hn=fn(Oo),rp=fn(Ro),ip=fn(Lo);var mn=f(re()),ns=f(S());var Ae;(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"})(Ae||(Ae={}));var is=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends ns.FtLitElement{constructor(){super(...arguments),this.variant=Ae.body1}render(){return this.element?hn`
540
+ <${pn(this.element)}
541
541
  part="text"
542
542
  class="ft-typography ft-typography--${this.variant}">
543
543
  <slot></slot>
544
- </${tn(this.element)}>
545
- `:nn`
544
+ </${pn(this.element)}>
545
+ `:hn`
546
546
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
547
- `}};re.styles=[To,_o,Ro,Lo,Yt,Po,qr,No,Do,Io,ko];Zo([(0,on.property)()],re.prototype,"element",void 0);Zo([(0,on.property)()],re.prototype,"variant",void 0);var es=f(E());var Qo={"ft-typography":re};(0,es.customElements)(Qo);var Jr=f(te());var sn=f(F()),an=f(te());var rs=f(nt()),is=f(E()),ts=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},At=class extends is.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return sn.html`
548
- <div class="${(0,rs.classMap)(this.inputLabelClasses)}">
549
- ${yr(this.text,()=>sn.html`
547
+ `}};ie.styles=[Do,ko,Io,Mo,jt,$o,jr,Uo,Vo,Ho,Bo];is([(0,mn.property)()],ie.prototype,"element",void 0);is([(0,mn.property)()],ie.prototype,"variant",void 0);var ss=f(S());var os={"ft-typography":ie};(0,ss.customElements)(os);var qr=f(re());var gn=f(z()),yn=f(re());var ls=f(it()),cs=f(S()),as=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},bt=class extends cs.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return gn.html`
548
+ <div class="${(0,ls.classMap)(this.inputLabelClasses)}">
549
+ ${dr(this.text,()=>gn.html`
550
550
  <div class="ft-input-label--text ft-typography--caption">
551
551
  <label class="ft-input-label--floating-text">${this.text}</label>
552
552
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
553
553
  </div>
554
554
  `)}
555
555
  </div>
556
- `}};At.elementDefinitions={};ts([(0,an.property)({type:String})],At.prototype,"text",void 0);ts([(0,an.property)({type:Boolean})],At.prototype,"raised",void 0);var ln=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ce=class extends At{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ce.elementDefinitions={};Ce.styles=[qr,$o];ln([(0,Jr.property)({type:Boolean})],Ce.prototype,"outlined",void 0);ln([(0,Jr.property)({type:Boolean})],Ce.prototype,"error",void 0);ln([(0,Jr.property)({type:Boolean})],Ce.prototype,"disabled",void 0);var os=f(E());var ns={"ft-input-label":Ce};(0,os.customElements)(ns);var ss=f(F()),ae=f(te()),as=f(nt()),br=f(E());var ge=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},H=class extends br.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 br.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 br.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ss.html`
556
+ `}};bt.elementDefinitions={};as([(0,yn.property)({type:String})],bt.prototype,"text",void 0);as([(0,yn.property)({type:Boolean})],bt.prototype,"raised",void 0);var bn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},_e=class extends bt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};_e.elementDefinitions={};_e.styles=[jr,zo];bn([(0,qr.property)({type:Boolean})],_e.prototype,"outlined",void 0);bn([(0,qr.property)({type:Boolean})],_e.prototype,"error",void 0);bn([(0,qr.property)({type:Boolean})],_e.prototype,"disabled",void 0);var ds=f(S());var us={"ft-input-label":_e};(0,ds.customElements)(us);var ps=f(z()),le=f(re()),fs=f(it()),pr=f(S());var be=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},H=class extends pr.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 pr.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 pr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ps.html`
557
557
  <style>
558
558
  .ft-ripple .ft-ripple--effect {
559
559
  left: ${this.originX}px;
560
560
  top: ${this.originY}px;
561
561
  }
562
562
  </style>
563
- <div class="${(0,as.classMap)(e)}">
563
+ <div class="${(0,fs.classMap)(e)}">
564
564
  <div class="ft-ripple--background"></div>
565
565
  <div class="ft-ripple--effect"></div>
566
566
  </div>
567
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=zo;ge([(0,ae.property)({type:Boolean})],H.prototype,"primary",void 0);ge([(0,ae.property)({type:Boolean})],H.prototype,"secondary",void 0);ge([(0,ae.property)({type:Boolean})],H.prototype,"unbounded",void 0);ge([(0,ae.property)({type:Boolean})],H.prototype,"activated",void 0);ge([(0,ae.property)({type:Boolean})],H.prototype,"selected",void 0);ge([(0,ae.property)({type:Boolean})],H.prototype,"disabled",void 0);ge([(0,ae.state)()],H.prototype,"hovered",void 0);ge([(0,ae.state)()],H.prototype,"focused",void 0);ge([(0,ae.state)()],H.prototype,"pressed",void 0);ge([(0,ae.state)()],H.prototype,"rippling",void 0);ge([(0,ae.state)()],H.prototype,"originX",void 0);ge([(0,ae.state)()],H.prototype,"originY",void 0);ge([(0,ae.query)(".ft-ripple")],H.prototype,"ripple",void 0);ge([(0,ae.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);var cs=f(E());var ls={"ft-ripple":H};(0,cs.customElements)(ls);var st;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(st||(st={}));var xr=f(F()),at=f(te()),ps=f(E()),fs=f(ds());var Et;(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;"})(Et||(Et={}));var v;(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;"})(v||(v={}));var Sp=new Map([...["abw"].map(t=>[t,v.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,v.AUDIO]),...["avi"].map(t=>[t,v.AVI]),...["chm","xhs"].map(t=>[t,v.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,v.CODE]),...["csv"].map(t=>[t,v.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,v.DITA]),...["epub"].map(t=>[t,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,v.EXCEL]),...["flac"].map(t=>[t,v.FLAC]),...["gif"].map(t=>[t,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,v.GZIP]),...["html","htm","xhtml"].map(t=>[t,v.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,v.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,v.JPEG]),...["json"].map(t=>[t,v.JSON]),...["m4a","m4p"].map(t=>[t,v.M4A]),...["mov","qt"].map(t=>[t,v.MOV]),...["mp3"].map(t=>[t,v.MP3]),...["mp4","m4v"].map(t=>[t,v.MP4]),...["ogg","oga"].map(t=>[t,v.OGG]),...["pdf","ps"].map(t=>[t,v.PDF]),...["png"].map(t=>[t,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,v.POWERPOINT]),...["rar"].map(t=>[t,v.RAR]),...["stp"].map(t=>[t,v.STP]),...["txt","rtf","md","mdown"].map(t=>[t,v.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,v.VIDEO]),...["wav"].map(t=>[t,v.WAV]),...["wma"].map(t=>[t,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,v.WORD]),...["xml","xsl","rdf"].map(t=>[t,v.XML]),...["yaml","yml","x-yaml"].map(t=>[t,v.YAML]),...["zip"].map(t=>[t,v.ZIP])]);var Ap={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Sr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Y=class extends ps.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=xr.nothing}render(){let e=this.variant&&Object.values(st).includes(this.variant)?this.variant:st.fluid_topics,r=e!==st.material||!!this.value;return xr.html`
567
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=Xo;be([(0,le.property)({type:Boolean})],H.prototype,"primary",void 0);be([(0,le.property)({type:Boolean})],H.prototype,"secondary",void 0);be([(0,le.property)({type:Boolean})],H.prototype,"unbounded",void 0);be([(0,le.property)({type:Boolean})],H.prototype,"activated",void 0);be([(0,le.property)({type:Boolean})],H.prototype,"selected",void 0);be([(0,le.property)({type:Boolean})],H.prototype,"disabled",void 0);be([(0,le.state)()],H.prototype,"hovered",void 0);be([(0,le.state)()],H.prototype,"focused",void 0);be([(0,le.state)()],H.prototype,"pressed",void 0);be([(0,le.state)()],H.prototype,"rippling",void 0);be([(0,le.state)()],H.prototype,"originX",void 0);be([(0,le.state)()],H.prototype,"originY",void 0);be([(0,le.query)(".ft-ripple")],H.prototype,"ripple",void 0);be([(0,le.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);var ms=f(S());var hs={"ft-ripple":H};(0,ms.customElements)(hs);var ot;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ot||(ot={}));var fr=f(z()),st=f(re()),bs=f(S()),xs=f(ys());var xt;(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;"})(xt||(xt={}));var h;(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;"})(h||(h={}));var Kp=new Map([...["abw"].map(t=>[t,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(t=>[t,h.AUDIO]),...["avi"].map(t=>[t,h.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,h.CODE]),...["csv"].map(t=>[t,h.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,h.DITA]),...["epub"].map(t=>[t,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,h.EXCEL]),...["flac"].map(t=>[t,h.FLAC]),...["gif"].map(t=>[t,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,h.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,h.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,h.JPEG]),...["json"].map(t=>[t,h.JSON]),...["m4a","m4p"].map(t=>[t,h.M4A]),...["mov","qt"].map(t=>[t,h.MOV]),...["mp3"].map(t=>[t,h.MP3]),...["mp4","m4v"].map(t=>[t,h.MP4]),...["ogg","oga"].map(t=>[t,h.OGG]),...["pdf","ps"].map(t=>[t,h.PDF]),...["png"].map(t=>[t,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,h.POWERPOINT]),...["rar"].map(t=>[t,h.RAR]),...["stp"].map(t=>[t,h.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,h.VIDEO]),...["wav"].map(t=>[t,h.WAV]),...["wma"].map(t=>[t,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,h.WORD]),...["xml","xsl","rdf"].map(t=>[t,h.XML]),...["yaml","yml","x-yaml"].map(t=>[t,h.YAML]),...["zip"].map(t=>[t,h.ZIP])]);var Gp={[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(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},J=class extends bs.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=fr.nothing}render(){let e=this.variant&&Object.values(ot).includes(this.variant)?this.variant:ot.fluid_topics,r=e!==ot.material||!!this.value;return fr.html`
568
568
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
569
- ${(0,fs.unsafeHTML)(this.resolvedIcon)}
569
+ ${(0,xs.unsafeHTML)(this.resolvedIcon)}
570
570
  <slot ?hidden=${r}></slot>
571
571
  </i>
572
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case st.file_format:this.resolvedIcon=(e=v[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case st.material:this.resolvedIcon=this.value||xr.nothing;break;default:this.resolvedIcon=(r=Et[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Y.elementDefinitions={};Y.styles=Ko;Sr([(0,at.property)()],Y.prototype,"variant",void 0);Sr([(0,at.property)()],Y.prototype,"value",void 0);Sr([(0,at.property)({reflect:!0,attribute:"aria-hidden"})],Y.prototype,"ariaHidden",void 0);Sr([(0,at.state)()],Y.prototype,"resolvedIcon",void 0);Sr([(0,at.query)("slot")],Y.prototype,"slottedContent",void 0);var ms=f(E());var hs={"ft-icon":Y};(0,ms.customElements)(hs);var ys=f(E()),Ar=f(F()),Ct=f(te());var gs=f(F());var vs=gs.css`
572
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ot.file_format:this.resolvedIcon=(e=h[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ot.material:this.resolvedIcon=this.value||fr.nothing;break;default:this.resolvedIcon=(r=xt[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=Jo;hr([(0,st.property)()],J.prototype,"variant",void 0);hr([(0,st.property)()],J.prototype,"value",void 0);hr([(0,st.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);hr([(0,st.state)()],J.prototype,"resolvedIcon",void 0);hr([(0,st.query)("slot")],J.prototype,"slottedContent",void 0);var Ss=f(S());var vs={"ft-icon":J};(0,Ss.customElements)(vs);var _s=f(S()),mr=f(z()),vt=f(re());var Es=f(z());var As=Es.css`
573
573
  .ft-text-field-suggestion {
574
574
  position: relative;
575
575
  padding: 8px 16px;
@@ -599,30 +599,30 @@
599
599
  }
600
600
 
601
601
  .ft-text-field-suggestion--helper-text {
602
- color: ${O.helperColor};
602
+ color: ${C.helperColor};
603
603
  }
604
604
 
605
605
  slot {
606
606
  pointer-events: none;
607
607
  }
608
- `;var bs=f(nt()),Qr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},cn=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Ne=class extends ys.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Ar.html`
609
- <div class="${(0,bs.classMap)(e)}"
608
+ `;var Cs=f(it()),Yr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},xn=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},De=class extends _s.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return mr.html`
609
+ <div class="${(0,Cs.classMap)(e)}"
610
610
  tabindex="-1"
611
611
  @keydown=${this.onKeyDown}
612
612
  @click=${this.confirmSuggestion}>
613
613
  <ft-ripple></ft-ripple>
614
- ${this.helper?Ar.html`
614
+ ${this.helper?mr.html`
615
615
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
616
616
  ${this.helper}
617
- </ft-typography>`:Ar.nothing}
617
+ </ft-typography>`:mr.nothing}
618
618
  <ft-typography part="label"
619
619
  variant="body1"
620
620
  class="ft-text-field-suggestion--label">
621
621
  <slot></slot>
622
622
  </ft-typography>
623
623
  </div>
624
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new cn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};Ne.elementDefinitions={"ft-ripple":H,"ft-typography":re,"ft-icon":Y};Ne.styles=vs;Qr([(0,Ct.property)()],Ne.prototype,"value",void 0);Qr([(0,Ct.property)()],Ne.prototype,"helper",void 0);Qr([(0,Ct.query)(".ft-text-field-suggestion")],Ne.prototype,"container",void 0);Qr([(0,Ct.queryAssignedNodes)()],Ne.prototype,"assignedNodes",void 0);var M=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},R=class extends(0,we.toFtFormComponent)(we.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Et.EYE_SLASH,this.passwordRevealedIcon=Et.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return ie.html`
625
- <div class="${(0,Ss.classMap)(r)}">
624
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new xn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};De.elementDefinitions={"ft-ripple":H,"ft-typography":ie,"ft-icon":J};De.styles=As;Yr([(0,vt.property)()],De.prototype,"value",void 0);Yr([(0,vt.property)()],De.prototype,"helper",void 0);Yr([(0,vt.query)(".ft-text-field-suggestion")],De.prototype,"container",void 0);Yr([(0,vt.queryAssignedNodes)()],De.prototype,"assignedNodes",void 0);var M=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},O=class extends(0,Ce.toFtFormComponent)(Ce.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=xt.EYE_SLASH,this.passwordRevealedIcon=xt.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return ne.html`
625
+ <div class="${(0,Ts.classMap)(r)}">
626
626
  <div class="ft-text-field--main-panel"
627
627
  @keydown=${this.handleKeyboardNavigation}
628
628
  @focusout=${this.onMainPanelBlur}>
@@ -632,21 +632,21 @@
632
632
  ?raised=${this.focused||this.value!=""}
633
633
  ?error=${!this.inputValid||this.error}></ft-input-label>
634
634
  <div class="ft-text-field--input-panel">
635
- ${this.outlined?ie.nothing:ie.html`
635
+ ${this.outlined?ne.nothing:ne.html`
636
636
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
637
637
  `}
638
- ${this.prefix?ie.html`
638
+ ${this.prefix?ne.html`
639
639
  <ft-typography class="ft-text-field--prefix" variant="body1">
640
640
  ${this.prefix}
641
641
  </ft-typography>
642
- `:ie.nothing}
642
+ `:ne.nothing}
643
643
  <input type="${this.resolveInputType()}"
644
- name="${ue(this.name)}"
645
- maxlength="${ue(this.maxLength||void 0)}"
644
+ name="${pe(this.name)}"
645
+ maxlength="${pe(this.maxLength||void 0)}"
646
646
  aria-label="${this.label}"
647
- aria-describedby="${ue(this.helper?"helper":void 0)}"
647
+ aria-describedby="${pe(this.helper?"helper":void 0)}"
648
648
  aria-invalid="${this.error}"
649
- autocomplete="${ue(this.autocomplete)}"
649
+ autocomplete="${pe(this.autocomplete)}"
650
650
  class="ft-typography--body1 ft-text-field--input"
651
651
  part="input"
652
652
  ?disabled=${this.disabled}
@@ -661,41 +661,41 @@
661
661
  <div class="ft-text-field--suggestions"
662
662
  @suggestion-selected=${this.onSuggestionSelected}>
663
663
  ${this.renderSuggestions()}
664
- ${o?ie.html`
664
+ ${o?ne.html`
665
665
  <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
666
666
  ${this.value}
667
667
  </ft-text-field-suggestion>
668
- `:ie.nothing}
668
+ `:ne.nothing}
669
669
  </div>
670
670
  </div>
671
- ${s?ie.html`
672
- <ft-typography class="ft-text-field--helper-text" variant="${Ee.caption}" id="helper" role="alert">
671
+ ${s?ne.html`
672
+ <ft-typography class="ft-text-field--helper-text" variant="${Ae.caption}" id="helper" role="alert">
673
673
  ${s}
674
674
  </ft-typography>
675
- `:ie.nothing}
675
+ `:ne.nothing}
676
676
  </div>
677
- `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?ie.html`
678
- ${(0,xs.repeat)(this.providedSuggestions,e=>ie.html`
677
+ `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?ne.html`
678
+ ${(0,ws.repeat)(this.providedSuggestions,e=>ne.html`
679
679
  <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
680
- ${e.icon?ie.html`
680
+ ${e.icon?ne.html`
681
681
  <ft-icon .value=${e.icon}></ft-icon>
682
- `:ie.nothing}
682
+ `:ne.nothing}
683
683
  ${e.label}
684
684
  </ft-text-field-suggestion>
685
685
  `)}
686
- `:ie.html`
686
+ `:ne.html`
687
687
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
688
- `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return ie.html`
688
+ `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return ne.html`
689
689
  <ft-icon class="ft-text-field--icon"
690
690
  .variant=${this.iconVariant}
691
691
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
692
692
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
693
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ie.html`
693
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ne.html`
694
694
  <ft-icon class="ft-text-field--icon"
695
695
  .variant=${this.iconVariant}
696
696
  .value=${this.icon}
697
697
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
698
- `:ie.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Yr(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Xr(e))):this.dispatchEvent(new Zr(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,we.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};R.elementDefinitions={"ft-input-label":Ce,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-text-field-suggestion":Ne};R.styles=[Yt,we.noTextInputDefaultClearButton,qo];M([(0,k.property)()],R.prototype,"label",void 0);M([(0,k.property)({noAccessor:!0})],R.prototype,"value",null);M([(0,k.state)()],R.prototype,"dispatchedValue",void 0);M([(0,k.property)()],R.prototype,"helper",void 0);M([(0,k.property)()],R.prototype,"suggestionsHelper",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"disabled",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"error",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"fixedMenuPosition",void 0);M([(0,k.property)()],R.prototype,"prefix",void 0);M([(0,k.property)()],R.prototype,"icon",void 0);M([(0,k.property)()],R.prototype,"name",void 0);M([(0,k.property)()],R.prototype,"type",void 0);M([(0,k.property)()],R.prototype,"passwordHiddenIcon",void 0);M([(0,k.property)()],R.prototype,"passwordRevealedIcon",void 0);M([(0,k.property)()],R.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"filterSuggestions",void 0);M([(0,we.numberProperty)()],R.prototype,"maxLength",void 0);M([(0,k.property)({type:Boolean})],R.prototype,"password",void 0);M([(0,k.property)({type:String})],R.prototype,"autocomplete",void 0);M([(0,k.property)({attribute:!1})],R.prototype,"suggestionsProvider",void 0);M([(0,k.state)()],R.prototype,"focused",void 0);M([(0,k.state)()],R.prototype,"inputValid",void 0);M([(0,k.state)()],R.prototype,"hidePassword",void 0);M([(0,k.state)()],R.prototype,"hideSuggestions",void 0);M([(0,k.state)()],R.prototype,"visibleSuggestions",void 0);M([(0,k.state)()],R.prototype,"providedSuggestions",void 0);M([(0,k.query)(".ft-text-field--main-panel")],R.prototype,"mainPanel",void 0);M([(0,k.query)(".ft-text-field--input")],R.prototype,"input",void 0);M([(0,k.query)(".ft-text-field-suggestion--new-value")],R.prototype,"newValueSuggestion",void 0);M([(0,k.query)(".ft-text-field--suggestions")],R.prototype,"suggestionsContainer",void 0);M([(0,k.queryAll)("ft-text-field-suggestion")],R.prototype,"providedSuggestionsInDom",void 0);M([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],R.prototype,"slottedSuggestions",void 0);M([(0,we.ignoreComposingEvents)()],R.prototype,"handleInput",null);M([(0,we.ignoreComposingEvents)()],R.prototype,"catchComposingEvents",null);var Es=f(E());var As={"ft-text-field":R,"ft-text-field-suggestion":Ne};(0,Es.customElements)(As);var T={...O,chipGap:de.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",de.foundation.spacing1),chipsMarginTop:de.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",de.foundation.spacing2),suggestSize:de.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},ws=Cs.css`
698
+ `:ne.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Wr(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Kr(e))):this.dispatchEvent(new Gr(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,Ce.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};O.elementDefinitions={"ft-input-label":_e,"ft-ripple":H,"ft-typography":ie,"ft-icon":J,"ft-text-field-suggestion":De};O.styles=[jt,Ce.noTextInputDefaultClearButton,es];M([(0,k.property)()],O.prototype,"label",void 0);M([(0,k.property)({noAccessor:!0})],O.prototype,"value",null);M([(0,k.state)()],O.prototype,"dispatchedValue",void 0);M([(0,k.property)()],O.prototype,"helper",void 0);M([(0,k.property)()],O.prototype,"suggestionsHelper",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"disabled",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"error",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"fixedMenuPosition",void 0);M([(0,k.property)()],O.prototype,"prefix",void 0);M([(0,k.property)()],O.prototype,"icon",void 0);M([(0,k.property)()],O.prototype,"name",void 0);M([(0,k.property)()],O.prototype,"type",void 0);M([(0,k.property)()],O.prototype,"passwordHiddenIcon",void 0);M([(0,k.property)()],O.prototype,"passwordRevealedIcon",void 0);M([(0,k.property)()],O.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"filterSuggestions",void 0);M([(0,Ce.numberProperty)()],O.prototype,"maxLength",void 0);M([(0,k.property)({type:Boolean})],O.prototype,"password",void 0);M([(0,k.property)({type:String})],O.prototype,"autocomplete",void 0);M([(0,k.property)({attribute:!1})],O.prototype,"suggestionsProvider",void 0);M([(0,k.state)()],O.prototype,"focused",void 0);M([(0,k.state)()],O.prototype,"inputValid",void 0);M([(0,k.state)()],O.prototype,"hidePassword",void 0);M([(0,k.state)()],O.prototype,"hideSuggestions",void 0);M([(0,k.state)()],O.prototype,"visibleSuggestions",void 0);M([(0,k.state)()],O.prototype,"providedSuggestions",void 0);M([(0,k.query)(".ft-text-field--main-panel")],O.prototype,"mainPanel",void 0);M([(0,k.query)(".ft-text-field--input")],O.prototype,"input",void 0);M([(0,k.query)(".ft-text-field-suggestion--new-value")],O.prototype,"newValueSuggestion",void 0);M([(0,k.query)(".ft-text-field--suggestions")],O.prototype,"suggestionsContainer",void 0);M([(0,k.queryAll)("ft-text-field-suggestion")],O.prototype,"providedSuggestionsInDom",void 0);M([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],O.prototype,"slottedSuggestions",void 0);M([(0,Ce.ignoreComposingEvents)()],O.prototype,"handleInput",null);M([(0,Ce.ignoreComposingEvents)()],O.prototype,"catchComposingEvents",null);var Rs=f(S());var Os={"ft-text-field":O,"ft-text-field-suggestion":De};(0,Rs.customElements)(Os);var w={...C,chipGap:fe.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",fe.foundation.spacing1),chipsMarginTop:fe.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",fe.foundation.spacing2),suggestSize:fe.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Ps=Ls.css`
699
699
  *:focus {
700
700
  outline: none;
701
701
  }
@@ -705,15 +705,15 @@
705
705
  flex-direction: column;
706
706
  align-items: stretch;
707
707
  position: relative;
708
- --combobox-internal-suggest-size: ${T.suggestSize};
708
+ --combobox-internal-suggest-size: ${w.suggestSize};
709
709
  }
710
710
 
711
711
  ft-input-label {
712
- ${(0,de.setVariable)(C.fontSize,T.fontSize)};
713
- ${(0,de.setVariable)(C.raisedFontSize,T.labelSize)};
714
- ${(0,de.setVariable)(C.verticalSpacing,T.verticalSpacing)};
715
- ${(0,de.setVariable)(C.horizontalSpacing,T.horizontalSpacing)};
716
- ${(0,de.setVariable)(C.backgroundColor,T.backgroundColor)};
712
+ ${(0,fe.setVariable)(E.fontSize,w.fontSize)};
713
+ ${(0,fe.setVariable)(E.raisedFontSize,w.labelSize)};
714
+ ${(0,fe.setVariable)(E.verticalSpacing,w.verticalSpacing)};
715
+ ${(0,fe.setVariable)(E.horizontalSpacing,w.horizontalSpacing)};
716
+ ${(0,fe.setVariable)(E.backgroundColor,w.backgroundColor)};
717
717
  }
718
718
 
719
719
  /* Ensure the floating label renders above input content and doesn't intercept events */
@@ -725,7 +725,7 @@
725
725
  .ft-combobox--main-panel {
726
726
  position: relative;
727
727
  display: flex;
728
- height: calc(4 * ${T.verticalSpacing} + ${T.labelSize} + ${T.fontSize});
728
+ height: calc(4 * ${w.verticalSpacing} + ${w.labelSize} + ${w.fontSize});
729
729
  }
730
730
 
731
731
  .ft-combobox--input-panel {
@@ -734,32 +734,32 @@
734
734
  display: flex;
735
735
  align-items: center;
736
736
  overflow: hidden;
737
- padding: 0 ${T.horizontalSpacing};
737
+ padding: 0 ${w.horizontalSpacing};
738
738
  }
739
739
 
740
740
  .ft-combobox--outlined .ft-combobox--input-panel {
741
- border-radius: ${T.borderRadiusS};
741
+ border-radius: ${w.borderRadiusS};
742
742
  }
743
743
 
744
744
  .ft-combobox--filled .ft-combobox--input-panel {
745
- border-radius: ${T.borderRadiusS} ${T.borderRadiusS} 0 0;
745
+ border-radius: ${w.borderRadiusS} ${w.borderRadiusS} 0 0;
746
746
  }
747
747
 
748
748
  /* Match text-field filled layout when there is a label: input aligns to bottom and container has bottom padding */
749
749
  .ft-combobox--filled.ft-combobox--with-label .ft-combobox--input-panel {
750
750
  align-items: flex-end;
751
- padding: 0 ${T.horizontalSpacing} ${T.verticalSpacing} ${T.horizontalSpacing};
751
+ padding: 0 ${w.horizontalSpacing} ${w.verticalSpacing} ${w.horizontalSpacing};
752
752
  }
753
753
 
754
754
  /* Focus color on label when interacting */
755
755
  .ft-combobox:not(.ft-combobox--disabled):focus-within ft-input-label {
756
- ${(0,de.setVariable)(C.borderColor,T.colorPrimary)};
757
- ${(0,de.setVariable)(C.textColor,T.colorPrimary)};
756
+ ${(0,fe.setVariable)(E.borderColor,w.colorPrimary)};
757
+ ${(0,fe.setVariable)(E.textColor,w.colorPrimary)};
758
758
  }
759
759
 
760
760
  .ft-combobox--in-error .ft-combobox--input,
761
761
  .ft-combobox--in-error .ft-combobox--helper-text {
762
- color: ${O.colorError};
762
+ color: ${C.colorError};
763
763
  }
764
764
 
765
765
  .ft-combobox--input {
@@ -768,26 +768,26 @@
768
768
  flex-grow: 1;
769
769
  flex-shrink: 1;
770
770
  min-width: 0;
771
- font-size: ${T.fontSize};
772
- color: ${T.colorOnSurface};
773
- padding: calc(2 * ${T.verticalSpacing}) 0;
771
+ font-size: ${w.fontSize};
772
+ color: ${w.colorOnSurface};
773
+ padding: calc(2 * ${w.verticalSpacing}) 0;
774
774
  border: none;
775
775
  background: none;
776
776
  }
777
777
 
778
778
  .ft-combobox--with-label.ft-combobox--filled .ft-combobox--input {
779
779
  padding-bottom: 0;
780
- padding-top: calc(${T.labelSize} + 2 * ${T.verticalSpacing});
780
+ padding-top: calc(${w.labelSize} + 2 * ${w.verticalSpacing});
781
781
  }
782
782
 
783
783
  .ft-combobox--disabled .ft-combobox--input {
784
- color: ${T.colorOnSurfaceDisabled};
784
+ color: ${w.colorOnSurfaceDisabled};
785
785
  cursor: not-allowed;
786
786
  }
787
787
 
788
788
  .ft-combobox--helper-text {
789
- padding: 0 12px 0 ${T.horizontalSpacing};
790
- color: ${T.helperColor};
789
+ padding: 0 12px 0 ${w.horizontalSpacing};
790
+ color: ${w.helperColor};
791
791
  }
792
792
 
793
793
  .ft-combobox--listbox {
@@ -799,16 +799,16 @@
799
799
  left: -1px;
800
800
  right: -1px;
801
801
  list-style: none;
802
- z-index: ${T.floatingZIndex};
803
- background: ${T.backgroundColor};
804
- border: 1px solid ${T.colorOutline};
805
- border-radius: 0 0 ${T.borderRadiusS} ${T.borderRadiusS};
806
- box-shadow: ${T.elevation02};
802
+ z-index: ${w.floatingZIndex};
803
+ background: ${w.backgroundColor};
804
+ border: 1px solid ${w.colorOutline};
805
+ border-radius: 0 0 ${w.borderRadiusS} ${w.borderRadiusS};
806
+ box-shadow: ${w.elevation02};
807
807
  outline: none;
808
- max-height: ${T.suggestSize};
808
+ max-height: ${w.suggestSize};
809
809
  overflow-y: auto;
810
810
  overflow-x: hidden;
811
- font-size: ${T.fontSize};
811
+ font-size: ${w.fontSize};
812
812
  cursor: pointer;
813
813
  }
814
814
 
@@ -821,12 +821,12 @@
821
821
  display: block;
822
822
  padding: 0; /* Inner suggestion container handles padding */
823
823
  cursor: pointer;
824
- color: ${T.colorOnSurface};
824
+ color: ${w.colorOnSurface};
825
825
  }
826
826
 
827
827
  .ft-combobox-suggestion {
828
828
  position: relative;
829
- padding: 8px ${T.horizontalSpacing};
829
+ padding: 8px ${w.horizontalSpacing};
830
830
  cursor: pointer;
831
831
  min-height: 44px;
832
832
  box-sizing: border-box;
@@ -852,7 +852,7 @@
852
852
  }
853
853
 
854
854
  .ft-combobox-suggestion--helper-text {
855
- color: ${T.helperColor};
855
+ color: ${w.helperColor};
856
856
  }
857
857
 
858
858
  .ft-combobox--option[data-active="true"] .ft-combobox-suggestion,
@@ -861,30 +861,30 @@
861
861
  }
862
862
 
863
863
  .ft-combobox--option-new-value {
864
- border-top: 1px solid ${T.colorOutline};
864
+ border-top: 1px solid ${w.colorOutline};
865
865
  }
866
866
 
867
867
  .ft-combobox--icon {
868
868
  align-self: center;
869
869
  margin-left: 8px;
870
- color: ${T.iconColor};
870
+ color: ${w.iconColor};
871
871
  }
872
872
 
873
873
  .ft-combobox--with-icon {
874
- ${(0,de.setVariable)(C.labelMaxWidth,`calc(100% - ${se.size} - ${T.horizontalSpacing})`)};
874
+ ${(0,fe.setVariable)(E.labelMaxWidth,`calc(100% - ${ae.size} - ${w.horizontalSpacing})`)};
875
875
  }
876
876
 
877
877
  .ft-combobox--chips-container {
878
878
  display: flex;
879
879
  flex-wrap: wrap;
880
- gap: ${T.chipGap};
881
- margin-top: ${T.chipsMarginTop};
880
+ gap: ${w.chipGap};
881
+ margin-top: ${w.chipsMarginTop};
882
882
  }
883
883
 
884
884
  .ft-combobox--chips-container ft-chip {
885
885
  flex-shrink: 0;
886
886
  }
887
- `;var Vi=f(F()),ce=f(te()),Cc=f(nt()),fr=f(E());var zr=f(F()),D=f(E());var Ye=f(E());var oc=f(F()),$e=f(te()),Me=f(E());var Os=f(F()),lt=f(E()),Er={distance:lt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:lt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:lt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:lt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",lt.designSystemVariables.borderRadiusS),maxWidth:lt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=Os.css`
887
+ `;var Ji=f(z()),de=f(re()),Mc=f(it()),or=f(S());var Hr=f(z()),N=f(S());var Ye=f(S());var yc=f(z()),$e=f(re()),Me=f(S());var Ns=f(z()),at=f(S()),gr={distance:at.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:at.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:at.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:at.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",at.designSystemVariables.borderRadiusS),maxWidth:at.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ds=Ns.css`
888
888
  .ft-tooltip--container {
889
889
  display: block;
890
890
  }
@@ -902,28 +902,28 @@
902
902
  box-sizing: border-box;
903
903
  overflow: hidden;
904
904
  width: max-content;
905
- max-width: ${Er.maxWidth};
905
+ max-width: ${gr.maxWidth};
906
906
  text-align: center;
907
- padding: ${Er.distance};
907
+ padding: ${gr.distance};
908
908
  }
909
909
 
910
910
  .ft-tooltip--content {
911
911
  padding: 4px 8px;
912
- border-radius: ${Er.borderRadiusS};
913
- background-color: ${Er.backgroundColor};
914
- color: ${Er.color};
912
+ border-radius: ${gr.borderRadiusS};
913
+ background-color: ${gr.backgroundColor};
914
+ color: ${gr.color};
915
915
  position: relative;
916
916
  word-break: break-word;
917
917
  }
918
- `;var Rs=["top","right","bottom","left"],_s=["start","end"],dn=Rs.reduce((t,e)=>t.concat(e,e+"-"+_s[0],e+"-"+_s[1]),[]),Cr=Math.min,ct=Math.max,wr=Math.round;var We=t=>({x:t,y:t}),Vc={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(t,e,r){return ct(t,Cr(e,r))}function ei(t,e){return typeof t=="function"?t(e):t}function Or(t){return t.split("-")[0]}function ut(t){return t.split("-")[1]}function pn(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function ti(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function hn(t){return pn(ti(t))}function Ps(t,e,r){r===void 0&&(r=!1);let i=ut(t),n=hn(t),o=fn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=un(s)),[s,un(s)]}function Ns(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function un(t){let e=Or(t);return Vc[e]+t.slice(e.length)}function Fc(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Ds(t){return typeof t!="number"?Fc(t):{top:t,right:t,bottom:t,left:t}}function wt(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Is(t,e,r){let{reference:i,floating:n}=t,o=ti(e),s=hn(e),a=fn(s),l=Or(e),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=ut(e);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function ks(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ei(e,t),m=Ds(h),b=a[p?d==="floating"?"reference":"floating":d],x=wt(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:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),P=await(o.isElement==null?void 0:o.isElement(_))&&await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1},ee=wt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:_,strategy:l}):S);return{top:(x.top-ee.top+m.top)/P.y,bottom:(ee.bottom-x.bottom+m.bottom)/P.y,left:(x.left-ee.left+m.left)/P.x,right:(ee.right-x.right+m.right)/P.x}}var jc=50,Ms=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ks},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Is(c,i,l),p=i,h=0,m={};for(let g=0;g<o.length;g++){let b=o[g];if(!b)continue;let{name:x,fn:S}=b,{x:_,y:P,data:ee,reset:X}=await S({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=_??u,d=P??d,m[x]={...m[x],...ee},X&&h<jc&&(h++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=Is(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function zc(t,e,r){return(t?[...r.filter(n=>ut(n)===t),...r.filter(n=>ut(n)!==t)]:r.filter(n=>Or(n)===n)).filter(n=>t?ut(n)===t||(e?Ns(n)!==n:!1):!0)}var $s=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=dn,autoAlignment:h=!0,...m}=ei(t,e),g=d!==void 0||p===dn?zc(d||null,h,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,x=g[b];if(x==null)return{};if(a!==x)return{reset:{placement:g[0]}};let S=await l.detectOverflow(e,m),_=Ps(x,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),P=[S[Or(x)],S[_[0]],S[_[1]]],ee=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:x,overflows:P}],X=g[b+1];if(X)return{data:{index:b+1,overflows:ee},reset:{placement:X}};let rt=ee.map(xe=>{let Re=ut(xe.placement);return[xe.placement,Re&&u?xe.overflows.slice(0,2).reduce((Se,yt)=>Se+yt,0):xe.overflows[0],xe.overflows]}).sort((xe,Re)=>xe[1]-Re[1]),it=((n=rt.filter(xe=>xe[2].slice(0,ut(xe[0])?2:3).every(Re=>Re<=0))[0])==null?void 0:n[0])||rt[0][0];return it!==a?{data:{index:b+1,overflows:ee},reset:{placement:it}}:{}}}};var Us=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:_,y:P}=S;return{x:_,y:P}}},...c}=ei(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=ti(n),h=pn(p),m=u[h],g=u[p],b=(S,_)=>Ls(_+d[S==="y"?"top":"left"],_,_-d[S==="y"?"bottom":"right"]);s&&(m=b(h,m)),a&&(g=b(p,g));let x=l.fn({...e,[h]:m,[p]:g});return{...x,data:{x:x.x-r,y:x.y-i,enabled:{[h]:s,[p]:a}}}}}};function ii(){return typeof window<"u"}function Tt(t){return Bs(t)?(t.nodeName||"").toLowerCase():"#document"}function ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(Bs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Bs(t){return ii()?t instanceof Node||t instanceof ve(t).Node:!1}function He(t){return ii()?t instanceof Element||t instanceof ve(t).Element:!1}function Qe(t){return ii()?t instanceof HTMLElement||t instanceof ve(t).HTMLElement:!1}function Hs(t){return!ii()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ve(t).ShadowRoot}function Tr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Be(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Vs(t){return/^(table|td|th)$/.test(Tt(t))}function _r(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/,Ot=t=>!!t&&t!=="none",mn;function Xt(t){let e=He(t)?Be(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ni()&&(Ot(e.backdropFilter)||Ot(e.filter))||Wc.test(e.willChange||"")||Kc.test(e.contain||"")}function Fs(t){let e=dt(t);for(;Qe(e)&&!Zt(e);){if(Xt(e))return e;if(_r(e))return null;e=dt(e)}return null}function ni(){return mn==null&&(mn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mn}function Zt(t){return/^(html|body|#document)$/.test(Tt(t))}function Be(t){return ve(t).getComputedStyle(t)}function Rr(t){return He(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dt(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Hs(t)&&t.host||Je(t);return Hs(e)?e.host:e}function js(t){let e=dt(t);return Zt(e)?(t.ownerDocument||t).body:Qe(e)&&Tr(e)?e:js(e)}function ri(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=js(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=ve(n);if(o){let a=oi(s);return e.concat(s,s.visualViewport||[],Tr(n)?n:[],a&&r?ri(a):[])}else return e.concat(n,ri(n,[],r))}function oi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=Be(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Qe(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=wr(r)!==o||wr(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function Gs(t){return He(t)?t:t.contextElement}function Jt(t){let e=Gs(t);if(!Qe(e))return We(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Ks(e),s=(o?wr(r.width):r.width)/i,a=(o?wr(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Gc=We(0);function qs(t){let e=ve(t);return!ni()||!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===ve(t)}function Lr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=We(1);e&&(i?He(i)&&(s=Jt(i)):s=Jt(t));let a=qc(o,r,i)?qs(o):We(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=ve(o),h=He(i)?ve(i):i,m=p,g=oi(m);for(;g&&h!==m;){let b=Jt(g),x=g.getBoundingClientRect(),S=Be(g),_=x.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,P=x.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=_,c+=P,m=ve(g),g=oi(m)}}return wt({width:u,height:d,x:l,y:c})}function si(t,e){let r=Rr(t).scrollLeft;return e?e.left+r:Lr(Je(t)).left+r}function Ys(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-si(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Yc(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Je(i),a=e?_r(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=We(1),u=We(0),d=Qe(i);if((d||!o)&&((Tt(i)!=="body"||Tr(s))&&(l=Rr(i)),d)){let h=Lr(i);c=Jt(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?Ys(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 Zc(t){let e=Rr(t),r=t.ownerDocument.body,i=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+si(t),s=-e.scrollTop;return Be(r).direction==="rtl"&&(o+=ct(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var Jc=25;function Qc(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=ve(t),o=Je(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ni()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(si(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-g),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;x<=Jc&&(a-=x)}return{width:a,height:l,x:c,y:u}}function eu(t,e){let r=Lr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Jt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function zs(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Qc(t,r,e);else if(e==="document")i=Zc(Je(t));else if(He(e))i=eu(e,r);else{let n=qs(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return wt(i)}function tu(t,e){let r=e.get(t);if(r)return r;let i=ri(t,[],!1).filter(a=>He(a)&&Tt(a)!=="body"),n=null,o=Be(t).position==="fixed",s=o?dt(t):t;for(;He(s)&&!Zt(s);){let a=Be(s),l=Xt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=dt(s)}return e.set(t,i),i}function ru(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?_r(e)?[]:tu(e,this._c):[].concat(r),i],a=zs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=zs(e,s[p],n);l=ct(h.top,l),c=Cr(h.right,c),u=Cr(h.bottom,u),d=ct(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function iu(t){let{width:e,height:r}=Ks(t);return{width:e,height:r}}function nu(t,e,r){let i=Qe(e),n=Je(e),o=r==="fixed",s=Lr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=We(0);if((i||!o)&&((Tt(e)!=="body"||Tr(n))&&(a=Rr(e)),i)){let p=Lr(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=si(n));let c=n&&!i&&!o?Ys(n,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 gn(t){return Be(t).position==="static"}function Ws(t,e){if(!Qe(t)||Be(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function Xs(t,e){let r=ve(t);if(_r(t))return r;if(!Qe(t)){let n=dt(t);for(;n&&!Zt(n);){if(He(n)&&!gn(n))return n;n=dt(n)}return r}let i=Ws(t,e);for(;i&&Vs(i)&&gn(i);)i=Ws(i,e);return i&&Zt(i)&&gn(i)&&!Xt(i)?r:i||Fs(t)||r}var ou=async function(t){let e=this.getOffsetParent||Xs,r=this.getDimensions,i=await r(t.floating);return{reference:nu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function su(t){return Be(t).direction==="rtl"}var ai={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:Je,getClippingRect:ru,getOffsetParent:Xs,getElementRects:ou,getClientRects:Xc,getDimensions:iu,getScale:Jt,isElement:He,isRTL:su};var Zs=$s,Js=Us;var Qs=(t,e,r)=>{let i=new Map,n=r??{},o={...ai,...n.platform,_c:i};return Ms(t,e,{...n,platform:o})};function ea(t){return au(t)}function vn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=vn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=vn(t);e;e=vn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xt(r)||e.tagName==="BODY"))return e}return null}async function ta(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Qs(t,e,{strategy:i.strategy,platform:{...ai,getOffsetParent:n=>ai.getOffsetParent(n,ea)},middleware:[Js({crossAxis:!0}),Zs({allowedPlacements:[i.placement]})]})}var pr=f(E());var jn=f(te());var ra=f(te(),1);var yn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ia(t,e){return(0,ra.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Pr(t);try{return JSON.parse(r)}catch{return Pr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Nr,...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,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Qt(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Qt(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Qt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Qt(t,e){try{return lu(t,e)}catch{return!1}}function Nr(t,e){return!Qt(t,e)}function Pr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function li(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var na=f(te(),1);var bn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Nr,attribute:!1,...e};(0,na.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var ci=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var _t=f(te(),1);var ui=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa=f(F(),1);var di=globalThis,cu=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var oa=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=di.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var pi=class extends sa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return oa(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){yn(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 aa(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var tr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},da,la=Symbol("constructorPrototype"),ca=Symbol("constructorName"),pa=Symbol("exportpartsDebouncer"),ua=Symbol("dynamicDependenciesLoaded"),er=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};er.eventName="exportparts-updated";var Ke=class extends pi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[da]=new ui(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[pa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ca]=this.constructor.name,this[la]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ca]&&Object.setPrototypeOf(this,this[la])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ua]||(r[ua]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(er.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 er)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=aa(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=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(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.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:[],g=[...h,...m].filter(l).map(b=>b.trim());for(let b of g)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(", ")}};da=pa;tr([(0,_t.property)()],Ke.prototype,"exportpartsPrefix",void 0);tr([ia([])],Ke.prototype,"exportpartsPrefixes",void 0);tr([(0,_t.property)({reflect:!0})],Ke.prototype,"exportparts",void 0);tr([(0,_t.property)()],Ke.prototype,"customStylesheet",void 0);tr([(0,_t.property)()],Ke.prototype,"elementToFocus",void 0);tr([(0,_t.state)()],Ke.prototype,"useAdoptedStyleSheets",void 0);function fi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Dr=Symbol("internalReduxEventsUnsubscribers"),pt=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),uu=li(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[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[pt].has(s.store):this[pt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[pt].set(s,a.subscribe(()=>this.updateFromStores())),this[Dr].set(s,[]),fi(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[Dr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[pt].has(s)&&this[pt].get(s)(),this[pt].delete(s),(a=this[Dr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Dr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pt,r=Rt,i=Dr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fa=class extends uu(Ke){};function De(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(t){return!!t&&!!t[W]}function Ve(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===yu})(t)||Array.isArray(t)||!!t[xa]||!!(!((e=t.constructor)===null||e===void 0)&&e[xa])||_n(t)||Rn(t))}function Lt(t,e,r){r===void 0&&(r=!1),nr(t)===0?(r?Object.keys:ir)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function nr(t){var e=t[W];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Rn(t)?3:0}function rr(t,e){return nr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return nr(t)===2?t.get(e):t[e]}function Sa(t,e,r){var i=nr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Aa(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gu&&t instanceof Map}function Rn(t){return vu&&t instanceof Set}function ft(t){return t.o||t.t}function Ln(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=wa(t);delete e[W];for(var r=ir(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Pn(t,e){return e===void 0&&(e=!1),Nn(t)||et(t)||!Ve(t)||(nr(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Lt(t,(function(r,i){return Pn(i,!0)}),!0)),t}function pu(){De(2)}function Nn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ge(t){var e=Tn[t];return e||De(18,t),e}function fu(t,e){Tn[t]||(Tn[t]=e)}function Cn(){return kr}function xn(t,e){e&&(Ge("Patches"),t.u=[],t.s=[],t.v=e)}function hi(t){wn(t),t.p.forEach(hu),t.p=null}function wn(t){t===kr&&(kr=t.l)}function ha(t){return kr={p:[],l:kr,h:t,m:!0,_:0}}function hu(t){var e=t[W];e.i===0||e.i===1?e.j():e.g=!0}function Sn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Ge("ES5").S(e,t,i),i?(r[W].P&&(hi(e),De(4)),Ve(t)&&(t=mi(e,t),e.l||gi(e,t)),e.u&&Ge("Patches").M(r[W].t,t,e.u,e.s)):t=mi(e,r,[]),hi(e),e.u&&e.v(e.u,e.s),t!==Ca?t:void 0}function mi(t,e,r){if(Nn(e))return e;var i=e[W];if(!i)return Lt(e,(function(a,l){return ma(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return gi(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ln(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),Lt(o,(function(a,l){return ma(t,i,n,a,l,r,s)})),gi(t,n,!1),r&&t.u&&Ge("Patches").N(i,r,t.u,t.s)}return i.o}function ma(t,e,r,i,n,o,s){if(et(n)){var a=mi(t,n,o&&e&&e.i!==3&&!rr(e.R,i)?o.concat(i):void 0);if(Sa(r,i,a),!et(a))return;t.m=!1}else s&&r.add(n);if(Ve(n)&&!Nn(n)){if(!t.h.D&&t._<1)return;mi(t,n),e&&e.A.l||gi(t,n)}}function gi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Pn(e,r)}function An(t,e){var r=t[W];return(r?ft(r):t)[e]}function ga(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function En(t){t.o||(t.o=Ln(t.t))}function On(t,e,r){var i=_n(e)?Ge("MapSet").F(e,r):Rn(e)?Ge("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:Cn(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Mr;s&&(l=[a],c=Ir);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:Cn()).p.push(i),i}function mu(t){return et(t)||De(22,t),(function e(r){if(!Ve(r))return r;var i,n=r[W],o=nr(r);if(n){if(!n.P&&(n.i<4||!Ge("ES5").K(n)))return n.t;n.I=!0,i=va(r,o),n.I=!1}else i=va(r,o);return Lt(i,(function(s,a){n&&du(n.t,s)===a||Sa(i,s,e(a))})),o===3?new Set(i):i})(t)}function va(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ln(t)}function Ea(){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[W];return Mr.get(c,s)},set:function(c){var u=this[W];Mr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][W];if(!l.P)switch(l.i){case 5:i(l)&&ht(l);break;case 4:r(l)&&ht(l)}}}function r(s){for(var a=s.t,l=s.k,c=ir(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==W){var p=a[d];if(p===void 0&&!rr(a,d))return!0;var h=l[d],m=h&&h[W];if(m?m.t!==p:!Aa(h,p))return!0}}var g=!!a[W];return c.length!==ir(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&De(3,JSON.stringify(ft(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 g=wa(p);delete g[W];for(var b=ir(g),x=0;x<b.length;x++){var S=b[x];g[S]=t(S,d||!!g[S].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(l,s),u={i:l?5:4,A:a?a.A:Cn(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,W,{value:u,writable:!0}),c},S:function(s,a,l){l?et(a)&&a[W].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[W];if(d){var p=d.t,h=d.k,m=d.R,g=d.i;if(g===4)Lt(h,(function(P){P!==W&&(p[P]!==void 0||rr(p,P)?m[P]||c(h[P]):(m[P]=!0,ht(d)))})),Lt(p,(function(P){h[P]!==void 0||rr(h,P)||(m[P]=!1,ht(d))}));else if(g===5){if(i(d)&&(ht(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),_=0;_<S;_++)h.hasOwnProperty(_)||(m[_]=!0),m[_]===void 0&&c(h[_])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ya,kr,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gu=typeof Map<"u",vu=typeof Set<"u",ba=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ca=Dn?Symbol.for("immer-nothing"):((ya={})["immer-nothing"]=!0,ya),xa=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",W=Dn?Symbol.for("immer-state"):"__$immer_state";var yu=""+Object.prototype.constructor,ir=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,wa=Object.getOwnPropertyDescriptors||function(t){var e={};return ir(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Tn={},Mr={get:function(t,e){if(e===W)return t;var r=ft(t);if(!rr(r,e))return(function(n,o,s){var a,l=ga(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!Ve(i)?i:i===An(t.t,e)?(En(t),t.o[e]=On(t.A.h,i,t)):i},has:function(t,e){return e in ft(t)},ownKeys:function(t){return Reflect.ownKeys(ft(t))},set:function(t,e,r){var i=ga(ft(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=An(ft(t),e),o=n?.[W];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Aa(r,n)&&(r!==void 0||rr(t.t,e)))return!0;En(t),ht(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 An(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,En(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ft(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){De(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){De(12)}},Ir={};Lt(Mr,(function(t,e){Ir[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ir.deleteProperty=function(t,e){return Ir.set.call(this,t,e,void 0)},Ir.set=function(t,e,r){return Mr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var i=this;this.O=ba,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var b=this;g===void 0&&(g=a);for(var x=arguments.length,S=Array(x>1?x-1:0),_=1;_<x;_++)S[_-1]=arguments[_];return l.produce(g,(function(P){var ee;return(ee=o).call.apply(ee,[b,P].concat(S))}))}}var c;if(typeof o!="function"&&De(6),s!==void 0&&typeof s!="function"&&De(7),Ve(n)){var u=ha(i),d=On(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?hi(u):wn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return xn(u,s),Sn(g,u)}),(function(g){throw hi(u),g})):(xn(u,s),Sn(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Ca&&(c=void 0),i.D&&Pn(c,!0),s){var h=[],m=[];Ge("Patches").M(n,c,h,m),s(h,m)}return c}De(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="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 i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,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){Ve(r)||De(8),et(r)&&(r=mu(r));var i=ha(this),n=On(this,r,void 0);return n[W].C=!0,wn(i),n},e.finishDraft=function(r,i){var n=r&&r[W],o=n.A;return xn(o,i),Sn(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ba&&De(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=Ge("Patches").$;return et(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),Oe=new bu,xu=Oe.produce,gh=Oe.produceWithPatches.bind(Oe),vh=Oe.setAutoFreeze.bind(Oe),yh=Oe.setUseProxies.bind(Oe),bh=Oe.applyPatches.bind(Oe),xh=Oe.createDraft.bind(Oe),Sh=Oe.finishDraft.bind(Oe),vi=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 Oa(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Pt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ta(t){var e=Oa(t,"string");return Pt(e)=="symbol"?e:e+""}function _a(t,e,r){return(e=Ta(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ra(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function In(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ra(Object(r),!0).forEach(function(i){_a(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function pe(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 La=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},yi={INIT:"@@redux/INIT"+kn(),REPLACE:"@@redux/REPLACE"+kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kn()}};function Su(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 Mn(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(pe(1));return r(Mn)(t,e)}if(typeof t!="function")throw new Error(pe(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(pe(3));return o}function d(g){if(typeof g!="function")throw new Error(pe(4));if(l)throw new Error(pe(5));var b=!0;return c(),a.push(g),function(){if(b){if(l)throw new Error(pe(6));b=!1,c();var S=a.indexOf(g);a.splice(S,1),s=null}}}function p(g){if(!Su(g))throw new Error(pe(7));if(typeof g.type>"u")throw new Error(pe(8));if(l)throw new Error(pe(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var b=s=a,x=0;x<b.length;x++){var S=b[x];S()}return g}function h(g){if(typeof g!="function")throw new Error(pe(10));n=g,p({type:yi.REPLACE})}function m(){var g,b=d;return g={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(pe(11));function _(){S.next&&S.next(u())}_();var P=b(_);return{unsubscribe:P}}},g[La]=function(){return this},g}return p({type:yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:h},i[La]=m,i}function Au(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:yi.INIT});if(typeof i>"u")throw new Error(pe(12));if(typeof r(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function Pa(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{Au(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 g=o[m],b=r[g],x=c[g],S=b(x,u);if(typeof S>"u"){var _=u&&u.type;throw new Error(pe(14))}h[g]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?h:c}}function or(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Na(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(pe(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=or.apply(void 0,a)(n.dispatch),In(In({},n),{},{dispatch:o})}}}function Da(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var Ia=Da();Ia.withExtraArgument=Da;var $n=Ia;var Ha=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},sr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Cu=Object.defineProperty,wu=Object.defineProperties,Ou=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,Ma=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},mt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&Ma(t,r,e[r]);if(ka)for(var i=0,n=ka(e);i<n.length;i++){var r=n[i];_u.call(e,r)&&Ma(t,r,e[r])}return t},Un=function(t,e){return wu(t,Ou(e))},Ru=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?or:or.apply(null,arguments)},Hh=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 gt(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return mt(mt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var Nu=(function(t){Ha(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,sr([void 0],r[0].concat(this)))):new(e.bind.apply(e,sr([void 0],r.concat(this))))},e})(Array),Du=(function(t){Ha(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,sr([void 0],r[0].concat(this)))):new(e.bind.apply(e,sr([void 0],r.concat(this))))},e})(Array);function Vn(t){return Ve(t)?vi(t,function(){}):t}function Iu(t){return typeof t=="boolean"}function ku(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new Nu;if(r&&(Iu(r)?c.push($n):c.push($n.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var Hn=!0;function Ba(t){var e=ku(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Pu(n))h=Pa(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!Hn&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hn&&m.some(function(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Na.apply(void 0,m),b=or;l&&(b=Lu(mt({trace:!Hn},typeof l=="object"&&l)));var x=new Du(g),S=x;Array.isArray(p)?S=sr([g],p):typeof p=="function"&&(S=p(x));var _=b.apply(void 0,S);return Mn(h,u,_)}function Va(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function $u(t){return typeof t=="function"}function Uu(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Va(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if($u(t))l=function(){return Vn(t())};else{var c=Vn(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=sr([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(et(m)){var b=m,x=g(b,p);return x===void 0?m:x}else{if(Ve(m))return vi(m,function(S){return g(S,p)});var x=g(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 Hu(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:Vn(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(u){var d=i[u],p=Hu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?gt(p,m):gt(p)});function l(){var u=typeof t.extraReducers=="function"?Va(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,g=u[2],b=g===void 0?void 0:g,x=mt(mt({},p),s);return Uu(r,function(S){for(var _ in x)S.addCase(_,x[_]);for(var P=0,ee=m;P<ee.length;P++){var X=ee[P];S.addMatcher(X.matcher,X.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 Bu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Bu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],Bn=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),$a=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),ju=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Fu;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},jh=(function(){function t(e,r,i){var n=gt(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Un(mt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=gt(e+"/pending",function(u,d,p){return{payload:void 0,meta:Un(mt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=gt(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||ju)(u||"Rejected"),meta:Un(mt({},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=i?.idGenerator?i.idGenerator(u):Vu(),g=new l,b,x=!1;function S(P){b=P,g.abort()}var _=(function(){return Ru(this,null,function(){var P,ee,X,rt,zi,it,xe;return Eu(this,function(Re){switch(Re.label){case 0:return Re.trys.push([0,4,,5]),rt=(P=i?.condition)==null?void 0:P.call(i,u,{getState:p,extra:h}),Wu(rt)?[4,rt]:[3,2];case 1:rt=Re.sent(),Re.label=2;case 2:if(rt===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,zi=new Promise(function(Se,yt){return g.signal.addEventListener("abort",function(){return yt({name:"AbortError",message:b||"Aborted"})})}),d(o(m,u,(ee=i?.getPendingMeta)==null?void 0:ee.call(i,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([zi,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:g.signal,abort:S,rejectWithValue:function(Se,yt){return new Bn(Se,yt)},fulfillWithValue:function(Se,yt){return new $a(Se,yt)}})).then(function(Se){if(Se instanceof Bn)throw Se;return Se instanceof $a?n(Se.payload,m,u,Se.meta):n(Se,m,u)})])];case 3:return X=Re.sent(),[3,5];case 4:return it=Re.sent(),X=it instanceof Bn?s(null,m,u,it.payload,it.meta):s(it,m,u),[3,5];case 5:return xe=i&&!i.dispatchConditionRejection&&s.match(X)&&X.meta.condition,xe||d(X),[2,X]}})})})();return Object.assign(_,{abort:S,requestId:m,arg:u,unwrap:function(){return _.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,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 ja="listener",za="completed",Wa="cancelled",zh="task-"+Wa,Wh="task-"+za,Kh=ja+"-"+Wa,Gh=ja+"-"+za;var Fn="listenerMiddleware";var qh=gt(Fn+"/add"),Yh=gt(Fn+"/removeAll"),Xh=gt(Fn+"/remove");var Ua,Zh=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ua||(Ua=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Jh=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);Ea();var Gu=li(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),bi=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ka=class t extends bi{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(fi(o))return o;if(n==null)return;let s=Fa({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ba({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Pr(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[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ci;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Qt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var xi=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Si=f(E()),qu="ft-app-info",ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ar.eventName="authentication-change";var $r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$r.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,Si.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new ar(e.payload)),0))}},N=Si.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()),Ai=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Om=(0,Ga.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>xi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ai([(0,jn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ai([(0,jn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ai([bn({store:N.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ai([bn({store:N.name})],e.prototype,"uiLocale",void 0),e});var qa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qa||(qa={}));var Ya;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ya||(Ya={}));var Xa;(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"})(Xa||(Xa={}));var Za;(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"})(Za||(Za={}));var Ja;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ja||(Ja={}));var Qa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Qa||(Qa={}));var el;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(el||(el={}));var tl;(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"})(tl||(tl={}));var rl;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(rl||(rl={}));var il;(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"})(il||(il={}));var nl;(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"})(nl||(nl={}));var ol;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ol||(ol={}));var sl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sl||(sl={}));var al;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(al||(al={}));var ll;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ul||(ul={}));var dl;(function(t){t.ASC="ASC",t.DESC="DESC"})(dl||(dl={}));var pl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(pl||(pl={}));var fl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fl||(fl={}));var hl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(hl||(hl={}));var ml;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ml||(ml={}));var gl;(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"})(gl||(gl={}));var vl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(vl||(vl={}));var yl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yl||(yl={}));var bl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bl||(bl={}));var xl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(xl||(xl={}));var Q;(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"})(Q||(Q={}));var Ie;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ie||(Ie={}));var Sl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Sl||(Sl={}));var Al;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Al||(Al={}));var El;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(El||(El={}));var Cl;(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"})(Cl||(Cl={}));var wl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(wl||(wl={}));var Ol;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ol||(Ol={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var _l;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(_l||(_l={}));var Rl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Rl||(Rl={}));var Ll;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ll||(Ll={}));var Pl;(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"})(Pl||(Pl={}));var Nl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Nl||(Nl={}));var Xu={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Dl(t,e){return t===e||(Xu[t]??[]).some(r=>Dl(r,e))}function Il(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Dl(i,e))}var Ti=f(E());var zn=f(E());var Nt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=N.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=N.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var lr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var Te=class extends lr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new zn.CacheRegistry,this.cache=e?n.commonCache:new zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Ei=class extends Te{async listMySearches(){let{session:e}=N.getState();return Il(e,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ci=class extends Te{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var wi=class extends Te{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=N.getState().session;return!!e?.sessionAuthenticated}};var Oi=class extends Te{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=N.getState().session;return!!e?.sessionAuthenticated}};var Zu="ft-user-assets",Ju={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ie).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Kn(t,r,[...Wn(t,r),n]),kl(t,r,1,i),Ml(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Kn(t,r,Wn(t,r).map(n=>n.id===i.id?i:n)),Ml(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Kn(t,r,Wn(t,r).filter(o=>o.id!==n)),kl(t,r,-1,i)}},$l={[Ie.SEARCHES]:"savedSearches",[Ie.BOOKMARKS]:"bookmarks",[Ie.BOOKS]:void 0,[Ie.COLLECTIONS]:void 0},Wn=(t,e)=>{var r;let i=$l[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Kn=(t,e,r)=>{let i=$l[e];i&&(t[i]=r)},kl=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ie.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Ml=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},fe=Ti.FtReduxStore.get({name:Zu,reducers:Ju,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ie).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gn=class{constructor(e=new wi,r=new Oi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ci,this.savedSearchesService=new Ei,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();(0,Ti.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(),fe.actions.clearAssetCount(),fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&fe.getState().assetCounts.allAsset[e]!==r.count&&fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(fe.getState().assetCounts.bookmarkByMap).length!==0;e===Ie.BOOKMARKS&&r&&fe.actions.clearBookmarkCountByMap(),fe.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;fe.actions.bookmarks(r)}}},Qu=new Gn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var qn=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var ke=f(E());var Ul,cr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),_i=class extends(0,ke.withEventBus)(Te){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ul]=()=>{this.defaultMessages={},this.cache=new ke.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,ke.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new ke.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof ke.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new cr({loadedContexts:e})),this.dispatchEvent(new cr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new cr({loadedContexts:[e]})),this.dispatchEvent(new cr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ke.delay)(0).then(()=>i()).catch(()=>null)))}};Ul=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _i{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _i{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ur=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var Hl=f(E()),Yn=class{highlightHtml(e,r,i){(0,Hl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Bl=f(E());var Xn=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Bl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xn;var Vl=f(E());var Ur=class{static get(e,r){var i,n,o,s;let a=N.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Vl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Zn=class{urlToSearchRequest(e){return Ur.get().parse(e)}searchRequestToUrl(e){return Ur.get().serialize(e)}};window.FluidTopicsUrlService=new Zn;var tt=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Dt.eventName="change";var Jn=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 Jn;var Li=class t extends tt.WithEventBus{static build(){return new t(window.history,Fl,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.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=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Dt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Dt.eventName,e)}currentItem(){return(0,tt.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,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,tt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Li.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 jl=f(F());var zl=jl.css`
919
- `;var Gl=f(F()),ye=f(te()),Mt=f(E());var It=f(E());function Wl(t,e){let{authenticationRequired:r,session:i}=N.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Pi=class extends lr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Qn=class t extends It.FtStateManager{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new It.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Pi,this.cleanSessionDebouncer=new It.Debouncer,this.reloadDebouncer=new It.Debouncer(500),this.apiProvider=r??(()=>Nt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ar.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",()=>Wl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $r(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Kl=Qn.build();var kt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Hr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new kt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var le=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},K=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=Kl,this.contextRoot=new Hr}render(){return Gl.html`
918
+ `;var Is=["top","right","bottom","left"],ks=["start","end"],Sn=Is.reduce((t,e)=>t.concat(e,e+"-"+ks[0],e+"-"+ks[1]),[]),yr=Math.min,lt=Math.max,br=Math.round;var We=t=>({x:t,y:t}),tu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ms(t,e,r){return lt(t,yr(e,r))}function Xr(t,e){return typeof t=="function"?t(e):t}function xr(t){return t.split("-")[0]}function ct(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function An(t){return t==="y"?"height":"width"}function Zr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function _n(t){return En(Zr(t))}function $s(t,e,r){r===void 0&&(r=!1);let i=ct(t),n=_n(t),o=An(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vn(s)),[s,vn(s)]}function Us(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vn(t){let e=xr(t);return tu[e]+t.slice(e.length)}function ru(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Vs(t){return typeof t!="number"?ru(t):{top:t,right:t,bottom:t,left:t}}function St(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Hs(t,e,r){let{reference:i,floating:n}=t,o=Zr(e),s=_n(e),a=An(s),l=xr(e),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let b=ct(e);return b&&(g[s]+=p*(b==="end"?1:-1)*(r&&c?-1:1)),g}async function Bs(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Xr(e,t),b=Vs(g),y=a[p?d==="floating"?"reference":"floating":d],T=St(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(y)))==null||r?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(x))&&await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1},I=St(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:x,strategy:l}):V);return{top:(T.top-I.top+b.top)/L.y,bottom:(I.bottom-T.bottom+b.bottom)/L.y,left:(T.left-I.left+b.left)/L.x,right:(I.right-T.right+b.right)/L.x}}var iu=50,Fs=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Bs},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Hs(c,i,l),p=i,g=0,b={};for(let _=0;_<o.length;_++){let y=o[_];if(!y)continue;let{name:T,fn:V}=y,{x,y:L,data:I,reset:X}=await V({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:b,rects:c,platform:a,elements:{reference:t,floating:e}});u=x??u,d=L??d,b[T]={...b[T],...I},X&&g<iu&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=Hs(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:b}};function nu(t,e,r){return(t?[...r.filter(n=>ct(n)===t),...r.filter(n=>ct(n)!==t)]:r.filter(n=>xr(n)===n)).filter(n=>t?ct(n)===t||(e?Us(n)!==n:!1):!0)}var zs=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Sn,autoAlignment:g=!0,...b}=Xr(t,e),_=d!==void 0||p===Sn?nu(d||null,g,p):p,y=((r=s.autoPlacement)==null?void 0:r.index)||0,T=_[y];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let V=await l.detectOverflow(e,b),x=$s(T,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[V[xr(T)],V[x[0]],V[x[1]]],I=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:L}],X=_[y+1];if(X)return{data:{index:y+1,overflows:I},reset:{placement:X}};let j=I.map(Le=>{let ht=ct(Le.placement);return[Le.placement,ht&&u?Le.overflows.slice(0,2).reduce((Fc,zc)=>Fc+zc,0):Le.overflows[0],Le.overflows]}).sort((Le,ht)=>Le[1]-ht[1]),sr=((n=j.filter(Le=>Le[2].slice(0,ct(Le[0])?2:3).every(ht=>ht<=0))[0])==null?void 0:n[0])||j[0][0];return sr!==a?{data:{index:y+1,overflows:I},reset:{placement:sr}}:{}}}};var js=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x,y:L}=V;return{x,y:L}}},...c}=Xr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=Zr(n),g=En(p),b=u[g],_=u[p],y=(V,x)=>Ms(x+d[V==="y"?"top":"left"],x,x-d[V==="y"?"bottom":"right"]);s&&(b=y(g,b)),a&&(_=y(p,_));let T=l.fn({...e,[g]:b,[p]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[g]:s,[p]:a}}}}}};function Qr(){return typeof window<"u"}function At(t){return Ks(t)?(t.nodeName||"").toLowerCase():"#document"}function xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(Ks(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ks(t){return Qr()?t instanceof Node||t instanceof xe(t).Node:!1}function Ve(t){return Qr()?t instanceof Element||t instanceof xe(t).Element:!1}function Qe(t){return Qr()?t instanceof HTMLElement||t instanceof xe(t).HTMLElement:!1}function Ws(t){return!Qr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xe(t).ShadowRoot}function vr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Gs(t){return/^(table|td|th)$/.test(At(t))}function Sr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ou=/transform|translate|scale|rotate|perspective|filter/,su=/paint|layout|strict|content/,Et=t=>!!t&&t!=="none",Cn;function Wt(t){let e=Ve(t)?He(t):t;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!ei()&&(Et(e.backdropFilter)||Et(e.filter))||ou.test(e.willChange||"")||su.test(e.contain||"")}function qs(t){let e=ut(t);for(;Qe(e)&&!Kt(e);){if(Wt(e))return e;if(Sr(e))return null;e=ut(e)}return null}function ei(){return Cn==null&&(Cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cn}function Kt(t){return/^(html|body|#document)$/.test(At(t))}function He(t){return xe(t).getComputedStyle(t)}function Er(t){return Ve(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ut(t){if(At(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ws(t)&&t.host||Je(t);return Ws(e)?e.host:e}function Ys(t){let e=ut(t);return Kt(e)?(t.ownerDocument||t).body:Qe(e)&&vr(e)?e:Ys(e)}function Jr(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ys(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=xe(n);if(o){let a=ti(s);return e.concat(s,s.visualViewport||[],vr(n)?n:[],a&&r?Jr(a):[])}else return e.concat(n,Jr(n,[],r))}function ti(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Js(t){let e=He(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Qe(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=br(r)!==o||br(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function Qs(t){return Ve(t)?t:t.contextElement}function Gt(t){let e=Qs(t);if(!Qe(e))return We(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Js(e),s=(o?br(r.width):r.width)/i,a=(o?br(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var au=We(0);function ea(t){let e=xe(t);return!ei()||!e.visualViewport?au:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function lu(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===xe(t)}function Ar(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=Qs(t),s=We(1);e&&(i?Ve(i)&&(s=Gt(i)):s=Gt(t));let a=lu(o,r,i)?ea(o):We(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=xe(o),g=Ve(i)?xe(i):i,b=p,_=ti(b);for(;_&&g!==b;){let y=Gt(_),T=_.getBoundingClientRect(),V=He(_),x=T.left+(_.clientLeft+parseFloat(V.paddingLeft))*y.x,L=T.top+(_.clientTop+parseFloat(V.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=L,b=xe(_),_=ti(b)}}return St({width:u,height:d,x:l,y:c})}function ri(t,e){let r=Er(t).scrollLeft;return e?e.left+r:Ar(Je(t)).left+r}function ta(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-ri(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function cu(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Je(i),a=e?Sr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=We(1),u=We(0),d=Qe(i);if((d||!o)&&((At(i)!=="body"||vr(s))&&(l=Er(i)),d)){let g=Ar(i);c=Gt(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=s&&!d&&!o?ta(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 uu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function du(t){let e=Er(t),r=t.ownerDocument.body,i=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+ri(t),s=-e.scrollTop;return He(r).direction==="rtl"&&(o+=lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var pu=25;function fu(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=xe(t),o=Je(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ei()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(ri(o)<=0){let p=o.ownerDocument,g=p.body,b=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,y=Math.abs(o.clientWidth-g.clientWidth-_),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?y/2:y;T<=pu&&(a-=T)}return{width:a,height:l,x:c,y:u}}function hu(t,e){let r=Ar(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Gt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function Xs(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=fu(t,r,e);else if(e==="document")i=du(Je(t));else if(Ve(e))i=hu(e,r);else{let n=ea(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return St(i)}function mu(t,e){let r=e.get(t);if(r)return r;let i=Jr(t,[],!1).filter(a=>Ve(a)&&At(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?ut(t):t;for(;Ve(s)&&!Kt(s);){let a=He(s),l=Wt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=ut(s)}return e.set(t,i),i}function gu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Sr(e)?[]:mu(e,this._c):[].concat(r),i],a=Xs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Xs(e,s[p],n);l=lt(g.top,l),c=yr(g.right,c),u=yr(g.bottom,u),d=lt(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function yu(t){let{width:e,height:r}=Js(t);return{width:e,height:r}}function bu(t,e,r){let i=Qe(e),n=Je(e),o=r==="fixed",s=Ar(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=We(0);if((i||!o)&&((At(e)!=="body"||vr(n))&&(a=Er(e)),i)){let p=Ar(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=ri(n));let c=n&&!i&&!o?ta(n,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 wn(t){return He(t).position==="static"}function Zs(t,e){if(!Qe(t)||He(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function ra(t,e){let r=xe(t);if(Sr(t))return r;if(!Qe(t)){let n=ut(t);for(;n&&!Kt(n);){if(Ve(n)&&!wn(n))return n;n=ut(n)}return r}let i=Zs(t,e);for(;i&&Gs(i)&&wn(i);)i=Zs(i,e);return i&&Kt(i)&&wn(i)&&!Wt(i)?r:i||qs(t)||r}var xu=async function(t){let e=this.getOffsetParent||ra,r=this.getDimensions,i=await r(t.floating);return{reference:bu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function vu(t){return He(t).direction==="rtl"}var ii={convertOffsetParentRelativeRectToViewportRelativeRect:cu,getDocumentElement:Je,getClippingRect:gu,getOffsetParent:ra,getElementRects:xu,getClientRects:uu,getDimensions:yu,getScale:Gt,isElement:Ve,isRTL:vu};var ia=zs,na=js;var oa=(t,e,r)=>{let i=new Map,n=r??{},o={...ii,...n.platform,_c:i};return Fs(t,e,{...n,platform:o})};function sa(t){return Su(t)}function Tn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Su(t){for(let e=t;e;e=Tn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tn(t);e;e=Tn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wt(r)||e.tagName==="BODY"))return e}return null}async function aa(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},oa(t,e,{strategy:i.strategy,platform:{...ii,getOffsetParent:n=>ii.getOffsetParent(n,sa)},middleware:[na({crossAxis:!0}),ia({allowedPlacements:[i.placement]})]})}var nr=f(S());var Yn=f(re());var la=f(re(),1);var On=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ca(t,e){return(0,la.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return _r(t);try{return JSON.parse(r)}catch{return _r(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Cr,...e??{}})}function Eu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!qt(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!qt(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!qt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function qt(t,e){try{return Eu(t,e)}catch{return!1}}function Cr(t,e){return!qt(t,e)}function _r(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ni(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ua=f(re(),1);var Rn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Cr,attribute:!1,...e};(0,ua.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var oi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var _t=f(re(),1);var si=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var pa=f(z(),1);var ai=globalThis,Au=ai.ShadowRoot&&(ai.ShadyCSS===void 0||ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var da=(t,e)=>{if(Au)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var li=class extends pa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return da(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){On(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 fa(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Xt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ya,ha=Symbol("constructorPrototype"),ma=Symbol("constructorName"),ba=Symbol("exportpartsDebouncer"),ga=Symbol("dynamicDependenciesLoaded"),Yt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yt.eventName="exportparts-updated";var Ke=class extends li{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ya]=new si(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ba].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ma]=this.constructor.name,this[ha]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ma]&&Object.setPrototypeOf(this,this[ha])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ga]||(r[ga]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Yt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yt.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 Yt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=fa(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=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(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],b=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(y=>y.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...b].filter(l).map(y=>y.trim());for(let y of _)u.add(y)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};ya=ba;Xt([(0,_t.property)()],Ke.prototype,"exportpartsPrefix",void 0);Xt([ca([])],Ke.prototype,"exportpartsPrefixes",void 0);Xt([(0,_t.property)({reflect:!0})],Ke.prototype,"exportparts",void 0);Xt([(0,_t.property)()],Ke.prototype,"customStylesheet",void 0);Xt([(0,_t.property)()],Ke.prototype,"elementToFocus",void 0);Xt([(0,_t.state)()],Ke.prototype,"useAdoptedStyleSheets",void 0);function ci(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var wr=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),_u=ni(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ct].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].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[dt].has(s.store):this[dt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[dt].set(s,a.subscribe(()=>this.updateFromStores())),this[wr].set(s,[]),ci(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[wr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[dt].has(s)&&this[dt].get(s)(),this[dt].delete(s),(a=this[wr].get(s))===null||a===void 0||a.forEach(l=>l()),this[wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dt,r=Ct,i=wr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),xa=class extends _u(Ke){};function ce(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 Cu=typeof Symbol=="function"&&Symbol.observable||"@@observable",va=Cu,Ln=()=>Math.random().toString(36).substring(7).split("").join("."),wu={INIT:`@@redux/INIT${Ln()}`,REPLACE:`@@redux/REPLACE${Ln()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ln()}`},ui=wu;function di(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Pn(t,e,r){if(typeof t!="function")throw new Error(ce(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(Pn)(t,e)}let i=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((y,T)=>{s.set(T,y)}))}function u(){if(l)throw new Error(ce(3));return n}function d(y){if(typeof y!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let T=!0;c();let V=a++;return s.set(V,y),function(){if(T){if(l)throw new Error(ce(6));T=!1,c(),s.delete(V),o=null}}}function p(y){if(!di(y))throw new Error(ce(7));if(typeof y.type>"u")throw new Error(ce(8));if(typeof y.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,n=i(n,y)}finally{l=!1}return(o=s).forEach(V=>{V()}),y}function g(y){if(typeof y!="function")throw new Error(ce(10));i=y,p({type:ui.REPLACE})}function b(){let y=d;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(ce(11));function V(){let L=T;L.next&&L.next(u())}return V(),{unsubscribe:y(V)}},[va](){return this}}}return p({type:ui.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[va]:b}}function Tu(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:ui.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:ui.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Sa(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,o;try{Tu(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],b=a[p],_=g(b,l);if(typeof _>"u"){let y=l&&l.type;throw new Error(ce(14))}u[p]=_,c=c||_!==b}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Tr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ea(...t){return e=>(r,i)=>{let n=e(r,i),o=()=>{throw new Error(ce(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Tr(...a)(n.dispatch),{...n,dispatch:o}}}function Aa(t){return di(t)&&"type"in t&&typeof t.type=="string"}var Na=Symbol.for("immer-nothing"),_a=Symbol.for("immer-draftable"),he=Symbol.for("immer-state");function Be(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var we=Object,Jt=we.getPrototypeOf,mi="constructor",Si="prototype",In="configurable",gi="enumerable",fi="writable",Or="value",Ge=t=>!!t&&!!t[he];function Te(t){return t?Da(t)||Ai(t)||!!t[_a]||!!t[mi]?.[_a]||_i(t)||Ci(t):!1}var Ou=we[Si][mi].toString(),Ca=new WeakMap;function Da(t){if(!t||!zn(t))return!1;let e=Jt(t);if(e===null||e===we[Si])return!0;let r=we.hasOwnProperty.call(e,mi)&&e[mi];if(r===Object)return!0;if(!Zt(r))return!1;let i=Ca.get(r);return i===void 0&&(i=Function.toString.call(r),Ca.set(r,i)),i===Ou}function Ei(t,e,r=!0){Pr(t)===0?(r?Reflect.ownKeys(t):we.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Pr(t){let e=t[he];return e?e.type_:Ai(t)?1:_i(t)?2:Ci(t)?3:0}var Nn=(t,e,r=Pr(t))=>r===2?t.has(e):we[Si].hasOwnProperty.call(t,e),Mn=(t,e,r=Pr(t))=>r===2?t.get(e):t[e],yi=(t,e,r,i=Pr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ru(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ai=Array.isArray,_i=t=>t instanceof Map,Ci=t=>t instanceof Set,zn=t=>typeof t=="object",Zt=t=>typeof t=="function",Dn=t=>typeof t=="boolean";function Lu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var et=t=>t.copy_||t.base_;var jn=t=>t.modified_?t.copy_:t.base_;function $n(t,e){if(_i(t))return new Map(t);if(Ci(t))return new Set(t);if(Ai(t))return Array[Si].slice.call(t);let r=Da(t);if(e===!0||e==="class_only"&&!r){let i=we.getOwnPropertyDescriptors(t);delete i[he];let n=Reflect.ownKeys(i);for(let o=0;o<n.length;o++){let s=n[o],a=i[s];a[fi]===!1&&(a[fi]=!0,a[In]=!0),(a.get||a.set)&&(i[s]={[In]:!0,[fi]:!0,[gi]:a[gi],[Or]:t[s]})}return we.create(Jt(t),i)}else{let i=Jt(t);if(i!==null&&r)return{...t};let n=we.create(i);return we.assign(n,t)}}function Wn(t,e=!1){return wi(t)||Ge(t)||!Te(t)||(Pr(t)>1&&we.defineProperties(t,{set:pi,add:pi,clear:pi,delete:pi}),we.freeze(t),e&&Ei(t,(r,i)=>{Wn(i,!0)},!1)),t}function Pu(){Be(2)}var pi={[Or]:Pu};function wi(t){return t===null||!zn(t)?!0:we.isFrozen(t)}var bi="MapSet",Un="Patches",wa="ArrayMethods",ka={};function wt(t){let e=ka[t];return e||Be(0,t),e}var Ta=t=>!!ka[t];var Rr,Ia=()=>Rr,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ta(bi)?wt(bi):void 0,arrayMethodsPlugin_:Ta(wa)?wt(wa):void 0});function Oa(t,e){e&&(t.patchPlugin_=wt(Un),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Vn(t){Hn(t),t.drafts_.forEach(Du),t.drafts_=null}function Hn(t){t===Rr&&(Rr=t.parent_)}var Ra=t=>Rr=Nu(Rr,t);function Du(t){let e=t[he];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function La(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[he].modified_&&(Vn(e),Be(4)),Te(t)&&(t=Pa(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[he].base_,t,e)}else t=Pa(e,r);return ku(e,t,!0),Vn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Na?t:void 0}function Pa(t,e){if(wi(e))return e;let r=e[he];if(!r)return xi(e,t.handledSet_,t);if(!Ti(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Ua(r,t)}return r.copy_}function ku(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Wn(e,r)}function Ma(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ti=(t,e)=>t.scope_===e,Iu=[];function $a(t,e,r,i){let n=et(t),o=t.type_;if(i!==void 0&&Mn(n,i,o)===e){yi(n,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Ei(n,(l,c)=>{if(Ge(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??Iu;for(let a of s)yi(n,a,r,o)}function Mu(t,e,r){t.callbacks_.push(function(n){let o=e;if(!o||!Ti(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=jn(o);$a(t,o.draft_??o,s,r),Ua(o,n)})}function Ua(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Ma(t)}}function $u(t,e,r){let{scope_:i}=t;if(Ge(r)){let n=r[he];Ti(n,i)&&n.callbacks_.push(function(){hi(t);let s=jn(n);$a(t,r,s,e)})}else Te(r)&&t.callbacks_.push(function(){let o=et(t);t.type_===3?o.has(r)&&xi(r,i.handledSet_,i):Mn(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&xi(Mn(t.copy_,e,t.type_),i.handledSet_,i)})}function xi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ge(t)||e.has(t)||!Te(t)||wi(t)||(e.add(t),Ei(t,(i,n)=>{if(Ge(n)){let o=n[he];if(Ti(o,r)){let s=jn(o);yi(t,i,s,t.type_),Ma(o)}}else Te(n)&&xi(n,e,r)})),t}function Uu(t,e){let r=Ai(t),i={type_:r?1:0,scope_:e?e.scope_:Ia(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,o=vi;r&&(n=[i],o=Lr);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return i.draft_=a,i.revoke_=s,[a,i]}var vi={get(t,e){if(e===he)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=et(t);if(!Nn(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Te(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Lu(e))return o;if(o===kn(t.base_,e)||Vu(t,e,o)){hi(t);let s=t.type_===1?+e:e,a=Fn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in et(t)},ownKeys(t){return Reflect.ownKeys(et(t))},set(t,e,r){let i=Va(et(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=kn(et(t),e),o=n?.[he];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ru(r,n)&&(r!==void 0||Nn(t.base_,e,t.type_)))return!0;hi(t),Bn(t)}return t.copy_[e]===r&&(r!==void 0||Nn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),$u(t,e,r)),!0},deleteProperty(t,e){return hi(t),kn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Bn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=et(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[fi]:!0,[In]:t.type_!==1||e!=="length",[gi]:i[gi],[Or]:r[e]}},defineProperty(){Be(11)},getPrototypeOf(t){return Jt(t.base_)},setPrototypeOf(){Be(12)}},Lr={};for(let t in vi){let e=vi[t];Lr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Lr.deleteProperty=function(t,e){return Lr.set.call(this,t,e,void 0)};Lr.set=function(t,e,r){return vi.set.call(this,t[0],e,r,t[0])};function kn(t,e){let r=t[he];return(r?et(r):t)[e]}function Vu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Te(r)||r[he]?!1:t.baseRefs_.has(r)}function Hu(t,e,r){let i=Va(e,r);return i?Or in i?i[Or]:i.get?.call(t.draft_):void 0}function Va(t,e){if(!(e in t))return;let r=Jt(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Jt(r)}}function Bn(t){t.modified_||(t.modified_=!0,t.parent_&&Bn(t.parent_))}function hi(t){t.copy_||(t.assigned_=new Map,t.copy_=$n(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Bu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Zt(e)&&!Zt(r)){let o=r;r=e;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}Zt(r)||Be(6),i!==void 0&&!Zt(i)&&Be(7);let n;if(Te(e)){let o=Ra(this),s=Fn(o,e,void 0),a=!0;try{n=r(s),a=!1}finally{a?Vn(o):Hn(o)}return Oa(o,i),La(n,o)}else if(!e||!zn(e)){if(n=r(e),n===void 0&&(n=e),n===Na&&(n=void 0),this.autoFreeze_&&Wn(n,!0),i){let o=[],s=[];wt(Un).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),i(o,s)}return n}else Be(1,e)},this.produceWithPatches=(e,r)=>{if(Zt(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,n;return[this.produce(e,r,(s,a)=>{i=s,n=a}),i,n]},Dn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Dn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Dn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Te(t)||Be(8),Ge(t)&&(t=Ha(t));let e=Ra(this),r=Fn(e,t,void 0);return r[he].isManual_=!0,Hn(e),r}finishDraft(t,e){let r=t&&t[he];(!r||!r.isManual_)&&Be(9);let{scope_:i}=r;return Oa(i,e),La(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=wt(Un).applyPatches_;return Ge(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Fn(t,e,r,i){let[n,o]=_i(e)?wt(bi).proxyMap_(e,r):Ci(e)?wt(bi).proxySet_(e,r):Uu(e,r);return(r?.scope_??Ia()).drafts_.push(n),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?Mu(r,o,i):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Ha(t){return Ge(t)||Be(10,t),Ba(t)}function Ba(t){if(!Te(t)||wi(t))return t;let e=t[he],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=$n(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=$n(t,!0);return Ei(r,(n,o)=>{yi(r,n,Ba(o))},i),e&&(e.finalized_=!1),r}var Fu=new Bu,Kn=Fu.produce;function Fa(t){return({dispatch:r,getState:i})=>n=>o=>typeof o=="function"?o(r,i,t):n(o)}var za=Fa(),ja=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"?Tr:Tr.apply(null,arguments)},qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},ju=t=>t&&typeof t.match=="function";function pt(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(tt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Aa(i)&&i.type===t,r}var Ya=class Nr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Nr.prototype)}static get[Symbol.species](){return Nr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Nr(...e[0].concat(this)):new Nr(...e.concat(this))}};function Wa(t){return Te(t)?Kn(t,()=>{}):t}function Oi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Wu(t){return typeof t=="boolean"}var Ku=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new Ya;return r&&(Wu(r)?s.push(za):s.push(ja(r.extraArgument))),s},Gu="RTK_autoBatch";var Ka=t=>e=>{setTimeout(e,t)},qu=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=t(n),s=setTimeout(n,e)},Yu=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?qu(window.requestAnimationFrame,100):Ka(10):t.type==="callback"?t.queueNotification:Ka(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Gu],o=!n,o&&(s||(s=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Xu=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ya(t);return i&&n.push(Yu(typeof i=="object"?i:void 0)),n};function Xa(t){let e=Ku(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(di(r))l=Sa(r);else throw new Error(tt(1));let c;typeof i=="function"?c=i(e):c=e();let u=Tr;n&&(u=zu({trace:!1,...typeof n=="object"&&n}));let d=Ea(...c),p=Xu(d),g=typeof a=="function"?a(p):p(),b=u(...g);return Pn(l,s,b)}function Za(t){let e={},r=[],i,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(tt(28));if(a in e)throw new Error(tt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase(o){return i=o,n}};return t(n),[e,r,i]}function Zu(t){return typeof t=="function"}function Ju(t,e){let[r,i,n]=Za(e),o;if(Zu(t))o=()=>Wa(t());else{let a=Wa(t);o=()=>a}function s(a=o(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ge(u)){let g=d(u,l);return g===void 0?u:g}else{if(Te(u))return Kn(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 s.getInitialState=o,s}var Qu=(t,e)=>ju(t)?t.match(e):t(e);function ed(...t){return e=>t.some(r=>Qu(r,e))}var td="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rd=(t=21)=>{let e="",r=t;for(;r--;)e+=td[Math.random()*64|0];return e},id=["name","message","stack","code"],Gn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Ga=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},nd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of id)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},qa="External signal was aborted",od=(()=>{function t(e,r,i){let n=pt(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=pt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=pt(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||nd)(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 g=i?.idGenerator?i.idGenerator(l):rd(),b=new AbortController,_,y;function T(x){y=x,b.abort()}c&&(c.aborted?T(qa):c.addEventListener("abort",()=>T(qa),{once:!0}));let V=(async function(){let x;try{let I=i?.condition?.(l,{getState:d,extra:p});if(ad(I)&&(I=await I),I===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{_=()=>{Z({name:"AbortError",message:y||"Aborted"})},b.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),x=await Promise.race([X,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:b.signal,abort:T,rejectWithValue:((j,Z)=>new Gn(j,Z)),fulfillWithValue:((j,Z)=>new Ga(j,Z))})).then(j=>{if(j instanceof Gn)throw j;return j instanceof Ga?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(I){x=I instanceof Gn?s(null,g,l,I.payload,I.meta):s(I,g,l)}finally{_&&b.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&s.match(x)&&x.meta.condition||u(x),x})();return Object.assign(V,{abort:T,requestId:g,arg:l,unwrap(){return V.then(sd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:ed(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function sd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ad(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ja=Symbol.for("rtk-slice-createasyncthunk"),Xh={[Ja]:od};function ld(t,e){return`${t}/${e}`}function cd({creators:t}={}){let e=t?.asyncThunk?.[Ja];return function(i){let{name:n,reducerPath:o=n}=i;if(!n)throw new Error(tt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(dd()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,L){let I=typeof x=="string"?x:x.type;if(!I)throw new Error(tt(12));if(I in l.sliceCaseReducersByType)throw new Error(tt(13));return l.sliceCaseReducersByType[I]=L,c},addMatcher(x,L){return l.sliceMatchers.push({matcher:x,reducer:L}),c},exposeAction(x,L){return l.actionCreators[x]=L,c},exposeCaseReducer(x,L){return l.sliceCaseReducersByName[x]=L,c}};a.forEach(x=>{let L=s[x],I={reducerName:x,type:ld(n,x),createNotation:typeof i.reducers=="function"};fd(L)?md(I,L,c,e):pd(I,L,c)});function u(){let[x={},L=[],I=void 0]=typeof i.extraReducers=="function"?Za(i.extraReducers):[i.extraReducers],X={...x,...l.sliceCaseReducersByType};return Ju(i.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of L)j.addMatcher(Z.matcher,Z.reducer);I&&j.addDefaultCase(I)})}let d=x=>x,p=new Map,g=new WeakMap,b;function _(x,L){return b||(b=u()),b(x,L)}function y(){return b||(b=u()),b.getInitialState()}function T(x,L=!1){function I(j){let Z=j[x];return typeof Z>"u"&&L&&(Z=Oi(g,I,y)),Z}function X(j=d){let Z=Oi(p,L,()=>new WeakMap);return Oi(Z,j,()=>{let sr={};for(let[Le,ht]of Object.entries(i.selectors??{}))sr[Le]=ud(ht,j,()=>Oi(g,j,y),L);return sr})}return{reducerPath:x,getSelectors:X,get selectors(){return X(I)},selectSlice:I}}let V={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...T(o),injectInto(x,{reducerPath:L,...I}={}){let X=L??o;return x.inject({reducerPath:X,reducer:_},I),{...V,...T(X,!0)}}};return V}}function ud(t,e,r,i){function n(o,...s){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return n.unwrapped=t,n}var Qa=cd();function dd(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function pd({type:t,reducerName:e,createNotation:r},i,n){let o,s;if("reducer"in i){if(r&&!hd(i))throw new Error(tt(17));o=i.reducer,s=i.prepare}else o=i;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?pt(t,s):pt(t))}function fd(t){return t._reducerDefinitionType==="asyncThunk"}function hd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function md({type:t,reducerName:e},r,i,n){if(!n)throw new Error(tt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=n(t,o,u);i.exposeAction(e,d),s&&i.addCase(d.fulfilled,s),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(e,{fulfilled:s||Ri,pending:a||Ri,rejected:l||Ri,settled:c||Ri})}function Ri(){}var el="listener",tl="completed",rl="cancelled",Zh=`task-${rl}`,Jh=`task-${tl}`,Qh=`${el}-${rl}`,em=`${el}-${tl}`;var{assign:il}=Object;var qn="listenerMiddleware";var gd=il(pt(`${qn}/add`),{withTypes:()=>gd}),tm=pt(`${qn}/removeAll`),yd=il(pt(`${qn}/remove`),{withTypes:()=>yd});function tt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var bd=ni(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Li=class extends bd(Object){};window.ftReduxStores||(window.ftReduxStores={});var nl=class t extends Li{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(ci(o))return o;if(n==null)return;let s=Qa({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Xa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=_r(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[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new oi,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];qt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Pi=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ni=f(S()),xd="ft-app-info",Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Qt.eventName="authentication-change";var Dr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dr.eventName="ui-locale-changed";var vd={session:(t,e)=>{(0,Ni.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Qt(e.payload)),0))}},P=Ni.FtReduxStore.get({name:xd,reducers:vd,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 ol=f(S()),Di=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Pm=(0,ol.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Pi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Di([(0,Yn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Di([(0,Yn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Di([Rn({store:P.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Di([Rn({store:P.name})],e.prototype,"uiLocale",void 0),e});var sl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sl||(sl={}));var al;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(al||(al={}));var ll;(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"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ul||(ul={}));var dl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(dl||(dl={}));var pl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(pl||(pl={}));var fl;(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"})(fl||(fl={}));var hl;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(hl||(hl={}));var ml;(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"})(ml||(ml={}));var gl;(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"})(gl||(gl={}));var yl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yl||(yl={}));var bl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(bl||(bl={}));var xl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(xl||(xl={}));var vl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(vl||(vl={}));var Sl;(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"})(Sl||(Sl={}));var El;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(El||(El={}));var Al;(function(t){t.ASC="ASC",t.DESC="DESC"})(Al||(Al={}));var _l;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_l||(_l={}));var Cl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Cl||(Cl={}));var wl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(wl||(wl={}));var Tl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Tl||(Tl={}));var Ol;(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"})(Ol||(Ol={}));var Rl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rl||(Rl={}));var Ll;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ll||(Ll={}));var Pl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pl||(Pl={}));var Nl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Nl||(Nl={}));var te;(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"})(te||(te={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var Dl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Dl||(Dl={}));var kl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(kl||(kl={}));var Il;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Il||(Il={}));var Ml;(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"})(Ml||(Ml={}));var $l;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})($l||($l={}));var Ul;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ul||(Ul={}));var Vl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Vl||(Vl={}));var Hl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Hl||(Hl={}));var Bl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Bl||(Bl={}));var Fl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Fl||(Fl={}));var zl;(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"})(zl||(zl={}));var jl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(jl||(jl={}));var Sd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Wl(t,e){return t===e||(Sd[t]??[]).some(r=>Wl(r,e))}function Kl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Wl(i,e))}var Ui=f(S());var Xn=f(S());var Tt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=P.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=P.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var er=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Tt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tt.await()}};var Oe=class extends er{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xn.CacheRegistry,this.cache=e?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var ki=class extends Oe{async listMySearches(){let{session:e}=P.getState();return Kl(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ii=class extends Oe{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Mi=class extends Oe{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=P.getState().session;return!!e?.sessionAuthenticated}};var $i=class extends Oe{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=P.getState().session;return!!e?.sessionAuthenticated}};var Ed="ft-user-assets",Ad={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ke).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Jn(t,r,[...Zn(t,r),n]),Gl(t,r,1,i),ql(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Jn(t,r,Zn(t,r).map(n=>n.id===i.id?i:n)),ql(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Jn(t,r,Zn(t,r).filter(o=>o.id!==n)),Gl(t,r,-1,i)}},Yl={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},Zn=(t,e)=>{var r;let i=Yl[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Jn=(t,e,r)=>{let i=Yl[e];i&&(t[i]=r)},Gl=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ke.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},ql=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},me=Ui.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(e=new Mi,r=new $i){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ii,this.savedSearchesService=new ki,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,Ui.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(),me.actions.clearAssetCount(),me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();me.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&me.getState().assetCounts.allAsset[e]!==r.count&&me.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&me.getState().assetCounts.bookmarkByMap[e]!==r.count&&me.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(me.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&r&&me.actions.clearBookmarkCountByMap(),me.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;me.actions.bookmarks(r)}}},_d=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=_d);var eo=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new eo;var Ie=f(S());var Xl,tr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Cd=Symbol("clearAfterUnitTest"),Vi=class extends(0,Ie.withEventBus)(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new tr({loadedContexts:e})),this.dispatchEvent(new tr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new tr({loadedContexts:[e]})),this.dispatchEvent(new tr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ie.delay)(0).then(()=>i()).catch(()=>null)))}};Xl=Cd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var rr=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var Zl=f(S()),to=class{highlightHtml(e,r,i){(0,Zl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new to;var Jl=f(S());var ro=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Jl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:P.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ro;var Ql=f(S());var kr=class{static get(e,r){var i,n,o,s;let a=P.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Ql.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var io=class{urlToSearchRequest(e){return kr.get().parse(e)}searchRequestToUrl(e){return kr.get().serialize(e)}};window.FluidTopicsUrlService=new io;var rt=f(S());var Ot=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ot.eventName="change";var no=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))}},ec=new no;var Bi=class t extends rt.WithEventBus{static build(){return new t(window.history,ec,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,rt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ot(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Ot.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ot.eventName,e)}currentItem(){return(0,rt.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,rt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,rt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,rt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Bi.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 tc=f(z());var rc=tc.css`
919
+ `;var oc=f(z()),ve=f(re()),Pt=f(S());var Rt=f(S());function ic(t,e){let{authenticationRequired:r,session:i}=P.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Fi=class extends er{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var oo=class t extends Rt.FtStateManager{static build(e){return new t(P,e)}constructor(e,r){super(),this.store=e,this.cache=new Rt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Fi,this.cleanSessionDebouncer=new Rt.Debouncer,this.reloadDebouncer=new Rt.Debouncer(500),this.apiProvider=r??(()=>Tt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Qt.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",()=>ic(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Dr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},nc=oo.build();var Lt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ir=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Lt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ue=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},G=class extends Pt.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=nc,this.contextRoot=new Ir}render(){return oc.html`
920
920
  <slot></slot>
921
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ur.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};K.elementDefinitions={};K.styles=zl;le([(0,ye.property)()],K.prototype,"baseUrl",void 0);le([(0,ye.property)()],K.prototype,"tenantId",void 0);le([(0,ye.property)()],K.prototype,"apiIntegrationIdentifier",void 0);le([(0,ye.property)()],K.prototype,"apiIntegrationAppVersion",void 0);le([(0,ye.property)()],K.prototype,"uiLocale",void 0);le([(0,Mt.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);le([(0,Mt.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"editorMode",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"noCustom",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);le([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"withManualResources",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);le([(0,ye.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);le([(0,Mt.jsonProperty)([])],K.prototype,"messageContexts",void 0);le([(0,Mt.jsonProperty)(void 0)],K.prototype,"session",void 0);var Yl=f(E());var ql={"ft-app-context":K};(0,Yl.customElements)(ql);var Xl=f(te());var eo=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},dr=new eo;var id=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Vr=Symbol("i18nAttributes"),Zl=Symbol("i18nListAttributes"),Jl=Symbol("i18nProperties"),Ni=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),ki=(0,pr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Ri:ur}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(dr.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[Vr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Zl])===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[Jl])===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[Ni].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[Ni].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ni].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(o=>o()),this[Br].clear()}}return e=Ni,r=Br,id([(0,Xl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Di=class extends ki(pr.FtLitElement){},Ii=class extends ki(pr.FtLitElementRedux){};var Ql=f(E());var to=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?dr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},nd=new to;var ec=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ql.hasChanged,converter:dr,...e}),r[Vr]=(n=r[Vr])!==null&&n!==void 0?n:new Map,r[Vr].set(i,t??{})};var Mi=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Ri:ur}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var tc=f(F());var rc=tc.css`
922
- `;var $i=f(F()),Ui=f(te()),Hi=f(E());var Fr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Fe=class extends Ii{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":$i.nothing:$i.html`
921
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>rr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=rc;ue([(0,ve.property)()],G.prototype,"baseUrl",void 0);ue([(0,ve.property)()],G.prototype,"tenantId",void 0);ue([(0,ve.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ue([(0,ve.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ue([(0,ve.property)()],G.prototype,"uiLocale",void 0);ue([(0,Pt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ue([(0,Pt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"editorMode",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"noCustom",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ue([(0,ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ue([(0,ve.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ue([(0,Pt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ue([(0,Pt.jsonProperty)(void 0)],G.prototype,"session",void 0);var ac=f(S());var sc={"ft-app-context":G};(0,ac.customElements)(sc);var lc=f(re());var so=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ir=new so;var Od=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},$r=Symbol("i18nAttributes"),cc=Symbol("i18nListAttributes"),uc=Symbol("i18nProperties"),zi=Symbol("i18nContexts"),Mr=Symbol("i18nUnsubs"),Ki=(0,nr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hi:rr}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(ir.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[$r])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[cc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[uc])===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[zi].set(l,{isCustomContext:a}),this[Mr].has(l)||this[Mr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[zi].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zi].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Mr].forEach(o=>o()),this[Mr].clear()}}return e=zi,r=Mr,Od([(0,lc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ji=class extends Ki(nr.FtLitElement){},Wi=class extends Ki(nr.FtLitElementRedux){};var dc=f(S());var ao=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ir.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Rd=new ao;var pc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:dc.hasChanged,converter:ir,...e}),r[$r]=(n=r[$r])!==null&&n!==void 0?n:new Map,r[$r].set(i,t??{})};var Gi=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hi:rr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var fc=f(z());var hc=fc.css`
922
+ `;var qi=f(z()),Yi=f(re()),Xi=f(S());var Ur=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Fe=class extends Wi{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":qi.nothing:qi.html`
923
923
  <span class="ft-i18n">
924
924
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
925
925
  </span>
926
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Fe.elementDefinitions={};Fe.styles=rc;Fr([(0,Hi.redux)()],Fe.prototype,"editorMode",void 0);Fr([(0,Ui.property)()],Fe.prototype,"context",void 0);Fr([(0,Ui.property)()],Fe.prototype,"key",void 0);Fr([(0,Hi.jsonProperty)([])],Fe.prototype,"args",void 0);Fr([(0,Ui.property)()],Fe.prototype,"defaultMessage",void 0);var nc=f(E());var ic={"ft-i18n":Fe};(0,nc.customElements)(ic);var je=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ne=class extends Di{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 Me.Debouncer,this.revealDebouncer=new Me.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 oc.html`
926
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Fe.elementDefinitions={};Fe.styles=hc;Ur([(0,Xi.redux)()],Fe.prototype,"editorMode",void 0);Ur([(0,Yi.property)()],Fe.prototype,"context",void 0);Ur([(0,Yi.property)()],Fe.prototype,"key",void 0);Ur([(0,Xi.jsonProperty)([])],Fe.prototype,"args",void 0);Ur([(0,Yi.property)()],Fe.prototype,"defaultMessage",void 0);var gc=f(S());var mc={"ft-i18n":Fe};(0,gc.customElements)(mc);var ze=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},oe=class extends ji{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 Me.Debouncer,this.revealDebouncer=new Me.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 yc.html`
927
927
  <div part="container"
928
928
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
929
929
  <slot part="slot"></slot>
@@ -932,13 +932,13 @@
932
932
  popover="manual">
933
933
  <div part="tooltip-content" class="ft-tooltip--content">
934
934
  <slot name="text"></slot>
935
- <ft-typography variant="${Ee.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
935
+ <ft-typography variant="${Ae.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
936
936
  ${(r=this.text)===null||r===void 0?void 0:r.message}
937
937
  </ft-typography>
938
938
  </div>
939
939
  </div>
940
940
  </div>
941
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&ta(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 ${Me.designSystemVariables.transitionDuration}, left ${Me.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Me.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ne.elementDefinitions={"ft-typography":re};ne.styles=Ts;je([ec()],ne.prototype,"text",void 0);je([(0,$e.property)({type:Boolean})],ne.prototype,"manual",void 0);je([(0,$e.property)({type:Boolean})],ne.prototype,"inline",void 0);je([(0,Me.numberProperty)()],ne.prototype,"delay",void 0);je([(0,$e.property)()],ne.prototype,"position",void 0);je([(0,Me.jsonProperty)([])],ne.prototype,"ignoreMatchingElements",void 0);je([(0,$e.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);je([(0,$e.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);je([(0,$e.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);je([(0,$e.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);je([(0,$e.state)()],ne.prototype,"visible",void 0);var ac=f(E());var sc={"ft-tooltip":ne};(0,ac.customElements)(sc);var lc=f(F()),jr=f(E()),$t={color:jr.FtCssVariableFactory.extend("--ft-loader-color","",jr.designSystemVariables.colorPrimary),size:jr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},cc=lc.css`
941
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&aa(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 ${Me.designSystemVariables.transitionDuration}, left ${Me.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Me.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};oe.elementDefinitions={"ft-typography":ie};oe.styles=Ds;ze([pc()],oe.prototype,"text",void 0);ze([(0,$e.property)({type:Boolean})],oe.prototype,"manual",void 0);ze([(0,$e.property)({type:Boolean})],oe.prototype,"inline",void 0);ze([(0,Me.numberProperty)()],oe.prototype,"delay",void 0);ze([(0,$e.property)()],oe.prototype,"position",void 0);ze([(0,Me.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);ze([(0,$e.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);ze([(0,$e.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);ze([(0,$e.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);ze([(0,$e.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);ze([(0,$e.state)()],oe.prototype,"visible",void 0);var xc=f(S());var bc={"ft-tooltip":oe};(0,xc.customElements)(bc);var vc=f(z()),Vr=f(S()),Nt={color:Vr.FtCssVariableFactory.extend("--ft-loader-color","",Vr.designSystemVariables.colorPrimary),size:Vr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Sc=vc.css`
942
942
  :host {
943
943
  line-height: 0;
944
944
  }
@@ -947,8 +947,8 @@
947
947
  display: inline-block;
948
948
  position: relative;
949
949
 
950
- width: ${$t.size};
951
- height: ${$t.size};
950
+ width: ${Nt.size};
951
+ height: ${Nt.size};
952
952
  }
953
953
 
954
954
  .ft-loader div {
@@ -957,7 +957,7 @@
957
957
  width: 25%;
958
958
  height: 25%;
959
959
  border-radius: 50%;
960
- background: ${$t.color};
960
+ background: ${Nt.color};
961
961
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
962
962
  }
963
963
 
@@ -1004,17 +1004,17 @@
1004
1004
  transform: translate(0, 0);
1005
1005
  }
1006
1006
  100% {
1007
- transform: translate(calc(0.35 * ${$t.size}), 0);
1007
+ transform: translate(calc(0.35 * ${Nt.size}), 0);
1008
1008
  }
1009
1009
  }
1010
- `;var uc=f(F()),dc=f(E());var Ut=class extends dc.FtLitElement{render(){return uc.html`
1010
+ `;var Ec=f(z()),Ac=f(S());var Dt=class extends Ac.FtLitElement{render(){return Ec.html`
1011
1011
  <div class="ft-loader">
1012
1012
  <div></div>
1013
1013
  <div></div>
1014
1014
  <div></div>
1015
1015
  <div></div>
1016
1016
  </div>
1017
- `}};Ut.styles=cc;var fc=f(E());var pc={"ft-loader":Ut};(0,fc.customElements)(pc);var vt=f(F()),Bi=f(nt()),V=f(te());var gc=f(F()),L=f(E());var hc=L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorPrimary),G={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorSurface),borderRadius:L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusL),color:hc,fontSize:L.FtCssVariableFactory.extend("--ft-button-font-size","",ze.fontSize),iconSize:L.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:L.FtCssVariableFactory.extend("--ft-button-ripple-color","",hc),verticalPadding:L.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:L.FtCssVariableFactory.external(L.designSystemVariables.colorOpacityDisabled,"Design system")},mc=L.FtCssVariableFactory.extend("--ft-button-primary-color","",L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorOnPrimary)),ro={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-primary-background-color","",L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorPrimary)),color:mc,rippleColor:L.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",mc)},qe={borderRadius:L.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusM)),verticalPadding:L.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},vc=gc.css`
1017
+ `}};Dt.styles=Sc;var Cc=f(S());var _c={"ft-loader":Dt};(0,Cc.customElements)(_c);var ft=f(z()),Zi=f(it()),F=f(re());var Oc=f(z()),R=f(S());var wc=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),q={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:wc,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",je.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",wc),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},Tc=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),lo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:Tc,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Tc)},qe={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Rc=Oc.css`
1018
1018
  :host {
1019
1019
  display: inline-block;
1020
1020
  max-width: 100%;
@@ -1025,7 +1025,7 @@
1025
1025
  box-shadow: 0px 0px 0px transparent;
1026
1026
  border: 0px solid transparent;
1027
1027
  text-shadow: 0px 0px 0px transparent;
1028
- font-size: ${G.fontSize};
1028
+ font-size: ${q.fontSize};
1029
1029
  text-decoration: none;
1030
1030
  }
1031
1031
 
@@ -1045,7 +1045,7 @@
1045
1045
  }
1046
1046
 
1047
1047
  .ft-button:focus-visible {
1048
- outline: 2px solid ${L.designSystemVariables.colorPrimary};
1048
+ outline: 2px solid ${R.designSystemVariables.colorPrimary};
1049
1049
  outline-offset: 2px;
1050
1050
  }
1051
1051
 
@@ -1059,27 +1059,27 @@
1059
1059
  border: none;
1060
1060
  pointer-events: auto;
1061
1061
 
1062
- --button-internal-line-height: max(calc(${G.fontSize} + 2px), ${G.iconSize});
1063
- --button-internal-color: ${G.color};
1064
- ${(0,L.setVariable)(se.size,G.iconSize)};
1065
- ${(0,L.setVariable)(oe.color,G.rippleColor)};
1066
- ${(0,L.setVariable)(oe.borderRadius,G.borderRadius)};
1062
+ --button-internal-line-height: max(calc(${q.fontSize} + 2px), ${q.iconSize});
1063
+ --button-internal-color: ${q.color};
1064
+ ${(0,R.setVariable)(ae.size,q.iconSize)};
1065
+ ${(0,R.setVariable)(se.color,q.rippleColor)};
1066
+ ${(0,R.setVariable)(se.borderRadius,q.borderRadius)};
1067
1067
 
1068
- border-radius: ${G.borderRadius};
1069
- padding: ${G.verticalPadding} ${G.horizontalPadding};
1070
- background-color: ${G.backgroundColor};
1068
+ border-radius: ${q.borderRadius};
1069
+ padding: ${q.verticalPadding} ${q.horizontalPadding};
1070
+ background-color: ${q.backgroundColor};
1071
1071
  color: var(--button-internal-color);
1072
1072
  }
1073
1073
 
1074
1074
  .ft-button.ft-button--outlined {
1075
1075
  border: 1px solid var(--button-internal-color);
1076
- padding: calc(${G.verticalPadding} - 1px) calc(${G.horizontalPadding} - 1px);
1076
+ padding: calc(${q.verticalPadding} - 1px) calc(${q.horizontalPadding} - 1px);
1077
1077
  }
1078
1078
 
1079
1079
  .ft-button.ft-button--dense {
1080
1080
  padding: ${qe.verticalPadding} ${qe.horizontalPadding};
1081
1081
  border-radius: ${qe.borderRadius};
1082
- ${(0,L.setVariable)(oe.borderRadius,qe.borderRadius)};
1082
+ ${(0,R.setVariable)(se.borderRadius,qe.borderRadius)};
1083
1083
  }
1084
1084
 
1085
1085
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -1091,7 +1091,7 @@
1091
1091
  }
1092
1092
 
1093
1093
  .ft-button--round {
1094
- border-radius: calc(var(--button-internal-line-height) / 2 + ${G.verticalPadding});
1094
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${q.verticalPadding});
1095
1095
  }
1096
1096
 
1097
1097
  .ft-button--round.ft-button--dense {
@@ -1100,13 +1100,13 @@
1100
1100
 
1101
1101
  .ft-button[disabled] {
1102
1102
  filter: grayscale(1);
1103
- opacity: ${G.opacityDisabled};
1103
+ opacity: ${q.opacityDisabled};
1104
1104
  }
1105
1105
 
1106
1106
  .ft-button.ft-button--primary {
1107
- background-color: ${ro.backgroundColor};
1108
- --button-internal-color: ${ro.color};
1109
- ${(0,L.setVariable)(oe.color,ro.rippleColor)};
1107
+ background-color: ${lo.backgroundColor};
1108
+ --button-internal-color: ${lo.color};
1109
+ ${(0,R.setVariable)(se.color,lo.rippleColor)};
1110
1110
  }
1111
1111
 
1112
1112
  .ft-button--label {
@@ -1115,9 +1115,9 @@
1115
1115
  white-space: nowrap;
1116
1116
  text-overflow: ellipsis;
1117
1117
  display: block;
1118
- margin: 0 ${G.iconPadding};
1119
- ${(0,L.setVariable)(ze.fontSize,"1em")};
1120
- ${(0,L.setVariable)(ze.lineHeight,"var(--button-internal-line-height)")};
1118
+ margin: 0 ${q.iconPadding};
1119
+ ${(0,R.setVariable)(je.fontSize,"1em")};
1120
+ ${(0,R.setVariable)(je.lineHeight,"var(--button-internal-line-height)")};
1121
1121
  }
1122
1122
 
1123
1123
  .ft-button--dense .ft-button--label {
@@ -1134,8 +1134,8 @@
1134
1134
  }
1135
1135
 
1136
1136
  .ft-button--label[hidden] + [part="icon"] {
1137
- margin: 0 calc(${G.horizontalPadding} * -1);
1138
- padding: 0 ${G.verticalPadding};
1137
+ margin: 0 calc(${q.horizontalPadding} * -1);
1138
+ padding: 0 ${q.verticalPadding};
1139
1139
  }
1140
1140
 
1141
1141
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -1148,51 +1148,51 @@
1148
1148
  }
1149
1149
 
1150
1150
  ft-loader {
1151
- ${(0,L.setVariable)($t.size,G.iconSize)};
1152
- ${(0,L.setVariable)($t.color,"var(--button-internal-color)")};
1151
+ ${(0,R.setVariable)(Nt.size,q.iconSize)};
1152
+ ${(0,R.setVariable)(Nt.color,"var(--button-internal-color)")};
1153
1153
  }
1154
- `;var z=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},$=class t extends(0,Ye.toFtFormComponent)(Ye.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ye.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=vt.html`
1154
+ `;var K=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},$=class t extends(0,Ye.toFtFormComponent)(Ye.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ye.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=ft.html`
1155
1155
  <ft-ripple part="ripple"
1156
1156
  ?disabled=${this.isDisabled()}
1157
1157
  ?activated=${this.activated}
1158
1158
  ></ft-ripple>
1159
1159
  <ft-typography part="label"
1160
- variant="${Ee.button}"
1160
+ variant="${Ae.button}"
1161
1161
  element="span"
1162
- class="${(0,Bi.classMap)(n)}">
1162
+ class="${(0,Zi.classMap)(n)}">
1163
1163
  <slot></slot>
1164
1164
  </ft-typography>
1165
1165
  ${this.resolveIcon()}
1166
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?vt.html`
1166
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?ft.html`
1167
1167
  <a href="${s}"
1168
1168
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1169
1169
  part="button"
1170
- class="${(0,Bi.classMap)(this.buttonClasses)}"
1171
- aria-label="${ue((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
1170
+ class="${(0,Zi.classMap)(this.buttonClasses)}"
1171
+ aria-label="${pe((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
1172
1172
  ?disabled=${this.isDisabled()}>
1173
1173
  ${o}
1174
1174
  </a>
1175
- `:vt.html`
1175
+ `:ft.html`
1176
1176
  <button part="button"
1177
- class="${(0,Bi.classMap)(this.buttonClasses)}"
1178
- aria-label="${ue((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
1179
- aria-haspopup="${ue(this.ariaHasPopup)}"
1180
- aria-pressed="${ue(this.ariaPressed)}"
1177
+ class="${(0,Zi.classMap)(this.buttonClasses)}"
1178
+ aria-label="${pe((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
1179
+ aria-haspopup="${pe(this.ariaHasPopup)}"
1180
+ aria-pressed="${pe(this.ariaPressed)}"
1181
1181
  ?disabled=${this.isDisabled()}>
1182
1182
  ${o}
1183
1183
  </button>
1184
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?vt.html`
1184
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?ft.html`
1185
1185
  <ft-tooltip part="tooltip"
1186
1186
  text="${this.label}"
1187
1187
  position="${this.tooltipPosition}">
1188
1188
  ${e}
1189
1189
  </ft-tooltip>
1190
- `:e}resolveIcon(){return this.loading?vt.html`
1191
- <ft-loader part="loader icon"></ft-loader> `:this.icon?vt.html`
1190
+ `:e}resolveIcon(){return this.loading?ft.html`
1191
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?ft.html`
1192
1192
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1193
- `:vt.html`
1193
+ `:ft.html`
1194
1194
  <slot part="icon" name="icon"></slot>
1195
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};$.elementDefinitions={"ft-ripple":H,"ft-tooltip":ne,"ft-icon":Y,"ft-loader":Ut,"ft-typography":re};$.styles=[Ye.safariEllipsisFix,vc,Ye.noTextSelect];$.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:$.labelsObserver.unobserve(e.target)}});z([(0,V.property)({type:Boolean})],$.prototype,"primary",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"outlined",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"dense",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"round",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"disabled",void 0);z([(0,V.property)()],$.prototype,"icon",void 0);z([(0,V.property)()],$.prototype,"iconVariant",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);z([(0,V.property)()],$.prototype,"label",void 0);z([(0,V.property)()],$.prototype,"type",void 0);z([(0,V.property)()],$.prototype,"href",void 0);z([(0,V.property)()],$.prototype,"target",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"loading",void 0);z([(0,V.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);z([(0,V.property)()],$.prototype,"ariaHasPopup",void 0);z([(0,V.property)({attribute:"aria-pressed"})],$.prototype,"ariaPressed",void 0);z([(0,V.property)()],$.prototype,"tooltipPosition",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);z([(0,V.property)({type:Boolean})],$.prototype,"activated",void 0);z([(0,V.query)(".ft-button")],$.prototype,"button",void 0);z([(0,V.query)(".ft-button--label")],$.prototype,"labelContainer",void 0);z([(0,V.state)()],$.prototype,"hasTextContent",void 0);z([(0,V.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);z([(0,V.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var bc=f(E());var yc={"ft-button":$};(0,bc.customElements)(yc);var xc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),be={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:xc,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",Le.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",Le.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",xc),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Sc=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),io={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Sc,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Sc)},Ac={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ec=[D.noTextSelect,zr.css`
1195
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};$.elementDefinitions={"ft-ripple":H,"ft-tooltip":oe,"ft-icon":J,"ft-loader":Dt,"ft-typography":ie};$.styles=[Ye.safariEllipsisFix,Rc,Ye.noTextSelect];$.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:$.labelsObserver.unobserve(e.target)}});K([(0,F.property)({type:Boolean})],$.prototype,"primary",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"outlined",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"dense",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"round",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"disabled",void 0);K([(0,F.property)()],$.prototype,"icon",void 0);K([(0,F.property)()],$.prototype,"iconVariant",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);K([(0,F.property)()],$.prototype,"label",void 0);K([(0,F.property)()],$.prototype,"type",void 0);K([(0,F.property)()],$.prototype,"href",void 0);K([(0,F.property)()],$.prototype,"target",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"loading",void 0);K([(0,F.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);K([(0,F.property)()],$.prototype,"ariaHasPopup",void 0);K([(0,F.property)({attribute:"aria-pressed"})],$.prototype,"ariaPressed",void 0);K([(0,F.property)()],$.prototype,"tooltipPosition",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);K([(0,F.property)({type:Boolean})],$.prototype,"activated",void 0);K([(0,F.query)(".ft-button")],$.prototype,"button",void 0);K([(0,F.query)(".ft-button--label")],$.prototype,"labelContainer",void 0);K([(0,F.state)()],$.prototype,"hasTextContent",void 0);K([(0,F.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);K([(0,F.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var Pc=f(S());var Lc={"ft-button":$};(0,Pc.customElements)(Lc);var Nc=N.FtCssVariableFactory.extend("--ft-chip-color","",N.designSystemVariables.colorOnSurface),Se={backgroundColor:N.FtCssVariableFactory.extend("--ft-chip-background-color","",N.designSystemVariables.colorSurface),color:Nc,fontSize:N.FtCssVariableFactory.extend("--ft-chip-font-size","",Pe.fontSize),fontWeight:N.FtCssVariableFactory.extend("--ft-chip-font-weight","",Pe.fontWeight),iconSize:N.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:N.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:N.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nc),horizontalPadding:N.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:N.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:N.FtCssVariableFactory.extend("--ft-chip-border-color","",N.designSystemVariables.colorOutline),opacityDisabled:N.FtCssVariableFactory.external(N.designSystemVariables.colorOpacityDisabled,"Design system")},Dc=N.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",N.FtCssVariableFactory.extend("--ft-chip-color","",N.designSystemVariables.colorOnPrimary)),co={backgroundColor:N.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",N.FtCssVariableFactory.extend("--ft-chip-background-color","",N.designSystemVariables.colorPrimary)),color:Dc,rippleColor:N.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Dc)},kc={horizontalPadding:N.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:N.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ic=[N.noTextSelect,Hr.css`
1196
1196
  :host {
1197
1197
  display: inline-block;
1198
1198
  max-width: 100%;
@@ -1208,21 +1208,21 @@
1208
1208
  box-sizing: border-box;
1209
1209
  pointer-events: auto;
1210
1210
 
1211
- --chip-internal-font-size: ${be.fontSize};
1212
- --chip-internal-font-weight: ${be.fontWeight};
1211
+ --chip-internal-font-size: ${Se.fontSize};
1212
+ --chip-internal-font-weight: ${Se.fontWeight};
1213
1213
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1214
- ${(0,D.setVariable)(se.size,be.iconSize)};
1215
- --chip-internal-vertical-padding: ${be.verticalPadding};
1216
- --chip-internal-horizontal-padding: ${be.horizontalPadding};
1214
+ ${(0,N.setVariable)(ae.size,Se.iconSize)};
1215
+ --chip-internal-vertical-padding: ${Se.verticalPadding};
1216
+ --chip-internal-horizontal-padding: ${Se.horizontalPadding};
1217
1217
  --chip-internal-icon-padding: 3px;
1218
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${be.iconSize});
1218
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Se.iconSize});
1219
1219
 
1220
- border: 1px solid ${be.borderColor};
1221
- color: ${be.color};
1222
- ${(0,D.setVariable)(oe.color,be.rippleColor)};
1223
- border-radius: var(${(0,zr.unsafeCSS)(be.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1220
+ border: 1px solid ${Se.borderColor};
1221
+ color: ${Se.color};
1222
+ ${(0,N.setVariable)(se.color,Se.rippleColor)};
1223
+ border-radius: var(${(0,Hr.unsafeCSS)(Se.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1224
1224
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1225
- background-color: ${be.backgroundColor};
1225
+ background-color: ${Se.backgroundColor};
1226
1226
  line-height: var(--chip-internal-content-height);
1227
1227
  }
1228
1228
 
@@ -1232,28 +1232,28 @@
1232
1232
 
1233
1233
  .ft-chip--dense {
1234
1234
  --chip-internal-icon-padding: 3px;
1235
- --chip-internal-vertical-padding: ${Ac.verticalPadding};
1236
- --chip-internal-horizontal-padding: ${Ac.horizontalPadding};
1235
+ --chip-internal-vertical-padding: ${kc.verticalPadding};
1236
+ --chip-internal-horizontal-padding: ${kc.horizontalPadding};
1237
1237
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1238
1238
  }
1239
1239
 
1240
1240
  .ft-chip--no-content {
1241
- --chip-internal-horizontal-padding: ${be.horizontalPadding.get(zr.css`var(--chip-internal-vertical-padding)`)};
1241
+ --chip-internal-horizontal-padding: ${Se.horizontalPadding.get(Hr.css`var(--chip-internal-vertical-padding)`)};
1242
1242
  }
1243
1243
 
1244
1244
  .ft-chip--disabled {
1245
1245
  cursor: default;
1246
1246
  pointer-events: none;
1247
1247
  filter: grayscale(1);
1248
- opacity: ${be.opacityDisabled};
1248
+ opacity: ${Se.opacityDisabled};
1249
1249
  }
1250
1250
 
1251
1251
  .ft-chip--highlighted {
1252
1252
  border: none;
1253
1253
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1254
- background-color: ${io.backgroundColor};
1255
- ${(0,D.setVariable)(oe.color,io.rippleColor)};
1256
- color: ${io.color};
1254
+ background-color: ${co.backgroundColor};
1255
+ ${(0,N.setVariable)(se.color,co.rippleColor)};
1256
+ color: ${co.color};
1257
1257
  }
1258
1258
 
1259
1259
  .ft-chip--clickable {
@@ -1262,7 +1262,7 @@
1262
1262
  }
1263
1263
 
1264
1264
  .ft-chip:focus {
1265
- outline: 2px solid ${D.designSystemVariables.colorPrimary};
1265
+ outline: 2px solid ${N.designSystemVariables.colorPrimary};
1266
1266
  outline-offset: 2px;
1267
1267
  }
1268
1268
 
@@ -1284,9 +1284,9 @@
1284
1284
  }
1285
1285
 
1286
1286
  .ft-chip--icon-button {
1287
- ${(0,D.setVariable)(G.iconSize,be.iconSize)};
1288
- ${(0,D.setVariable)(G.horizontalPadding,"var(--chip-internal-icon-padding)")};
1289
- ${(0,D.setVariable)(G.verticalPadding,"var(--chip-internal-icon-padding)")};
1287
+ ${(0,N.setVariable)(q.iconSize,Se.iconSize)};
1288
+ ${(0,N.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1289
+ ${(0,N.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1290
1290
  margin: calc((-1) * var(--chip-internal-icon-padding));
1291
1291
  }
1292
1292
 
@@ -1294,9 +1294,9 @@
1294
1294
  vertical-align: bottom;
1295
1295
  display: block;
1296
1296
  margin: 0 var(--chip-internal-horizontal-padding);
1297
- ${(0,D.setVariable)(Le.fontSize,"var(--chip-internal-font-size)")};
1298
- ${(0,D.setVariable)(Le.fontWeight,"var(--chip-internal-font-weight)")};
1299
- ${(0,D.setVariable)(Le.lineHeight,"var(--chip-internal-content-height)")};
1297
+ ${(0,N.setVariable)(Pe.fontSize,"var(--chip-internal-font-size)")};
1298
+ ${(0,N.setVariable)(Pe.fontWeight,"var(--chip-internal-font-weight)")};
1299
+ ${(0,N.setVariable)(Pe.lineHeight,"var(--chip-internal-content-height)")};
1300
1300
  }
1301
1301
 
1302
1302
  .ft-chip--safari-fix .ft-chip--label {
@@ -1332,8 +1332,8 @@
1332
1332
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1333
1333
  order: -1;
1334
1334
  }
1335
- `];var he=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Fi=class extends CustomEvent{constructor(){super("icon-click")}},q=class extends fr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fr.isSafari};return Vi.html`
1336
- <div class="${(0,Cc.classMap)(r)}"
1335
+ `];var ge=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qi=class extends CustomEvent{constructor(){super("icon-click")}},Y=class extends or.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":or.isSafari};return Ji.html`
1336
+ <div class="${(0,Mc.classMap)(r)}"
1337
1337
  aria-label="${this.getLabel()}"
1338
1338
  tabindex="${this.interactionsOnChip?0:-1}"
1339
1339
  @keyup=${this.onKeyUp}
@@ -1344,7 +1344,7 @@
1344
1344
  </ft-typography>
1345
1345
  ${this.internalIcon?this.renderIcon():null}
1346
1346
  </div>
1347
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Vi.html`
1347
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Ji.html`
1348
1348
  <ft-button round
1349
1349
  class="ft-chip--icon-button"
1350
1350
  @click=${this.onIconClick}
@@ -1355,12 +1355,12 @@
1355
1355
  part="icon-button"
1356
1356
  ?hideTooltip=${this.hideIconTooltip}
1357
1357
  ></ft-button>
1358
- `:Vi.html`
1358
+ `:Ji.html`
1359
1359
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1360
1360
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1361
1361
  </div>
1362
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Fi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Fi))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,fr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};q.elementDefinitions={"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-button":$};q.styles=Ec;he([(0,ce.property)({type:Boolean})],q.prototype,"highlighted",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"removable",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"disabled",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"clickable",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"iconClickable",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"dense",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"multiLine",void 0);he([(0,ce.property)()],q.prototype,"label",void 0);he([(0,ce.property)()],q.prototype,"iconLabel",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"hideIconTooltip",void 0);he([(0,ce.property)()],q.prototype,"icon",void 0);he([(0,ce.property)()],q.prototype,"iconVariant",void 0);he([(0,ce.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);he([(0,ce.property)()],q.prototype,"typographyVariant",void 0);he([(0,ce.query)("ft-typography slot")],q.prototype,"slottedContent",void 0);var Oc=f(E());var wc={"ft-chip":q};(0,Oc.customElements)(wc);var Ht=Mi.build("ftCombobox"),Tc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},I=class extends ki(_e.FtLitElement){get value(){return this._value||""}set value(e){let r=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",r)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=()=>{let e=this.input.value,r=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&r&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var r;e.kind==="new"?this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(Ht,Tc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new _e.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},r={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return me.html`
1363
- <div class="${(0,ji.classMap)(e)}">
1362
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Qi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Qi))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,or.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":H,"ft-typography":ie,"ft-icon":J,"ft-button":$};Y.styles=Ic;ge([(0,de.property)({type:Boolean})],Y.prototype,"highlighted",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"removable",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"disabled",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"clickable",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"dense",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"multiLine",void 0);ge([(0,de.property)()],Y.prototype,"label",void 0);ge([(0,de.property)()],Y.prototype,"iconLabel",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);ge([(0,de.property)()],Y.prototype,"icon",void 0);ge([(0,de.property)()],Y.prototype,"iconVariant",void 0);ge([(0,de.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ge([(0,de.property)()],Y.prototype,"typographyVariant",void 0);ge([(0,de.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Uc=f(S());var $c={"ft-chip":Y};(0,Uc.customElements)($c);var kt=Gi.build("ftCombobox"),Vc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},D=class extends Ki(Re.FtLitElement){get value(){return this._value||""}set value(e){let r=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",r)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=()=>{let e=this.input.value,r=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&r&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var r;e.kind==="new"?this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(kt,Vc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Re.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},r={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return ye.html`
1363
+ <div class="${(0,en.classMap)(e)}">
1364
1364
  <div class="ft-combobox--main-panel"
1365
1365
  @focusout=${this.onComboboxBlur}>
1366
1366
  <ft-input-label
@@ -1371,7 +1371,7 @@
1371
1371
  ?error=${this.error}>
1372
1372
  </ft-input-label>
1373
1373
  <div class="ft-combobox--input-panel">
1374
- ${this.outlined?me.nothing:me.html`
1374
+ ${this.outlined?ye.nothing:ye.html`
1375
1375
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1376
1376
  `}
1377
1377
  <input
@@ -1385,11 +1385,11 @@
1385
1385
  aria-expanded="${this.isOpen}"
1386
1386
  aria-controls="combobox-listbox"
1387
1387
  aria-activedescendant="${this.getActiveDescendantId()}"
1388
- aria-label="${ue(this.label)}"
1389
- aria-describedby="${ue(this.helper?"helper":void 0)}"
1388
+ aria-label="${pe(this.label)}"
1389
+ aria-describedby="${pe(this.helper?"helper":void 0)}"
1390
1390
  aria-invalid="${this.error}"
1391
- name="${ue(this.name)}"
1392
- maxlength="${ue(this.maxLength)}"
1391
+ name="${pe(this.name)}"
1392
+ maxlength="${pe(this.maxLength)}"
1393
1393
  ?disabled=${this.disabled}
1394
1394
  .value=${this.value}
1395
1395
  @input=${this.onComboboxInput}
@@ -1403,32 +1403,32 @@
1403
1403
  <div class="sr-only" aria-live="polite" aria-atomic="true">
1404
1404
  ${this.ariaLiveMessage||this.renderLiveText()}
1405
1405
  </div>
1406
- ${yr(this.visibleSuggestions.length>0,()=>me.html`
1406
+ ${dr(this.visibleSuggestions.length>0,()=>ye.html`
1407
1407
  <ul
1408
1408
  id="combobox-listbox"
1409
- class="${(0,ji.classMap)(r)}"
1409
+ class="${(0,en.classMap)(r)}"
1410
1410
  role="listbox"
1411
- aria-multiselectable="${ue(this.multiValued)}"
1411
+ aria-multiselectable="${pe(this.multiValued)}"
1412
1412
  aria-label="${this.label||"Options"}"
1413
1413
  data-visible="${this.isOpen}"
1414
1414
  >
1415
- ${(0,no.repeat)(this.visibleSuggestions,i=>i.id,(i,n)=>this.renderSuggestion(i,n))}
1415
+ ${(0,uo.repeat)(this.visibleSuggestions,i=>i.id,(i,n)=>this.renderSuggestion(i,n))}
1416
1416
  </ul>`)}
1417
1417
 
1418
1418
  </div>
1419
- ${this.helper?me.html`
1419
+ ${this.helper?ye.html`
1420
1420
  <ft-typography class="ft-combobox--helper-text" variant="caption" id="helper" role="alert">
1421
1421
  ${this.helper}
1422
1422
  </ft-typography>
1423
- `:me.nothing}
1424
- ${yr(this.multiValued&&this.labels.length>0,()=>me.html`
1423
+ `:ye.nothing}
1424
+ ${dr(this.multiValued&&this.labels.length>0,()=>ye.html`
1425
1425
  <div class="ft-combobox--chips-container" role="group" aria-label="Selected values">
1426
- ${(0,no.repeat)(this.labels,i=>i,i=>me.html`
1426
+ ${(0,uo.repeat)(this.labels,i=>i,i=>ye.html`
1427
1427
  <ft-chip removable
1428
1428
  dense
1429
1429
  hideIconTooltip
1430
1430
  label="${i}"
1431
- iconLabel="${Ht.messages.removeValueLabel(i)}"
1431
+ iconLabel="${kt.messages.removeValueLabel(i)}"
1432
1432
  @icon-click=${()=>this.removeFromSelection(i)}>
1433
1433
  ${i}
1434
1434
  </ft-chip>
@@ -1436,12 +1436,12 @@
1436
1436
  </div>
1437
1437
  `)}
1438
1438
  </div>
1439
- `}renderIcon(){return this.icon?me.html`
1439
+ `}renderIcon(){return this.icon?ye.html`
1440
1440
  <ft-icon class="ft-combobox--icon"
1441
1441
  .variant=${this.iconVariant}
1442
1442
  .value=${this.icon}
1443
1443
  @click=${()=>{var e,r;(e=this.input)===null||e===void 0||e.click(),(r=this.input)===null||r===void 0||r.focus()}}></ft-icon>
1444
- `:me.nothing}renderSuggestion(e,r){let i=e.kind==="new"&&!!this.suggestionsHelper,n=this.multiValued&&this.labels.includes(e.label),o=r===this.activeIndex,s={"ft-combobox-suggestion":!0,"ft-combobox-suggestion--with-helper":i};return me.html`
1444
+ `:ye.nothing}renderSuggestion(e,r){let i=e.kind==="new"&&!!this.suggestionsHelper,n=this.multiValued&&this.labels.includes(e.label),o=r===this.activeIndex,s={"ft-combobox-suggestion":!0,"ft-combobox-suggestion--with-helper":i};return ye.html`
1445
1445
  <li
1446
1446
  id="${e.kind==="new"?"suggestion-new-value":`option-${r}`}"
1447
1447
  class="ft-combobox--option ${e.kind==="new"?"ft-combobox--option-new-value":""}"
@@ -1452,20 +1452,20 @@
1452
1452
  @pointerdown=${a=>a.preventDefault()}
1453
1453
  @click=${()=>this.onSuggestionClick(e)}
1454
1454
  >
1455
- <div class="${(0,ji.classMap)(s)}" tabindex="-1">
1455
+ <div class="${(0,en.classMap)(s)}" tabindex="-1">
1456
1456
  <ft-ripple ?primary=${n} ?activated=${n}></ft-ripple>
1457
- ${i?me.html`
1457
+ ${i?ye.html`
1458
1458
  <ft-typography aria-label="${this.suggestionsHelper}," class="ft-combobox-suggestion--helper-text"
1459
- variant="${Ee.caption}">
1459
+ variant="${Ae.caption}">
1460
1460
  ${this.suggestionsHelper}
1461
1461
  </ft-typography>
1462
- `:me.nothing}
1463
- <ft-typography part="label" variant="${Ee.body1}" class="ft-combobox-suggestion--label">
1462
+ `:ye.nothing}
1463
+ <ft-typography part="label" variant="${Ae.body1}" class="ft-combobox-suggestion--label">
1464
1464
  ${e.label}
1465
1465
  </ft-typography>
1466
1466
  </div>
1467
1467
  </li>
1468
- `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let r=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",i=this.multiValued&&this.labels.includes(r);return r!==""&&!this.providedSuggestions.some(n=>n.label===r)&&!i&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?Ht.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let r=(this.filterSuggestions?this.providedSuggestions.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((i,n)=>({id:`regular-${n}`,label:i.label,kind:"regular"}));this.visibleSuggestions=[...r,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,r=!1){var i,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(r){let a=s.kind==="new"?((i=this.input)===null||i===void 0?void 0:i.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var r,i;let n;this.isNewValueSuggestionSelected()?n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector("#option-new-value"):n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,r;let i=(r=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:this._value;this.dispatchEvent(new CustomEvent("change",{detail:i,bubbles:!0,composed:!0}))}addToSelection(e){var r,i;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=Ht.messages.maxValuesReached((r=this.maxValues)!==null&&r!==void 0?r:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(i=a?.value)!==null&&i!==void 0?i:e),this.ariaLiveMessage=Ht.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(r=>r!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=Ht.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(r=>{var i;return(i=this.labelsToValues.get(r))!==null&&i!==void 0?i:r});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,r;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((r=this.input)===null||r===void 0?void 0:r.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let i=this.activeIndex<r-1?this.activeIndex+1:0;this.setActiveSuggestion(i)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0))if(this.listboxHasVisualFocus){let i=this.activeIndex>0?this.activeIndex-1:r-1;this.setActiveSuggestion(i)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(r-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let r=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),r=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),r=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),r=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),r=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),r=!0;break;case"End":{this.moveCaretToEnd(),r=!0;break}}r&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let r=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),r=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":r=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),r=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}r&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};I.styles=[Yt,_e.screenReaderStyles,ws];I.elementDefinitions={"ft-input-label":Ce,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-chip":q};U([(0,B.property)()],I.prototype,"label",void 0);U([(0,B.property)()],I.prototype,"icon",void 0);U([(0,B.property)()],I.prototype,"iconVariant",void 0);U([(0,B.property)()],I.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],I.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],I.prototype,"filterSuggestions",void 0);U([(0,B.property)()],I.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],I.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],I.prototype,"outlined",void 0);U([(0,B.property)()],I.prototype,"placeholder",void 0);U([(0,B.property)()],I.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],I.prototype,"suggestionsProvider",void 0);U([(0,_e.numberProperty)()],I.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],I.prototype,"value",null);U([(0,B.property)({type:Boolean})],I.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],I.prototype,"multiValued",void 0);U([(0,_e.numberProperty)()],I.prototype,"maxValues",void 0);U([(0,_e.numberProperty)()],I.prototype,"maxLength",void 0);U([(0,B.property)()],I.prototype,"labels",void 0);U([(0,B.state)()],I.prototype,"labelsToValues",void 0);U([(0,B.state)()],I.prototype,"filter",void 0);U([(0,B.state)()],I.prototype,"isOpen",void 0);U([(0,B.state)()],I.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],I.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],I.prototype,"providedSuggestions",void 0);U([(0,B.state)()],I.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],I.prototype,"activeIndex",void 0);U([(0,B.state)()],I.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],I.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],I.prototype,"listbox",void 0);U([(0,_e.ignoreComposingEvents)()],I.prototype,"onComboboxKeyDown",null);U([(0,_e.ignoreComposingEvents)()],I.prototype,"onComboboxKeyUp",null);var _c={"ft-combobox":I};(0,Rc.customElements)(_c);})();
1468
+ `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let r=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",i=this.multiValued&&this.labels.includes(r);return r!==""&&!this.providedSuggestions.some(n=>n.label===r)&&!i&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?kt.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let r=(this.filterSuggestions?this.providedSuggestions.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((i,n)=>({id:`regular-${n}`,label:i.label,kind:"regular"}));this.visibleSuggestions=[...r,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,r=!1){var i,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(r){let a=s.kind==="new"?((i=this.input)===null||i===void 0?void 0:i.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var r,i;let n;this.isNewValueSuggestionSelected()?n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector("#option-new-value"):n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,r;let i=(r=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:this._value;this.dispatchEvent(new CustomEvent("change",{detail:i,bubbles:!0,composed:!0}))}addToSelection(e){var r,i;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=kt.messages.maxValuesReached((r=this.maxValues)!==null&&r!==void 0?r:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(i=a?.value)!==null&&i!==void 0?i:e),this.ariaLiveMessage=kt.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(r=>r!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=kt.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(r=>{var i;return(i=this.labelsToValues.get(r))!==null&&i!==void 0?i:r});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,r;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((r=this.input)===null||r===void 0?void 0:r.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let i=this.activeIndex<r-1?this.activeIndex+1:0;this.setActiveSuggestion(i)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0))if(this.listboxHasVisualFocus){let i=this.activeIndex>0?this.activeIndex-1:r-1;this.setActiveSuggestion(i)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(r-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let r=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),r=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),r=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),r=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),r=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),r=!0;break;case"End":{this.moveCaretToEnd(),r=!0;break}}r&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let r=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),r=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":r=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),r=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}r&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};D.styles=[jt,Re.screenReaderStyles,Ps];D.elementDefinitions={"ft-input-label":_e,"ft-ripple":H,"ft-typography":ie,"ft-icon":J,"ft-chip":Y};U([(0,B.property)()],D.prototype,"label",void 0);U([(0,B.property)()],D.prototype,"icon",void 0);U([(0,B.property)()],D.prototype,"iconVariant",void 0);U([(0,B.property)()],D.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],D.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],D.prototype,"filterSuggestions",void 0);U([(0,B.property)()],D.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],D.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],D.prototype,"outlined",void 0);U([(0,B.property)()],D.prototype,"placeholder",void 0);U([(0,B.property)()],D.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],D.prototype,"suggestionsProvider",void 0);U([(0,Re.numberProperty)()],D.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],D.prototype,"value",null);U([(0,B.property)({type:Boolean})],D.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],D.prototype,"multiValued",void 0);U([(0,Re.numberProperty)()],D.prototype,"maxValues",void 0);U([(0,Re.numberProperty)()],D.prototype,"maxLength",void 0);U([(0,B.property)()],D.prototype,"labels",void 0);U([(0,B.state)()],D.prototype,"labelsToValues",void 0);U([(0,B.state)()],D.prototype,"filter",void 0);U([(0,B.state)()],D.prototype,"isOpen",void 0);U([(0,B.state)()],D.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],D.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],D.prototype,"providedSuggestions",void 0);U([(0,B.state)()],D.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],D.prototype,"activeIndex",void 0);U([(0,B.state)()],D.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],D.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],D.prototype,"listbox",void 0);U([(0,Re.ignoreComposingEvents)()],D.prototype,"onComboboxKeyDown",null);U([(0,Re.ignoreComposingEvents)()],D.prototype,"onComboboxKeyUp",null);var Hc={"ft-combobox":D};(0,Bc.customElements)(Hc);})();
1469
1469
  /*! Bundled license information:
1470
1470
 
1471
1471
  lit-html/lit-html.js: