@fluid-topics/ft-combobox 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Pc=Object.create;var so=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var Nc=Object.getOwnPropertyNames;var kc=Object.getPrototypeOf,Ic=Object.prototype.hasOwnProperty;var Vt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Mc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nc(e))!Ic.call(t,n)&&n!==r&&so(t,n,{get:()=>e[n],enumerable:!(i=Dc(e,n))||i.enumerable});return t};var h=(t,e,r)=>(r=t!=null?Pc(kc(t)):{},Mc(e||!t||!t.__esModule?so(r,"default",{value:t,enumerable:!0}):r,t));var E=Vt((sd,ao)=>{ao.exports=ftGlobals.wcUtils});var V=Vt((ad,lo)=>{lo.exports=ftGlobals.lit});var te=Vt((ld,co)=>{co.exports=ftGlobals.litDecorators});var zi=Vt((cd,uo)=>{uo.exports=ftGlobals.litRepeat});var ot=Vt((ud,po)=>{po.exports=ftGlobals.litClassMap});var ds=Vt((xp,us)=>{us.exports=ftGlobals.litUnsafeHTML});var Lc=h(E());var he=h(V()),B=h(te()),oo=h(zi()),ji=h(ot());var Zi=globalThis,zr=Zi.trustedTypes,fo=zr?zr.createPolicy("lit-html",{createHTML:t=>t}):void 0,bo="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,xo="?"+st,$c=`<${xo}>`,St=document,Wr=()=>St.createComment(""),gr=t=>t===null||typeof t!="object"&&typeof t!="function",Ji=Array.isArray,Uc=t=>Ji(t)||typeof t?.[Symbol.iterator]=="function",Wi=`[
1
+ "use strict";(()=>{var Pc=Object.create;var so=Object.defineProperty;var Nc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,kc=Object.prototype.hasOwnProperty;var Vt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Mc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Dc(e))!kc.call(t,n)&&n!==r&&so(t,n,{get:()=>e[n],enumerable:!(i=Nc(e,n))||i.enumerable});return t};var h=(t,e,r)=>(r=t!=null?Pc(Ic(t)):{},Mc(e||!t||!t.__esModule?so(r,"default",{value:t,enumerable:!0}):r,t));var E=Vt((sd,ao)=>{ao.exports=ftGlobals.wcUtils});var V=Vt((ad,lo)=>{lo.exports=ftGlobals.lit});var te=Vt((ld,co)=>{co.exports=ftGlobals.litDecorators});var zi=Vt((cd,uo)=>{uo.exports=ftGlobals.litRepeat});var ot=Vt((ud,po)=>{po.exports=ftGlobals.litClassMap});var ds=Vt((xp,us)=>{us.exports=ftGlobals.litUnsafeHTML});var Lc=h(E());var he=h(V()),B=h(te()),oo=h(zi()),ji=h(ot());var Zi=globalThis,zr=Zi.trustedTypes,fo=zr?zr.createPolicy("lit-html",{createHTML:t=>t}):void 0,bo="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,xo="?"+st,$c=`<${xo}>`,St=document,Wr=()=>St.createComment(""),gr=t=>t===null||typeof t!="object"&&typeof t!="function",Ji=Array.isArray,Uc=t=>Ji(t)||typeof t?.[Symbol.iterator]=="function",Wi=`[
2
2
  \f\r]`,mr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ho=/-->/g,mo=/>/g,bt=RegExp(`>|${Wi}(?:([^\\s"'>=/]+)(${Wi}*=${Wi}*(?:[^
3
3
  \f\r"'\`<>=]|("|')|))|$)`,"g"),go=/'/g,vo=/"/g,So=/^(?:script|style|textarea|title)$/i,Qi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ao=Qi(1),Eo=Qi(2),Co=Qi(3),vr=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),yo=new WeakMap,xt=St.createTreeWalker(St,129);function wo(t,e){if(!Ji(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fo!==void 0?fo.createHTML(e):e}var Hc=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=mr;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===mr?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??mr,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=mr:(s=bt,n=void 0);let f=s===bt&&t[a+1].startsWith("/>")?" ":"";o+=s===mr?l+$c:d>=0?(i.push(c),l.slice(0,d)+bo+l.slice(d)+st+f):l+st+(d===-2?a:f)}return[wo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yr=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]=Hc(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++],f=n.getAttribute(d).split(st),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:f,ctor:m[1]==="."?Gi:m[1]==="?"?qi:m[1]==="@"?Yi:Ft}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(So.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=zr?zr.emptyScript:"";for(let f=0;f<p;f++)n.append(d[f],Wr()),xt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wr())}}}else if(n.nodeType===8)if(n.data===xo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,r){let i=St.createElement("template");return i.innerHTML=e,i}};function jt(t,e,r=t,i){if(e===vr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=gr(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=jt(t,n._$AS(t,e.values),n,i)),e}var Ki=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 Kr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Xi(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++}},Kr=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=jt(this,e,r),gr(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==vr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Uc(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&&gr(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=yr.createElement(wo(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Ki(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 yr(e)),r}k(e){Ji(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(Wr()),this.O(Wr()),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&&e!==this._$AB;){let i=e.nextSibling;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=jt(this,e,r,0),s=!gr(e)||e!==this._$AH&&e!==vr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=jt(this,a[i+l],r,l),c===vr&&(c=this._$AH[l]),s||=!gr(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??"")}},Gi=class extends Ft{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},qi=class extends Ft{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Yi=class extends Ft{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=jt(this,e,r,0)??Z)===vr)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)}},Xi=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){jt(this,e)}};var Bc=Zi.litHtmlPolyfillSupport;Bc?.(yr,Kr),(Zi.litHtmlVersions??=[]).push("3.3.0");var me=t=>t??Z;function br(t,e,r){return t?e(t):r?.(t)}var _e=h(E());var Cs=h(V()),ce=h(E());var Mo=h(V()),j=h(E());var Pe=h(V()),y=h(E()),Oo=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),Qe=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:Qe,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")},zt={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")},Wt={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")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),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")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),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")},Je={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),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","",Qe),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")},Se={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),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")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),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")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),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")},Ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),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`
4
4
  .ft-typography--title {
@@ -64,7 +64,7 @@
64
64
  line-height: ${Se.lineHeight};
65
65
  text-transform: ${Se.textTransform};
66
66
  }
67
- `,Do=Pe.css`
67
+ `,No=Pe.css`
68
68
  .ft-typography--breadcrumb {
69
69
  font-family: ${qt.fontFamily};
70
70
  font-size: ${qt.fontSize};
@@ -73,7 +73,7 @@
73
73
  line-height: ${qt.lineHeight};
74
74
  text-transform: ${qt.textTransform};
75
75
  }
76
- `,No=Pe.css`
76
+ `,Do=Pe.css`
77
77
  .ft-typography--overline {
78
78
  font-family: ${Yt.fontFamily};
79
79
  font-size: ${Yt.fontSize};
@@ -82,7 +82,7 @@
82
82
  line-height: ${Yt.lineHeight};
83
83
  text-transform: ${Yt.textTransform};
84
84
  }
85
- `,ko=Pe.css`
85
+ `,Io=Pe.css`
86
86
  .ft-typography--button {
87
87
  font-family: ${Ke.fontFamily};
88
88
  font-size: ${Ke.fontSize};
@@ -91,7 +91,7 @@
91
91
  line-height: ${Ke.lineHeight};
92
92
  text-transform: ${Ke.textTransform};
93
93
  }
94
- `,Io=Pe.css`
94
+ `,ko=Pe.css`
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
@@ -536,7 +536,7 @@
536
536
  .ft-text-field--with-password ft-icon:hover {
537
537
  cursor: pointer;
538
538
  }
539
- `;var ie=h(V()),k=h(te()),xs=h(zi()),Ss=h(ot());var Ce=h(E());var Xo=Symbol.for(""),Vc=t=>{if(t?.r===Xo)return t?._$litStatic$},en=t=>({_$litStatic$:t,r:Xo});var Yo=new Map,tn=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=Vc(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)},rn=tn(Ao),Pd=tn(Eo),Dd=tn(Co);var nn=h(te()),Jo=h(E());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 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=Ae.body1}render(){return this.element?rn`
539
+ `;var ie=h(V()),I=h(te()),xs=h(zi()),Ss=h(ot());var Ce=h(E());var Xo=Symbol.for(""),Vc=t=>{if(t?.r===Xo)return t?._$litStatic$},en=t=>({_$litStatic$:t,r:Xo});var Yo=new Map,tn=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=Vc(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)},rn=tn(Ao),Pd=tn(Eo),Nd=tn(Co);var nn=h(te()),Jo=h(E());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 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=Ae.body1}render(){return this.element?rn`
540
540
  <${en(this.element)}
541
541
  part="text"
542
542
  class="ft-typography ft-typography--${this.variant}">
@@ -544,7 +544,7 @@
544
544
  </${en(this.element)}>
545
545
  `:rn`
546
546
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
547
- `}};re.styles=[To,_o,Ro,Lo,Xt,Po,Gr,Do,No,ko,Io];Zo([(0,nn.property)()],re.prototype,"element",void 0);Zo([(0,nn.property)()],re.prototype,"variant",void 0);var es=h(E());var Qo={"ft-typography":re};(0,es.customElements)(Qo);var Zr=h(te());var on=h(V()),sn=h(te());var rs=h(ot()),is=h(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 on.html`
547
+ `}};re.styles=[To,_o,Ro,Lo,Xt,Po,Gr,No,Do,Io,ko];Zo([(0,nn.property)()],re.prototype,"element",void 0);Zo([(0,nn.property)()],re.prototype,"variant",void 0);var es=h(E());var Qo={"ft-typography":re};(0,es.customElements)(Qo);var Zr=h(te());var on=h(V()),sn=h(te());var rs=h(ot()),is=h(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 on.html`
548
548
  <div class="${(0,rs.classMap)(this.inputLabelClasses)}">
549
549
  ${br(this.text,()=>on.html`
550
550
  <div class="ft-input-label--text ft-typography--caption">
@@ -605,7 +605,7 @@
605
605
  slot {
606
606
  pointer-events: none;
607
607
  }
608
- `;var bs=h(ot()),Jr=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},ln=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},De=class extends ys.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Er.html`
608
+ `;var bs=h(ot()),Jr=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},ln=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 Er.html`
609
609
  <div class="${(0,bs.classMap)(e)}"
610
610
  tabindex="-1"
611
611
  @keydown=${this.onKeyDown}
@@ -621,7 +621,7 @@
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 ln(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":re,"ft-icon":Y};De.styles=vs;Jr([(0,Ct.property)()],De.prototype,"value",void 0);Jr([(0,Ct.property)()],De.prototype,"helper",void 0);Jr([(0,Ct.query)(".ft-text-field-suggestion")],De.prototype,"container",void 0);Jr([(0,Ct.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},L=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=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`
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 ln(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;Jr([(0,Ct.property)()],Ne.prototype,"value",void 0);Jr([(0,Ct.property)()],Ne.prototype,"helper",void 0);Jr([(0,Ct.query)(".ft-text-field-suggestion")],Ne.prototype,"container",void 0);Jr([(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},L=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=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
625
  <div class="${(0,Ss.classMap)(r)}">
626
626
  <div class="ft-text-field--main-panel"
627
627
  @keydown=${this.handleKeyboardNavigation}
@@ -695,7 +695,7 @@
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 qr(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 Yr(e))):this.dispatchEvent(new Xr(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)}};L.elementDefinitions={"ft-input-label":Ee,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-text-field-suggestion":De};L.styles=[Xt,Ce.noTextInputDefaultClearButton,qo];M([(0,k.property)()],L.prototype,"label",void 0);M([(0,k.property)({noAccessor:!0})],L.prototype,"value",null);M([(0,k.state)()],L.prototype,"dispatchedValue",void 0);M([(0,k.property)()],L.prototype,"helper",void 0);M([(0,k.property)()],L.prototype,"suggestionsHelper",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"disabled",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"error",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"fixedMenuPosition",void 0);M([(0,k.property)()],L.prototype,"prefix",void 0);M([(0,k.property)()],L.prototype,"icon",void 0);M([(0,k.property)()],L.prototype,"name",void 0);M([(0,k.property)()],L.prototype,"type",void 0);M([(0,k.property)()],L.prototype,"passwordHiddenIcon",void 0);M([(0,k.property)()],L.prototype,"passwordRevealedIcon",void 0);M([(0,k.property)()],L.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"filterSuggestions",void 0);M([(0,Ce.numberProperty)()],L.prototype,"maxLength",void 0);M([(0,k.property)({type:Boolean})],L.prototype,"password",void 0);M([(0,k.property)({type:String})],L.prototype,"autocomplete",void 0);M([(0,k.property)({attribute:!1})],L.prototype,"suggestionsProvider",void 0);M([(0,k.state)()],L.prototype,"focused",void 0);M([(0,k.state)()],L.prototype,"inputValid",void 0);M([(0,k.state)()],L.prototype,"hidePassword",void 0);M([(0,k.state)()],L.prototype,"hideSuggestions",void 0);M([(0,k.state)()],L.prototype,"visibleSuggestions",void 0);M([(0,k.state)()],L.prototype,"providedSuggestions",void 0);M([(0,k.query)(".ft-text-field--main-panel")],L.prototype,"mainPanel",void 0);M([(0,k.query)(".ft-text-field--input")],L.prototype,"input",void 0);M([(0,k.query)(".ft-text-field-suggestion--new-value")],L.prototype,"newValueSuggestion",void 0);M([(0,k.query)(".ft-text-field--suggestions")],L.prototype,"suggestionsContainer",void 0);M([(0,k.queryAll)("ft-text-field-suggestion")],L.prototype,"providedSuggestionsInDom",void 0);M([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],L.prototype,"slottedSuggestions",void 0);M([(0,Ce.ignoreComposingEvents)()],L.prototype,"handleInput",null);M([(0,Ce.ignoreComposingEvents)()],L.prototype,"catchComposingEvents",null);var Es=h(E());var As={"ft-text-field":L,"ft-text-field-suggestion":De};(0,Es.customElements)(As);var T={...O,chipGap:ce.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",ce.foundation.spacing1),chipsMarginTop:ce.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",ce.foundation.spacing2),suggestSize:ce.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},ws=Cs.css`
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 qr(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 Yr(e))):this.dispatchEvent(new Xr(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)}};L.elementDefinitions={"ft-input-label":Ee,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-text-field-suggestion":Ne};L.styles=[Xt,Ce.noTextInputDefaultClearButton,qo];M([(0,I.property)()],L.prototype,"label",void 0);M([(0,I.property)({noAccessor:!0})],L.prototype,"value",null);M([(0,I.state)()],L.prototype,"dispatchedValue",void 0);M([(0,I.property)()],L.prototype,"helper",void 0);M([(0,I.property)()],L.prototype,"suggestionsHelper",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"outlined",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"disabled",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"error",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"fixedMenuPosition",void 0);M([(0,I.property)()],L.prototype,"prefix",void 0);M([(0,I.property)()],L.prototype,"icon",void 0);M([(0,I.property)()],L.prototype,"name",void 0);M([(0,I.property)()],L.prototype,"type",void 0);M([(0,I.property)()],L.prototype,"passwordHiddenIcon",void 0);M([(0,I.property)()],L.prototype,"passwordRevealedIcon",void 0);M([(0,I.property)()],L.prototype,"iconVariant",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"filterSuggestions",void 0);M([(0,Ce.numberProperty)()],L.prototype,"maxLength",void 0);M([(0,I.property)({type:Boolean})],L.prototype,"password",void 0);M([(0,I.property)({type:String})],L.prototype,"autocomplete",void 0);M([(0,I.property)({attribute:!1})],L.prototype,"suggestionsProvider",void 0);M([(0,I.state)()],L.prototype,"focused",void 0);M([(0,I.state)()],L.prototype,"inputValid",void 0);M([(0,I.state)()],L.prototype,"hidePassword",void 0);M([(0,I.state)()],L.prototype,"hideSuggestions",void 0);M([(0,I.state)()],L.prototype,"visibleSuggestions",void 0);M([(0,I.state)()],L.prototype,"providedSuggestions",void 0);M([(0,I.query)(".ft-text-field--main-panel")],L.prototype,"mainPanel",void 0);M([(0,I.query)(".ft-text-field--input")],L.prototype,"input",void 0);M([(0,I.query)(".ft-text-field-suggestion--new-value")],L.prototype,"newValueSuggestion",void 0);M([(0,I.query)(".ft-text-field--suggestions")],L.prototype,"suggestionsContainer",void 0);M([(0,I.queryAll)("ft-text-field-suggestion")],L.prototype,"providedSuggestionsInDom",void 0);M([(0,I.queryAssignedElements)({selector:"ft-text-field-suggestion"})],L.prototype,"slottedSuggestions",void 0);M([(0,Ce.ignoreComposingEvents)()],L.prototype,"handleInput",null);M([(0,Ce.ignoreComposingEvents)()],L.prototype,"catchComposingEvents",null);var Es=h(E());var As={"ft-text-field":L,"ft-text-field-suggestion":Ne};(0,Es.customElements)(As);var T={...O,chipGap:ce.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",ce.foundation.spacing1),chipsMarginTop:ce.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",ce.foundation.spacing2),suggestSize:ce.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},ws=Cs.css`
699
699
  *:focus {
700
700
  outline: none;
701
701
  }
@@ -884,7 +884,7 @@
884
884
  .ft-combobox--chips-container ft-chip {
885
885
  flex-shrink: 0;
886
886
  }
887
- `;var Bi=h(V()),ae=h(te()),wc=h(ot()),hr=h(E());var Fr=h(V()),D=h(E());var Be=h(E());var sc=h(V()),He=h(te()),Ue=h(E());var Os=h(V()),ct=h(E()),Cr={distance:ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ct.designSystemVariables.borderRadiusS),maxWidth:ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=Os.css`
887
+ `;var Bi=h(V()),ae=h(te()),wc=h(ot()),hr=h(E());var Fr=h(V()),N=h(E());var Be=h(E());var sc=h(V()),He=h(te()),Ue=h(E());var Os=h(V()),ct=h(E()),Cr={distance:ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ct.designSystemVariables.borderRadiusS),maxWidth:ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=Os.css`
888
888
  .ft-tooltip--container {
889
889
  display: block;
890
890
  }
@@ -915,15 +915,15 @@
915
915
  position: relative;
916
916
  word-break: break-word;
917
917
  }
918
- `;var Rs=["top","right","bottom","left"],_s=["start","end"],un=Rs.reduce((t,e)=>t.concat(e,e+"-"+_s[0],e+"-"+_s[1]),[]),wr=Math.min,ut=Math.max,Or=Math.round;var je=t=>({x:t,y:t}),jc={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(t,e,r){return ut(t,wr(e,r))}function Qr(t,e){return typeof t=="function"?t(e):t}function Zt(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function pn(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function ei(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function hn(t){return pn(ei(t))}function Ls(t,e,r){r===void 0&&(r=!1);let i=dt(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=cn(s)),[s,cn(s)]}function Ps(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function cn(t){let e=Zt(t);return jc[e]+t.slice(e.length)}function Fc(t){return{top:0,right:0,bottom:0,left:0,...t}}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 Ns(t,e,r){let{reference:i,floating:n}=t,o=ei(e),s=hn(e),a=fn(s),l=Zt(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,f;switch(l){case"top":f={x:u,y:i.y-n.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:d};break;case"left":f={x:i.x-n.width,y:d};break;default:f={x:i.x,y:i.y}}switch(dt(e)){case"start":f[s]-=p*(r&&c?-1:1);break;case"end":f[s]+=p*(r&&c?-1:1);break}return f}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:f=0}=Qr(e,t),m=Ds(f),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)),R=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{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)/R.y,bottom:(ee.bottom-x.bottom+m.bottom)/R.y,left:(x.left-ee.left+m.left)/R.x,right:(ee.right-x.right+m.right)/R.x}}var zc=50,Is=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}=Ns(c,i,l),p=i,f=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:R,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=R??d,m[x]={...m[x],...ee},X&&f<zc&&(f++,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}=Ns(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function Wc(t,e,r){return(t?[...r.filter(n=>dt(n)===t),...r.filter(n=>dt(n)!==t)]:r.filter(n=>Zt(n)===n)).filter(n=>t?dt(n)===t||(e?Ps(n)!==n:!1):!0)}var Ms=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=un,autoAlignment:f=!0,...m}=Qr(t,e),g=d!==void 0||p===un?Wc(d||null,f,p):p,b=await l.detectOverflow(e,m),x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=g[x];if(S==null)return{};let _=Ls(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==S)return{reset:{placement:g[0]}};let R=[b[Zt(S)],b[_[0]],b[_[1]]],ee=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:S,overflows:R}],X=g[x+1];if(X)return{data:{index:x+1,overflows:ee},reset:{placement:X}};let it=ee.map(be=>{let Re=dt(be.placement);return[be.placement,Re&&u?be.overflows.slice(0,2).reduce((xe,yt)=>xe+yt,0):be.overflows[0],be.overflows]}).sort((be,Re)=>be[1]-Re[1]),nt=((n=it.filter(be=>be[2].slice(0,dt(be[0])?2:3).every(Re=>Re<=0))[0])==null?void 0:n[0])||it[0][0];return nt!==a?{data:{index:x+1,overflows:ee},reset:{placement:nt}}:{}}}};var $s=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:x=>{let{x:S,y:_}=x;return{x:S,y:_}}},...c}=Qr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=ei(Zt(n)),f=pn(p),m=u[f],g=u[p];if(s){let x=f==="y"?"top":"left",S=f==="y"?"bottom":"right",_=m+d[x],R=m-d[S];m=dn(_,m,R)}if(a){let x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",_=g+d[x],R=g-d[S];g=dn(_,g,R)}let b=l.fn({...e,[f]:m,[p]:g});return{...b,data:{x:b.x-r,y:b.y-i,enabled:{[f]:s,[p]:a}}}}}};function ri(){return typeof window<"u"}function Tt(t){return Hs(t)?(t.nodeName||"").toLowerCase():"#document"}function ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ge(t){var e;return(e=(Hs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hs(t){return ri()?t instanceof Node||t instanceof ve(t).Node:!1}function Ne(t){return ri()?t instanceof Element||t instanceof ve(t).Element:!1}function qe(t){return ri()?t instanceof HTMLElement||t instanceof ve(t).HTMLElement:!1}function Us(t){return!ri()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ve(t).ShadowRoot}function Jt(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Bs(t){return/^(table|td|th)$/.test(Tt(t))}function Tr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Kc=/transform|translate|scale|rotate|perspective|filter/,Gc=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",mn;function Qt(t){let e=Ne(t)?ke(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ii()&&(Ot(e.backdropFilter)||Ot(e.filter))||Kc.test(e.willChange||"")||Gc.test(e.contain||"")}function Vs(t){let e=et(t);for(;qe(e)&&!_t(e);){if(Qt(e))return e;if(Tr(e))return null;e=et(e)}return null}function ii(){return mn==null&&(mn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mn}function _t(t){return/^(html|body|#document)$/.test(Tt(t))}function ke(t){return ve(t).getComputedStyle(t)}function _r(t){return Ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Us(t)&&t.host||Ge(t);return Us(e)?e.host:e}function js(t){let e=et(t);return _t(e)?t.ownerDocument?t.ownerDocument.body:t.body:qe(e)&&Jt(e)?e:js(e)}function ti(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=ni(s);return e.concat(s,s.visualViewport||[],Jt(n)?n:[],a&&r?ti(a):[])}else return e.concat(n,ti(n,[],r))}function ni(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=ke(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=Or(r)!==o||Or(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function Gs(t){return Ne(t)?t:t.contextElement}function er(t){let e=Gs(t);if(!qe(e))return je(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Ks(e),s=(o?Or(r.width):r.width)/i,a=(o?Or(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var qc=je(0);function qs(t){let e=ve(t);return!ii()||!e.visualViewport?qc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ve(t)?!1:e}function Rr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=je(1);e&&(i?Ne(i)&&(s=er(i)):s=er(t));let a=Yc(o,r,i)?qs(o):je(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){let p=ve(o),f=i&&Ne(i)?ve(i):i,m=p,g=ni(m);for(;g&&i&&f!==m;){let b=er(g),x=g.getBoundingClientRect(),S=ke(g),_=x.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,R=x.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=_,c+=R,m=ve(g),g=ni(m)}}return wt({width:u,height:d,x:l,y:c})}function oi(t,e){let r=_r(t).scrollLeft;return e?e.left+r:Rr(Ge(t)).left+r}function Ys(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-oi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Xc(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Ge(i),a=e?Tr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=qe(i);if((d||!d&&!o)&&((Tt(i)!=="body"||Jt(s))&&(l=_r(i)),d)){let f=Rr(i);c=er(i),u.x=f.x+i.clientLeft,u.y=f.y+i.clientTop}let p=s&&!d&&!o?Ys(s,l):je(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 Zc(t){return Array.from(t.getClientRects())}function Jc(t){let e=Ge(t),r=_r(t),i=t.ownerDocument.body,n=ut(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=ut(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+oi(t),a=-r.scrollTop;return ke(i).direction==="rtl"&&(s+=ut(e.clientWidth,i.clientWidth)-n),{width:n,height:o,x:s,y:a}}var Fs=25;function Qc(t,e){let r=ve(t),i=Ge(t),n=r.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(n){o=n.width,s=n.height;let u=ii();(!u||u&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}let c=oi(i);if(c<=0){let u=i.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-d.clientWidth-f);m<=Fs&&(o-=m)}else c<=Fs&&(o+=c);return{width:o,height:s,x:a,y:l}}function eu(t,e){let r=Rr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=qe(t)?er(t):je(1),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")i=Qc(t,r);else if(e==="document")i=Jc(Ge(t));else if(Ne(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 Xs(t,e){let r=et(t);return r===e||!Ne(r)||_t(r)?!1:ke(r).position==="fixed"||Xs(r,e)}function tu(t,e){let r=e.get(t);if(r)return r;let i=ti(t,[],!1).filter(a=>Ne(a)&&Tt(a)!=="body"),n=null,o=ke(t).position==="fixed",s=o?et(t):t;for(;Ne(s)&&!_t(s);){let a=ke(s),l=Qt(s);!l&&a.position==="fixed"&&(n=null),(o?!l&&!n:!l&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Jt(s)&&!l&&Xs(t,s))?i=i.filter(u=>u!==s):n=a,s=et(s)}return e.set(t,i),i}function ru(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Tr(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 f=zs(e,s[p],n);l=ut(f.top,l),c=wr(f.right,c),u=wr(f.bottom,u),d=ut(f.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=Ge(e),o=r==="fixed",s=Rr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=je(0);function c(){l.x=oi(n)}if(i||!i&&!o)if((Tt(e)!=="body"||Jt(n))&&(a=_r(e)),i){let f=Rr(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else n&&c();o&&!i&&n&&c();let u=n&&!i&&!o?Ys(n,a):je(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function gn(t){return ke(t).position==="static"}function Ws(t,e){if(!qe(t)||ke(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ge(t)===r&&(r=r.ownerDocument.body),r}function Zs(t,e){let r=ve(t);if(Tr(t))return r;if(!qe(t)){let n=et(t);for(;n&&!_t(n);){if(Ne(n)&&!gn(n))return n;n=et(n)}return r}let i=Ws(t,e);for(;i&&Bs(i)&&gn(i);)i=Ws(i,e);return i&&_t(i)&&gn(i)&&!Qt(i)?r:i||Vs(t)||r}var ou=async function(t){let e=this.getOffsetParent||Zs,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 ke(t).direction==="rtl"}var si={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:Ge,getClippingRect:ru,getOffsetParent:Zs,getElementRects:ou,getClientRects:Zc,getDimensions:iu,getScale:er,isElement:Ne,isRTL:su};var Js=Ms,Qs=$s;var ea=(t,e,r)=>{let i=new Map,n={platform:si,...r},o={...n.platform,_c:i};return Is(t,e,{...n,platform:o})};function ta(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"||Qt(r)||e.tagName==="BODY"))return e}return null}async function ra(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ea(t,e,{strategy:i.strategy,platform:{...si,getOffsetParent:n=>si.getOffsetParent(n,ta)},middleware:[Qs({crossAxis:!0}),Js({allowedPlacements:[i.placement]})]})}var fr=h(E());var Fn=h(te());var ia=h(te(),1);var yn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function na(t,e){return(0,ia.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Lr(t);try{return JSON.parse(r)}catch{return Lr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Pr,...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(!ai(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(!ai(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(!ai(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ai(t,e){try{return lu(t,e)}catch{return!1}}function Pr(t,e){return!ai(t,e)}function Lr(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 oa=h(te(),1);var bn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Pr,attribute:!1,...e};(0,oa.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 Rt=h(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 aa=h(V(),1);var di=globalThis,cu=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var sa=(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 aa.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 sa(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 la(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 rr=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},pa,ca=Symbol("constructorPrototype"),ua=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),da=Symbol("dynamicDependenciesLoaded"),tr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var Ye=class extends pi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=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[fa].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[ua]=this.constructor.name,this[ca]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ua]&&Object.setPrototypeOf(this,this[ca])}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[da]||(r[da]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(tr.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 tr)})}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=la(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 f=(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=[...f,...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(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};pa=fa;rr([(0,Rt.property)()],Ye.prototype,"exportpartsPrefix",void 0);rr([na([])],Ye.prototype,"exportpartsPrefixes",void 0);rr([(0,Rt.property)({reflect:!0})],Ye.prototype,"exportparts",void 0);rr([(0,Rt.property)()],Ye.prototype,"customStylesheet",void 0);rr([(0,Rt.property)()],Ye.prototype,"elementToFocus",void 0);rr([(0,Rt.state)()],Ye.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"),Lt=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[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].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=Lt,i=Dr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ha=class extends uu(Ye){};function Ie(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 tt(t){return!!t&&!!t[z]}function Fe(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[Sa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sa])||_n(t)||Rn(t))}function Pt(t,e,r){r===void 0&&(r=!1),or(t)===0?(r?Object.keys:nr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function or(t){var e=t[z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Rn(t)?3:0}function ir(t,e){return or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return or(t)===2?t.get(e):t[e]}function Aa(t,e,r){var i=or(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Ea(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=Oa(t);delete e[z];for(var r=nr(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),Dn(t)||tt(t)||!Fe(t)||(or(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Pt(t,(function(r,i){return Pn(i,!0)}),!0)),t}function pu(){Ie(2)}function Dn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=Tn[t];return e||Ie(18,t),e}function fu(t,e){Tn[t]||(Tn[t]=e)}function Cn(){return kr}function xn(t,e){e&&(Xe("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 ma(t){return kr={p:[],l:kr,h:t,m:!0,_:0}}function hu(t){var e=t[z];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||Xe("ES5").S(e,t,i),i?(r[z].P&&(hi(e),Ie(4)),Fe(t)&&(t=mi(e,t),e.l||gi(e,t)),e.u&&Xe("Patches").M(r[z].t,t,e.u,e.s)):t=mi(e,r,[]),hi(e),e.u&&e.v(e.u,e.s),t!==wa?t:void 0}function mi(t,e,r){if(Dn(e))return e;var i=e[z];if(!i)return Pt(e,(function(a,l){return ga(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),Pt(o,(function(a,l){return ga(t,i,n,a,l,r,s)})),gi(t,n,!1),r&&t.u&&Xe("Patches").N(i,r,t.u,t.s)}return i.o}function ga(t,e,r,i,n,o,s){if(tt(n)){var a=mi(t,n,o&&e&&e.i!==3&&!ir(e.R,i)?o.concat(i):void 0);if(Aa(r,i,a),!tt(a))return;t.m=!1}else s&&r.add(n);if(Fe(n)&&!Dn(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[z];return(r?ft(r):t)[e]}function va(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)?Xe("MapSet").F(e,r):Rn(e)?Xe("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=Ir;s&&(l=[a],c=Nr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):Xe("ES5").J(e,r);return(r?r.A:Cn()).p.push(i),i}function mu(t){return tt(t)||Ie(22,t),(function e(r){if(!Fe(r))return r;var i,n=r[z],o=or(r);if(n){if(!n.P&&(n.i<4||!Xe("ES5").K(n)))return n.t;n.I=!0,i=ya(r,o),n.I=!1}else i=ya(r,o);return Pt(i,(function(s,a){n&&du(n.t,s)===a||Aa(i,s,e(a))})),o===3?new Set(i):i})(t)}function ya(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ln(t)}function Ca(){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[z];return Ir.get(c,s)},set:function(c){var u=this[z];Ir.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][z];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=nr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==z){var p=a[d];if(p===void 0&&!ir(a,d))return!0;var f=l[d],m=f&&f[z];if(m?m.t!==p:!Ea(f,p))return!0}}var g=!!a[z];return c.length!==nr(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&&Ie(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 f=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(f,""+m,t(m,!0));return f}var g=Oa(p);delete g[z];for(var b=nr(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,z,{value:u,writable:!0}),c},S:function(s,a,l){l?tt(a)&&a[z].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[z];if(d){var p=d.t,f=d.k,m=d.R,g=d.i;if(g===4)Pt(f,(function(R){R!==z&&(p[R]!==void 0||ir(p,R)?m[R]||c(f[R]):(m[R]=!0,ht(d)))})),Pt(p,(function(R){f[R]!==void 0||ir(f,R)||(m[R]=!1,ht(d))}));else if(g===5){if(i(d)&&(ht(d),m.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)m[b]=!1;else for(var x=p.length;x<f.length;x++)m[x]=!0;for(var S=Math.min(f.length,p.length),_=0;_<S;_++)f.hasOwnProperty(_)||(m[_]=!0),m[_]===void 0&&c(f[_])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ba,kr,Nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gu=typeof Map<"u",vu=typeof Set<"u",xa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wa=Nn?Symbol.for("immer-nothing"):((ba={})["immer-nothing"]=!0,ba),Sa=Nn?Symbol.for("immer-draftable"):"__$immer_draftable",z=Nn?Symbol.for("immer-state"):"__$immer_state";var yu=""+Object.prototype.constructor,nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Oa=Object.getOwnPropertyDescriptors||function(t){var e={};return nr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Tn={},Ir={get:function(t,e){if(e===z)return t;var r=ft(t);if(!ir(r,e))return(function(n,o,s){var a,l=va(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||!Fe(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=va(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?.[z];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ea(r,n)&&(r!==void 0||ir(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(){Ie(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ie(12)}},Nr={};Pt(Ir,(function(t,e){Nr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Nr.deleteProperty=function(t,e){return Nr.set.call(this,t,e,void 0)},Nr.set=function(t,e,r){return Ir.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var i=this;this.O=xa,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(R){var ee;return(ee=o).call.apply(ee,[b,R].concat(S))}))}}var c;if(typeof o!="function"&&Ie(6),s!==void 0&&typeof s!="function"&&Ie(7),Fe(n)){var u=ma(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===wa&&(c=void 0),i.D&&Pn(c,!0),s){var f=[],m=[];Xe("Patches").M(n,c,f,m),s(f,m)}return c}Ie(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(f){return n.apply(void 0,[f].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){Fe(r)||Ie(8),tt(r)&&(r=mu(r));var i=ma(this),n=On(this,r,void 0);return n[z].C=!0,wn(i),n},e.finishDraft=function(r,i){var n=r&&r[z],o=n.A;return xn(o,i),Sn(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!xa&&Ie(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=Xe("Patches").$;return tt(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),we=new bu,xu=we.produce,gh=we.produceWithPatches.bind(we),vh=we.setAutoFreeze.bind(we),yh=we.setUseProxies.bind(we),bh=we.applyPatches.bind(we),xh=we.createDraft.bind(we),Sh=we.finishDraft.bind(we),vi=xu;function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Ta(t,e){if(Dt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Dt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _a(t){var e=Ta(t,"string");return Dt(e)=="symbol"?e:e+""}function Ra(t,e,r){return(e=_a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function La(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 kn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?La(Object(r),!0).forEach(function(i){Ra(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ue(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 Pa=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),In=function(){return Math.random().toString(36).substring(7).split("").join(".")},yi={INIT:"@@redux/INIT"+In(),REPLACE:"@@redux/REPLACE"+In(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+In()}};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(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Mn)(t,e)}if(typeof t!="function")throw new Error(ue(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(ue(3));return o}function d(g){if(typeof g!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));var b=!0;return c(),a.push(g),function(){if(b){if(l)throw new Error(ue(6));b=!1,c();var S=a.indexOf(g);a.splice(S,1),s=null}}}function p(g){if(!Su(g))throw new Error(ue(7));if(typeof g.type>"u")throw new Error(ue(8));if(l)throw new Error(ue(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 f(g){if(typeof g!="function")throw new Error(ue(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(ue(11));function _(){S.next&&S.next(u())}_();var R=b(_);return{unsubscribe:R}}},g[Pa]=function(){return this},g}return p({type:yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:f},i[Pa]=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(ue(12));if(typeof r(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Da(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,f={},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(ue(14))}f[g]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?f:c}}function sr(){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(ue(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=sr.apply(void 0,a)(n.dispatch),kn(kn({},n),{},{dispatch:o})}}}function ka(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=ka();Ia.withExtraArgument=ka;var $n=Ia;var Ba=(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}}},ar=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,Ma=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,$a=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)&&$a(t,r,e[r]);if(Ma)for(var i=0,n=Ma(e);i<n.length;i++){var r=n[i];_u.call(e,r)&&$a(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"?sr:sr.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 Du=(function(t){Ba(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,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e})(Array),Nu=(function(t){Ba(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,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e})(Array);function Vn(t){return Fe(t)?vi(t,function(){}):t}function ku(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,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 Du;if(r&&(ku(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 Va(t){var e=Iu(),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,f;if(typeof n=="function")f=n;else if(Pu(n))f=Da(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(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Na.apply(void 0,m),b=sr;l&&(b=Lu(mt({trace:!Hn},typeof l=="object"&&l)));var x=new Nu(g),S=x;Array.isArray(p)?S=ar([g],p):typeof p=="function"&&(S=p(x));var _=b.apply(void 0,S);return Mn(f,u,_)}function ja(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"?ja(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 f=ar([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return f.filter(function(m){return!!m}).length===0&&(f=[a]),f.reduce(function(m,g){if(g)if(tt(m)){var b=m,x=g(b,p);return x===void 0?m:x}else{if(Fe(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),f,m;"reducer"in d?(f=d.reducer,m=d.prepare):f=d,o[u]=f,s[p]=f,a[u]=m?gt(p,m):gt(p)});function l(){var u=typeof t.extraReducers=="function"?ja(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],m=f===void 0?[]:f,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 R=0,ee=m;R<ee.length;R++){var X=ee[R];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},ju=["name","message","stack","code"],Bn=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ua=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=ju;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Fh=(function(){function t(e,r,i){var n=gt(e+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Un(mt({},f||{}),{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,f,m){return{payload:f,error:(i&&i.serializeError||Fu)(u||"Rejected"),meta:Un(mt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!f,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,f){var m=i?.idGenerator?i.idGenerator(u):Vu(),g=new l,b,x=!1;function S(R){b=R,g.abort()}var _=(function(){return Ru(this,null,function(){var R,ee,X,it,Fi,nt,be;return Eu(this,function(Re){switch(Re.label){case 0:return Re.trys.push([0,4,,5]),it=(R=i?.condition)==null?void 0:R.call(i,u,{getState:p,extra:f}),Wu(it)?[4,it]:[3,2];case 1:it=Re.sent(),Re.label=2;case 2:if(it===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,Fi=new Promise(function(xe,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:f}))),[4,Promise.race([Fi,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:m,signal:g.signal,abort:S,rejectWithValue:function(xe,yt){return new Bn(xe,yt)},fulfillWithValue:function(xe,yt){return new Ua(xe,yt)}})).then(function(xe){if(xe instanceof Bn)throw xe;return xe instanceof Ua?n(xe.payload,m,u,xe.meta):n(xe,m,u)})])];case 3:return X=Re.sent(),[3,5];case 4:return nt=Re.sent(),X=nt instanceof Bn?s(null,m,u,nt.payload,nt.meta):s(nt,m,u),[3,5];case 5:return be=i&&!i.dispatchConditionRejection&&s.match(X)&&X.meta.condition,be||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 za="listener",Wa="completed",Ka="cancelled",zh="task-"+Ka,Wh="task-"+Wa,Kh=za+"-"+Ka,Gh=za+"-"+Wa;var jn="listenerMiddleware";var qh=gt(jn+"/add"),Yh=gt(jn+"/removeAll"),Xh=gt(jn+"/remove");var Ha,Zh=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ha||(Ha=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);Ca();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 Ga=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=Va({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Lr(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=>{this.setState({[l]: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=h(E()),qu="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mr.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,Si.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new lr(e.payload)),0))}},P=Si.FtReduxStore.get({name:qu,reducers:Yu,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var qa=h(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,qa.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=>xi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ai([(0,Fn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ai([(0,Fn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ai([bn({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),Ai([bn({store:P.name})],e.prototype,"uiLocale",void 0),e});var Ya;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ya||(Ya={}));var Xa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(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.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"})(Ja||(Ja={}));var Qa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qa||(Qa={}));var el;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var il;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(il||(il={}));var nl;(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"})(nl||(nl={}));var ol;(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"})(ol||(ol={}));var sl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sl||(sl={}));var al;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(al||(al={}));var ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ll||(ll={}));var cl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(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",t.CUSTOM="CUSTOM"})(ul||(ul={}));var dl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dl||(dl={}));var pl;(function(t){t.ASC="ASC",t.DESC="DESC"})(pl||(pl={}));var fl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fl||(fl={}));var hl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hl||(hl={}));var ml;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ml||(ml={}));var gl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gl||(gl={}));var vl;(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"})(vl||(vl={}));var yl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(yl||(yl={}));var bl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(bl||(bl={}));var xl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xl||(xl={}));var Sl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Sl||(Sl={}));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 Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var Al;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Al||(Al={}));var El;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(El||(El={}));var Cl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Cl||(Cl={}));var wl;(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.OTHER="OTHER"})(wl||(wl={}));var Ol;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ol||(Ol={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var _l;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_l||(_l={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var Ll;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ll||(Ll={}));var Pl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pl||(Pl={}));var Dl;(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"})(Dl||(Dl={}));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 kl(t,e){return t===e||(Xu[t]??[]).some(r=>kl(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=>kl(i,e))}var Ti=h(E());var zn=h(E());var Nt=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 cr=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 Oe=class extends cr{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 Oe{async listMySearches(){let{session:e}=P.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 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 wi=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 Oi=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 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(Me).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]),Ml(t,r,1,i),$l(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)),$l(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)),Ml(t,r,-1,i)}},Ul={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},Wn=(t,e)=>{var r;let i=Ul[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Kn=(t,e,r)=>{let i=Ul[e];i&&(t[i]=r)},Ml=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Me.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},$l=(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)},pe=Ti.FtReduxStore.get({name:Zu,reducers:Ju,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gn=class{constructor(e=new wi,r=new Oi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ci,this.savedSearchesService=new Ei,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.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(),pe.actions.clearAssetCount(),pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&pe.getState().assetCounts.allAsset[e]!==r.count&&pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(pe.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&r&&pe.actions.clearBookmarkCountByMap(),pe.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;pe.actions.bookmarks(r)}}},Qu=new Gn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var qn=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var $e=h(E());var Hl,ur=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),_i=class extends(0,$e.withEventBus)(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hl]=()=>{this.defaultMessages={},this.cache=new $e.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,$e.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 $e.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 $e.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 ur({loadedContexts:e})),this.dispatchEvent(new ur({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ur({loadedContexts:[e]})),this.dispatchEvent(new ur({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,$e.delay)(0).then(()=>i()).catch(()=>null)))}};Hl=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 dr=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var Bl=h(E()),Yn=class{highlightHtml(e,r,i){(0,Bl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Vl=h(E());var Xn=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 Vl.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 Xn;var jl=h(E());var $r=class{static get(e,r){var i,n;let o=P.getState(),{lang:s,region:a}=(n=(i=o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new jl.SearchPlaceConverter(o.baseUrl,e??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var Zn=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new Zn;var rt=h(E());var kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};kt.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 rt.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,rt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new kt(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(kt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(kt.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=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 zl=h(V());var Wl=zl.css`
919
- `;var ql=h(V()),Te=h(te()),$t=h(E());var It=h(E());function Kl(t,e){let{authenticationRequired:r,session:i}=P.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Pi=class extends cr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Qn=class t extends It.FtStateManager{static build(e){return new t(P,e)}constructor(e,r){super(),this.store=e,this.cache=new It.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,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(lr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let 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",()=>Kl(()=>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}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,i,n,o,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((i=this.localesConfiguration.allLanguagesAllowed)!==null&&i!==void 0?i:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((o=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&o!==void 0?o:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Mr(r)))}).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)}},Gl=Qn.build();var Mt=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 Ur=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests: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 Mt(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 de=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 $t.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=Gl,this.contextRoot=new Ur}render(){return ql.html`
918
+ `;var Rs=["top","right","bottom","left"],_s=["start","end"],un=Rs.reduce((t,e)=>t.concat(e,e+"-"+_s[0],e+"-"+_s[1]),[]),wr=Math.min,ut=Math.max,Or=Math.round;var je=t=>({x:t,y:t}),jc={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(t,e,r){return ut(t,wr(e,r))}function Qr(t,e){return typeof t=="function"?t(e):t}function Zt(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function pn(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function ei(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function hn(t){return pn(ei(t))}function Ls(t,e,r){r===void 0&&(r=!1);let i=dt(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=cn(s)),[s,cn(s)]}function Ps(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function cn(t){let e=Zt(t);return jc[e]+t.slice(e.length)}function Fc(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ns(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 Ds(t,e,r){let{reference:i,floating:n}=t,o=ei(e),s=hn(e),a=fn(s),l=Zt(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,f;switch(l){case"top":f={x:u,y:i.y-n.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:d};break;case"left":f={x:i.x-n.width,y:d};break;default:f={x:i.x,y:i.y}}switch(dt(e)){case"start":f[s]-=p*(r&&c?-1:1);break;case"end":f[s]+=p*(r&&c?-1:1);break}return f}async function Is(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:f=0}=Qr(e,t),m=Ns(f),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)),R=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{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)/R.y,bottom:(ee.bottom-x.bottom+m.bottom)/R.y,left:(x.left-ee.left+m.left)/R.x,right:(ee.right-x.right+m.right)/R.x}}var zc=50,ks=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Is},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Ds(c,i,l),p=i,f=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:R,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=R??d,m[x]={...m[x],...ee},X&&f<zc&&(f++,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}=Ds(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function Wc(t,e,r){return(t?[...r.filter(n=>dt(n)===t),...r.filter(n=>dt(n)!==t)]:r.filter(n=>Zt(n)===n)).filter(n=>t?dt(n)===t||(e?Ps(n)!==n:!1):!0)}var Ms=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=un,autoAlignment:f=!0,...m}=Qr(t,e),g=d!==void 0||p===un?Wc(d||null,f,p):p,b=await l.detectOverflow(e,m),x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=g[x];if(S==null)return{};let _=Ls(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==S)return{reset:{placement:g[0]}};let R=[b[Zt(S)],b[_[0]],b[_[1]]],ee=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:S,overflows:R}],X=g[x+1];if(X)return{data:{index:x+1,overflows:ee},reset:{placement:X}};let it=ee.map(be=>{let Re=dt(be.placement);return[be.placement,Re&&u?be.overflows.slice(0,2).reduce((xe,yt)=>xe+yt,0):be.overflows[0],be.overflows]}).sort((be,Re)=>be[1]-Re[1]),nt=((n=it.filter(be=>be[2].slice(0,dt(be[0])?2:3).every(Re=>Re<=0))[0])==null?void 0:n[0])||it[0][0];return nt!==a?{data:{index:x+1,overflows:ee},reset:{placement:nt}}:{}}}};var $s=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:x=>{let{x:S,y:_}=x;return{x:S,y:_}}},...c}=Qr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=ei(Zt(n)),f=pn(p),m=u[f],g=u[p];if(s){let x=f==="y"?"top":"left",S=f==="y"?"bottom":"right",_=m+d[x],R=m-d[S];m=dn(_,m,R)}if(a){let x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",_=g+d[x],R=g-d[S];g=dn(_,g,R)}let b=l.fn({...e,[f]:m,[p]:g});return{...b,data:{x:b.x-r,y:b.y-i,enabled:{[f]:s,[p]:a}}}}}};function ri(){return typeof window<"u"}function Tt(t){return Hs(t)?(t.nodeName||"").toLowerCase():"#document"}function ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ge(t){var e;return(e=(Hs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hs(t){return ri()?t instanceof Node||t instanceof ve(t).Node:!1}function De(t){return ri()?t instanceof Element||t instanceof ve(t).Element:!1}function qe(t){return ri()?t instanceof HTMLElement||t instanceof ve(t).HTMLElement:!1}function Us(t){return!ri()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ve(t).ShadowRoot}function Jt(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ie(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Bs(t){return/^(table|td|th)$/.test(Tt(t))}function Tr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Kc=/transform|translate|scale|rotate|perspective|filter/,Gc=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",mn;function Qt(t){let e=De(t)?Ie(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ii()&&(Ot(e.backdropFilter)||Ot(e.filter))||Kc.test(e.willChange||"")||Gc.test(e.contain||"")}function Vs(t){let e=et(t);for(;qe(e)&&!_t(e);){if(Qt(e))return e;if(Tr(e))return null;e=et(e)}return null}function ii(){return mn==null&&(mn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mn}function _t(t){return/^(html|body|#document)$/.test(Tt(t))}function Ie(t){return ve(t).getComputedStyle(t)}function _r(t){return De(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Us(t)&&t.host||Ge(t);return Us(e)?e.host:e}function js(t){let e=et(t);return _t(e)?t.ownerDocument?t.ownerDocument.body:t.body:qe(e)&&Jt(e)?e:js(e)}function ti(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=ni(s);return e.concat(s,s.visualViewport||[],Jt(n)?n:[],a&&r?ti(a):[])}else return e.concat(n,ti(n,[],r))}function ni(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=Ie(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=Or(r)!==o||Or(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function Gs(t){return De(t)?t:t.contextElement}function er(t){let e=Gs(t);if(!qe(e))return je(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Ks(e),s=(o?Or(r.width):r.width)/i,a=(o?Or(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var qc=je(0);function qs(t){let e=ve(t);return!ii()||!e.visualViewport?qc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ve(t)?!1:e}function Rr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=je(1);e&&(i?De(i)&&(s=er(i)):s=er(t));let a=Yc(o,r,i)?qs(o):je(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){let p=ve(o),f=i&&De(i)?ve(i):i,m=p,g=ni(m);for(;g&&i&&f!==m;){let b=er(g),x=g.getBoundingClientRect(),S=Ie(g),_=x.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,R=x.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=_,c+=R,m=ve(g),g=ni(m)}}return wt({width:u,height:d,x:l,y:c})}function oi(t,e){let r=_r(t).scrollLeft;return e?e.left+r:Rr(Ge(t)).left+r}function Ys(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-oi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Xc(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Ge(i),a=e?Tr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=qe(i);if((d||!d&&!o)&&((Tt(i)!=="body"||Jt(s))&&(l=_r(i)),d)){let f=Rr(i);c=er(i),u.x=f.x+i.clientLeft,u.y=f.y+i.clientTop}let p=s&&!d&&!o?Ys(s,l):je(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 Zc(t){return Array.from(t.getClientRects())}function Jc(t){let e=Ge(t),r=_r(t),i=t.ownerDocument.body,n=ut(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=ut(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+oi(t),a=-r.scrollTop;return Ie(i).direction==="rtl"&&(s+=ut(e.clientWidth,i.clientWidth)-n),{width:n,height:o,x:s,y:a}}var Fs=25;function Qc(t,e){let r=ve(t),i=Ge(t),n=r.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(n){o=n.width,s=n.height;let u=ii();(!u||u&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}let c=oi(i);if(c<=0){let u=i.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-d.clientWidth-f);m<=Fs&&(o-=m)}else c<=Fs&&(o+=c);return{width:o,height:s,x:a,y:l}}function eu(t,e){let r=Rr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=qe(t)?er(t):je(1),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")i=Qc(t,r);else if(e==="document")i=Jc(Ge(t));else if(De(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 Xs(t,e){let r=et(t);return r===e||!De(r)||_t(r)?!1:Ie(r).position==="fixed"||Xs(r,e)}function tu(t,e){let r=e.get(t);if(r)return r;let i=ti(t,[],!1).filter(a=>De(a)&&Tt(a)!=="body"),n=null,o=Ie(t).position==="fixed",s=o?et(t):t;for(;De(s)&&!_t(s);){let a=Ie(s),l=Qt(s);!l&&a.position==="fixed"&&(n=null),(o?!l&&!n:!l&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Jt(s)&&!l&&Xs(t,s))?i=i.filter(u=>u!==s):n=a,s=et(s)}return e.set(t,i),i}function ru(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Tr(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 f=zs(e,s[p],n);l=ut(f.top,l),c=wr(f.right,c),u=wr(f.bottom,u),d=ut(f.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=Ge(e),o=r==="fixed",s=Rr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=je(0);function c(){l.x=oi(n)}if(i||!i&&!o)if((Tt(e)!=="body"||Jt(n))&&(a=_r(e)),i){let f=Rr(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else n&&c();o&&!i&&n&&c();let u=n&&!i&&!o?Ys(n,a):je(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function gn(t){return Ie(t).position==="static"}function Ws(t,e){if(!qe(t)||Ie(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ge(t)===r&&(r=r.ownerDocument.body),r}function Zs(t,e){let r=ve(t);if(Tr(t))return r;if(!qe(t)){let n=et(t);for(;n&&!_t(n);){if(De(n)&&!gn(n))return n;n=et(n)}return r}let i=Ws(t,e);for(;i&&Bs(i)&&gn(i);)i=Ws(i,e);return i&&_t(i)&&gn(i)&&!Qt(i)?r:i||Vs(t)||r}var ou=async function(t){let e=this.getOffsetParent||Zs,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 Ie(t).direction==="rtl"}var si={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:Ge,getClippingRect:ru,getOffsetParent:Zs,getElementRects:ou,getClientRects:Zc,getDimensions:iu,getScale:er,isElement:De,isRTL:su};var Js=Ms,Qs=$s;var ea=(t,e,r)=>{let i=new Map,n={platform:si,...r},o={...n.platform,_c:i};return ks(t,e,{...n,platform:o})};function ta(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"||Qt(r)||e.tagName==="BODY"))return e}return null}async function ra(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ea(t,e,{strategy:i.strategy,platform:{...si,getOffsetParent:n=>si.getOffsetParent(n,ta)},middleware:[Qs({crossAxis:!0}),Js({allowedPlacements:[i.placement]})]})}var fr=h(E());var Fn=h(te());var ia=h(te(),1);var yn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function na(t,e){return(0,ia.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Lr(t);try{return JSON.parse(r)}catch{return Lr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Pr,...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(!ai(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(!ai(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(!ai(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ai(t,e){try{return lu(t,e)}catch{return!1}}function Pr(t,e){return!ai(t,e)}function Lr(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 oa=h(te(),1);var bn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Pr,attribute:!1,...e};(0,oa.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 Rt=h(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 aa=h(V(),1);var di=globalThis,cu=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var sa=(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 aa.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 sa(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 la(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 rr=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},pa,ca=Symbol("constructorPrototype"),ua=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),da=Symbol("dynamicDependenciesLoaded"),tr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var Ye=class extends pi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=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[fa].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[ua]=this.constructor.name,this[ca]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ua]&&Object.setPrototypeOf(this,this[ca])}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[da]||(r[da]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(tr.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 tr)})}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=la(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 f=(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=[...f,...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(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};pa=fa;rr([(0,Rt.property)()],Ye.prototype,"exportpartsPrefix",void 0);rr([na([])],Ye.prototype,"exportpartsPrefixes",void 0);rr([(0,Rt.property)({reflect:!0})],Ye.prototype,"exportparts",void 0);rr([(0,Rt.property)()],Ye.prototype,"customStylesheet",void 0);rr([(0,Rt.property)()],Ye.prototype,"elementToFocus",void 0);rr([(0,Rt.state)()],Ye.prototype,"useAdoptedStyleSheets",void 0);function fi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Nr=Symbol("internalReduxEventsUnsubscribers"),pt=Symbol("internalStoresUnsubscribers"),Lt=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[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].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[Nr].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[Nr].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[Nr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Nr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pt,r=Lt,i=Nr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ha=class extends uu(Ye){};function ke(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 tt(t){return!!t&&!!t[z]}function Fe(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[Sa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sa])||_n(t)||Rn(t))}function Pt(t,e,r){r===void 0&&(r=!1),or(t)===0?(r?Object.keys:nr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function or(t){var e=t[z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Rn(t)?3:0}function ir(t,e){return or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return or(t)===2?t.get(e):t[e]}function Aa(t,e,r){var i=or(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Ea(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=Oa(t);delete e[z];for(var r=nr(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)||tt(t)||!Fe(t)||(or(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Pt(t,(function(r,i){return Pn(i,!0)}),!0)),t}function pu(){ke(2)}function Nn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=Tn[t];return e||ke(18,t),e}function fu(t,e){Tn[t]||(Tn[t]=e)}function Cn(){return Ir}function xn(t,e){e&&(Xe("Patches"),t.u=[],t.s=[],t.v=e)}function hi(t){wn(t),t.p.forEach(hu),t.p=null}function wn(t){t===Ir&&(Ir=t.l)}function ma(t){return Ir={p:[],l:Ir,h:t,m:!0,_:0}}function hu(t){var e=t[z];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||Xe("ES5").S(e,t,i),i?(r[z].P&&(hi(e),ke(4)),Fe(t)&&(t=mi(e,t),e.l||gi(e,t)),e.u&&Xe("Patches").M(r[z].t,t,e.u,e.s)):t=mi(e,r,[]),hi(e),e.u&&e.v(e.u,e.s),t!==wa?t:void 0}function mi(t,e,r){if(Nn(e))return e;var i=e[z];if(!i)return Pt(e,(function(a,l){return ga(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),Pt(o,(function(a,l){return ga(t,i,n,a,l,r,s)})),gi(t,n,!1),r&&t.u&&Xe("Patches").N(i,r,t.u,t.s)}return i.o}function ga(t,e,r,i,n,o,s){if(tt(n)){var a=mi(t,n,o&&e&&e.i!==3&&!ir(e.R,i)?o.concat(i):void 0);if(Aa(r,i,a),!tt(a))return;t.m=!1}else s&&r.add(n);if(Fe(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[z];return(r?ft(r):t)[e]}function va(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)?Xe("MapSet").F(e,r):Rn(e)?Xe("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=kr;s&&(l=[a],c=Dr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):Xe("ES5").J(e,r);return(r?r.A:Cn()).p.push(i),i}function mu(t){return tt(t)||ke(22,t),(function e(r){if(!Fe(r))return r;var i,n=r[z],o=or(r);if(n){if(!n.P&&(n.i<4||!Xe("ES5").K(n)))return n.t;n.I=!0,i=ya(r,o),n.I=!1}else i=ya(r,o);return Pt(i,(function(s,a){n&&du(n.t,s)===a||Aa(i,s,e(a))})),o===3?new Set(i):i})(t)}function ya(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ln(t)}function Ca(){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[z];return kr.get(c,s)},set:function(c){var u=this[z];kr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][z];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=nr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==z){var p=a[d];if(p===void 0&&!ir(a,d))return!0;var f=l[d],m=f&&f[z];if(m?m.t!==p:!Ea(f,p))return!0}}var g=!!a[z];return c.length!==nr(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&&ke(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 f=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(f,""+m,t(m,!0));return f}var g=Oa(p);delete g[z];for(var b=nr(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,z,{value:u,writable:!0}),c},S:function(s,a,l){l?tt(a)&&a[z].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[z];if(d){var p=d.t,f=d.k,m=d.R,g=d.i;if(g===4)Pt(f,(function(R){R!==z&&(p[R]!==void 0||ir(p,R)?m[R]||c(f[R]):(m[R]=!0,ht(d)))})),Pt(p,(function(R){f[R]!==void 0||ir(f,R)||(m[R]=!1,ht(d))}));else if(g===5){if(i(d)&&(ht(d),m.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)m[b]=!1;else for(var x=p.length;x<f.length;x++)m[x]=!0;for(var S=Math.min(f.length,p.length),_=0;_<S;_++)f.hasOwnProperty(_)||(m[_]=!0),m[_]===void 0&&c(f[_])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ba,Ir,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gu=typeof Map<"u",vu=typeof Set<"u",xa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wa=Dn?Symbol.for("immer-nothing"):((ba={})["immer-nothing"]=!0,ba),Sa=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",z=Dn?Symbol.for("immer-state"):"__$immer_state";var yu=""+Object.prototype.constructor,nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Oa=Object.getOwnPropertyDescriptors||function(t){var e={};return nr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Tn={},kr={get:function(t,e){if(e===z)return t;var r=ft(t);if(!ir(r,e))return(function(n,o,s){var a,l=va(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||!Fe(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=va(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?.[z];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ea(r,n)&&(r!==void 0||ir(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(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},Dr={};Pt(kr,(function(t,e){Dr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Dr.deleteProperty=function(t,e){return Dr.set.call(this,t,e,void 0)},Dr.set=function(t,e,r){return kr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var i=this;this.O=xa,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(R){var ee;return(ee=o).call.apply(ee,[b,R].concat(S))}))}}var c;if(typeof o!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),Fe(n)){var u=ma(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===wa&&(c=void 0),i.D&&Pn(c,!0),s){var f=[],m=[];Xe("Patches").M(n,c,f,m),s(f,m)}return c}ke(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(f){return n.apply(void 0,[f].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){Fe(r)||ke(8),tt(r)&&(r=mu(r));var i=ma(this),n=On(this,r,void 0);return n[z].C=!0,wn(i),n},e.finishDraft=function(r,i){var n=r&&r[z],o=n.A;return xn(o,i),Sn(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!xa&&ke(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=Xe("Patches").$;return tt(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),we=new bu,xu=we.produce,gh=we.produceWithPatches.bind(we),vh=we.setAutoFreeze.bind(we),yh=we.setUseProxies.bind(we),bh=we.applyPatches.bind(we),xh=we.createDraft.bind(we),Sh=we.finishDraft.bind(we),vi=xu;function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function Ta(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Nt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _a(t){var e=Ta(t,"string");return Nt(e)=="symbol"?e:e+""}function Ra(t,e,r){return(e=_a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function La(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?La(Object(r),!0).forEach(function(i){Ra(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ue(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 Pa=(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(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Mn)(t,e)}if(typeof t!="function")throw new Error(ue(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(ue(3));return o}function d(g){if(typeof g!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));var b=!0;return c(),a.push(g),function(){if(b){if(l)throw new Error(ue(6));b=!1,c();var S=a.indexOf(g);a.splice(S,1),s=null}}}function p(g){if(!Su(g))throw new Error(ue(7));if(typeof g.type>"u")throw new Error(ue(8));if(l)throw new Error(ue(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 f(g){if(typeof g!="function")throw new Error(ue(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(ue(11));function _(){S.next&&S.next(u())}_();var R=b(_);return{unsubscribe:R}}},g[Pa]=function(){return this},g}return p({type:yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:f},i[Pa]=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(ue(12));if(typeof r(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Na(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,f={},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(ue(14))}f[g]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?f:c}}function sr(){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 Da(){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(ue(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=sr.apply(void 0,a)(n.dispatch),In(In({},n),{},{dispatch:o})}}}function Ia(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 ka=Ia();ka.withExtraArgument=Ia;var $n=ka;var Ba=(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}}},ar=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,Ma=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,$a=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)&&$a(t,r,e[r]);if(Ma)for(var i=0,n=Ma(e);i<n.length;i++){var r=n[i];_u.call(e,r)&&$a(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"?sr:sr.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){Ba(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,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e})(Array),Du=(function(t){Ba(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,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e})(Array);function Vn(t){return Fe(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 Va(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,f;if(typeof n=="function")f=n;else if(Pu(n))f=Na(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(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Da.apply(void 0,m),b=sr;l&&(b=Lu(mt({trace:!Hn},typeof l=="object"&&l)));var x=new Du(g),S=x;Array.isArray(p)?S=ar([g],p):typeof p=="function"&&(S=p(x));var _=b.apply(void 0,S);return Mn(f,u,_)}function ja(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"?ja(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 f=ar([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return f.filter(function(m){return!!m}).length===0&&(f=[a]),f.reduce(function(m,g){if(g)if(tt(m)){var b=m,x=g(b,p);return x===void 0?m:x}else{if(Fe(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),f,m;"reducer"in d?(f=d.reducer,m=d.prepare):f=d,o[u]=f,s[p]=f,a[u]=m?gt(p,m):gt(p)});function l(){var u=typeof t.extraReducers=="function"?ja(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],m=f===void 0?[]:f,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 R=0,ee=m;R<ee.length;R++){var X=ee[R];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},ju=["name","message","stack","code"],Bn=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ua=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=ju;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Fh=(function(){function t(e,r,i){var n=gt(e+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Un(mt({},f||{}),{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,f,m){return{payload:f,error:(i&&i.serializeError||Fu)(u||"Rejected"),meta:Un(mt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!f,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,f){var m=i?.idGenerator?i.idGenerator(u):Vu(),g=new l,b,x=!1;function S(R){b=R,g.abort()}var _=(function(){return Ru(this,null,function(){var R,ee,X,it,Fi,nt,be;return Eu(this,function(Re){switch(Re.label){case 0:return Re.trys.push([0,4,,5]),it=(R=i?.condition)==null?void 0:R.call(i,u,{getState:p,extra:f}),Wu(it)?[4,it]:[3,2];case 1:it=Re.sent(),Re.label=2;case 2:if(it===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,Fi=new Promise(function(xe,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:f}))),[4,Promise.race([Fi,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:m,signal:g.signal,abort:S,rejectWithValue:function(xe,yt){return new Bn(xe,yt)},fulfillWithValue:function(xe,yt){return new Ua(xe,yt)}})).then(function(xe){if(xe instanceof Bn)throw xe;return xe instanceof Ua?n(xe.payload,m,u,xe.meta):n(xe,m,u)})])];case 3:return X=Re.sent(),[3,5];case 4:return nt=Re.sent(),X=nt instanceof Bn?s(null,m,u,nt.payload,nt.meta):s(nt,m,u),[3,5];case 5:return be=i&&!i.dispatchConditionRejection&&s.match(X)&&X.meta.condition,be||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 za="listener",Wa="completed",Ka="cancelled",zh="task-"+Ka,Wh="task-"+Wa,Kh=za+"-"+Ka,Gh=za+"-"+Wa;var jn="listenerMiddleware";var qh=gt(jn+"/add"),Yh=gt(jn+"/removeAll"),Xh=gt(jn+"/remove");var Ha,Zh=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ha||(Ha=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);Ca();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 Ga=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=Va({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Lr(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=>{this.setState({[l]: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=h(E()),qu="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mr.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,Si.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new lr(e.payload)),0))}},P=Si.FtReduxStore.get({name:qu,reducers:Yu,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var qa=h(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,qa.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=>xi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ai([(0,Fn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ai([(0,Fn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ai([bn({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),Ai([bn({store:P.name})],e.prototype,"uiLocale",void 0),e});var Ya;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ya||(Ya={}));var Xa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(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.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"})(Ja||(Ja={}));var Qa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qa||(Qa={}));var el;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var il;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(il||(il={}));var nl;(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"})(nl||(nl={}));var ol;(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"})(ol||(ol={}));var sl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sl||(sl={}));var al;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(al||(al={}));var ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ll||(ll={}));var cl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(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",t.CUSTOM="CUSTOM"})(ul||(ul={}));var dl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dl||(dl={}));var pl;(function(t){t.ASC="ASC",t.DESC="DESC"})(pl||(pl={}));var fl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fl||(fl={}));var hl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hl||(hl={}));var ml;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ml||(ml={}));var gl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gl||(gl={}));var vl;(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"})(vl||(vl={}));var yl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(yl||(yl={}));var bl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(bl||(bl={}));var xl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xl||(xl={}));var Sl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Sl||(Sl={}));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 Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var Al;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Al||(Al={}));var El;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(El||(El={}));var Cl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Cl||(Cl={}));var wl;(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"})(wl||(wl={}));var Ol;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ol||(Ol={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var _l;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_l||(_l={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var Ll;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ll||(Ll={}));var Pl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pl||(Pl={}));var Nl;(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"})(Nl||(Nl={}));var Dl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Dl||(Dl={}));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 Il(t,e){return t===e||(Xu[t]??[]).some(r=>Il(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=>Il(i,e))}var Ti=h(E());var zn=h(E());var Dt=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 cr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var Oe=class extends cr{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 Oe{async listMySearches(){let{session:e}=P.getState();return kl(e,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ci=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 wi=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 Oi=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 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(Me).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]),Ml(t,r,1,i),$l(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)),$l(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)),Ml(t,r,-1,i)}},Ul={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},Wn=(t,e)=>{var r;let i=Ul[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Kn=(t,e,r)=>{let i=Ul[e];i&&(t[i]=r)},Ml=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Me.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},$l=(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)},pe=Ti.FtReduxStore.get({name:Zu,reducers:Ju,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gn=class{constructor(e=new wi,r=new Oi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ci,this.savedSearchesService=new Ei,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.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(),pe.actions.clearAssetCount(),pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&pe.getState().assetCounts.allAsset[e]!==r.count&&pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(pe.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&r&&pe.actions.clearBookmarkCountByMap(),pe.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;pe.actions.bookmarks(r)}}},Qu=new Gn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var qn=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var $e=h(E());var Hl,ur=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),_i=class extends(0,$e.withEventBus)(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hl]=()=>{this.defaultMessages={},this.cache=new $e.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,$e.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 $e.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 $e.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 ur({loadedContexts:e})),this.dispatchEvent(new ur({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ur({loadedContexts:[e]})),this.dispatchEvent(new ur({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,$e.delay)(0).then(()=>i()).catch(()=>null)))}};Hl=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 dr=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var Bl=h(E()),Yn=class{highlightHtml(e,r,i){(0,Bl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Vl=h(E());var Xn=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 Vl.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 Xn;var jl=h(E());var $r=class{static get(e,r){var i,n;let o=P.getState(),{lang:s,region:a}=(n=(i=o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new jl.SearchPlaceConverter(o.baseUrl,e??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var Zn=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new Zn;var rt=h(E());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.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 rt.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,rt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new It(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(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.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=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 zl=h(V());var Wl=zl.css`
919
+ `;var ql=h(V()),Te=h(te()),$t=h(E());var kt=h(E());function Kl(t,e){let{authenticationRequired:r,session:i}=P.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Pi=class extends cr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Qn=class t extends kt.FtStateManager{static build(e){return new t(P,e)}constructor(e,r){super(),this.store=e,this.cache=new kt.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Pi,this.cleanSessionDebouncer=new kt.Debouncer,this.reloadDebouncer=new kt.Debouncer(500),this.apiProvider=r??(()=>Dt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(lr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let 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",()=>Kl(()=>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}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,i,n,o,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((i=this.localesConfiguration.allLanguagesAllowed)!==null&&i!==void 0?i:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((o=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&o!==void 0?o:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Mr(r)))}).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)}},Gl=Qn.build();var Mt=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 Ur=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests: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 Mt(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 de=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 $t.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=Gl,this.contextRoot=new Ur}render(){return ql.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("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=>dr.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=Wl;de([(0,Te.property)()],G.prototype,"baseUrl",void 0);de([(0,Te.property)()],G.prototype,"apiIntegrationIdentifier",void 0);de([(0,Te.property)()],G.prototype,"apiIntegrationAppVersion",void 0);de([(0,Te.property)()],G.prototype,"uiLocale",void 0);de([(0,$t.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);de([(0,$t.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"editorMode",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"noCustom",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);de([(0,Te.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"withManualResources",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);de([(0,$t.jsonProperty)([])],G.prototype,"messageContexts",void 0);de([(0,$t.jsonProperty)(void 0)],G.prototype,"session",void 0);var Xl=h(E());var Yl={"ft-app-context":G};(0,Xl.customElements)(Yl);var Zl=h(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-]+$/)}},pr=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},Br=Symbol("i18nAttributes"),Jl=Symbol("i18nListAttributes"),Ql=Symbol("i18nProperties"),Di=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),Ii=(0,fr.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:dr}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(pr.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[Br])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Jl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(f=>c(u,d,f))})}updateI18nProperties(o){var s;(s=this[Ql])===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[Di].set(l,{isCustomContext:a}),this[Hr].has(l)||this[Hr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Di].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Di].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Hr].forEach(o=>o()),this[Hr].clear()}}return e=Di,r=Hr,id([(0,Zl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Ni=class extends Ii(fr.FtLitElement){},ki=class extends Ii(fr.FtLitElementRedux){};var ec=h(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"?pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},nd=new to;var tc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:ec.hasChanged,converter:pr,...e}),r[Br]=(n=r[Br])!==null&&n!==void 0?n:new Map,r[Br].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:dr}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 rc=h(V());var ic=rc.css`
922
- `;var $i=h(V()),Ui=h(te()),Hi=h(E());var Vr=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},ze=class extends ki{constructor(){super(),this.editorMode=!1,this.addStore(P)}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("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=>dr.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=Wl;de([(0,Te.property)()],G.prototype,"baseUrl",void 0);de([(0,Te.property)()],G.prototype,"apiIntegrationIdentifier",void 0);de([(0,Te.property)()],G.prototype,"apiIntegrationAppVersion",void 0);de([(0,Te.property)()],G.prototype,"uiLocale",void 0);de([(0,$t.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);de([(0,$t.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"editorMode",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"noCustom",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);de([(0,Te.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"withManualResources",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);de([(0,Te.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);de([(0,$t.jsonProperty)([])],G.prototype,"messageContexts",void 0);de([(0,$t.jsonProperty)(void 0)],G.prototype,"session",void 0);var Xl=h(E());var Yl={"ft-app-context":G};(0,Xl.customElements)(Yl);var Zl=h(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-]+$/)}},pr=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},Br=Symbol("i18nAttributes"),Jl=Symbol("i18nListAttributes"),Ql=Symbol("i18nProperties"),Ni=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),ki=(0,fr.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:dr}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(pr.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[Br])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Jl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(f=>c(u,d,f))})}updateI18nProperties(o){var s;(s=this[Ql])===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[Hr].has(l)||this[Hr].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[Hr].forEach(o=>o()),this[Hr].clear()}}return e=Ni,r=Hr,id([(0,Zl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Di=class extends ki(fr.FtLitElement){},Ii=class extends ki(fr.FtLitElementRedux){};var ec=h(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"?pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},nd=new to;var tc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:ec.hasChanged,converter:pr,...e}),r[Br]=(n=r[Br])!==null&&n!==void 0?n:new Map,r[Br].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:dr}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 rc=h(V());var ic=rc.css`
922
+ `;var $i=h(V()),Ui=h(te()),Hi=h(E());var Vr=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},ze=class extends Ii{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":$i.nothing:$i.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:""})}};ze.elementDefinitions={};ze.styles=ic;Vr([(0,Hi.redux)()],ze.prototype,"editorMode",void 0);Vr([(0,Ui.property)()],ze.prototype,"context",void 0);Vr([(0,Ui.property)()],ze.prototype,"key",void 0);Vr([(0,Hi.jsonProperty)([])],ze.prototype,"args",void 0);Vr([(0,Ui.property)()],ze.prototype,"defaultMessage",void 0);var oc=h(E());var nc={"ft-i18n":ze};(0,oc.customElements)(nc);var We=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ne=class extends Ni{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 Ue.Debouncer,this.revealDebouncer=new Ue.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.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 sc.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:""})}};ze.elementDefinitions={};ze.styles=ic;Vr([(0,Hi.redux)()],ze.prototype,"editorMode",void 0);Vr([(0,Ui.property)()],ze.prototype,"context",void 0);Vr([(0,Ui.property)()],ze.prototype,"key",void 0);Vr([(0,Hi.jsonProperty)([])],ze.prototype,"args",void 0);Vr([(0,Ui.property)()],ze.prototype,"defaultMessage",void 0);var oc=h(E());var nc={"ft-i18n":ze};(0,oc.customElements)(nc);var We=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},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 Ue.Debouncer,this.revealDebouncer=new Ue.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.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 sc.html`
927
927
  <div part="container"
928
928
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
929
929
  <slot part="slot"></slot>
@@ -1014,7 +1014,7 @@
1014
1014
  <div></div>
1015
1015
  <div></div>
1016
1016
  </div>
1017
- `}};Ht.styles=uc;var hc=h(E());var fc={"ft-loader":Ht};(0,hc.customElements)(fc);var vt=h(V()),io=h(ot()),F=h(te());var vc=h(V()),I=h(E());var mc=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),q={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:mc,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",mc),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},gc=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),ro={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:gc,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gc)},Ze={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yc=vc.css`
1017
+ `}};Ht.styles=uc;var hc=h(E());var fc={"ft-loader":Ht};(0,hc.customElements)(fc);var vt=h(V()),io=h(ot()),F=h(te());var vc=h(V()),k=h(E());var mc=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),q={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:mc,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",mc),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},gc=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),ro={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:gc,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gc)},Ze={borderRadius:k.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusM)),verticalPadding:k.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yc=vc.css`
1018
1018
  :host {
1019
1019
  display: inline-block;
1020
1020
  max-width: 100%;
@@ -1057,8 +1057,8 @@
1057
1057
 
1058
1058
  --button-internal-line-height: max(calc(${q.fontSize} + 2px), ${q.iconSize});
1059
1059
  --button-internal-color: ${q.color};
1060
- ${(0,I.setVariable)(oe.size,q.iconSize)};
1061
- ${(0,I.setVariable)(le.color,q.rippleColor)};
1060
+ ${(0,k.setVariable)(oe.size,q.iconSize)};
1061
+ ${(0,k.setVariable)(le.color,q.rippleColor)};
1062
1062
 
1063
1063
  border-radius: ${q.borderRadius};
1064
1064
  padding: ${q.verticalPadding} ${q.horizontalPadding};
@@ -1102,7 +1102,7 @@
1102
1102
  .ft-button.ft-button--primary {
1103
1103
  background-color: ${ro.backgroundColor};
1104
1104
  --button-internal-color: ${ro.color};
1105
- ${(0,I.setVariable)(le.color,ro.rippleColor)};
1105
+ ${(0,k.setVariable)(le.color,ro.rippleColor)};
1106
1106
  }
1107
1107
 
1108
1108
  .ft-button:focus {
@@ -1116,8 +1116,8 @@
1116
1116
  text-overflow: ellipsis;
1117
1117
  display: block;
1118
1118
  margin: 0 ${q.iconPadding};
1119
- ${(0,I.setVariable)(Ke.fontSize,"1em")};
1120
- ${(0,I.setVariable)(Ke.lineHeight,"var(--button-internal-line-height)")};
1119
+ ${(0,k.setVariable)(Ke.fontSize,"1em")};
1120
+ ${(0,k.setVariable)(Ke.lineHeight,"var(--button-internal-line-height)")};
1121
1121
  }
1122
1122
 
1123
1123
  .ft-button--dense .ft-button--label {
@@ -1148,8 +1148,8 @@
1148
1148
  }
1149
1149
 
1150
1150
  ft-loader {
1151
- ${(0,I.setVariable)(Ut.size,q.iconSize)};
1152
- ${(0,I.setVariable)(Ut.color,"var(--button-internal-color)")};
1151
+ ${(0,k.setVariable)(Ut.size,q.iconSize)};
1152
+ ${(0,k.setVariable)(Ut.color,"var(--button-internal-color)")};
1153
1153
  }
1154
1154
  `;var W=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},U=class extends(0,Be.toFtFormComponent)(Be.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=vt.html`
1155
1155
  <ft-ripple part="ripple"
@@ -1193,7 +1193,7 @@
1193
1193
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1194
1194
  `:vt.html`
1195
1195
  <slot part="icon" name="icon"></slot>
1196
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Be.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};U.elementDefinitions={"ft-ripple":H,"ft-tooltip":ne,"ft-icon":Y,"ft-loader":Ht,"ft-typography":re};U.styles=[Be.safariEllipsisFix,yc,Be.noTextSelect];W([(0,F.property)({type:Boolean})],U.prototype,"primary",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"outlined",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"dense",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"round",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"disabled",void 0);W([(0,F.property)()],U.prototype,"icon",void 0);W([(0,F.property)()],U.prototype,"iconVariant",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);W([(0,F.property)()],U.prototype,"label",void 0);W([(0,F.property)()],U.prototype,"type",void 0);W([(0,F.property)()],U.prototype,"href",void 0);W([(0,F.property)()],U.prototype,"target",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"loading",void 0);W([(0,F.property)({attribute:"aria-label"})],U.prototype,"ariaLabel",void 0);W([(0,F.property)()],U.prototype,"ariaHasPopup",void 0);W([(0,F.property)({attribute:"aria-pressed"})],U.prototype,"ariaPressed",void 0);W([(0,F.property)()],U.prototype,"tooltipPosition",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"hideTooltip",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"forceTooltip",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"activated",void 0);W([(0,F.query)(".ft-button")],U.prototype,"button",void 0);W([(0,F.query)(".ft-button--label slot")],U.prototype,"slottedContent",void 0);W([(0,F.query)("[part=tooltip]")],U.prototype,"tooltip",void 0);var xc=h(E());var bc={"ft-button":U};(0,xc.customElements)(bc);var Sc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),ye={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:Sc,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","",Sc),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")},Ac=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),no={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Ac,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ac)},Ec={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Cc=[D.noTextSelect,Fr.css`
1196
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Be.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};U.elementDefinitions={"ft-ripple":H,"ft-tooltip":ne,"ft-icon":Y,"ft-loader":Ht,"ft-typography":re};U.styles=[Be.safariEllipsisFix,yc,Be.noTextSelect];W([(0,F.property)({type:Boolean})],U.prototype,"primary",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"outlined",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"dense",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"round",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"disabled",void 0);W([(0,F.property)()],U.prototype,"icon",void 0);W([(0,F.property)()],U.prototype,"iconVariant",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);W([(0,F.property)()],U.prototype,"label",void 0);W([(0,F.property)()],U.prototype,"type",void 0);W([(0,F.property)()],U.prototype,"href",void 0);W([(0,F.property)()],U.prototype,"target",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"loading",void 0);W([(0,F.property)({attribute:"aria-label"})],U.prototype,"ariaLabel",void 0);W([(0,F.property)()],U.prototype,"ariaHasPopup",void 0);W([(0,F.property)({attribute:"aria-pressed"})],U.prototype,"ariaPressed",void 0);W([(0,F.property)()],U.prototype,"tooltipPosition",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"hideTooltip",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"forceTooltip",void 0);W([(0,F.property)({type:Boolean})],U.prototype,"activated",void 0);W([(0,F.query)(".ft-button")],U.prototype,"button",void 0);W([(0,F.query)(".ft-button--label slot")],U.prototype,"slottedContent",void 0);W([(0,F.query)("[part=tooltip]")],U.prototype,"tooltip",void 0);var xc=h(E());var bc={"ft-button":U};(0,xc.customElements)(bc);var Sc=N.FtCssVariableFactory.extend("--ft-chip-color","",N.designSystemVariables.colorOnSurface),ye={backgroundColor:N.FtCssVariableFactory.extend("--ft-chip-background-color","",N.designSystemVariables.colorSurface),color:Sc,fontSize:N.FtCssVariableFactory.extend("--ft-chip-font-size","",Le.fontSize),fontWeight:N.FtCssVariableFactory.extend("--ft-chip-font-weight","",Le.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","",Sc),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")},Ac=N.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",N.FtCssVariableFactory.extend("--ft-chip-color","",N.designSystemVariables.colorOnPrimary)),no={backgroundColor:N.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",N.FtCssVariableFactory.extend("--ft-chip-background-color","",N.designSystemVariables.colorPrimary)),color:Ac,rippleColor:N.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ac)},Ec={horizontalPadding:N.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:N.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Cc=[N.noTextSelect,Fr.css`
1197
1197
  :host {
1198
1198
  display: inline-block;
1199
1199
  max-width: 100%;
@@ -1212,7 +1212,7 @@
1212
1212
  --chip-internal-font-size: ${ye.fontSize};
1213
1213
  --chip-internal-font-weight: ${ye.fontWeight};
1214
1214
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1215
- ${(0,D.setVariable)(oe.size,ye.iconSize)};
1215
+ ${(0,N.setVariable)(oe.size,ye.iconSize)};
1216
1216
  --chip-internal-vertical-padding: ${ye.verticalPadding};
1217
1217
  --chip-internal-horizontal-padding: ${ye.horizontalPadding};
1218
1218
  --chip-internal-icon-padding: 3px;
@@ -1220,7 +1220,7 @@
1220
1220
 
1221
1221
  border: 1px solid ${ye.borderColor};
1222
1222
  color: ${ye.color};
1223
- ${(0,D.setVariable)(le.color,ye.rippleColor)};
1223
+ ${(0,N.setVariable)(le.color,ye.rippleColor)};
1224
1224
  border-radius: var(${(0,Fr.unsafeCSS)(ye.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1225
1225
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1226
1226
  background-color: ${ye.backgroundColor};
@@ -1253,7 +1253,7 @@
1253
1253
  border: none;
1254
1254
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1255
1255
  background-color: ${no.backgroundColor};
1256
- ${(0,D.setVariable)(le.color,no.rippleColor)};
1256
+ ${(0,N.setVariable)(le.color,no.rippleColor)};
1257
1257
  color: ${no.color};
1258
1258
  }
1259
1259
 
@@ -1263,7 +1263,7 @@
1263
1263
  }
1264
1264
 
1265
1265
  .ft-chip:focus {
1266
- outline: 2px solid ${D.designSystemVariables.colorPrimary};
1266
+ outline: 2px solid ${N.designSystemVariables.colorPrimary};
1267
1267
  outline-offset: 2px;
1268
1268
  }
1269
1269
 
@@ -1285,9 +1285,9 @@
1285
1285
  }
1286
1286
 
1287
1287
  .ft-chip--icon-button {
1288
- ${(0,D.setVariable)(q.iconSize,ye.iconSize)};
1289
- ${(0,D.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1290
- ${(0,D.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1288
+ ${(0,N.setVariable)(q.iconSize,ye.iconSize)};
1289
+ ${(0,N.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1290
+ ${(0,N.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1291
1291
  margin: calc((-1) * var(--chip-internal-icon-padding));
1292
1292
  }
1293
1293
 
@@ -1295,9 +1295,9 @@
1295
1295
  vertical-align: bottom;
1296
1296
  display: block;
1297
1297
  margin: 0 var(--chip-internal-horizontal-padding);
1298
- ${(0,D.setVariable)(Le.fontSize,"var(--chip-internal-font-size)")};
1299
- ${(0,D.setVariable)(Le.fontWeight,"var(--chip-internal-font-weight)")};
1300
- ${(0,D.setVariable)(Le.lineHeight,"var(--chip-internal-content-height)")};
1298
+ ${(0,N.setVariable)(Le.fontSize,"var(--chip-internal-font-size)")};
1299
+ ${(0,N.setVariable)(Le.fontWeight,"var(--chip-internal-font-weight)")};
1300
+ ${(0,N.setVariable)(Le.lineHeight,"var(--chip-internal-content-height)")};
1301
1301
  }
1302
1302
 
1303
1303
  .ft-chip--safari-fix .ft-chip--label {
@@ -1360,7 +1360,7 @@
1360
1360
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1361
1361
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1362
1362
  </div>
1363
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Vi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Vi))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,hr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};K.elementDefinitions={"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-button":U};K.styles=Cc;fe([(0,ae.property)({type:Boolean})],K.prototype,"highlighted",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"removable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"disabled",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"clickable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"iconClickable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"dense",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"multiLine",void 0);fe([(0,ae.property)()],K.prototype,"label",void 0);fe([(0,ae.property)()],K.prototype,"iconLabel",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"hideIconTooltip",void 0);fe([(0,ae.property)()],K.prototype,"icon",void 0);fe([(0,ae.property)()],K.prototype,"iconVariant",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"trailingIcon",void 0);fe([(0,ae.property)()],K.prototype,"typographyVariant",void 0);fe([(0,ae.query)("ft-typography slot")],K.prototype,"slottedContent",void 0);var Tc=h(E());var Oc={"ft-chip":K};(0,Tc.customElements)(Oc);var Bt=Mi.build("ftCombobox"),_c={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 $=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},N=class extends Ii(_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.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.comboboxHasVisualFocus=!1,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(Bt,_c)}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 he.html`
1363
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Vi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Vi))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,hr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};K.elementDefinitions={"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-button":U};K.styles=Cc;fe([(0,ae.property)({type:Boolean})],K.prototype,"highlighted",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"removable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"disabled",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"clickable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"iconClickable",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"dense",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"multiLine",void 0);fe([(0,ae.property)()],K.prototype,"label",void 0);fe([(0,ae.property)()],K.prototype,"iconLabel",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"hideIconTooltip",void 0);fe([(0,ae.property)()],K.prototype,"icon",void 0);fe([(0,ae.property)()],K.prototype,"iconVariant",void 0);fe([(0,ae.property)({type:Boolean})],K.prototype,"trailingIcon",void 0);fe([(0,ae.property)()],K.prototype,"typographyVariant",void 0);fe([(0,ae.query)("ft-typography slot")],K.prototype,"slottedContent",void 0);var Tc=h(E());var Oc={"ft-chip":K};(0,Tc.customElements)(Oc);var Bt=Mi.build("ftCombobox"),_c={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 $=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(_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.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.comboboxHasVisualFocus=!1,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(Bt,_c)}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 he.html`
1364
1364
  <div class="${(0,ji.classMap)(e)}">
1365
1365
  <div class="ft-combobox--main-panel"
1366
1366
  @focusout=${this.onComboboxBlur}>
@@ -1466,7 +1466,7 @@
1466
1466
  </ft-typography>
1467
1467
  </div>
1468
1468
  </li>
1469
- `}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"}connectedCallback(){super.connectedCallback(),document.body.addEventListener("pointerup",this.onBackgroundPointerUp)}disconnectedCallback(){super.disconnectedCallback(),document.body.removeEventListener("pointerup",this.onBackgroundPointerUp)}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?Bt.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=Bt.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=Bt.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=Bt.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())}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};N.styles=[Xt,_e.screenReaderStyles,ws];N.elementDefinitions={"ft-input-label":Ee,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-chip":K};$([(0,B.property)()],N.prototype,"label",void 0);$([(0,B.property)()],N.prototype,"icon",void 0);$([(0,B.property)()],N.prototype,"iconVariant",void 0);$([(0,B.property)()],N.prototype,"name",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"error",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"filterSuggestions",void 0);$([(0,B.property)()],N.prototype,"helper",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"disabled",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"outlined",void 0);$([(0,B.property)()],N.prototype,"placeholder",void 0);$([(0,B.property)()],N.prototype,"suggestionsHelper",void 0);$([(0,B.property)({attribute:!1})],N.prototype,"suggestionsProvider",void 0);$([(0,_e.numberProperty)()],N.prototype,"suggestionsProviderDebouncerTimeout",void 0);$([(0,B.property)({noAccessor:!0})],N.prototype,"value",null);$([(0,B.property)({type:Boolean})],N.prototype,"canOfferNewValue",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"multiValued",void 0);$([(0,_e.numberProperty)()],N.prototype,"maxValues",void 0);$([(0,_e.numberProperty)()],N.prototype,"maxLength",void 0);$([(0,B.property)()],N.prototype,"labels",void 0);$([(0,B.state)()],N.prototype,"labelsToValues",void 0);$([(0,B.state)()],N.prototype,"filter",void 0);$([(0,B.state)()],N.prototype,"isOpen",void 0);$([(0,B.state)()],N.prototype,"comboboxHasVisualFocus",void 0);$([(0,B.state)()],N.prototype,"listboxHasVisualFocus",void 0);$([(0,B.state)()],N.prototype,"providedSuggestions",void 0);$([(0,B.state)()],N.prototype,"visibleSuggestions",void 0);$([(0,B.state)()],N.prototype,"activeIndex",void 0);$([(0,B.state)()],N.prototype,"ariaLiveMessage",void 0);$([(0,B.query)(".ft-combobox--input")],N.prototype,"input",void 0);$([(0,B.query)(".ft-combobox--listbox")],N.prototype,"listbox",void 0);$([(0,_e.ignoreComposingEvents)()],N.prototype,"onComboboxKeyDown",null);$([(0,_e.ignoreComposingEvents)()],N.prototype,"onComboboxKeyUp",null);var Rc={"ft-combobox":N};(0,Lc.customElements)(Rc);})();
1469
+ `}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"}connectedCallback(){super.connectedCallback(),document.body.addEventListener("pointerup",this.onBackgroundPointerUp)}disconnectedCallback(){super.disconnectedCallback(),document.body.removeEventListener("pointerup",this.onBackgroundPointerUp)}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?Bt.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=Bt.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=Bt.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=Bt.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())}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=[Xt,_e.screenReaderStyles,ws];D.elementDefinitions={"ft-input-label":Ee,"ft-ripple":H,"ft-typography":re,"ft-icon":Y,"ft-chip":K};$([(0,B.property)()],D.prototype,"label",void 0);$([(0,B.property)()],D.prototype,"icon",void 0);$([(0,B.property)()],D.prototype,"iconVariant",void 0);$([(0,B.property)()],D.prototype,"name",void 0);$([(0,B.property)({type:Boolean})],D.prototype,"error",void 0);$([(0,B.property)({type:Boolean})],D.prototype,"filterSuggestions",void 0);$([(0,B.property)()],D.prototype,"helper",void 0);$([(0,B.property)({type:Boolean})],D.prototype,"disabled",void 0);$([(0,B.property)({type:Boolean})],D.prototype,"outlined",void 0);$([(0,B.property)()],D.prototype,"placeholder",void 0);$([(0,B.property)()],D.prototype,"suggestionsHelper",void 0);$([(0,B.property)({attribute:!1})],D.prototype,"suggestionsProvider",void 0);$([(0,_e.numberProperty)()],D.prototype,"suggestionsProviderDebouncerTimeout",void 0);$([(0,B.property)({noAccessor:!0})],D.prototype,"value",null);$([(0,B.property)({type:Boolean})],D.prototype,"canOfferNewValue",void 0);$([(0,B.property)({type:Boolean})],D.prototype,"multiValued",void 0);$([(0,_e.numberProperty)()],D.prototype,"maxValues",void 0);$([(0,_e.numberProperty)()],D.prototype,"maxLength",void 0);$([(0,B.property)()],D.prototype,"labels",void 0);$([(0,B.state)()],D.prototype,"labelsToValues",void 0);$([(0,B.state)()],D.prototype,"filter",void 0);$([(0,B.state)()],D.prototype,"isOpen",void 0);$([(0,B.state)()],D.prototype,"comboboxHasVisualFocus",void 0);$([(0,B.state)()],D.prototype,"listboxHasVisualFocus",void 0);$([(0,B.state)()],D.prototype,"providedSuggestions",void 0);$([(0,B.state)()],D.prototype,"visibleSuggestions",void 0);$([(0,B.state)()],D.prototype,"activeIndex",void 0);$([(0,B.state)()],D.prototype,"ariaLiveMessage",void 0);$([(0,B.query)(".ft-combobox--input")],D.prototype,"input",void 0);$([(0,B.query)(".ft-combobox--listbox")],D.prototype,"listbox",void 0);$([(0,_e.ignoreComposingEvents)()],D.prototype,"onComboboxKeyDown",null);$([(0,_e.ignoreComposingEvents)()],D.prototype,"onComboboxKeyUp",null);var Rc={"ft-combobox":D};(0,Lc.customElements)(Rc);})();
1470
1470
  /*! Bundled license information:
1471
1471
 
1472
1472
  lit-html/lit-html.js: