@fluid-topics/ft-file-drop 2.1.23 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Bl=Object.create;var Ti=Object.defineProperty;var Hl=Object.getOwnPropertyDescriptor;var jl=Object.getOwnPropertyNames;var Fl=Object.getPrototypeOf,Vl=Object.prototype.hasOwnProperty;var Wt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var zl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of jl(t))!Vl.call(e,i)&&i!==r&&Ti(e,i,{get:()=>t[i],enumerable:!(n=Hl(t,i))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Bl(Fl(e)):{},zl(t||!e||!e.__esModule?Ti(r,"default",{value:e,enumerable:!0}):r,e));var C=Wt((mu,wi)=>{wi.exports=ftGlobals.wcUtils});var $=Wt((yu,_i)=>{_i.exports=ftGlobals.lit});var X=Wt((gu,Ri)=>{Ri.exports=ftGlobals.litDecorators});var Kt=Wt((vu,Li)=>{Li.exports=ftGlobals.litClassMap});var Oo=Wt((ed,Co)=>{Co.exports=ftGlobals.litUnsafeHTML});var $l=y(C());var Il=y($()),Qe=y(X()),Ml=y(C()),kl=y(Kt());function Pi(e,t,r){if(e.length==0)return!0;let n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),i=new RegExp(n),o=t.includes(".")?"."+t.split(".").pop():void 0;return o&&i.test(o)?!0:i.test(r)}var pn=y($()),q=y(X()),Rl=y(Kt()),Vt=y(C());var Bi=y($()),K=y(X()),Hi=y(Kt()),Gt=y(C());var Ui=y($()),H=y(C()),Ni=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorContent),J={color:Ni,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ni),opacityContentOnSurfacePressed:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:H.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Di=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorPrimary),Ii={color:Di,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",Di)},Mi=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorSecondary),ki={color:Mi,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mi)},$i=Ui.css`
1
+ "use strict";(()=>{var Ql=Object.create;var Pi=Object.defineProperty;var ec=Object.getOwnPropertyDescriptor;var tc=Object.getOwnPropertyNames;var rc=Object.getPrototypeOf,nc=Object.prototype.hasOwnProperty;var Bt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var ic=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tc(t))!nc.call(e,i)&&i!==r&&Pi(e,i,{get:()=>t[i],enumerable:!(n=ec(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Ql(rc(e)):{},ic(t||!e||!e.__esModule?Pi(r,"default",{value:e,enumerable:!0}):r,e));var S=Bt((Hu,Di)=>{Di.exports=ftGlobals.wcUtils});var V=Bt((Vu,Mi)=>{Mi.exports=ftGlobals.lit});var Z=Bt((Fu,ki)=>{ki.exports=ftGlobals.litDecorators});var Ht=Bt((ju,Ii)=>{Ii.exports=ftGlobals.litClassMap});var Ls=Bt((Cd,Rs)=>{Rs.exports=ftGlobals.litUnsafeHTML});var Xl=f(S());var Kl=f(V()),Ye=f(Z()),Gl=f(S()),ql=f(Ht());function Ui(e,t,r){if(e.length==0)return!0;let n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),i=new RegExp(n),s=t.includes(".")?"."+t.split(".").pop():void 0;return s&&i.test(s)?!0:i.test(r)}var Cn=f(V()),X=f(Z()),Vl=f(Ht()),It=f(S());var Wi=f(V()),G=f(Z()),Ki=f(Ht()),Vt=f(S());var ji=f(V()),F=f(S()),$i=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorContent),Q={color:$i,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",$i),opacityContentOnSurfacePressed:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:F.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Bi=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorPrimary),Hi={color:Bi,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",Bi)},Vi=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorSecondary),Fi={color:Vi,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vi)},zi=ji.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${J.borderRadius};
14
+ border-radius: ${Q.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,27 +45,27 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${J.backgroundColor};
48
+ background-color: ${Q.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${J.color};
52
+ background-color: ${Q.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${ki.backgroundColor};
56
+ background-color: ${Fi.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${ki.color};
60
+ background-color: ${Fi.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${Ii.backgroundColor};
64
+ background-color: ${Hi.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${Ii.color};
68
+ background-color: ${Hi.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -95,36 +95,73 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${J.opacityContentOnSurfaceHover};
98
+ opacity: ${Q.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${J.opacityContentOnSurfaceSelected};
102
+ opacity: ${Q.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${J.opacityContentOnSurfaceFocused};
106
+ opacity: ${Q.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${J.opacityContentOnSurfacePressed};
110
+ opacity: ${Q.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `;var te=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},P=class extends Gt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Gt.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Gt.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:o}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Bi.html`
113
+ `;var ne=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},M=class extends Vt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Vt.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Vt.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:s}=this.getCoordinates(t),o=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Wi.html`
114
114
  <style>
115
115
  .ft-ripple .ft-ripple--effect {
116
116
  left: ${this.originX}px;
117
117
  top: ${this.originY}px;
118
118
  }
119
119
  </style>
120
- <div class="${(0,Hi.classMap)(t)}">
120
+ <div class="${(0,Ki.classMap)(t)}">
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=$i;te([(0,K.property)({type:Boolean})],P.prototype,"primary",void 0);te([(0,K.property)({type:Boolean})],P.prototype,"secondary",void 0);te([(0,K.property)({type:Boolean})],P.prototype,"unbounded",void 0);te([(0,K.property)({type:Boolean})],P.prototype,"activated",void 0);te([(0,K.property)({type:Boolean})],P.prototype,"selected",void 0);te([(0,K.property)({type:Boolean})],P.prototype,"disabled",void 0);te([(0,K.state)()],P.prototype,"hovered",void 0);te([(0,K.state)()],P.prototype,"focused",void 0);te([(0,K.state)()],P.prototype,"pressed",void 0);te([(0,K.state)()],P.prototype,"rippling",void 0);te([(0,K.state)()],P.prototype,"originX",void 0);te([(0,K.state)()],P.prototype,"originY",void 0);te([(0,K.query)(".ft-ripple")],P.prototype,"ripple",void 0);te([(0,K.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Fi=y(C());var ji={"ft-ripple":P};(0,Fi.customElements)(ji);var An=globalThis,Vi=e=>e,Sr=An.trustedTypes,zi=Sr?Sr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Xi="$lit$",Be=`lit$${Math.random().toFixed(9).slice(2)}$`,Ji="?"+Be,Wl=`<${Ji}>`,nt=document,Cr=()=>nt.createComment(""),Yt=e=>e===null||typeof e!="object"&&typeof e!="function",En=Array.isArray,Kl=e=>En(e)||typeof e?.[Symbol.iterator]=="function",mn=`[
125
- \f\r]`,qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wi=/-->/g,Ki=/>/g,tt=RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gi=/'/g,qi=/"/g,Zi=/^(?:script|style|textarea|title)$/i,Sn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Qi=Sn(1),eo=Sn(2),to=Sn(3),Xt=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Yi=new WeakMap,rt=nt.createTreeWalker(nt,129);function ro(e,t){if(!En(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return zi!==void 0?zi.createHTML(t):t}var Gl=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=qt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===qt?u[1]==="!--"?s=Wi:u[1]!==void 0?s=Ki:u[2]!==void 0?(Zi.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=tt):u[3]!==void 0&&(s=tt):s===tt?u[0]===">"?(s=i??qt,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?tt:u[3]==='"'?qi:Gi):s===qi||s===Gi?s=tt:s===Wi||s===Ki?s=qt:(s=tt,i=void 0);let f=s===tt&&e[a+1].startsWith("/>")?" ":"";o+=s===qt?l+Wl:d>=0?(n.push(c),l.slice(0,d)+Xi+l.slice(d)+Be+f):l+Be+(d===-2?a:f)}return[ro(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Jt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=Gl(t,r);if(this.el=e.createElement(c,n),rt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=rt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Xi)){let p=u[s++],f=i.getAttribute(d).split(Be),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:h[2],strings:f,ctor:h[1]==="."?gn:h[1]==="?"?vn:h[1]==="@"?bn:bt}),i.removeAttribute(d)}else d.startsWith(Be)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(Zi.test(i.tagName)){let d=i.textContent.split(Be),p=d.length-1;if(p>0){i.textContent=Sr?Sr.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],Cr()),rt.nextNode(),l.push({type:2,index:++o});i.append(d[p],Cr())}}}else if(i.nodeType===8)if(i.data===Ji)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(Be,d+1))!==-1;)l.push({type:7,index:o}),d+=Be.length-1}o++}}static createElement(t,r){let n=nt.createElement("template");return n.innerHTML=t,n}};function vt(e,t,r=e,n){if(t===Xt)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Yt(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=vt(e,i._$AS(e,t.values),i,n)),t}var yn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??nt).importNode(r,!0);rt.currentNode=i;let o=rt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Or(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new xn(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=rt.nextNode(),s++)}return rt.currentNode=nt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Or=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=vt(this,t,r),Yt(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==Xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==j&&Yt(this._$AH)?this._$AA.nextSibling.data=t:this.T(nt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Jt.createElement(ro(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new yn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Yi.get(t.strings);return r===void 0&&Yi.set(t.strings,r=new Jt(t)),r}k(t){En(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Cr()),this.O(Cr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=Vi(t).nextSibling;Vi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=vt(this,t,r,0),s=!Yt(t)||t!==this._$AH&&t!==Xt,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=vt(this,a[n+l],r,l),c===Xt&&(c=this._$AH[l]),s||=!Yt(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gn=class extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},vn=class extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},bn=class extends bt{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=vt(this,t,r,0)??j)===Xt)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==j&&(n===j||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){vt(this,t)}};var ql=An.litHtmlPolyfillSupport;ql?.(Jt,Or),(An.litHtmlVersions??=[]).push("3.3.3");var io=Symbol.for(""),Yl=e=>{if(e?.r===io)return e?._$litStatic$},Cn=e=>({_$litStatic$:e,r:io});var no=new Map,On=e=>(t,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(o=r[c],(i=Yl(o))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=no.get(d))===void 0&&(s.raw=s,no.set(d,t=s)),r=a}return e(t,...r)},Tn=On(Qi),Du=On(eo),Iu=On(to);var wn=y(X()),bo=y(C());var He;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(He||(He={}));var pe=y($()),v=y(C()),oo=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.titleFont),Ne=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.contentFont),E={fontFamily:Ne,fontSize:v.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:v.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:v.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:v.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:v.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-font-family","",oo),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},At={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",oo),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},Et={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},St={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},Ct={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},de={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},Ot={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Tt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},wt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},_e={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ne),fontSize:v.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},so=pe.css`
124
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",i,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",i,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,s;return r.x!=null?{x:i,y:s}=r:n.touches!=null&&(i=n.touches[0].clientX,s=n.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=zi;ne([(0,G.property)({type:Boolean})],M.prototype,"primary",void 0);ne([(0,G.property)({type:Boolean})],M.prototype,"secondary",void 0);ne([(0,G.property)({type:Boolean})],M.prototype,"unbounded",void 0);ne([(0,G.property)({type:Boolean})],M.prototype,"activated",void 0);ne([(0,G.property)({type:Boolean})],M.prototype,"selected",void 0);ne([(0,G.property)({type:Boolean})],M.prototype,"disabled",void 0);ne([(0,G.state)()],M.prototype,"hovered",void 0);ne([(0,G.state)()],M.prototype,"focused",void 0);ne([(0,G.state)()],M.prototype,"pressed",void 0);ne([(0,G.state)()],M.prototype,"rippling",void 0);ne([(0,G.state)()],M.prototype,"originX",void 0);ne([(0,G.state)()],M.prototype,"originY",void 0);ne([(0,G.query)(".ft-ripple")],M.prototype,"ripple",void 0);ne([(0,G.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var qi=f(S());var Gi={"ft-ripple":M};(0,qi.customElements)(Gi);var Dn=globalThis,Yi=e=>e,Er=Dn.trustedTypes,Xi=Er?Er.createPolicy("lit-html",{createHTML:e=>e}):void 0,rs="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,ns="?"+$e,sc=`<${ns}>`,Qe=document,Ar=()=>Qe.createComment(""),jt=e=>e===null||typeof e!="object"&&typeof e!="function",Mn=Array.isArray,oc=e=>Mn(e)||typeof e?.[Symbol.iterator]=="function",Tn=`[
125
+ \f\r]`,Ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Zi=/>/g,Je=RegExp(`>|${Tn}(?:([^\\s"'>=/]+)(${Tn}*=${Tn}*(?:[^
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qi=/'/g,es=/"/g,is=/^(?:script|style|textarea|title)$/i,kn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ss=kn(1),os=kn(2),as=kn(3),zt=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),ts=new WeakMap,Ze=Qe.createTreeWalker(Qe,129);function ls(e,t){if(!Mn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xi!==void 0?Xi.createHTML(t):t}var ac=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Ft;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Ft?u[1]==="!--"?o=Ji:u[1]!==void 0?o=Zi:u[2]!==void 0?(is.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Je):u[3]!==void 0&&(o=Je):o===Je?u[0]===">"?(o=i??Ft,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Je:u[3]==='"'?es:Qi):o===es||o===Qi?o=Je:o===Ji||o===Zi?o=Ft:(o=Je,i=void 0);let y=o===Je&&e[a+1].startsWith("/>")?" ":"";s+=o===Ft?l+sc:d>=0?(n.push(c),l.slice(0,d)+rs+l.slice(d)+$e+y):l+$e+(d===-2?a:y)}return[ls(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Wt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=ac(t,r);if(this.el=e.createElement(c,n),Ze.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ze.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(rs)){let p=u[o++],y=i.getAttribute(d).split($e),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:y,ctor:v[1]==="."?Rn:v[1]==="?"?Ln:v[1]==="@"?Nn:ht}),i.removeAttribute(d)}else d.startsWith($e)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(is.test(i.tagName)){let d=i.textContent.split($e),p=d.length-1;if(p>0){i.textContent=Er?Er.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],Ar()),Ze.nextNode(),l.push({type:2,index:++s});i.append(d[p],Ar())}}}else if(i.nodeType===8)if(i.data===ns)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf($e,d+1))!==-1;)l.push({type:7,index:s}),d+=$e.length-1}s++}}static createElement(t,r){let n=Qe.createElement("template");return n.innerHTML=t,n}};function ft(e,t,r=e,n){if(t===zt)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=jt(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=ft(e,i._$AS(e,t.values),i,n)),t}var On=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Qe).importNode(r,!0);Ze.currentNode=i;let s=Ze.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Sr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Pn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=Ze.nextNode(),o++)}return Ze.currentNode=Qe,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Sr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ft(this,t,r),jt(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):oc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==j&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Qe.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Wt.createElement(ls(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new On(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=ts.get(t.strings);return r===void 0&&ts.set(t.strings,r=new Wt(t)),r}k(t){Mn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(Ar()),this.O(Ar()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=Yi(t).nextSibling;Yi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=ft(this,t,r,0),o=!jt(t)||t!==this._$AH&&t!==zt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=ft(this,a[n+l],r,l),c===zt&&(c=this._$AH[l]),o||=!jt(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Rn=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},Ln=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},Nn=class extends ht{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=ft(this,t,r,0)??j)===zt)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==j&&(n===j||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Pn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}};var lc=Dn.litHtmlPolyfillSupport;lc?.(Wt,Sr),(Dn.litHtmlVersions??=[]).push("3.3.3");var us=Symbol.for(""),cc=e=>{if(e?.r===us)return e?._$litStatic$},In=e=>({_$litStatic$:e,r:us});var cs=new Map,Un=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=cc(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=cs.get(d))===void 0&&(o.raw=o,cs.set(d,t=o)),r=a}return e(t,...r)},$n=Un(ss),id=Un(os),sd=Un(as);var Bn=f(Z()),_s=f(S());var Be;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Be||(Be={}));var fe=f(V()),m=f(S()),ds=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Pe=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),b={fontFamily:Pe,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},mt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ds),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},yt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ds),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},gt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},xt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},pe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},bt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Et={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},At={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},we={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Pe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},ps=fe.css`
127
127
  .ft-typography--title {
128
+ font-family: ${mt.fontFamily};
129
+ font-size: ${mt.fontSize};
130
+ font-weight: ${mt.fontWeight};
131
+ letter-spacing: ${mt.letterSpacing};
132
+ line-height: ${mt.lineHeight};
133
+ text-transform: ${mt.textTransform};
134
+ }
135
+ `,fs=fe.css`
136
+ .ft-typography--title-dense {
137
+ font-family: ${yt.fontFamily};
138
+ font-size: ${yt.fontSize};
139
+ font-weight: ${yt.fontWeight};
140
+ letter-spacing: ${yt.letterSpacing};
141
+ line-height: ${yt.lineHeight};
142
+ text-transform: ${yt.textTransform};
143
+ }
144
+ `,hs=fe.css`
145
+ .ft-typography--subtitle1 {
146
+ font-family: ${gt.fontFamily};
147
+ font-size: ${gt.fontSize};
148
+ font-weight: ${gt.fontWeight};
149
+ letter-spacing: ${gt.letterSpacing};
150
+ line-height: ${gt.lineHeight};
151
+ text-transform: ${gt.textTransform};
152
+ }
153
+ `,ms=fe.css`
154
+ .ft-typography--subtitle2 {
155
+ font-family: ${vt.fontFamily};
156
+ font-size: ${vt.fontSize};
157
+ font-weight: ${vt.fontWeight};
158
+ letter-spacing: ${vt.letterSpacing};
159
+ line-height: ${vt.lineHeight};
160
+ text-transform: ${vt.textTransform};
161
+ }
162
+
163
+ `,ys=fe.css`
164
+ .ft-typography--body1 {
128
165
  font-family: ${xt.fontFamily};
129
166
  font-size: ${xt.fontSize};
130
167
  font-weight: ${xt.fontWeight};
@@ -132,17 +169,26 @@
132
169
  line-height: ${xt.lineHeight};
133
170
  text-transform: ${xt.textTransform};
134
171
  }
135
- `,ao=pe.css`
136
- .ft-typography--title-dense {
137
- font-family: ${At.fontFamily};
138
- font-size: ${At.fontSize};
139
- font-weight: ${At.fontWeight};
140
- letter-spacing: ${At.letterSpacing};
141
- line-height: ${At.lineHeight};
142
- text-transform: ${At.textTransform};
143
- }
144
- `,lo=pe.css`
145
- .ft-typography--subtitle1 {
172
+ `,gs=fe.css`
173
+ .ft-typography--body2 {
174
+ font-family: ${pe.fontFamily};
175
+ font-size: ${pe.fontSize};
176
+ font-weight: ${pe.fontWeight};
177
+ letter-spacing: ${pe.letterSpacing};
178
+ line-height: ${pe.lineHeight};
179
+ text-transform: ${pe.textTransform};
180
+ }
181
+ `,vs=fe.css`
182
+ .ft-typography--caption {
183
+ font-family: ${bt.fontFamily};
184
+ font-size: ${bt.fontSize};
185
+ font-weight: ${bt.fontWeight};
186
+ letter-spacing: ${bt.letterSpacing};
187
+ line-height: ${bt.lineHeight};
188
+ text-transform: ${bt.textTransform};
189
+ }
190
+ `,xs=fe.css`
191
+ .ft-typography--breadcrumb {
146
192
  font-family: ${Et.fontFamily};
147
193
  font-size: ${Et.fontSize};
148
194
  font-weight: ${Et.fontWeight};
@@ -150,83 +196,37 @@
150
196
  line-height: ${Et.lineHeight};
151
197
  text-transform: ${Et.textTransform};
152
198
  }
153
- `,co=pe.css`
154
- .ft-typography--subtitle2 {
155
- font-family: ${St.fontFamily};
156
- font-size: ${St.fontSize};
157
- font-weight: ${St.fontWeight};
158
- letter-spacing: ${St.letterSpacing};
159
- line-height: ${St.lineHeight};
160
- text-transform: ${St.textTransform};
161
- }
162
-
163
- `,uo=pe.css`
164
- .ft-typography--body1 {
165
- font-family: ${Ct.fontFamily};
166
- font-size: ${Ct.fontSize};
167
- font-weight: ${Ct.fontWeight};
168
- letter-spacing: ${Ct.letterSpacing};
169
- line-height: ${Ct.lineHeight};
170
- text-transform: ${Ct.textTransform};
171
- }
172
- `,po=pe.css`
173
- .ft-typography--body2 {
174
- font-family: ${de.fontFamily};
175
- font-size: ${de.fontSize};
176
- font-weight: ${de.fontWeight};
177
- letter-spacing: ${de.letterSpacing};
178
- line-height: ${de.lineHeight};
179
- text-transform: ${de.textTransform};
180
- }
181
- `,fo=pe.css`
182
- .ft-typography--caption {
183
- font-family: ${Ot.fontFamily};
184
- font-size: ${Ot.fontSize};
185
- font-weight: ${Ot.fontWeight};
186
- letter-spacing: ${Ot.letterSpacing};
187
- line-height: ${Ot.lineHeight};
188
- text-transform: ${Ot.textTransform};
189
- }
190
- `,ho=pe.css`
191
- .ft-typography--breadcrumb {
192
- font-family: ${Tt.fontFamily};
193
- font-size: ${Tt.fontSize};
194
- font-weight: ${Tt.fontWeight};
195
- letter-spacing: ${Tt.letterSpacing};
196
- line-height: ${Tt.lineHeight};
197
- text-transform: ${Tt.textTransform};
198
- }
199
- `,mo=pe.css`
199
+ `,bs=fe.css`
200
200
  .ft-typography--overline {
201
- font-family: ${wt.fontFamily};
202
- font-size: ${wt.fontSize};
203
- font-weight: ${wt.fontWeight};
204
- letter-spacing: ${wt.letterSpacing};
205
- line-height: ${wt.lineHeight};
206
- text-transform: ${wt.textTransform};
207
- }
208
- `,yo=pe.css`
201
+ font-family: ${At.fontFamily};
202
+ font-size: ${At.fontSize};
203
+ font-weight: ${At.fontWeight};
204
+ letter-spacing: ${At.letterSpacing};
205
+ line-height: ${At.lineHeight};
206
+ text-transform: ${At.textTransform};
207
+ }
208
+ `,Es=fe.css`
209
209
  .ft-typography--button {
210
- font-family: ${_e.fontFamily};
211
- font-size: ${_e.fontSize};
212
- font-weight: ${_e.fontWeight};
213
- letter-spacing: ${_e.letterSpacing};
214
- line-height: ${_e.lineHeight};
215
- text-transform: ${_e.textTransform};
216
- }
217
- `,go=pe.css`
210
+ font-family: ${we.fontFamily};
211
+ font-size: ${we.fontSize};
212
+ font-weight: ${we.fontWeight};
213
+ letter-spacing: ${we.letterSpacing};
214
+ line-height: ${we.lineHeight};
215
+ text-transform: ${we.textTransform};
216
+ }
217
+ `,As=fe.css`
218
218
  .ft-typography {
219
219
  vertical-align: inherit;
220
220
  }
221
- `;var vo=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},se=class extends bo.FtLitElement{constructor(){super(...arguments),this.variant=He.body1}render(){return this.element?Tn`
222
- <${Cn(this.element)}
221
+ `;var Ss=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},oe=class extends _s.FtLitElement{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?$n`
222
+ <${In(this.element)}
223
223
  part="text"
224
224
  class="ft-typography ft-typography--${this.variant}">
225
225
  <slot></slot>
226
- </${Cn(this.element)}>
227
- `:Tn`
226
+ </${In(this.element)}>
227
+ `:$n`
228
228
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
229
- `}};se.styles=[so,ao,lo,co,uo,po,fo,ho,mo,yo,go];vo([(0,wn.property)()],se.prototype,"element",void 0);vo([(0,wn.property)()],se.prototype,"variant",void 0);var Ao=y(C());var xo={"ft-typography":se};(0,Ao.customElements)(xo);var Eo=y($()),xe=y(C()),ae={size:xe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},So=[Eo.css`
229
+ `}};oe.styles=[ps,fs,hs,ms,ys,gs,vs,xs,bs,Es,As];Ss([(0,Bn.property)()],oe.prototype,"element",void 0);Ss([(0,Bn.property)()],oe.prototype,"variant",void 0);var ws=f(S());var Cs={"ft-typography":oe};(0,ws.customElements)(Cs);var Ts=f(V()),xe=f(S()),ae={size:xe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Os=[Ts.css`
230
230
  :host, i.ft-icon {
231
231
  display: inline-flex;
232
232
  align-items: center;
@@ -274,12 +274,12 @@
274
274
  .ft-icon--material {
275
275
  font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
276
276
  }
277
- `,xe.noTextSelect];var je;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(je||(je={}));var Zt=y($()),Fe=y(X()),To=y(C()),wo=y(Oo());var Tr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Tr||(Tr={}));var g;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(g||(g={}));var td=new Map([...["abw"].map(e=>[e,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,g.AUDIO]),...["avi"].map(e=>[e,g.AVI]),...["chm","xhs"].map(e=>[e,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,g.CODE]),...["csv"].map(e=>[e,g.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,g.DITA]),...["epub"].map(e=>[e,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,g.EXCEL]),...["flac"].map(e=>[e,g.FLAC]),...["gif"].map(e=>[e,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,g.GZIP]),...["html","htm","xhtml"].map(e=>[e,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,g.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,g.JPEG]),...["json"].map(e=>[e,g.JSON]),...["m4a","m4p"].map(e=>[e,g.M4A]),...["mov","qt"].map(e=>[e,g.MOV]),...["mp3"].map(e=>[e,g.MP3]),...["mp4","m4v"].map(e=>[e,g.MP4]),...["ogg","oga"].map(e=>[e,g.OGG]),...["pdf","ps"].map(e=>[e,g.PDF]),...["png"].map(e=>[e,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,g.POWERPOINT]),...["rar"].map(e=>[e,g.RAR]),...["stp"].map(e=>[e,g.STP]),...["txt","rtf","md","mdown"].map(e=>[e,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,g.VIDEO]),...["wav"].map(e=>[e,g.WAV]),...["wma"].map(e=>[e,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,g.WORD]),...["xml","xsl","rdf"].map(e=>[e,g.XML]),...["yaml","yml","x-yaml"].map(e=>[e,g.YAML]),...["zip"].map(e=>[e,g.ZIP])]);var rd={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Qt=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Z=class extends To.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Zt.nothing}render(){let t=this.variant&&Object.values(je).includes(this.variant)?this.variant:je.fluid_topics,r=t!==je.material||!!this.value;return Zt.html`
277
+ `,xe.noTextSelect];var He;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(He||(He={}));var Kt=f(V()),Ve=f(Z()),Ns=f(S()),Ps=f(Ls());var _r;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(_r||(_r={}));var h;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(h||(h={}));var wd=new Map([...["abw"].map(e=>[e,h.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,h.AUDIO]),...["avi"].map(e=>[e,h.AVI]),...["chm","xhs"].map(e=>[e,h.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,h.CODE]),...["csv"].map(e=>[e,h.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,h.DITA]),...["epub"].map(e=>[e,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,h.EXCEL]),...["flac"].map(e=>[e,h.FLAC]),...["gif"].map(e=>[e,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,h.GZIP]),...["html","htm","xhtml"].map(e=>[e,h.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,h.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,h.JPEG]),...["json"].map(e=>[e,h.JSON]),...["m4a","m4p"].map(e=>[e,h.M4A]),...["mov","qt"].map(e=>[e,h.MOV]),...["mp3"].map(e=>[e,h.MP3]),...["mp4","m4v"].map(e=>[e,h.MP4]),...["ogg","oga"].map(e=>[e,h.OGG]),...["pdf","ps"].map(e=>[e,h.PDF]),...["png"].map(e=>[e,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,h.POWERPOINT]),...["rar"].map(e=>[e,h.RAR]),...["stp"].map(e=>[e,h.STP]),...["txt","rtf","md","mdown"].map(e=>[e,h.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,h.VIDEO]),...["wav"].map(e=>[e,h.WAV]),...["wma"].map(e=>[e,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,h.WORD]),...["xml","xsl","rdf"].map(e=>[e,h.XML]),...["yaml","yml","x-yaml"].map(e=>[e,h.YAML]),...["zip"].map(e=>[e,h.ZIP])]);var Td={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var Gt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ee=class extends Ns.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Kt.nothing}render(){let t=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,r=t!==He.material||!!this.value;return Kt.html`
278
278
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
279
- ${(0,wo.unsafeHTML)(this.resolvedIcon)}
279
+ ${(0,Ps.unsafeHTML)(this.resolvedIcon)}
280
280
  <slot ?hidden=${r}></slot>
281
281
  </i>
282
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case je.file_format:this.resolvedIcon=(t=g[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case je.material:this.resolvedIcon=this.value||Zt.nothing;break;default:this.resolvedIcon=(r=Tr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Z.elementDefinitions={};Z.styles=So;Qt([(0,Fe.property)()],Z.prototype,"variant",void 0);Qt([(0,Fe.property)()],Z.prototype,"value",void 0);Qt([(0,Fe.property)({reflect:!0,attribute:"aria-hidden"})],Z.prototype,"ariaHidden",void 0);Qt([(0,Fe.state)()],Z.prototype,"resolvedIcon",void 0);Qt([(0,Fe.query)("slot")],Z.prototype,"slottedContent",void 0);var Ro=y(C());var _o={"ft-icon":Z};(0,Ro.customElements)(_o);var Er=y($()),_=y(C());var ve=y(C());var ul=y($()),ge=y(X()),ye=y(C());var Lo=y($()),Ve=y(C()),er={distance:Ve.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ve.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ve.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ve.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ve.designSystemVariables.borderRadiusS),maxWidth:Ve.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Po=Lo.css`
282
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case He.file_format:this.resolvedIcon=(t=h[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case He.material:this.resolvedIcon=this.value||Kt.nothing;break;default:this.resolvedIcon=(r=_r[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Os;Gt([(0,Ve.property)()],ee.prototype,"variant",void 0);Gt([(0,Ve.property)()],ee.prototype,"value",void 0);Gt([(0,Ve.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Gt([(0,Ve.state)()],ee.prototype,"resolvedIcon",void 0);Gt([(0,Ve.query)("slot")],ee.prototype,"slottedContent",void 0);var Ms=f(S());var Ds={"ft-icon":ee};(0,Ms.customElements)(Ds);var br=f(V()),T=f(S());var Ne=f(S());var Al=f(V()),ge=f(Z()),ye=f(S());var ks=f(V()),Fe=f(S()),qt={distance:Fe.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Fe.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Fe.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Fe.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Fe.designSystemVariables.borderRadiusS),maxWidth:Fe.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Is=ks.css`
283
283
  .ft-tooltip--container {
284
284
  display: block;
285
285
  }
@@ -297,28 +297,28 @@
297
297
  box-sizing: border-box;
298
298
  overflow: hidden;
299
299
  width: max-content;
300
- max-width: ${er.maxWidth};
300
+ max-width: ${qt.maxWidth};
301
301
  text-align: center;
302
- padding: ${er.distance};
302
+ padding: ${qt.distance};
303
303
  }
304
304
 
305
305
  .ft-tooltip--content {
306
306
  padding: 4px 8px;
307
- border-radius: ${er.borderRadiusS};
308
- background-color: ${er.backgroundColor};
309
- color: ${er.color};
307
+ border-radius: ${qt.borderRadiusS};
308
+ background-color: ${qt.backgroundColor};
309
+ color: ${qt.color};
310
310
  position: relative;
311
311
  word-break: break-word;
312
312
  }
313
- `;var Do=["top","right","bottom","left"],No=["start","end"],Rn=Do.reduce((e,t)=>e.concat(t,t+"-"+No[0],t+"-"+No[1]),[]),tr=Math.min,ze=Math.max,rr=Math.round;var Re=e=>({x:e,y:e}),Xl={left:"right",right:"left",bottom:"top",top:"bottom"};function Io(e,t,r){return ze(e,tr(t,r))}function wr(e,t){return typeof e=="function"?e(t):e}function nr(e){return e.split("-")[0]}function We(e){return e.split("-")[1]}function Ln(e){return e==="x"?"y":"x"}function Pn(e){return e==="y"?"height":"width"}function _r(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Nn(e){return Ln(_r(e))}function Mo(e,t,r){r===void 0&&(r=!1);let n=We(e),i=Nn(e),o=Pn(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=_n(s)),[s,_n(s)]}function ko(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function _n(e){let t=nr(e);return Xl[t]+e.slice(t.length)}function Jl(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Uo(e){return typeof e!="number"?Jl(e):{top:e,right:e,bottom:e,left:e}}function it(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function $o(e,t,r){let{reference:n,floating:i}=e,o=_r(t),s=Nn(t),a=Pn(s),l=nr(t),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}let h=We(t);return h&&(f[s]+=p*(h==="end"?1:-1)*(r&&c?-1:1)),f}async function Bo(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=wr(t,e),h=Uo(f),b=a[p?d==="floating"?"reference":"floating":d],x=it(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})),A=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),T=await(o.isElement==null?void 0:o.isElement(S))&&await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1},z=it(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:S,strategy:l}):A);return{top:(x.top-z.top+h.top)/T.y,bottom:(z.bottom-x.bottom+h.bottom)/T.y,left:(x.left-z.left+h.left)/T.x,right:(z.right-x.right+h.right)/T.x}}var Zl=50,Ho=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Bo},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=$o(c,n,l),p=n,f=0,h={};for(let m=0;m<o.length;m++){let b=o[m];if(!b)continue;let{name:x,fn:A}=b,{x:S,y:T,data:z,reset:B}=await A({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=S??u,d=T??d,h[x]={...h[x],...z},B&&f<Zl&&(f++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(c=B.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):B.rects),{x:u,y:d}=$o(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function Ql(e,t,r){return(e?[...r.filter(i=>We(i)===e),...r.filter(i=>We(i)!==e)]:r.filter(i=>nr(i)===i)).filter(i=>e?We(i)===e||(t?ko(i)!==i:!1):!0)}var jo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Rn,autoAlignment:f=!0,...h}=wr(e,t),m=d!==void 0||p===Rn?Ql(d||null,f,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,x=m[b];if(x==null)return{};if(a!==x)return{reset:{placement:m[0]}};let A=await l.detectOverflow(t,h),S=Mo(x,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),T=[A[nr(x)],A[S[0]],A[S[1]]],z=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:T}],B=m[b+1];if(B)return{data:{index:b+1,overflows:z},reset:{placement:B}};let Ue=z.map(ie=>{let ue=We(ie.placement);return[ie.placement,ue&&u?ie.overflows.slice(0,2).reduce((oe,et)=>oe+et,0):ie.overflows[0],ie.overflows]}).sort((ie,ue)=>ie[1]-ue[1]),$e=((i=Ue.filter(ie=>ie[2].slice(0,We(ie[0])?2:3).every(ue=>ue<=0))[0])==null?void 0:i[0])||Ue[0][0];return $e!==a?{data:{index:b+1,overflows:z},reset:{placement:$e}}:{}}}};var Fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:S,y:T}=A;return{x:S,y:T}}},...c}=wr(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=_r(i),f=Ln(p),h=u[f],m=u[p],b=(A,S)=>Io(S+d[A==="y"?"top":"left"],S,S-d[A==="y"?"bottom":"right"]);s&&(h=b(f,h)),a&&(m=b(p,m));let x=l.fn({...t,[f]:h,[p]:m});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[f]:s,[p]:a}}}}}};function Lr(){return typeof window<"u"}function st(e){return zo(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(zo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zo(e){return Lr()?e instanceof Node||e instanceof re(e).Node:!1}function Ae(e){return Lr()?e instanceof Element||e instanceof re(e).Element:!1}function Ie(e){return Lr()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function Vo(e){return!Lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function ir(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Wo(e){return/^(table|td|th)$/.test(st(e))}function or(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ec=/transform|translate|scale|rotate|perspective|filter/,tc=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none",Dn;function _t(e){let t=Ae(e)?Ee(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!Pr()&&(ot(t.backdropFilter)||ot(t.filter))||ec.test(t.willChange||"")||tc.test(t.contain||"")}function Ko(e){let t=Ke(e);for(;Ie(t)&&!Rt(t);){if(_t(t))return t;if(or(t))return null;t=Ke(t)}return null}function Pr(){return Dn==null&&(Dn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Dn}function Rt(e){return/^(html|body|#document)$/.test(st(e))}function Ee(e){return re(e).getComputedStyle(e)}function sr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ke(e){if(st(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||De(e);return Vo(t)?t.host:t}function Go(e){let t=Ke(e);return Rt(t)?(e.ownerDocument||e).body:Ie(t)&&ir(t)?t:Go(t)}function Rr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Go(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=re(i);if(o){let a=Nr(s);return t.concat(s,s.visualViewport||[],ir(i)?i:[],a&&r?Rr(a):[])}else return t.concat(i,Rr(i,[],r))}function Nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xo(e){let t=Ee(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ie(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=rr(r)!==o||rr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Jo(e){return Ae(e)?e:e.contextElement}function Lt(e){let t=Jo(e);if(!Ie(t))return Re(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Xo(t),s=(o?rr(r.width):r.width)/n,a=(o?rr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var rc=Re(0);function Zo(e){let t=re(e);return!Pr()||!t.visualViewport?rc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===re(e)}function ar(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Jo(e),s=Re(1);t&&(n?Ae(n)&&(s=Lt(n)):s=Lt(e));let a=nc(o,r,n)?Zo(o):Re(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=re(o),f=Ae(n)?re(n):n,h=p,m=Nr(h);for(;m&&f!==h;){let b=Lt(m),x=m.getBoundingClientRect(),A=Ee(m),S=x.left+(m.clientLeft+parseFloat(A.paddingLeft))*b.x,T=x.top+(m.clientTop+parseFloat(A.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=S,c+=T,h=re(m),m=Nr(h)}}return it({width:u,height:d,x:l,y:c})}function Dr(e,t){let r=sr(e).scrollLeft;return t?t.left+r:ar(De(e)).left+r}function Qo(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Dr(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function ic(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=De(n),a=t?or(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Re(1),u=Re(0),d=Ie(n);if((d||!o)&&((st(n)!=="body"||ir(s))&&(l=sr(n)),d)){let f=ar(n);c=Lt(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=s&&!d&&!o?Qo(s,l):Re(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 oc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function sc(e){let t=sr(e),r=e.ownerDocument.body,n=ze(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ze(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+Dr(e),s=-t.scrollTop;return Ee(r).direction==="rtl"&&(o+=ze(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var ac=25;function lc(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=re(e),o=De(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Pr()||t==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Dr(o)<=0){let p=o.ownerDocument,f=p.body,h=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(o.clientWidth-f.clientWidth-m),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;x<=ac&&(a-=x)}return{width:a,height:l,x:c,y:u}}function cc(e,t){let r=ar(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Lt(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function qo(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=lc(e,r,t);else if(t==="document")n=sc(De(e));else if(Ae(t))n=cc(t,r);else{let i=Zo(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return it(n)}function uc(e,t){let r=t.get(e);if(r)return r;let n=Rr(e,[],!1).filter(a=>Ae(a)&&st(a)!=="body"),i=null,o=Ee(e).position==="fixed",s=o?Ke(e):e;for(;Ae(s)&&!Rt(s);){let a=Ee(s),l=_t(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=Ke(s)}return t.set(e,n),n}function dc(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?or(t)?[]:uc(t,this._c):[].concat(r),n],a=qo(t,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let f=qo(t,s[p],i);l=ze(f.top,l),c=tr(f.right,c),u=tr(f.bottom,u),d=ze(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function pc(e){let{width:t,height:r}=Xo(e);return{width:t,height:r}}function fc(e,t,r){let n=Ie(t),i=De(t),o=r==="fixed",s=ar(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=Re(0);if((n||!o)&&((st(t)!=="body"||ir(i))&&(a=sr(t)),n)){let p=ar(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Dr(i));let c=i&&!n&&!o?Qo(i,a):Re(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function In(e){return Ee(e).position==="static"}function Yo(e,t){if(!Ie(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return De(e)===r&&(r=r.ownerDocument.body),r}function es(e,t){let r=re(e);if(or(e))return r;if(!Ie(e)){let i=Ke(e);for(;i&&!Rt(i);){if(Ae(i)&&!In(i))return i;i=Ke(i)}return r}let n=Yo(e,t);for(;n&&Wo(n)&&In(n);)n=Yo(n,t);return n&&Rt(n)&&In(n)&&!_t(n)?r:n||Ko(e)||r}var hc=async function(e){let t=this.getOffsetParent||es,r=this.getDimensions,n=await r(e.floating);return{reference:fc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mc(e){return Ee(e).direction==="rtl"}var Ir={convertOffsetParentRelativeRectToViewportRelativeRect:ic,getDocumentElement:De,getClippingRect:dc,getOffsetParent:es,getElementRects:hc,getClientRects:oc,getDimensions:pc,getScale:Lt,isElement:Ae,isRTL:mc};var ts=jo,rs=Fo;var ns=(e,t,r)=>{let n=new Map,i=r??{},o={...Ir,...i.platform,_c:n};return Ho(e,t,{...i,platform:o})};function is(e){return yc(e)}function Mn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function yc(e){for(let t=e;t;t=Mn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Mn(e);t;t=Mn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||_t(r)||t.tagName==="BODY"))return t}return null}async function os(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},ns(e,t,{strategy:n.strategy,platform:{...Ir,getOffsetParent:i=>Ir.getOffsetParent(i,is)},middleware:[rs({crossAxis:!0}),ts({allowedPlacements:[n.placement]})]})}var Ft=y(C());var ai=y(X());var ss=y(X(),1);var kn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function as(e,t){return(0,ss.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return lr(e);try{return JSON.parse(r)}catch{return lr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:cr,...t??{}})}function gc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Mr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Mr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(e);if(r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!Mr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Mr(e,t){try{return gc(e,t)}catch{return!1}}function cr(e,t){return!Mr(e,t)}function lr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function kr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var ls=y(X(),1);var Un=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:cr,attribute:!1,...t};(0,ls.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Ur=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var at=y(X(),1);var $r=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var us=y($(),1);var Br=globalThis,vc=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var cs=(e,t)=>{if(vc)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Br.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Hr=class extends us.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return cs(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){kn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function ds(e,t,...r){var n;let i=e.querySelector(t);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var Nt=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ms,ps=Symbol("constructorPrototype"),fs=Symbol("constructorName"),ys=Symbol("exportpartsDebouncer"),hs=Symbol("dynamicDependenciesLoaded"),Pt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Pt.eventName="exportparts-updated";var Le=class extends Hr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ms]=new $r(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ys].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[fs]=this.constructor.name,this[ps]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fs]&&Object.setPrototypeOf(this,this[ps])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[hs]||(r[hs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Pt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Pt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Pt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=ds(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],h=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],m=[...f,...h].filter(l).map(b=>b.trim());for(let b of m)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(", ")}};ms=ys;Nt([(0,at.property)()],Le.prototype,"exportpartsPrefix",void 0);Nt([as([])],Le.prototype,"exportpartsPrefixes",void 0);Nt([(0,at.property)({reflect:!0})],Le.prototype,"exportparts",void 0);Nt([(0,at.property)()],Le.prototype,"customStylesheet",void 0);Nt([(0,at.property)()],Le.prototype,"elementToFocus",void 0);Nt([(0,at.state)()],Le.prototype,"useAdoptedStyleSheets",void 0);function jr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ur=Symbol("internalReduxEventsUnsubscribers"),Ge=Symbol("internalStoresUnsubscribers"),lt=Symbol("internalStores"),bc=kr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[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[Ge].has(s.store):this[Ge].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Ge].set(s,a.subscribe(()=>this.updateFromStores())),this[ur].set(s,[]),jr(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[ur].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ge].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Ge].has(s)&&this[Ge].get(s)(),this[Ge].delete(s),(a=this[ur].get(s))===null||a===void 0||a.forEach(l=>l()),this[ur].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ge,r=lt,n=ur,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),gs=class extends bc(Le){};function fe(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(e){return!!e&&!!e[N]}function Se(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===wc})(e)||Array.isArray(e)||!!e[Cs]||!!(!((t=e.constructor)===null||t===void 0)&&t[Cs])||Kn(e)||Gn(e))}function ct(e,t,r){r===void 0&&(r=!1),Mt(e)===0?(r?Object.keys:It)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Mt(e){var t=e[N];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Kn(e)?2:Gn(e)?3:0}function Dt(e,t){return Mt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xc(e,t){return Mt(e)===2?e.get(t):e[t]}function Os(e,t,r){var n=Mt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ts(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Kn(e){return Oc&&e instanceof Map}function Gn(e){return Tc&&e instanceof Set}function qe(e){return e.o||e.t}function qn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Rs(e);delete t[N];for(var r=It(t),n=0;n<r.length;n++){var i=r[n],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Yn(e,t){return t===void 0&&(t=!1),Xn(e)||Me(e)||!Se(e)||(Mt(e)>1&&(e.set=e.add=e.clear=e.delete=Ac),Object.freeze(e),t&&ct(e,(function(r,n){return Yn(n,!0)}),!0)),e}function Ac(){fe(2)}function Xn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var t=Wn[e];return t||fe(18,e),t}function Ec(e,t){Wn[e]||(Wn[e]=t)}function Fn(){return pr}function $n(e,t){t&&(Pe("Patches"),e.u=[],e.s=[],e.v=t)}function Fr(e){Vn(e),e.p.forEach(Sc),e.p=null}function Vn(e){e===pr&&(pr=e.l)}function vs(e){return pr={p:[],l:pr,h:e,m:!0,_:0}}function Sc(e){var t=e[N];t.i===0||t.i===1?t.j():t.g=!0}function Bn(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Pe("ES5").S(t,e,n),n?(r[N].P&&(Fr(t),fe(4)),Se(e)&&(e=Vr(t,e),t.l||zr(t,e)),t.u&&Pe("Patches").M(r[N].t,e,t.u,t.s)):e=Vr(t,r,[]),Fr(t),t.u&&t.v(t.u,t.s),e!==_s?e:void 0}function Vr(e,t,r){if(Xn(t))return t;var n=t[N];if(!n)return ct(t,(function(a,l){return bs(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return zr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),ct(o,(function(a,l){return bs(e,n,i,a,l,r,s)})),zr(e,i,!1),r&&e.u&&Pe("Patches").N(n,r,e.u,e.s)}return n.o}function bs(e,t,r,n,i,o,s){if(Me(i)){var a=Vr(e,i,o&&t&&t.i!==3&&!Dt(t.R,n)?o.concat(n):void 0);if(Os(r,n,a),!Me(a))return;e.m=!1}else s&&r.add(i);if(Se(i)&&!Xn(i)){if(!e.h.D&&e._<1)return;Vr(e,i),t&&t.A.l||zr(e,i)}}function zr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Yn(t,r)}function Hn(e,t){var r=e[N];return(r?qe(r):e)[t]}function xs(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ye(e){e.P||(e.P=!0,e.l&&Ye(e.l))}function jn(e){e.o||(e.o=qn(e.t))}function zn(e,t,r){var n=Kn(t)?Pe("MapSet").F(t,r):Gn(t)?Pe("MapSet").T(t,r):e.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Fn(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=fr;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})(t,r):Pe("ES5").J(t,r);return(r?r.A:Fn()).p.push(n),n}function Cc(e){return Me(e)||fe(22,e),(function t(r){if(!Se(r))return r;var n,i=r[N],o=Mt(r);if(i){if(!i.P&&(i.i<4||!Pe("ES5").K(i)))return i.t;i.I=!0,n=As(r,o),i.I=!1}else n=As(r,o);return ct(n,(function(s,a){i&&xc(i.t,s)===a||Os(n,s,t(a))})),o===3?new Set(n):n})(e)}function As(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qn(e)}function ws(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[N];return fr.get(c,s)},set:function(c){var u=this[N];fr.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][N];if(!l.P)switch(l.i){case 5:n(l)&&Ye(l);break;case 4:r(l)&&Ye(l)}}}function r(s){for(var a=s.t,l=s.k,c=It(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==N){var p=a[d];if(p===void 0&&!Dt(a,d))return!0;var f=l[d],h=f&&f[N];if(h?h.t!==p:!Ts(f,p))return!0}}var m=!!a[N];return c.length!==It(a).length+(m?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&fe(3,JSON.stringify(qe(s)))}var o={};Ec("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var f=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(f,""+h,e(h,!0));return f}var m=Rs(p);delete m[N];for(var b=It(m),x=0;x<b.length;x++){var A=b[x];m[A]=e(A,d||!!m[A].enumerable)}return Object.create(Object.getPrototypeOf(p),m)})(l,s),u={i:l?5:4,A:a?a.A:Fn(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,N,{value:u,writable:!0}),c},S:function(s,a,l){l?Me(a)&&a[N].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[N];if(d){var p=d.t,f=d.k,h=d.R,m=d.i;if(m===4)ct(f,(function(T){T!==N&&(p[T]!==void 0||Dt(p,T)?h[T]||c(f[T]):(h[T]=!0,Ye(d)))})),ct(p,(function(T){f[T]!==void 0||Dt(f,T)||(h[T]=!1,Ye(d))}));else if(m===5){if(n(d)&&(Ye(d),h.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)h[b]=!1;else for(var x=p.length;x<f.length;x++)h[x]=!0;for(var A=Math.min(f.length,p.length),S=0;S<A;S++)f.hasOwnProperty(S)||(h[S]=!0),h[S]===void 0&&c(f[S])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Es,pr,Jn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Oc=typeof Map<"u",Tc=typeof Set<"u",Ss=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_s=Jn?Symbol.for("immer-nothing"):((Es={})["immer-nothing"]=!0,Es),Cs=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",N=Jn?Symbol.for("immer-state"):"__$immer_state";var wc=""+Object.prototype.constructor,It=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Rs=Object.getOwnPropertyDescriptors||function(e){var t={};return It(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Wn={},fr={get:function(e,t){if(t===N)return e;var r=qe(e);if(!Dt(r,t))return(function(i,o,s){var a,l=xs(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Se(n)?n:n===Hn(e.t,t)?(jn(e),e.o[t]=zn(e.A.h,n,e)):n},has:function(e,t){return t in qe(e)},ownKeys:function(e){return Reflect.ownKeys(qe(e))},set:function(e,t,r){var n=xs(qe(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Hn(qe(e),t),o=i?.[N];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ts(r,i)&&(r!==void 0||Dt(e.t,t)))return!0;jn(e),Ye(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Hn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,jn(e),Ye(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=qe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){fe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){fe(12)}},dr={};ct(fr,(function(e,t){dr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),dr.deleteProperty=function(e,t){return dr.set.call(this,e,t,void 0)},dr.set=function(e,t,r){return fr.set.call(this,e[0],t,r,e[0])};var _c=(function(){function e(r){var n=this;this.O=Ss,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(m){var b=this;m===void 0&&(m=a);for(var x=arguments.length,A=Array(x>1?x-1:0),S=1;S<x;S++)A[S-1]=arguments[S];return l.produce(m,(function(T){var z;return(z=o).call.apply(z,[b,T].concat(A))}))}}var c;if(typeof o!="function"&&fe(6),s!==void 0&&typeof s!="function"&&fe(7),Se(i)){var u=vs(n),d=zn(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?Fr(u):Vn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return $n(u,s),Bn(m,u)}),(function(m){throw Fr(u),m})):($n(u,s),Bn(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===_s&&(c=void 0),n.D&&Yn(c,!0),s){var f=[],h=[];Pe("Patches").M(i,c,f,h),s(f,h)}return c}fe(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Se(r)||fe(8),Me(r)&&(r=Cc(r));var n=vs(this),i=zn(this,r,void 0);return i[N].C=!0,Vn(n),i},t.finishDraft=function(r,n){var i=r&&r[N],o=i.A;return $n(o,n),Bn(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ss&&fe(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=Pe("Patches").$;return Me(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},e})(),le=new _c,Rc=le.produce,hp=le.produceWithPatches.bind(le),mp=le.setAutoFreeze.bind(le),yp=le.setUseProxies.bind(le),gp=le.applyPatches.bind(le),vp=le.createDraft.bind(le),bp=le.finishDraft.bind(le),Wr=Rc;function ut(e){"@babel/helpers - typeof";return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(e)}function Ls(e,t){if(ut(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(e){var t=Ls(e,"string");return ut(t)=="symbol"?t:t+""}function Ns(e,t,r){return(t=Ps(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ds(Object(r),!0).forEach(function(n){Ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Is=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Kr={INIT:"@@redux/INIT"+Qn(),REPLACE:"@@redux/REPLACE"+Qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qn()}};function Lc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ei(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Y(1));return r(ei)(e,t)}if(typeof e!="function")throw new Error(Y(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Y(3));return o}function d(m){if(typeof m!="function")throw new Error(Y(4));if(l)throw new Error(Y(5));var b=!0;return c(),a.push(m),function(){if(b){if(l)throw new Error(Y(6));b=!1,c();var A=a.indexOf(m);a.splice(A,1),s=null}}}function p(m){if(!Lc(m))throw new Error(Y(7));if(typeof m.type>"u")throw new Error(Y(8));if(l)throw new Error(Y(9));try{l=!0,o=i(o,m)}finally{l=!1}for(var b=s=a,x=0;x<b.length;x++){var A=b[x];A()}return m}function f(m){if(typeof m!="function")throw new Error(Y(10));i=m,p({type:Kr.REPLACE})}function h(){var m,b=d;return m={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Y(11));function S(){A.next&&A.next(u())}S();var T=b(S);return{unsubscribe:T}}},m[Is]=function(){return this},m}return p({type:Kr.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[Is]=h,n}function Pc(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Kr.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof r(void 0,{type:Kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Ms(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var o=Object.keys(r),s,a;try{Pc(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={},h=0;h<o.length;h++){var m=o[h],b=r[m],x=c[m],A=b(x,u);if(typeof A>"u"){var S=u&&u.type;throw new Error(Y(14))}f[m]=A,p=p||A!==x}return p=p||o.length!==Object.keys(c).length,p?f:c}}function kt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ks(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(Y(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=kt.apply(void 0,a)(i.dispatch),Zn(Zn({},i),{},{dispatch:o})}}}function Us(e){var t=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var $s=Us();$s.withExtraArgument=Us;var ti=$s;var Vs=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Nc=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ut=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Dc=Object.defineProperty,Ic=Object.defineProperties,Mc=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,kc=Object.prototype.hasOwnProperty,Uc=Object.prototype.propertyIsEnumerable,Hs=function(e,t,r){return t in e?Dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Xe=function(e,t){for(var r in t||(t={}))kc.call(t,r)&&Hs(e,r,t[r]);if(Bs)for(var n=0,i=Bs(t);n<i.length;n++){var r=i[n];Uc.call(t,r)&&Hs(e,r,t[r])}return e},ri=function(e,t){return Ic(e,Mc(t))},$c=function(e,t,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var Bc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kt:kt.apply(null,arguments)},Up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Hc(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Je(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Xe(Xe({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var jc=(function(e){Vs(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ut([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ut([void 0],r.concat(this))))},t})(Array),Fc=(function(e){Vs(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ut([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ut([void 0],r.concat(this))))},t})(Array);function oi(e){return Se(e)?Wr(e,function(){}):e}function Vc(e){return typeof e=="boolean"}function zc(){return function(t){return Wc(t)}}function Wc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new jc;if(r&&(Vc(r)?c.push(ti):c.push(ti.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var ni=!0;function zs(e){var t=zc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?t():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 i=="function")f=i;else if(Hc(i))f=Ms(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=s;if(typeof h=="function"&&(h=h(t),!ni&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ni&&h.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=ks.apply(void 0,h),b=kt;l&&(b=Bc(Xe({trace:!ni},typeof l=="object"&&l)));var x=new Fc(m),A=x;Array.isArray(p)?A=Ut([m],p):typeof p=="function"&&(A=p(x));var S=b.apply(void 0,A);return ei(f,u,S)}function Ws(e){var t={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function Kc(e){return typeof e=="function"}function Gc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ws(t):[t,r,n],o=i[0],s=i[1],a=i[2],l;if(Kc(e))l=function(){return oi(e())};else{var c=oi(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Ut([o[p.type]],s.filter(function(h){var m=h.matcher;return m(p)}).map(function(h){var m=h.reducer;return m}));return f.filter(function(h){return!!h}).length===0&&(f=[a]),f.reduce(function(h,m){if(m)if(Me(h)){var b=h,x=m(b,p);return x===void 0?h:x}else{if(Se(h))return Wr(h,function(A){return m(A,p)});var x=m(h,p);if(x===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return h},d)}return u.getInitialState=l,u}function qc(e,t){return e+"/"+t}function Ks(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:oi(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=qc(t,u),f,h;"reducer"in d?(f=d.reducer,h=d.prepare):f=d,o[u]=f,s[p]=f,a[u]=h?Je(p,h):Je(p)});function l(){var u=typeof e.extraReducers=="function"?Ws(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],h=f===void 0?[]:f,m=u[2],b=m===void 0?void 0:m,x=Xe(Xe({},p),s);return Gc(r,function(A){for(var S in x)A.addCase(S,x[S]);for(var T=0,z=h;T<z.length;T++){var B=z[T];A.addMatcher(B.matcher,B.reducer)}b&&A.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Yc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=Yc[Math.random()*64|0];return t},Jc=["name","message","stack","code"],ii=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),js=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Zc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Jc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},jp=(function(){function e(t,r,n){var i=Je(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:ri(Xe({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Je(t+"/pending",function(u,d,p){return{payload:void 0,meta:ri(Xe({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Je(t+"/rejected",function(u,d,p,f,h){return{payload:f,error:(n&&n.serializeError||Zc)(u||"Rejected"),meta:ri(Xe({},h||{}),{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 h=n?.idGenerator?n.idGenerator(u):Xc(),m=new l,b,x=!1;function A(T){b=T,m.abort()}var S=(function(){return $c(this,null,function(){var T,z,B,Ue,hn,$e,ie;return Nc(this,function(ue){switch(ue.label){case 0:return ue.trys.push([0,4,,5]),Ue=(T=n?.condition)==null?void 0:T.call(n,u,{getState:p,extra:f}),eu(Ue)?[4,Ue]:[3,2];case 1:Ue=ue.sent(),ue.label=2;case 2:if(Ue===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,hn=new Promise(function(oe,et){return m.signal.addEventListener("abort",function(){return et({name:"AbortError",message:b||"Aborted"})})}),d(o(h,u,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:h,arg:u},{getState:p,extra:f}))),[4,Promise.race([hn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:h,signal:m.signal,abort:A,rejectWithValue:function(oe,et){return new ii(oe,et)},fulfillWithValue:function(oe,et){return new js(oe,et)}})).then(function(oe){if(oe instanceof ii)throw oe;return oe instanceof js?i(oe.payload,h,u,oe.meta):i(oe,h,u)})])];case 3:return B=ue.sent(),[3,5];case 4:return $e=ue.sent(),B=$e instanceof ii?s(null,h,u,$e.payload,$e.meta):s($e,h,u),[3,5];case 5:return ie=n&&!n.dispatchConditionRejection&&s.match(B)&&B.meta.condition,ie||d(B),[2,B]}})})})();return Object.assign(S,{abort:A,requestId:h,arg:u,unwrap:function(){return S.then(Qc)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Qc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function eu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gs="listener",qs="completed",Ys="cancelled",Fp="task-"+Ys,Vp="task-"+qs,zp=Gs+"-"+Ys,Wp=Gs+"-"+qs;var si="listenerMiddleware";var Kp=Je(si+"/add"),Gp=Je(si+"/removeAll"),qp=Je(si+"/remove");var Fs,Yp=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Fs||(Fs=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},tu=function(e){return function(t){setTimeout(t,e)}},Xp=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tu(10);ws();var ru=kr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Gr=class extends ru(Object){};window.ftReduxStores||(window.ftReduxStores={});var Xs=class e extends Gr{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(jr(o))return o;if(i==null)return;let s=Ks({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=zs({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[i.name]=new e(s,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ur;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=class{static format(t,r,n,i,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(t,r,n,i,!!o)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Yr=y(C()),nu="ft-app-info",$t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};$t.eventName="authentication-change";var hr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};hr.eventName="ui-locale-changed";var iu={session:(e,t)=>{(0,Yr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new $t(t.payload)),0))}},w=Yr.FtReduxStore.get({name:nu,reducers:iu,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Js=y(C()),Xr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Of=(0,Js.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>qr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Xr([(0,ai.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Xr([(0,ai.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Xr([Un({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Xr([Un({store:w.name})],t.prototype,"uiLocale",void 0),t});var Zs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Zs||(Zs={}));var Qs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Qs||(Qs={}));var ea;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ea||(ea={}));var ta;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ta||(ta={}));var ra;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ra||(ra={}));var na;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(na||(na={}));var ia;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ia||(ia={}));var oa;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(oa||(oa={}));var sa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(sa||(sa={}));var aa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(aa||(aa={}));var la;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(la||(la={}));var ca;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ca||(ca={}));var ua;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ua||(ua={}));var da;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(da||(da={}));var pa;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(pa||(pa={}));var fa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(fa||(fa={}));var ha;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ha||(ha={}));var ma;(function(e){e.ASC="ASC",e.DESC="DESC"})(ma||(ma={}));var ya;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ya||(ya={}));var ga;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ga||(ga={}));var va;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(va||(va={}));var ba;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ba||(ba={}));var xa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(xa||(xa={}));var Aa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Aa||(Aa={}));var Ea;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ea||(Ea={}));var Sa;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Sa||(Sa={}));var Ca;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ca||(Ca={}));var F;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(F||(F={}));var he;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(he||(he={}));var Oa;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Oa||(Oa={}));var Ta;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ta||(Ta={}));var wa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(wa||(wa={}));var _a;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(_a||(_a={}));var Ra;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Ra||(Ra={}));var La;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(La||(La={}));var Pa;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Pa||(Pa={}));var Na;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Na||(Na={}));var Da;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Da||(Da={}));var Ia;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ia||(Ia={}));var Ma;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ma||(Ma={}));var ka;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ka||(ka={}));var ou={[F.PERSONAL_BOOK_SHARE_USER]:[F.PERSONAL_BOOK_USER],[F.HTML_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.PDF_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.KHUB_ADMIN]:[F.CONTENT_PUBLISHER],[F.ADMIN]:[F.KHUB_ADMIN,F.USERS_ADMIN,F.PORTAL_ADMIN,F.BEHAVIOR_DATA_USER],[F.GENERATIVE_AI_EXPORT_USER]:[F.GENERATIVE_AI_USER]};function Ua(e,t){return e===t||(ou[e]??[]).some(r=>Ua(r,t))}function $a(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ua(n,t))}var tn=y(C());var li=y(C());var dt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Bt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):dt.await()}};var ce=class extends Bt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?i.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Jr=class extends ce{async listMySearches(){let{session:t}=w.getState();return $a(t,F.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Zr=class extends ce{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Qr=class extends ce{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var en=class extends ce{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var su="ft-user-assets",au={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(he).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;ui(e,r,[...ci(e,r),i]),Ba(e,r,1,n),Ha(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;ui(e,r,ci(e,r).map(i=>i.id===n.id?n:i)),Ha(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;ui(e,r,ci(e,r).filter(o=>o.id!==i)),Ba(e,r,-1,n)}},ja={[he.SEARCHES]:"savedSearches",[he.BOOKMARKS]:"bookmarks",[he.BOOKS]:void 0,[he.COLLECTIONS]:void 0},ci=(e,t)=>{var r;let n=ja[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},ui=(e,t,r)=>{let n=ja[t];n&&(e[n]=r)},Ba=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===he.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Ha=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},Q=tn.FtReduxStore.get({name:su,reducers:au,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(he).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),di=class{constructor(t=new Qr,r=new en){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zr,this.savedSearchesService=new Jr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,tn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Q.actions.clearAssetCount(),Q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Q.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Q.getState().assetCounts.allAsset[t]!==r.count&&Q.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Q.getState().assetCounts.bookmarkByMap[t]!==r.count&&Q.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Q.getState().assetCounts.bookmarkByMap).length!==0;t===he.BOOKMARKS&&r&&Q.actions.clearBookmarkCountByMap(),Q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Q.actions.bookmarks(r)}}},lu=new di;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=lu);var pi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var me=y(C());var Fa,Ht=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},cu=Symbol("clearAfterUnitTest"),rn=class extends(0,me.withEventBus)(ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Fa]=()=>{this.defaultMessages={},this.cache=new me.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,me.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let o=t.toLowerCase(),s=this.resolveContext(o);return new me.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof me.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ht({loadedContexts:t})),this.dispatchEvent(new Ht({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ht({loadedContexts:[t]})),this.dispatchEvent(new Ht({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,me.delay)(0).then(()=>n()).catch(()=>null)))}};Fa=cu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends rn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends rn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var mr=window.FluidTopicsI18nService,fi=window.FluidTopicsCustomI18nService;var Va=y(C()),hi=class{highlightHtml(t,r,n){(0,Va.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new hi;var za=y(C());var mi=class{isDate(t){var r,n,i,o;return(o=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(t,r){var n,i,o,s;if(t==null)return"";try{return za.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new mi;var Wa=y(C());var yr=class{static get(t,r){var n,i,o,s;let a=w.getState(),{lang:l,region:c}=(o=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Wa.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var yi=class{urlToSearchRequest(t){return yr.get().parse(t)}searchRequestToUrl(t){return yr.get().serialize(t)}};window.FluidTopicsUrlService=new yi;var ke=y(C());var pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};pt.eventName="change";var gi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ka=new gi;var nn=class e extends ke.WithEventBus{static build(){return new e(window.history,Ka,()=>window.location,!1)}constructor(t,r,n,i){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ke.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new pt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(pt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(pt.eventName,t)}currentItem(){return(0,ke.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ke.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ke.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ke.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=nn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ga=y($());var qa=Ga.css`
314
- `;var Ja=y($()),ne=y(X()),mt=y(C());var ft=y(C());function Ya(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var on=class extends Bt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var vi=class e extends ft.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new ft.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new on,this.cleanSessionDebouncer=new ft.Debouncer,this.reloadDebouncer=new ft.Debouncer(500),this.apiProvider=r??(()=>dt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener($t.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Ya(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new hr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Xa=vi.build();var ht=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new ht(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var G=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},D=class extends mt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Xa,this.contextRoot=new gr}render(){return Ja.html`
313
+ `;var $s=["top","right","bottom","left"],Us=["start","end"],Vn=$s.reduce((e,t)=>e.concat(t,t+"-"+Us[0],t+"-"+Us[1]),[]),Yt=Math.min,je=Math.max,Xt=Math.round;var Te=e=>({x:e,y:e}),uc={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(e,t,r){return je(e,Yt(t,r))}function Cr(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Fn(e){return e==="x"?"y":"x"}function jn(e){return e==="y"?"height":"width"}function wr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function zn(e){return Fn(wr(e))}function Hs(e,t,r){r===void 0&&(r=!1);let n=ze(e),i=zn(e),s=jn(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Hn(o)),[o,Hn(o)]}function Vs(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Hn(e){let t=Jt(e);return uc[t]+e.slice(t.length)}function dc(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Fs(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function et(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function js(e,t,r){let{reference:n,floating:i}=e,s=wr(t),o=zn(t),a=jn(o),l=Jt(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,y;switch(l){case"top":y={x:u,y:n.y-i.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-i.width,y:d};break;default:y={x:n.x,y:n.y}}let v=ze(t);return v&&(y[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function zs(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Cr(t,e),v=Fs(y),g=a[p?d==="floating"?"reference":"floating":d],A=et(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},O=et(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:x,strategy:l}):L);return{top:(A.top-O.top+v.top)/C.y,bottom:(O.bottom-A.bottom+v.bottom)/C.y,left:(A.left-O.left+v.left)/C.x,right:(O.right-A.right+v.right)/C.x}}var pc=50,Ws=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:zs},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=js(c,n,l),p=n,y=0,v={};for(let E=0;E<s.length;E++){let g=s[E];if(!g)continue;let{name:A,fn:L}=g,{x,y:C,data:O,reset:B}=await L({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=C??d,v[A]={...v[A],...O},B&&y<pc&&(y++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(c=B.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):B.rects),{x:u,y:d}=js(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:v}};function fc(e,t,r){return(e?[...r.filter(i=>ze(i)===e),...r.filter(i=>ze(i)!==e)]:r.filter(i=>Jt(i)===i)).filter(i=>e?ze(i)===e||(t?Vs(i)!==i:!1):!0)}var Ks=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Vn,autoAlignment:y=!0,...v}=Cr(e,t),E=d!==void 0||p===Vn?fc(d||null,y,p):p,g=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[g];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,v),x=Hs(A,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[Jt(A)],L[x[0]],L[x[1]]],O=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],B=E[g+1];if(B)return{data:{index:g+1,overflows:O},reset:{placement:B}};let P=O.map(de=>{let Xe=ze(de.placement);return[de.placement,Xe&&u?de.overflows.slice(0,2).reduce((Jl,Zl)=>Jl+Zl,0):de.overflows[0],de.overflows]}).sort((de,Xe)=>de[1]-Xe[1]),$t=((i=P.filter(de=>de[2].slice(0,ze(de[0])?2:3).every(Xe=>Xe<=0))[0])==null?void 0:i[0])||P[0][0];return $t!==a?{data:{index:g+1,overflows:O},reset:{placement:$t}}:{}}}};var Gs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...c}=Cr(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=wr(i),y=Fn(p),v=u[y],E=u[p],g=(L,x)=>Bs(x+d[L==="y"?"top":"left"],x,x-d[L==="y"?"bottom":"right"]);o&&(v=g(y,v)),a&&(E=g(p,E));let A=l.fn({...t,[y]:v,[p]:E});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[y]:o,[p]:a}}}}}};function Or(){return typeof window<"u"}function rt(e){return Ys(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ys(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ys(e){return Or()?e instanceof Node||e instanceof ie(e).Node:!1}function be(e){return Or()?e instanceof Element||e instanceof ie(e).Element:!1}function Me(e){return Or()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function qs(e){return!Or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function Zt(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Xs(e){return/^(table|td|th)$/.test(rt(e))}function Qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var hc=/transform|translate|scale|rotate|perspective|filter/,mc=/paint|layout|strict|content/,tt=e=>!!e&&e!=="none",Wn;function St(e){let t=be(e)?Ee(e):e;return tt(t.transform)||tt(t.translate)||tt(t.scale)||tt(t.rotate)||tt(t.perspective)||!Rr()&&(tt(t.backdropFilter)||tt(t.filter))||hc.test(t.willChange||"")||mc.test(t.contain||"")}function Js(e){let t=We(e);for(;Me(t)&&!_t(t);){if(St(t))return t;if(Qt(t))return null;t=We(t)}return null}function Rr(){return Wn==null&&(Wn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wn}function _t(e){return/^(html|body|#document)$/.test(rt(e))}function Ee(e){return ie(e).getComputedStyle(e)}function er(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(rt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||qs(e)&&e.host||De(e);return qs(t)?t.host:t}function Zs(e){let t=We(e);return _t(t)?(e.ownerDocument||e).body:Me(t)&&Zt(t)?t:Zs(t)}function Tr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Zs(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=ie(i);if(s){let a=Lr(o);return t.concat(o,o.visualViewport||[],Zt(i)?i:[],a&&r?Tr(a):[])}else return t.concat(i,Tr(i,[],r))}function Lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function to(e){let t=Ee(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Me(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Xt(r)!==s||Xt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function ro(e){return be(e)?e:e.contextElement}function Ct(e){let t=ro(e);if(!Me(t))return Te(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=to(t),o=(s?Xt(r.width):r.width)/n,a=(s?Xt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var yc=Te(0);function no(e){let t=ie(e);return!Rr()||!t.visualViewport?yc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ie(e)}function tr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=ro(e),o=Te(1);t&&(n?be(n)&&(o=Ct(n)):o=Ct(e));let a=gc(s,r,n)?no(s):Te(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s&&n){let p=ie(s),y=be(n)?ie(n):n,v=p,E=Lr(v);for(;E&&y!==v;){let g=Ct(E),A=E.getBoundingClientRect(),L=Ee(E),x=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*g.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=C,v=ie(E),E=Lr(v)}}return et({width:u,height:d,x:l,y:c})}function Nr(e,t){let r=er(e).scrollLeft;return t?t.left+r:tr(De(e)).left+r}function io(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Nr(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function vc(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=De(n),a=t?Qt(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Te(1),u=Te(0),d=Me(n);if((d||!s)&&((rt(n)!=="body"||Zt(o))&&(l=er(n)),d)){let y=tr(n);c=Ct(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=o&&!d&&!s?io(o,l):Te(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function xc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function bc(e){let t=er(e),r=e.ownerDocument.body,n=je(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=je(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Nr(e),o=-t.scrollTop;return Ee(r).direction==="rtl"&&(s+=je(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Ec=25;function Ac(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=ie(e),s=De(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!Rr()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Nr(s)<=0){let p=s.ownerDocument,y=p.body,v=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,g=Math.abs(s.clientWidth-y.clientWidth-E),A=getComputedStyle(s).scrollbarGutter==="stable both-edges"?g/2:g;A<=Ec&&(a-=A)}return{width:a,height:l,x:c,y:u}}function Sc(e,t){let r=tr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ct(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Qs(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Ac(e,r,t);else if(t==="document")n=bc(De(e));else if(be(t))n=Sc(t,r);else{let i=no(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return et(n)}function _c(e,t){let r=t.get(e);if(r)return r;let n=Tr(e,[],!1).filter(a=>be(a)&&rt(a)!=="body"),i=null,s=Ee(e).position==="fixed",o=s?We(e):e;for(;be(o)&&!_t(o);){let a=Ee(o),l=St(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=We(o)}return t.set(e,n),n}function Cc(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Qt(t)?[]:_c(t,this._c):[].concat(r),n],a=Qs(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Qs(t,o[p],i);l=je(y.top,l),c=Yt(y.right,c),u=Yt(y.bottom,u),d=je(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function wc(e){let{width:t,height:r}=to(e);return{width:t,height:r}}function Tc(e,t,r){let n=Me(t),i=De(t),s=r==="fixed",o=tr(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=Te(0);if((n||!s)&&((rt(t)!=="body"||Zt(i))&&(a=er(t)),n)){let p=tr(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Nr(i));let c=i&&!n&&!s?io(i,a):Te(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Kn(e){return Ee(e).position==="static"}function eo(e,t){if(!Me(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return De(e)===r&&(r=r.ownerDocument.body),r}function so(e,t){let r=ie(e);if(Qt(e))return r;if(!Me(e)){let i=We(e);for(;i&&!_t(i);){if(be(i)&&!Kn(i))return i;i=We(i)}return r}let n=eo(e,t);for(;n&&Xs(n)&&Kn(n);)n=eo(n,t);return n&&_t(n)&&Kn(n)&&!St(n)?r:n||Js(e)||r}var Oc=async function(e){let t=this.getOffsetParent||so,r=this.getDimensions,n=await r(e.floating);return{reference:Tc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Rc(e){return Ee(e).direction==="rtl"}var Pr={convertOffsetParentRelativeRectToViewportRelativeRect:vc,getDocumentElement:De,getClippingRect:Cc,getOffsetParent:so,getElementRects:Oc,getClientRects:xc,getDimensions:wc,getScale:Ct,isElement:be,isRTL:Rc};var oo=Ks,ao=Gs;var lo=(e,t,r)=>{let n=new Map,i=r??{},s={...Pr,...i.platform,_c:n};return Ws(e,t,{...i,platform:s})};function co(e){return Lc(e)}function Gn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Lc(e){for(let t=e;t;t=Gn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Gn(e);t;t=Gn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||St(r)||t.tagName==="BODY"))return t}return null}async function uo(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},lo(e,t,{strategy:n.strategy,platform:{...Pr,getOffsetParent:i=>Pr.getOffsetParent(i,co)},middleware:[ao({crossAxis:!0}),oo({allowedPlacements:[n.placement]})]})}var kt=f(S());var mi=f(Z());var po=f(Z(),1);var qn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function fo(e,t){return(0,po.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return rr(e);try{return JSON.parse(r)}catch{return rr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:nr,...t??{}})}function Nc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!wt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wt(e,t){try{return Nc(e,t)}catch{return!1}}function nr(e,t){return!wt(e,t)}function rr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Dr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var ho=f(Z(),1);var Yn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:nr,attribute:!1,...t};(0,ho.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Mr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var nt=f(Z(),1);var kr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var yo=f(V(),1);var Ir=globalThis,Pc=Ir.ShadowRoot&&(Ir.ShadyCSS===void 0||Ir.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var mo=(e,t)=>{if(Pc)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Ir.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Ur=class extends yo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return mo(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){qn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function go(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Ot=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Eo,vo=Symbol("constructorPrototype"),xo=Symbol("constructorName"),Ao=Symbol("exportpartsDebouncer"),bo=Symbol("dynamicDependenciesLoaded"),Tt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Tt.eventName="exportparts-updated";var Oe=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Eo]=new kr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Ao].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[xo]=this.constructor.name,this[vo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xo]&&Object.setPrototypeOf(this,this[vo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[bo]||(r[bo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Tt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Tt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Tt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=go(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],v=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...v].filter(l).map(g=>g.trim());for(let g of E)u.add(g)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Eo=Ao;Ot([(0,nt.property)()],Oe.prototype,"exportpartsPrefix",void 0);Ot([fo([])],Oe.prototype,"exportpartsPrefixes",void 0);Ot([(0,nt.property)({reflect:!0})],Oe.prototype,"exportparts",void 0);Ot([(0,nt.property)()],Oe.prototype,"customStylesheet",void 0);Ot([(0,nt.property)()],Oe.prototype,"elementToFocus",void 0);Ot([(0,nt.state)()],Oe.prototype,"useAdoptedStyleSheets",void 0);function $r(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ir=Symbol("internalReduxEventsUnsubscribers"),Ke=Symbol("internalStoresUnsubscribers"),it=Symbol("internalStores"),Dc=Dr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[it].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[it].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[it].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[it].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[it].delete(a)}setupStores(){this.unsubscribeFromStores(),this[it].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Ke].has(o.store):this[Ke].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[Ke].set(o,a.subscribe(()=>this.updateFromStores())),this[ir].set(o,[]),$r(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[ir].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Ke].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Ke].has(o)&&this[Ke].get(o)(),this[Ke].delete(o),(a=this[ir].get(o))===null||a===void 0||a.forEach(l=>l()),this[ir].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ke,r=it,n=ir,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),So=class extends Dc(Oe){};function q(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mc=typeof Symbol=="function"&&Symbol.observable||"@@observable",_o=Mc,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),kc={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},Br=kc;function Hr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jn(e,t,r){if(typeof e!="function")throw new Error(q(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(q(1));return r(Jn)(e,t)}let n=e,i=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((g,A)=>{o.set(A,g)}))}function u(){if(l)throw new Error(q(3));return i}function d(g){if(typeof g!="function")throw new Error(q(4));if(l)throw new Error(q(5));let A=!0;c();let L=a++;return o.set(L,g),function(){if(A){if(l)throw new Error(q(6));A=!1,c(),o.delete(L),s=null}}}function p(g){if(!Hr(g))throw new Error(q(7));if(typeof g.type>"u")throw new Error(q(8));if(typeof g.type!="string")throw new Error(q(17));if(l)throw new Error(q(9));try{l=!0,i=n(i,g)}finally{l=!1}return(s=o).forEach(L=>{L()}),g}function y(g){if(typeof g!="function")throw new Error(q(10));n=g,p({type:Br.REPLACE})}function v(){let g=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(q(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:g(L)}},[_o](){return this}}}return p({type:Br.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[_o]:v}}function Ic(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Br.INIT})>"u")throw new Error(q(12));if(typeof r(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Co(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,s;try{Ic(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],v=a[p],E=y(v,l);if(typeof E>"u"){let g=l&&l.type;throw new Error(q(14))}u[p]=E,c=c||E!==v}return c=c||n.length!==Object.keys(a).length,c?u:a}}function sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function wo(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw new Error(q(15))},o={getState:i.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=sr(...a)(i.dispatch),{...i,dispatch:s}}}function To(e){return Hr(e)&&"type"in e&&typeof e.type=="string"}var Io=Symbol.for("immer-nothing"),Oo=Symbol.for("immer-draftable"),J=Symbol.for("immer-state");function Ae(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var le=Object,Lt=le.getPrototypeOf,zr="constructor",Xr="prototype",ti="configurable",Wr="enumerable",Fr="writable",or="value",Re=e=>!!e&&!!e[J];function ce(e){return e?Uo(e)||Zr(e)||!!e[Oo]||!!e[zr]?.[Oo]||Qr(e)||en(e):!1}var Uc=le[Xr][zr].toString(),Ro=new WeakMap;function Uo(e){if(!e||!ci(e))return!1;let t=Lt(e);if(t===null||t===le[Xr])return!0;let r=le.hasOwnProperty.call(t,zr)&&t[zr];if(r===Object)return!0;if(!Rt(r))return!1;let n=Ro.get(r);return n===void 0&&(n=Function.toString.call(r),Ro.set(r,n)),n===Uc}function Jr(e,t,r=!0){cr(e)===0?(r?Reflect.ownKeys(e):le.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function cr(e){let t=e[J];return t?t.type_:Zr(e)?1:Qr(e)?2:en(e)?3:0}var Zn=(e,t,r=cr(e))=>r===2?e.has(t):le[Xr].hasOwnProperty.call(e,t),ri=(e,t,r=cr(e))=>r===2?e.get(t):e[t],Kr=(e,t,r,n=cr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function $c(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Zr=Array.isArray,Qr=e=>e instanceof Map,en=e=>e instanceof Set,ci=e=>typeof e=="object",Rt=e=>typeof e=="function",Qn=e=>typeof e=="boolean";function Bc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ke=e=>e.copy_||e.base_;var ui=e=>e.modified_?e.copy_:e.base_;function ni(e,t){if(Qr(e))return new Map(e);if(en(e))return new Set(e);if(Zr(e))return Array[Xr].slice.call(e);let r=Uo(e);if(t===!0||t==="class_only"&&!r){let n=le.getOwnPropertyDescriptors(e);delete n[J];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){let o=i[s],a=n[o];a[Fr]===!1&&(a[Fr]=!0,a[ti]=!0),(a.get||a.set)&&(n[o]={[ti]:!0,[Fr]:!0,[Wr]:a[Wr],[or]:e[o]})}return le.create(Lt(e),n)}else{let n=Lt(e);if(n!==null&&r)return{...e};let i=le.create(n);return le.assign(i,e)}}function di(e,t=!1){return tn(e)||Re(e)||!ce(e)||(cr(e)>1&&le.defineProperties(e,{set:Vr,add:Vr,clear:Vr,delete:Vr}),le.freeze(e),t&&Jr(e,(r,n)=>{di(n,!0)},!1)),e}function Hc(){Ae(2)}var Vr={[or]:Hc};function tn(e){return e===null||!ci(e)?!0:le.isFrozen(e)}var Gr="MapSet",ii="Patches",Lo="ArrayMethods",$o={};function st(e){let t=$o[e];return t||Ae(0,e),t}var No=e=>!!$o[e];var ar,Bo=()=>ar,Vc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:No(Gr)?st(Gr):void 0,arrayMethodsPlugin_:No(Lo)?st(Lo):void 0});function Po(e,t){t&&(e.patchPlugin_=st(ii),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function si(e){oi(e),e.drafts_.forEach(Fc),e.drafts_=null}function oi(e){e===ar&&(ar=e.parent_)}var Do=e=>ar=Vc(ar,e);function Fc(e){let t=e[J];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Mo(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[J].modified_&&(si(t),Ae(4)),ce(e)&&(e=ko(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[J].base_,e,t)}else e=ko(t,r);return jc(t,e,!0),si(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Io?e:void 0}function ko(e,t){if(tn(t))return t;let r=t[J];if(!r)return qr(t,e.handledSet_,e);if(!rn(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Fo(r,e)}return r.copy_}function jc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&di(t,r)}function Ho(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var rn=(e,t)=>e.scope_===t,zc=[];function Vo(e,t,r,n){let i=ke(e),s=e.type_;if(n!==void 0&&ri(i,n,s)===t){Kr(i,n,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Jr(i,(l,c)=>{if(Re(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??zc;for(let a of o)Kr(i,a,r,s)}function Wc(e,t,r){e.callbacks_.push(function(i){let s=t;if(!s||!rn(s,i))return;i.mapSetPlugin_?.fixSetContents(s);let o=ui(s);Vo(e,s.draft_??s,o,r),Fo(s,i)})}function Fo(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let i=n.getPath(e);i&&n.generatePatches_(e,i,t)}Ho(e)}}function Kc(e,t,r){let{scope_:n}=e;if(Re(r)){let i=r[J];rn(i,n)&&i.callbacks_.push(function(){jr(e);let o=ui(i);Vo(e,r,o,t)})}else ce(r)&&e.callbacks_.push(function(){let s=ke(e);e.type_===3?s.has(r)&&qr(r,n.handledSet_,n):ri(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&qr(ri(e.copy_,t,e.type_),n.handledSet_,n)})}function qr(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Re(e)||t.has(e)||!ce(e)||tn(e)||(t.add(e),Jr(e,(n,i)=>{if(Re(i)){let s=i[J];if(rn(s,r)){let o=ui(s);Kr(e,n,o,e.type_),Ho(s)}}else ce(i)&&qr(i,t,r)})),e}function Gc(e,t){let r=Zr(e),n={type_:r?1:0,scope_:t?t.scope_:Bo(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,s=Yr;r&&(i=[n],s=lr);let{revoke:o,proxy:a}=Proxy.revocable(i,s);return n.draft_=a,n.revoke_=o,[a,n]}var Yr={get(e,t){if(t===J)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=ke(e);if(!Zn(i,t,e.type_))return Yc(e,i,t);let s=i[t];if(e.finalized_||!ce(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Bc(t))return s;if(s===ei(e.base_,t)||qc(e,t,s)){jr(e);let o=e.type_===1?+t:t,a=li(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in ke(e)},ownKeys(e){return Reflect.ownKeys(ke(e))},set(e,t,r){let n=jo(ke(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=ei(ke(e),t),s=i?.[J];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if($c(r,i)&&(r!==void 0||Zn(e.base_,t,e.type_)))return!0;jr(e),ai(e)}return e.copy_[t]===r&&(r!==void 0||Zn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Kc(e,t,r)),!0},deleteProperty(e,t){return jr(e),ei(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ai(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ke(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Fr]:!0,[ti]:e.type_!==1||t!=="length",[Wr]:n[Wr],[or]:r[t]}},defineProperty(){Ae(11)},getPrototypeOf(e){return Lt(e.base_)},setPrototypeOf(){Ae(12)}},lr={};for(let e in Yr){let t=Yr[e];lr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}lr.deleteProperty=function(e,t){return lr.set.call(this,e,t,void 0)};lr.set=function(e,t,r){return Yr.set.call(this,e[0],t,r,e[0])};function ei(e,t){let r=e[J];return(r?ke(r):e)[t]}function qc(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ce(r)||r[J]?!1:e.baseRefs_.has(r)}function Yc(e,t,r){let n=jo(t,r);return n?or in n?n[or]:n.get?.call(e.draft_):void 0}function jo(e,t){if(!(t in e))return;let r=Lt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Lt(r)}}function ai(e){e.modified_||(e.modified_=!0,e.parent_&&ai(e.parent_))}function jr(e){e.copy_||(e.assigned_=new Map,e.copy_=ni(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Xc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Rt(t)&&!Rt(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Rt(r)||Ae(6),n!==void 0&&!Rt(n)&&Ae(7);let i;if(ce(t)){let s=Do(this),o=li(s,t,void 0),a=!0;try{i=r(o),a=!1}finally{a?si(s):oi(s)}return Po(s,n),Mo(i,s)}else if(!t||!ci(t)){if(i=r(t),i===void 0&&(i=t),i===Io&&(i=void 0),this.autoFreeze_&&di(i,!0),n){let s=[],o=[];st(ii).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),n(s,o)}return i}else Ae(1,t)},this.produceWithPatches=(t,r)=>{if(Rt(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,i;return[this.produce(t,r,(o,a)=>{n=o,i=a}),n,i]},Qn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ce(e)||Ae(8),Re(e)&&(e=zo(e));let t=Do(this),r=li(t,e,void 0);return r[J].isManual_=!0,oi(t),r}finishDraft(e,t){let r=e&&e[J];(!r||!r.isManual_)&&Ae(9);let{scope_:n}=r;return Po(n,t),Mo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=st(ii).applyPatches_;return Re(e)?n(e,t):this.produce(e,i=>n(i,t))}};function li(e,t,r,n){let[i,s]=Qr(t)?st(Gr).proxyMap_(t,r):en(t)?st(Gr).proxySet_(t,r):Gc(t,r);return(r?.scope_??Bo()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?Wc(r,s,n):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),i}function zo(e){return Re(e)||Ae(10,e),Wo(e)}function Wo(e){if(!ce(e)||tn(e))return e;let t=e[J],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ni(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=ni(e,!0);return Jr(r,(i,s)=>{Kr(r,i,Wo(s))},n),t&&(t.finalized_=!1),r}var Jc=new Xc,pi=Jc.produce;function Ko(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var Go=Ko(),qo=Ko;var Zc=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)},Kp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Qc=e=>e&&typeof e.match=="function";function Ge(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ie(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>To(n)&&n.type===e,r}var Qo=class ur extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ur.prototype)}static get[Symbol.species](){return ur}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ur(...t[0].concat(this)):new ur(...t.concat(this))}};function Yo(e){return ce(e)?pi(e,()=>{}):e}function nn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function eu(e){return typeof e=="boolean"}var tu=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{},o=new Qo;return r&&(eu(r)?o.push(Go):o.push(qo(r.extraArgument))),o},ru="RTK_autoBatch";var Xo=e=>t=>{setTimeout(t,e)},nu=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(i),o=setTimeout(i,t)},iu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?nu(window.requestAnimationFrame,100):Xo(10):e.type==="callback"?e.queueNotification:Xo(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>i&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[ru],s=!i,s&&(o||(o=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},su=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Qo(e);return n&&i.push(iu(typeof n=="object"?n:void 0)),i};function ea(e){let t=tu(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Hr(r))l=Co(r);else throw new Error(Ie(1));let c;typeof n=="function"?c=n(t):c=t();let u=sr;i&&(u=Zc({trace:!1,...typeof i=="object"&&i}));let d=wo(...c),p=su(d),y=typeof a=="function"?a(p):p(),v=u(...y);return Jn(l,o,v)}function ta(e){let t={},r=[],n,i={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Ie(28));if(a in t)throw new Error(Ie(29));return t[a]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function ou(e){return typeof e=="function"}function au(e,t){let[r,n,i]=ta(t),s;if(ou(e))s=()=>Yo(e());else{let a=Yo(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(Re(u)){let y=d(u,l);return y===void 0?u:y}else{if(ce(u))return pi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=s,o}var lu=(e,t)=>Qc(e)?e.match(t):e(t);function cu(...e){return t=>e.some(r=>lu(r,t))}var uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",du=(e=21)=>{let t="",r=e;for(;r--;)t+=uu[Math.random()*64|0];return t},pu=["name","message","stack","code"],fi=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Jo=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},fu=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of pu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Zo="External signal was aborted",hu=(()=>{function e(t,r,n){let i=Ge(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=Ge(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=Ge(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||fu)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):du(),v=new AbortController,E,g;function A(x){g=x,v.abort()}c&&(c.aborted?A(Zo):c.addEventListener("abort",()=>A(Zo),{once:!0}));let L=(async function(){let x;try{let O=n?.condition?.(l,{getState:d,extra:p});if(yu(O)&&(O=await O),O===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let B=new Promise((P,H)=>{E=()=>{H({name:"AbortError",message:g||"Aborted"})},v.signal.addEventListener("abort",E,{once:!0})});u(s(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),x=await Promise.race([B,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:v.signal,abort:A,rejectWithValue:((P,H)=>new fi(P,H)),fulfillWithValue:((P,H)=>new Jo(P,H))})).then(P=>{if(P instanceof fi)throw P;return P instanceof Jo?i(P.payload,y,l,P.meta):i(P,y,l)})])}catch(O){x=O instanceof fi?o(null,y,l,O.payload,O.meta):o(O,y,l)}finally{E&&v.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&o.match(x)&&x.meta.condition||u(x),x})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(mu)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:i,settled:cu(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function mu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ra=Symbol.for("rtk-slice-createasyncthunk"),qp={[ra]:hu};function gu(e,t){return`${e}/${t}`}function vu({creators:e}={}){let t=e?.asyncThunk?.[ra];return function(n){let{name:i,reducerPath:s=i}=n;if(!i)throw new Error(Ie(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(bu()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){let O=typeof x=="string"?x:x.type;if(!O)throw new Error(Ie(12));if(O in l.sliceCaseReducersByType)throw new Error(Ie(13));return l.sliceCaseReducersByType[O]=C,c},addMatcher(x,C){return l.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return l.actionCreators[x]=C,c},exposeCaseReducer(x,C){return l.sliceCaseReducersByName[x]=C,c}};a.forEach(x=>{let C=o[x],O={reducerName:x,type:gu(i,x),createNotation:typeof n.reducers=="function"};Au(C)?_u(O,C,c,t):Eu(O,C,c)});function u(){let[x={},C=[],O=void 0]=typeof n.extraReducers=="function"?ta(n.extraReducers):[n.extraReducers],B={...x,...l.sliceCaseReducersByType};return au(n.initialState,P=>{for(let H in B)P.addCase(H,B[H]);for(let H of l.sliceMatchers)P.addMatcher(H.matcher,H.reducer);for(let H of C)P.addMatcher(H.matcher,H.reducer);O&&P.addDefaultCase(O)})}let d=x=>x,p=new Map,y=new WeakMap,v;function E(x,C){return v||(v=u()),v(x,C)}function g(){return v||(v=u()),v.getInitialState()}function A(x,C=!1){function O(P){let H=P[x];return typeof H>"u"&&C&&(H=nn(y,O,g)),H}function B(P=d){let H=nn(p,C,()=>new WeakMap);return nn(H,P,()=>{let $t={};for(let[de,Xe]of Object.entries(n.selectors??{}))$t[de]=xu(Xe,P,()=>nn(y,P,g),C);return $t})}return{reducerPath:x,getSelectors:B,get selectors(){return B(O)},selectSlice:O}}let L={name:i,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...A(s),injectInto(x,{reducerPath:C,...O}={}){let B=C??s;return x.inject({reducerPath:B,reducer:E},O),{...L,...A(B,!0)}}};return L}}function xu(e,t,r,n){function i(s,...o){let a=t(s);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}var na=vu();function bu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Eu({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!Su(n))throw new Error(Ie(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?Ge(e,o):Ge(e))}function Au(e){return e._reducerDefinitionType==="asyncThunk"}function Su(e){return e._reducerDefinitionType==="reducerWithPrepare"}function _u({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ie(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=i(e,s,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:o||sn,pending:a||sn,rejected:l||sn,settled:c||sn})}function sn(){}var ia="listener",sa="completed",oa="cancelled",Yp=`task-${oa}`,Xp=`task-${sa}`,Jp=`${ia}-${oa}`,Zp=`${ia}-${sa}`;var{assign:aa}=Object;var hi="listenerMiddleware";var Cu=aa(Ge(`${hi}/add`),{withTypes:()=>Cu}),Qp=Ge(`${hi}/removeAll`),wu=aa(Ge(`${hi}/remove`),{withTypes:()=>wu});function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Tu=Dr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),on=class extends Tu(Object){};window.ftReduxStores||(window.ftReduxStores={});var la=class e extends on{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if($r(s))return s;if(i==null)return;let o=na({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=rr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Mr,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];wt(p,u)||this.setState({[d]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var an=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var ln=f(S()),Ou="ft-app-info",Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Nt.eventName="authentication-change";var dr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};dr.eventName="ui-locale-changed";var Ru={session:(e,t)=>{(0,ln.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Nt(t.payload)),0))}},w=ln.FtReduxStore.get({name:Ou,reducers:Ru,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ca=f(S()),cn=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Lf=(0,ca.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>an.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return cn([(0,mi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),cn([(0,mi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),cn([Yn({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),cn([Yn({store:w.name})],t.prototype,"uiLocale",void 0),t});var ua;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ua||(ua={}));var da;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(da||(da={}));var pa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(pa||(pa={}));var fa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(fa||(fa={}));var ha;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ha||(ha={}));var ma;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(ma||(ma={}));var ya;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ya||(ya={}));var ga;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ga||(ga={}));var va;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(va||(va={}));var xa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(xa||(xa={}));var ba;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ba||(ba={}));var Ea;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ea||(Ea={}));var Aa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Aa||(Aa={}));var Sa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Sa||(Sa={}));var _a;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(_a||(_a={}));var Ca;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ca||(Ca={}));var wa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(wa||(wa={}));var Ta;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ta||(Ta={}));var Oa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Oa||(Oa={}));var Ra;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ra||(Ra={}));var La;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(La||(La={}));var Na;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Na||(Na={}));var Pa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Pa||(Pa={}));var Da;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Da||(Da={}));var Ma;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ma||(Ma={}));var ka;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ka||(ka={}));var Ia;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ia||(Ia={}));var z;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(z||(z={}));var he;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(he||(he={}));var Ua;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ua||(Ua={}));var $a;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})($a||($a={}));var Ba;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ba||(Ba={}));var Ha;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Ha||(Ha={}));var Va;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Va||(Va={}));var Fa;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fa||(Fa={}));var ja;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ja||(ja={}));var za;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(za||(za={}));var Wa;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Wa||(Wa={}));var Ka;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ka||(Ka={}));var Ga;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ga||(Ga={}));var qa;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(qa||(qa={}));var Lu={[z.PERSONAL_BOOK_SHARE_USER]:[z.PERSONAL_BOOK_USER],[z.HTML_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.PDF_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.KHUB_ADMIN]:[z.CONTENT_PUBLISHER],[z.ADMIN]:[z.KHUB_ADMIN,z.USERS_ADMIN,z.PORTAL_ADMIN,z.BEHAVIOR_DATA_USER],[z.GENERATIVE_AI_EXPORT_USER]:[z.GENERATIVE_AI_USER]};function Ya(e,t){return e===t||(Lu[e]??[]).some(r=>Ya(r,t))}function Xa(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ya(n,t))}var hn=f(S());var yi=f(S());var ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Pt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ot.await()}};var ue=class extends Pt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new yi.CacheRegistry,this.cache=t?i.commonCache:new yi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var un=class extends ue{async listMySearches(){let{session:t}=w.getState();return Xa(t,z.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var dn=class extends ue{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var pn=class extends ue{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var fn=class extends ue{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var Nu="ft-user-assets",Pu={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(he).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;vi(e,r,[...gi(e,r),i]),Ja(e,r,1,n),Za(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;vi(e,r,gi(e,r).map(i=>i.id===n.id?n:i)),Za(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;vi(e,r,gi(e,r).filter(s=>s.id!==i)),Ja(e,r,-1,n)}},Qa={[he.SEARCHES]:"savedSearches",[he.BOOKMARKS]:"bookmarks",[he.BOOKS]:void 0,[he.COLLECTIONS]:void 0},gi=(e,t)=>{var r;let n=Qa[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},vi=(e,t,r)=>{let n=Qa[t];n&&(e[n]=r)},Ja=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===he.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Za=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},te=hn.FtReduxStore.get({name:Nu,reducers:Pu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(he).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xi=class{constructor(t=new pn,r=new fn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new dn,this.savedSearchesService=new un,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,hn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),te.actions.clearAssetCount(),te.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),te.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),te.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();te.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();te.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&te.getState().assetCounts.allAsset[t]!==r.count&&te.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&te.getState().assetCounts.bookmarkByMap[t]!==r.count&&te.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(te.getState().assetCounts.bookmarkByMap).length!==0;t===he.BOOKMARKS&&r&&te.actions.clearBookmarkCountByMap(),te.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;te.actions.bookmarks(r)}}},Du=new xi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Du);var bi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new bi;var me=f(S());var el,Dt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Mu=Symbol("clearAfterUnitTest"),mn=class extends(0,me.withEventBus)(ue){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new me.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,me.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new me.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof me.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Dt({loadedContexts:t})),this.dispatchEvent(new Dt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Dt({loadedContexts:[t]})),this.dispatchEvent(new Dt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,me.delay)(0).then(()=>n()).catch(()=>null)))}};el=Mu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends mn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends mn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var pr=window.FluidTopicsI18nService,Ei=window.FluidTopicsCustomI18nService;var tl=f(S()),Ai=class{highlightHtml(t,r,n){(0,tl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ai;var rl=f(S());var Si=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return rl.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Si;var nl=f(S());var fr=class{static get(t,r){var n,i,s,o;let a=w.getState(),{lang:l,region:c}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new nl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var _i=class{urlToSearchRequest(t){return fr.get().parse(t)}searchRequestToUrl(t){return fr.get().serialize(t)}};window.FluidTopicsUrlService=new _i;var Ue=f(S());var at=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};at.eventName="change";var Ci=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},il=new Ci;var yn=class e extends Ue.WithEventBus{static build(){return new e(window.history,il,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ue.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new at(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(at.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(at.eventName,t)}currentItem(){return(0,Ue.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ue.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Ue.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ue.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=yn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var sl=f(V());var ol=sl.css`
314
+ `;var cl=f(V()),se=f(Z()),ut=f(S());var lt=f(S());function al(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var gn=class extends Pt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var wi=class e extends lt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new lt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new gn,this.cleanSessionDebouncer=new lt.Debouncer,this.reloadDebouncer=new lt.Debouncer(500),this.apiProvider=r??(()=>ot.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>al(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new dr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},ll=wi.build();var ct=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var hr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new ct(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var Y=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},k=class extends ut.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=ll,this.contextRoot=new hr}render(){return cl.html`
315
315
  <slot></slot>
316
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>mr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};D.elementDefinitions={};D.styles=qa;G([(0,ne.property)()],D.prototype,"baseUrl",void 0);G([(0,ne.property)()],D.prototype,"tenantId",void 0);G([(0,ne.property)()],D.prototype,"apiIntegrationIdentifier",void 0);G([(0,ne.property)()],D.prototype,"apiIntegrationAppVersion",void 0);G([(0,ne.property)()],D.prototype,"uiLocale",void 0);G([(0,mt.jsonProperty)(null)],D.prototype,"availableUiLocales",void 0);G([(0,mt.jsonProperty)(null)],D.prototype,"metadataConfiguration",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"editorMode",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"noCustom",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"openExternalDocumentInNewTab",void 0);G([(0,ne.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],D.prototype,"noCustomComponent",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"withManualResources",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"navigatorOnline",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"forcedOffline",void 0);G([(0,ne.property)({type:Boolean})],D.prototype,"authenticationRequired",void 0);G([(0,mt.jsonProperty)([])],D.prototype,"messageContexts",void 0);G([(0,mt.jsonProperty)(void 0)],D.prototype,"session",void 0);var Qa=y(C());var Za={"ft-app-context":D};(0,Qa.customElements)(Za);var el=y(X());var bi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},jt=new bi;var pu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},br=Symbol("i18nAttributes"),tl=Symbol("i18nListAttributes"),rl=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),vr=Symbol("i18nUnsubs"),nl=(0,Ft.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?fi:mr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(jt.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[tl])===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[rl])===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[sn].set(l,{isCustomContext:a}),this[vr].has(l)||this[vr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[sn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vr].forEach(o=>o()),this[vr].clear()}}return t=sn,r=vr,pu([(0,el.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),an=class extends nl(Ft.FtLitElement){},ln=class extends nl(Ft.FtLitElementRedux){};var il=y(C());var xi=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?jt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},fu=new xi;var ol=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:il.hasChanged,converter:jt,...t}),r[br]=(i=r[br])!==null&&i!==void 0?i:new Map,r[br].set(n,e??{})};var sl=y($());var al=sl.css`
317
- `;var cn=y($()),un=y(X()),dn=y(C());var xr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Ce=class extends ln{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":cn.nothing:cn.html`
316
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>pr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};k.elementDefinitions={};k.styles=ol;Y([(0,se.property)()],k.prototype,"baseUrl",void 0);Y([(0,se.property)()],k.prototype,"tenantId",void 0);Y([(0,se.property)()],k.prototype,"apiIntegrationIdentifier",void 0);Y([(0,se.property)()],k.prototype,"apiIntegrationAppVersion",void 0);Y([(0,se.property)()],k.prototype,"uiLocale",void 0);Y([(0,ut.jsonProperty)(null)],k.prototype,"availableUiLocales",void 0);Y([(0,ut.jsonProperty)(null)],k.prototype,"metadataConfiguration",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"editorMode",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"noCustom",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"openExternalDocumentInNewTab",void 0);Y([(0,se.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],k.prototype,"noCustomComponent",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"withManualResources",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"navigatorOnline",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"forcedOffline",void 0);Y([(0,se.property)({type:Boolean})],k.prototype,"authenticationRequired",void 0);Y([(0,ut.jsonProperty)([])],k.prototype,"messageContexts",void 0);Y([(0,ut.jsonProperty)(void 0)],k.prototype,"session",void 0);var dl=f(S());var ul={"ft-app-context":k};(0,dl.customElements)(ul);var pl=f(Z());var Ti=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Mt=new Ti;var Uu=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},yr=Symbol("i18nAttributes"),fl=Symbol("i18nListAttributes"),hl=Symbol("i18nProperties"),vn=Symbol("i18nContexts"),mr=Symbol("i18nUnsubs"),ml=(0,kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Ei:pr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Mt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[yr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[fl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(s){var o;(o=this[hl])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[vn].set(l,{isCustomContext:a}),this[mr].has(l)||this[mr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[vn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[vn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[mr].forEach(s=>s()),this[mr].clear()}}return t=vn,r=mr,Uu([(0,pl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),xn=class extends ml(kt.FtLitElement){},bn=class extends ml(kt.FtLitElementRedux){};var yl=f(S());var Oi=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Mt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},$u=new Oi;var gl=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:yl.hasChanged,converter:Mt,...t}),r[yr]=(i=r[yr])!==null&&i!==void 0?i:new Map,r[yr].set(n,e??{})};var vl=f(V());var xl=vl.css`
317
+ `;var En=f(V()),An=f(Z()),Sn=f(S());var gr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Se=class extends bn{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":En.nothing:En.html`
318
318
  <span class="ft-i18n">
319
319
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
320
320
  </span>
321
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ce.elementDefinitions={};Ce.styles=al;xr([(0,dn.redux)()],Ce.prototype,"editorMode",void 0);xr([(0,un.property)()],Ce.prototype,"context",void 0);xr([(0,un.property)()],Ce.prototype,"key",void 0);xr([(0,dn.jsonProperty)([])],Ce.prototype,"args",void 0);xr([(0,un.property)()],Ce.prototype,"defaultMessage",void 0);var cl=y(C());var ll={"ft-i18n":Ce};(0,cl.customElements)(ll);var Oe=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},W=class extends an{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 ye.Debouncer,this.revealDebouncer=new ye.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return ul.html`
321
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=xl;gr([(0,Sn.redux)()],Se.prototype,"editorMode",void 0);gr([(0,An.property)()],Se.prototype,"context",void 0);gr([(0,An.property)()],Se.prototype,"key",void 0);gr([(0,Sn.jsonProperty)([])],Se.prototype,"args",void 0);gr([(0,An.property)()],Se.prototype,"defaultMessage",void 0);var El=f(S());var bl={"ft-i18n":Se};(0,El.customElements)(bl);var _e=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},K=class extends xn{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 ye.Debouncer,this.revealDebouncer=new ye.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Al.html`
322
322
  <div part="container"
323
323
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
324
324
  <slot part="slot"></slot>
@@ -327,13 +327,13 @@
327
327
  popover="manual">
328
328
  <div part="tooltip-content" class="ft-tooltip--content">
329
329
  <slot name="text"></slot>
330
- <ft-typography variant="${He.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
330
+ <ft-typography variant="${Be.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
331
331
  ${(r=this.text)===null||r===void 0?void 0:r.message}
332
332
  </ft-typography>
333
333
  </div>
334
334
  </div>
335
335
  </div>
336
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&os(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ye.designSystemVariables.transitionDuration}, left ${ye.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,ye.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};W.elementDefinitions={"ft-typography":se};W.styles=Po;Oe([ol()],W.prototype,"text",void 0);Oe([(0,ge.property)({type:Boolean})],W.prototype,"manual",void 0);Oe([(0,ge.property)({type:Boolean})],W.prototype,"inline",void 0);Oe([(0,ye.numberProperty)()],W.prototype,"delay",void 0);Oe([(0,ge.property)()],W.prototype,"position",void 0);Oe([(0,ye.jsonProperty)([])],W.prototype,"ignoreMatchingElements",void 0);Oe([(0,ge.queryAssignedNodes)()],W.prototype,"slotNodes",void 0);Oe([(0,ge.query)(".ft-tooltip--container")],W.prototype,"container",void 0);Oe([(0,ge.query)(".ft-tooltip")],W.prototype,"tooltip",void 0);Oe([(0,ge.query)(".ft-tooltip--content")],W.prototype,"tooltipContent",void 0);Oe([(0,ge.state)()],W.prototype,"visible",void 0);var pl=y(C());var dl={"ft-tooltip":W};(0,pl.customElements)(dl);var fl=y($()),Ar=y(C()),yt={color:Ar.FtCssVariableFactory.extend("--ft-loader-color","",Ar.designSystemVariables.colorPrimary),size:Ar.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},hl=fl.css`
336
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&uo(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ye.designSystemVariables.transitionDuration}, left ${ye.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,ye.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};K.elementDefinitions={"ft-typography":oe};K.styles=Is;_e([gl()],K.prototype,"text",void 0);_e([(0,ge.property)({type:Boolean})],K.prototype,"manual",void 0);_e([(0,ge.property)({type:Boolean})],K.prototype,"inline",void 0);_e([(0,ye.numberProperty)()],K.prototype,"delay",void 0);_e([(0,ge.property)()],K.prototype,"position",void 0);_e([(0,ye.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);_e([(0,ge.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);_e([(0,ge.query)(".ft-tooltip--container")],K.prototype,"container",void 0);_e([(0,ge.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);_e([(0,ge.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);_e([(0,ge.state)()],K.prototype,"visible",void 0);var _l=f(S());var Sl={"ft-tooltip":K};(0,_l.customElements)(Sl);var Cl=f(V()),vr=f(S()),dt={color:vr.FtCssVariableFactory.extend("--ft-loader-color","",vr.designSystemVariables.colorPrimary),size:vr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},wl=Cl.css`
337
337
  :host {
338
338
  line-height: 0;
339
339
  }
@@ -342,8 +342,8 @@
342
342
  display: inline-block;
343
343
  position: relative;
344
344
 
345
- width: ${yt.size};
346
- height: ${yt.size};
345
+ width: ${dt.size};
346
+ height: ${dt.size};
347
347
  }
348
348
 
349
349
  .ft-loader div {
@@ -352,7 +352,7 @@
352
352
  width: 25%;
353
353
  height: 25%;
354
354
  border-radius: 50%;
355
- background: ${yt.color};
355
+ background: ${dt.color};
356
356
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
357
357
  }
358
358
 
@@ -399,17 +399,17 @@
399
399
  transform: translate(0, 0);
400
400
  }
401
401
  100% {
402
- transform: translate(calc(0.35 * ${yt.size}), 0);
402
+ transform: translate(calc(0.35 * ${dt.size}), 0);
403
403
  }
404
404
  }
405
- `;var ml=y($()),yl=y(C());var gt=class extends yl.FtLitElement{render(){return ml.html`
405
+ `;var Tl=f(V()),Ol=f(S());var pt=class extends Ol.FtLitElement{render(){return Tl.html`
406
406
  <div class="ft-loader">
407
407
  <div></div>
408
408
  <div></div>
409
409
  <div></div>
410
410
  <div></div>
411
411
  </div>
412
- `}};gt.styles=hl;var vl=y(C());var gl={"ft-loader":gt};(0,vl.customElements)(gl);var Ze=y($()),Si=y(Kt()),L=y(X());var Ai=e=>e??j;var Al=y($()),O=y(C());var bl=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),I={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:bl,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",_e.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",bl),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},xl=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),Ei={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:xl,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",xl)},Te={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},El=Al.css`
412
+ `}};pt.styles=wl;var Ll=f(S());var Rl={"ft-loader":pt};(0,Ll.customElements)(Rl);var qe=f(V()),_n=f(Ht()),N=f(Z());var xr=e=>e??j;var Dl=f(V()),_=f(S());var Nl=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),I={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:Nl,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",we.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",Nl),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},Pl=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:Pl,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Pl)},Le={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ml=Dl.css`
413
413
  :host {
414
414
  display: inline-block;
415
415
  max-width: 100%;
@@ -440,7 +440,7 @@
440
440
  }
441
441
 
442
442
  .ft-button:focus-visible {
443
- outline: 2px solid ${O.designSystemVariables.colorPrimary};
443
+ outline: 2px solid ${_.designSystemVariables.colorPrimary};
444
444
  outline-offset: 2px;
445
445
  }
446
446
 
@@ -456,9 +456,9 @@
456
456
 
457
457
  --button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
458
458
  --button-internal-color: ${I.color};
459
- ${(0,O.setVariable)(ae.size,I.iconSize)};
460
- ${(0,O.setVariable)(J.color,I.rippleColor)};
461
- ${(0,O.setVariable)(J.borderRadius,I.borderRadius)};
459
+ ${(0,_.setVariable)(ae.size,I.iconSize)};
460
+ ${(0,_.setVariable)(Q.color,I.rippleColor)};
461
+ ${(0,_.setVariable)(Q.borderRadius,I.borderRadius)};
462
462
 
463
463
  border-radius: ${I.borderRadius};
464
464
  padding: ${I.verticalPadding} ${I.horizontalPadding};
@@ -472,14 +472,13 @@
472
472
  }
473
473
 
474
474
  .ft-button.ft-button--dense {
475
- padding: ${Te.verticalPadding} ${Te.horizontalPadding};
476
- border-radius: ${Te.borderRadius};
477
- gap: ${Te.iconPadding};
478
- ${(0,O.setVariable)(J.borderRadius,Te.borderRadius)};
475
+ padding: ${Le.verticalPadding} ${Le.horizontalPadding};
476
+ border-radius: ${Le.borderRadius};
477
+ ${(0,_.setVariable)(Q.borderRadius,Le.borderRadius)};
479
478
  }
480
479
 
481
480
  .ft-button.ft-button--dense.ft-button--outlined {
482
- padding: calc(${Te.verticalPadding} - 1px) calc(${Te.horizontalPadding} - 1px);
481
+ padding: calc(${Le.verticalPadding} - 1px) calc(${Le.horizontalPadding} - 1px);
483
482
  }
484
483
 
485
484
  .ft-button:not([disabled]):hover {
@@ -491,7 +490,7 @@
491
490
  }
492
491
 
493
492
  .ft-button--round.ft-button--dense {
494
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Te.verticalPadding});
493
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Le.verticalPadding});
495
494
  }
496
495
 
497
496
  .ft-button[disabled] {
@@ -500,9 +499,9 @@
500
499
  }
501
500
 
502
501
  .ft-button.ft-button--primary {
503
- background-color: ${Ei.backgroundColor};
504
- --button-internal-color: ${Ei.color};
505
- ${(0,O.setVariable)(J.color,Ei.rippleColor)};
502
+ background-color: ${Ri.backgroundColor};
503
+ --button-internal-color: ${Ri.color};
504
+ ${(0,_.setVariable)(Q.color,Ri.rippleColor)};
506
505
  }
507
506
 
508
507
  .ft-button--label {
@@ -512,16 +511,16 @@
512
511
  text-overflow: ellipsis;
513
512
  display: block;
514
513
  margin: 0 ${I.iconPadding};
515
- ${(0,O.setVariable)(_e.fontSize,"1em")};
516
- ${(0,O.setVariable)(_e.lineHeight,"var(--button-internal-line-height)")};
514
+ ${(0,_.setVariable)(we.fontSize,"1em")};
515
+ ${(0,_.setVariable)(we.lineHeight,"var(--button-internal-line-height)")};
517
516
  }
518
517
 
519
518
  .ft-button--dense .ft-button--label {
520
- margin: 0 ${Te.iconPadding};
519
+ margin: 0 ${Le.iconPadding};
521
520
  }
522
521
 
523
- .ft-button--label[hidden] {
524
- display: none;
522
+ .ft-button--label.ft-button--label-no-text {
523
+ margin: 0;
525
524
  }
526
525
 
527
526
  [part="icon"] {
@@ -535,8 +534,8 @@
535
534
  }
536
535
 
537
536
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
538
- margin: 0 calc(${Te.horizontalPadding} * -1);
539
- padding: 0 ${Te.verticalPadding};
537
+ margin: 0 calc(${Le.horizontalPadding} * -1);
538
+ padding: 0 ${Le.verticalPadding};
540
539
  }
541
540
 
542
541
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -544,52 +543,51 @@
544
543
  }
545
544
 
546
545
  ft-loader {
547
- ${(0,O.setVariable)(yt.size,I.iconSize)};
548
- ${(0,O.setVariable)(yt.color,"var(--button-internal-color)")};
546
+ ${(0,_.setVariable)(dt.size,I.iconSize)};
547
+ ${(0,_.setVariable)(dt.color,"var(--button-internal-color)")};
549
548
  }
550
- `;var M=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},R=class extends(0,ve.toFtFormComponent)(ve.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",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i=Ze.html`
549
+ `;var D=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},R=class e extends(0,Ne.toFtFormComponent)(Ne.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ne.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=qe.html`
551
550
  <ft-ripple part="ripple"
552
551
  ?disabled=${this.isDisabled()}
553
552
  ?activated=${this.activated}
554
553
  ></ft-ripple>
555
554
  <ft-typography part="label"
556
- variant="${He.button}"
555
+ variant="${Be.button}"
557
556
  element="span"
558
- class="ft-button--label ${ve.isSafari?"ft-safari-ellipsis-fix":""}"
559
- ?hidden=${!this.hasTextContent()}>
560
- <slot @slotchange=${this.onSlotchange}></slot>
557
+ class="${(0,_n.classMap)(i)}">
558
+ <slot></slot>
561
559
  </ft-typography>
562
560
  ${this.resolveIcon()}
563
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Ze.html`
561
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?qe.html`
564
562
  <a href="${o}"
565
563
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
566
564
  part="button"
567
- class="${(0,Si.classMap)(this.buttonClasses)}"
568
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
565
+ class="${(0,_n.classMap)(this.buttonClasses)}"
566
+ aria-label="${xr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
569
567
  ?disabled=${this.isDisabled()}>
570
- ${i}
568
+ ${s}
571
569
  </a>
572
- `:Ze.html`
570
+ `:qe.html`
573
571
  <button part="button"
574
- class="${(0,Si.classMap)(this.buttonClasses)}"
575
- aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
576
- aria-haspopup="${Ai(this.ariaHasPopup)}"
577
- aria-pressed="${Ai(this.ariaPressed)}"
572
+ class="${(0,_n.classMap)(this.buttonClasses)}"
573
+ aria-label="${xr((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
574
+ aria-haspopup="${xr(this.ariaHasPopup)}"
575
+ aria-pressed="${xr(this.ariaPressed)}"
578
576
  ?disabled=${this.isDisabled()}>
579
- ${i}
577
+ ${s}
580
578
  </button>
581
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Ze.html`
579
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?qe.html`
582
580
  <ft-tooltip part="tooltip"
583
- text="${this.getLabel()}"
581
+ text="${this.label}"
584
582
  position="${this.tooltipPosition}">
585
583
  ${t}
586
584
  </ft-tooltip>
587
- `:t}resolveIcon(){return this.loading?Ze.html`
588
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Ze.html`
585
+ `:t}resolveIcon(){return this.loading?qe.html`
586
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?qe.html`
589
587
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
590
- `:Ze.html`
588
+ `:qe.html`
591
589
  <slot part="icon" name="icon"></slot>
592
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ve.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":P,"ft-tooltip":W,"ft-icon":Z,"ft-loader":gt,"ft-typography":se};R.styles=[ve.safariEllipsisFix,El,ve.noTextSelect];M([(0,L.property)({type:Boolean})],R.prototype,"primary",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"outlined",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"dense",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"round",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"disabled",void 0);M([(0,L.property)()],R.prototype,"icon",void 0);M([(0,L.property)()],R.prototype,"iconVariant",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);M([(0,L.property)()],R.prototype,"label",void 0);M([(0,L.property)()],R.prototype,"type",void 0);M([(0,L.property)()],R.prototype,"href",void 0);M([(0,L.property)()],R.prototype,"target",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"loading",void 0);M([(0,L.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);M([(0,L.property)()],R.prototype,"ariaHasPopup",void 0);M([(0,L.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);M([(0,L.property)()],R.prototype,"tooltipPosition",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);M([(0,L.property)({type:Boolean})],R.prototype,"activated",void 0);M([(0,L.query)(".ft-button")],R.prototype,"button",void 0);M([(0,L.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);M([(0,L.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Cl=y(C());var Sl={"ft-button":R};(0,Cl.customElements)(Sl);var Ol=_.FtCssVariableFactory.extend("--ft-chip-color","",_.designSystemVariables.colorOnSurface),V={backgroundColor:_.FtCssVariableFactory.extend("--ft-chip-background-color","",_.designSystemVariables.colorSurface),color:Ol,fontSize:_.FtCssVariableFactory.extend("--ft-chip-font-size","",de.fontSize),fontWeight:_.FtCssVariableFactory.extend("--ft-chip-font-weight","",de.fontWeight),iconSize:_.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:_.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:_.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Ol),horizontalPadding:_.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:_.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:_.FtCssVariableFactory.extend("--ft-chip-border-color","",_.designSystemVariables.colorOutline),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},Tl=_.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",_.FtCssVariableFactory.extend("--ft-chip-color","",_.designSystemVariables.colorOnPrimary)),Ci={backgroundColor:_.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",_.FtCssVariableFactory.extend("--ft-chip-background-color","",_.designSystemVariables.colorPrimary)),color:Tl,rippleColor:_.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Tl)},wl={horizontalPadding:_.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:_.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},_l=[_.noTextSelect,Er.css`
590
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};R.elementDefinitions={"ft-ripple":M,"ft-tooltip":K,"ft-icon":ee,"ft-loader":pt,"ft-typography":oe};R.styles=[Ne.safariEllipsisFix,Ml,Ne.noTextSelect];R.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:R.labelsObserver.unobserve(t.target)}});D([(0,N.property)({type:Boolean})],R.prototype,"primary",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"outlined",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"dense",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"round",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"disabled",void 0);D([(0,N.property)()],R.prototype,"icon",void 0);D([(0,N.property)()],R.prototype,"iconVariant",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);D([(0,N.property)()],R.prototype,"label",void 0);D([(0,N.property)()],R.prototype,"type",void 0);D([(0,N.property)()],R.prototype,"href",void 0);D([(0,N.property)()],R.prototype,"target",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"loading",void 0);D([(0,N.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);D([(0,N.property)()],R.prototype,"ariaHasPopup",void 0);D([(0,N.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);D([(0,N.property)()],R.prototype,"tooltipPosition",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);D([(0,N.property)({type:Boolean})],R.prototype,"activated",void 0);D([(0,N.query)(".ft-button")],R.prototype,"button",void 0);D([(0,N.query)(".ft-button--label")],R.prototype,"labelContainer",void 0);D([(0,N.state)()],R.prototype,"hasTextContent",void 0);D([(0,N.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);D([(0,N.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Il=f(S());var kl={"ft-button":R};(0,Il.customElements)(kl);var Ul=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),W={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:Ul,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",pe.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",pe.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Ul),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},$l=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Li={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:$l,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$l)},Bl={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hl=[T.noTextSelect,br.css`
593
591
  :host {
594
592
  display: inline-block;
595
593
  max-width: 100%;
@@ -605,21 +603,21 @@
605
603
  box-sizing: border-box;
606
604
  pointer-events: auto;
607
605
 
608
- --chip-internal-font-size: ${V.fontSize};
609
- --chip-internal-font-weight: ${V.fontWeight};
606
+ --chip-internal-font-size: ${W.fontSize};
607
+ --chip-internal-font-weight: ${W.fontWeight};
610
608
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
611
- ${(0,_.setVariable)(ae.size,V.iconSize)};
612
- --chip-internal-vertical-padding: ${V.verticalPadding};
613
- --chip-internal-horizontal-padding: ${V.horizontalPadding};
609
+ ${(0,T.setVariable)(ae.size,W.iconSize)};
610
+ --chip-internal-vertical-padding: ${W.verticalPadding};
611
+ --chip-internal-horizontal-padding: ${W.horizontalPadding};
614
612
  --chip-internal-icon-padding: 3px;
615
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${V.iconSize});
613
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${W.iconSize});
616
614
 
617
- border: 1px solid ${V.borderColor};
618
- color: ${V.color};
619
- ${(0,_.setVariable)(J.color,V.rippleColor)};
620
- border-radius: var(${(0,Er.unsafeCSS)(V.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
615
+ border: 1px solid ${W.borderColor};
616
+ color: ${W.color};
617
+ ${(0,T.setVariable)(Q.color,W.rippleColor)};
618
+ border-radius: var(${(0,br.unsafeCSS)(W.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
621
619
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
622
- background-color: ${V.backgroundColor};
620
+ background-color: ${W.backgroundColor};
623
621
  line-height: var(--chip-internal-content-height);
624
622
  }
625
623
 
@@ -629,28 +627,28 @@
629
627
 
630
628
  .ft-chip--dense {
631
629
  --chip-internal-icon-padding: 3px;
632
- --chip-internal-vertical-padding: ${wl.verticalPadding};
633
- --chip-internal-horizontal-padding: ${wl.horizontalPadding};
630
+ --chip-internal-vertical-padding: ${Bl.verticalPadding};
631
+ --chip-internal-horizontal-padding: ${Bl.horizontalPadding};
634
632
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
635
633
  }
636
634
 
637
635
  .ft-chip--no-content {
638
- --chip-internal-horizontal-padding: ${V.horizontalPadding.get(Er.css`var(--chip-internal-vertical-padding)`)};
636
+ --chip-internal-horizontal-padding: ${W.horizontalPadding.get(br.css`var(--chip-internal-vertical-padding)`)};
639
637
  }
640
638
 
641
639
  .ft-chip--disabled {
642
640
  cursor: default;
643
641
  pointer-events: none;
644
642
  filter: grayscale(1);
645
- opacity: ${V.opacityDisabled};
643
+ opacity: ${W.opacityDisabled};
646
644
  }
647
645
 
648
646
  .ft-chip--highlighted {
649
647
  border: none;
650
648
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
651
- background-color: ${Ci.backgroundColor};
652
- ${(0,_.setVariable)(J.color,Ci.rippleColor)};
653
- color: ${Ci.color};
649
+ background-color: ${Li.backgroundColor};
650
+ ${(0,T.setVariable)(Q.color,Li.rippleColor)};
651
+ color: ${Li.color};
654
652
  }
655
653
 
656
654
  .ft-chip--clickable {
@@ -659,7 +657,7 @@
659
657
  }
660
658
 
661
659
  .ft-chip:focus {
662
- outline: 2px solid ${_.designSystemVariables.colorPrimary};
660
+ outline: 2px solid ${T.designSystemVariables.colorPrimary};
663
661
  outline-offset: 2px;
664
662
  }
665
663
 
@@ -681,9 +679,9 @@
681
679
  }
682
680
 
683
681
  .ft-chip--icon-button {
684
- ${(0,_.setVariable)(I.iconSize,V.iconSize)};
685
- ${(0,_.setVariable)(I.horizontalPadding,"var(--chip-internal-icon-padding)")};
686
- ${(0,_.setVariable)(I.verticalPadding,"var(--chip-internal-icon-padding)")};
682
+ ${(0,T.setVariable)(I.iconSize,W.iconSize)};
683
+ ${(0,T.setVariable)(I.horizontalPadding,"var(--chip-internal-icon-padding)")};
684
+ ${(0,T.setVariable)(I.verticalPadding,"var(--chip-internal-icon-padding)")};
687
685
  margin: calc((-1) * var(--chip-internal-icon-padding));
688
686
  }
689
687
 
@@ -691,9 +689,9 @@
691
689
  vertical-align: bottom;
692
690
  display: block;
693
691
  margin: 0 var(--chip-internal-horizontal-padding);
694
- ${(0,_.setVariable)(de.fontSize,"var(--chip-internal-font-size)")};
695
- ${(0,_.setVariable)(de.fontWeight,"var(--chip-internal-font-weight)")};
696
- ${(0,_.setVariable)(de.lineHeight,"var(--chip-internal-content-height)")};
692
+ ${(0,T.setVariable)(pe.fontSize,"var(--chip-internal-font-size)")};
693
+ ${(0,T.setVariable)(pe.fontWeight,"var(--chip-internal-font-weight)")};
694
+ ${(0,T.setVariable)(pe.lineHeight,"var(--chip-internal-content-height)")};
697
695
  }
698
696
 
699
697
  .ft-chip--safari-fix .ft-chip--label {
@@ -729,8 +727,8 @@
729
727
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
730
728
  order: -1;
731
729
  }
732
- `];var ee=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},fn=class extends CustomEvent{constructor(){super("icon-click")}},k=class extends Vt.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var t;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Vt.isSafari};return pn.html`
733
- <div class="${(0,Rl.classMap)(r)}"
730
+ `];var re=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},wn=class extends CustomEvent{constructor(){super("icon-click")}},U=class extends It.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var t;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":It.isSafari};return Cn.html`
731
+ <div class="${(0,Vl.classMap)(r)}"
734
732
  aria-label="${this.getLabel()}"
735
733
  tabindex="${this.interactionsOnChip?0:-1}"
736
734
  @keyup=${this.onKeyUp}
@@ -741,7 +739,7 @@
741
739
  </ft-typography>
742
740
  ${this.internalIcon?this.renderIcon():null}
743
741
  </div>
744
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?pn.html`
742
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Cn.html`
745
743
  <ft-button round
746
744
  class="ft-chip--icon-button"
747
745
  @click=${this.onIconClick}
@@ -752,11 +750,11 @@
752
750
  part="icon-button"
753
751
  ?hideTooltip=${this.hideIconTooltip}
754
752
  ></ft-button>
755
- `:pn.html`
753
+ `:Cn.html`
756
754
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
757
755
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
758
756
  </div>
759
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new fn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new fn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Vt.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":P,"ft-typography":se,"ft-icon":Z,"ft-button":R};k.styles=_l;ee([(0,q.property)({type:Boolean})],k.prototype,"highlighted",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"removable",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"disabled",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"clickable",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"iconClickable",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"dense",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"multiLine",void 0);ee([(0,q.property)()],k.prototype,"label",void 0);ee([(0,q.property)()],k.prototype,"iconLabel",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"hideIconTooltip",void 0);ee([(0,q.property)()],k.prototype,"icon",void 0);ee([(0,q.property)()],k.prototype,"iconVariant",void 0);ee([(0,q.property)({type:Boolean})],k.prototype,"trailingIcon",void 0);ee([(0,q.property)()],k.prototype,"typographyVariant",void 0);ee([(0,q.query)("ft-typography slot")],k.prototype,"slottedContent",void 0);var Pl=y(C());var Ll={"ft-chip":k};(0,Pl.customElements)(Ll);var Nl=y($()),U=y(C());var we={zIndex:U.FtCssVariableFactory.create("--ft-file-drop-z-index","","NUMBER","10"),hintBackgroundColor:U.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color","",U.designSystemVariables.colorSurface),hintColor:U.FtCssVariableFactory.extend("--ft-file-drop-hint-color","",U.designSystemVariables.colorPrimary),errorColor:U.FtCssVariableFactory.extend("--ft-file-drop-error-color","",U.designSystemVariables.colorError),borderRadius:U.FtCssVariableFactory.extend("--ft-file-drop-border-radius","",U.designSystemVariables.borderRadiusL),borderWidth:U.FtCssVariableFactory.create("--ft-file-drop-border-width","","SIZE","4px"),borderColor:U.FtCssVariableFactory.create("--ft-file-drop-border-color","","COLOR","transparent"),visibleBorderColor:U.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color","",U.designSystemVariables.colorOutline),activeBorderColor:U.FtCssVariableFactory.extend("--ft-file-drop-active-border-color","",U.designSystemVariables.colorPrimary)},Dl=Nl.css`
757
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new wn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new wn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,It.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};U.elementDefinitions={"ft-ripple":M,"ft-typography":oe,"ft-icon":ee,"ft-button":R};U.styles=Hl;re([(0,X.property)({type:Boolean})],U.prototype,"highlighted",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"removable",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"disabled",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"clickable",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"iconClickable",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"dense",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"multiLine",void 0);re([(0,X.property)()],U.prototype,"label",void 0);re([(0,X.property)()],U.prototype,"iconLabel",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"hideIconTooltip",void 0);re([(0,X.property)()],U.prototype,"icon",void 0);re([(0,X.property)()],U.prototype,"iconVariant",void 0);re([(0,X.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);re([(0,X.property)()],U.prototype,"typographyVariant",void 0);re([(0,X.query)("ft-typography slot")],U.prototype,"slottedContent",void 0);var jl=f(S());var Fl={"ft-chip":U};(0,jl.customElements)(Fl);var zl=f(V()),$=f(S());var Ce={zIndex:$.FtCssVariableFactory.create("--ft-file-drop-z-index","","NUMBER","10"),hintBackgroundColor:$.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color","",$.designSystemVariables.colorSurface),hintColor:$.FtCssVariableFactory.extend("--ft-file-drop-hint-color","",$.designSystemVariables.colorPrimary),errorColor:$.FtCssVariableFactory.extend("--ft-file-drop-error-color","",$.designSystemVariables.colorError),borderRadius:$.FtCssVariableFactory.extend("--ft-file-drop-border-radius","",$.designSystemVariables.borderRadiusL),borderWidth:$.FtCssVariableFactory.create("--ft-file-drop-border-width","","SIZE","4px"),borderColor:$.FtCssVariableFactory.create("--ft-file-drop-border-color","","COLOR","transparent"),visibleBorderColor:$.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color","",$.designSystemVariables.colorOutline),activeBorderColor:$.FtCssVariableFactory.extend("--ft-file-drop-active-border-color","",$.designSystemVariables.colorPrimary)},Wl=zl.css`
760
758
  :host {
761
759
  display: block;
762
760
  position: relative;
@@ -765,16 +763,16 @@
765
763
  #container {
766
764
  position: absolute;
767
765
  inset: 0;
768
- border: dashed ${we.borderWidth} ${we.borderColor};
769
- border-radius: ${we.borderRadius};
766
+ border: dashed ${Ce.borderWidth} ${Ce.borderColor};
767
+ border-radius: ${Ce.borderRadius};
770
768
  }
771
769
 
772
770
  #container.visible {
773
- border-color: ${we.visibleBorderColor}
771
+ border-color: ${Ce.visibleBorderColor}
774
772
  }
775
773
 
776
774
  #container.dragging {
777
- border-color: ${we.activeBorderColor}
775
+ border-color: ${Ce.activeBorderColor}
778
776
  }
779
777
 
780
778
  slot {
@@ -788,7 +786,7 @@
788
786
  display: none;
789
787
  position: absolute;
790
788
  inset: 0;
791
- z-index: ${we.zIndex};
789
+ z-index: ${Ce.zIndex};
792
790
  }
793
791
 
794
792
  #container.dragging #overlay {
@@ -799,9 +797,9 @@
799
797
  z-index: 1;
800
798
  position: absolute;
801
799
  inset: 0;
802
- background-color: ${we.activeBorderColor};
800
+ background-color: ${Ce.activeBorderColor};
803
801
  opacity: 0.20;
804
- border-radius: ${we.borderRadius};
802
+ border-radius: ${Ce.borderRadius};
805
803
  }
806
804
 
807
805
  #overlay-drop {
@@ -821,22 +819,22 @@
821
819
 
822
820
  #overlay-content ft-chip {
823
821
  margin-bottom: 10%;
824
- ${(0,U.setVariable)(V.color,we.hintColor)};
825
- ${(0,U.setVariable)(V.iconSize,"32px")};
826
- ${(0,U.setVariable)(V.borderColor,"transparent")};
822
+ ${(0,$.setVariable)(W.color,Ce.hintColor)};
823
+ ${(0,$.setVariable)(W.iconSize,"32px")};
824
+ ${(0,$.setVariable)(W.borderColor,"transparent")};
827
825
  }
828
826
 
829
827
  #overlay-content xft-chip[icon=error] {
830
- ${(0,U.setVariable)(V.color,we.errorColor)};
831
- ${(0,U.setVariable)(V.backgroundColor,we.hintBackgroundColor)};
828
+ ${(0,$.setVariable)(W.color,Ce.errorColor)};
829
+ ${(0,$.setVariable)(W.backgroundColor,Ce.hintBackgroundColor)};
832
830
  }
833
831
 
834
832
  [hidden] {
835
833
  display: none;
836
834
  }
837
- `;var zt=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Oi=class extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}},be=class extends Ml.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return Il.html`
835
+ `;var Ut=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ni=class extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}},ve=class extends Gl.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return Kl.html`
838
836
  <div id="container"
839
- class="${(0,kl.classMap)(t)}"
837
+ class="${(0,ql.classMap)(t)}"
840
838
  @dragenter=${this.onDragEnter}
841
839
  @dragover=${this.onDragOver}
842
840
  @drop=${this.onDrop}>
@@ -852,7 +850,7 @@
852
850
  </div>
853
851
  <slot></slot>
854
852
  </div>
855
- `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let r=t.dataTransfer.files[0];Pi(this.accept,r.name,r.type)?(this.dragging=!1,this.dispatchEvent(new Oi(r))):(this.fileError=!0,setTimeout(()=>{this.dragging=!1,this.fileError=!1},2e3))}}};be.elementDefinitions={"ft-chip":k};be.styles=Dl;zt([(0,Qe.property)()],be.prototype,"dropHint",void 0);zt([(0,Qe.property)()],be.prototype,"accept",void 0);zt([(0,Qe.property)()],be.prototype,"fileTypeError",void 0);zt([(0,Qe.property)({type:Boolean})],be.prototype,"visible",void 0);zt([(0,Qe.state)()],be.prototype,"dragging",void 0);zt([(0,Qe.state)()],be.prototype,"fileError",void 0);var Ul={"ft-file-drop":be};(0,$l.customElements)(Ul);})();
853
+ `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let r=t.dataTransfer.files[0];Ui(this.accept,r.name,r.type)?(this.dragging=!1,this.dispatchEvent(new Ni(r))):(this.fileError=!0,setTimeout(()=>{this.dragging=!1,this.fileError=!1},2e3))}}};ve.elementDefinitions={"ft-chip":U};ve.styles=Wl;Ut([(0,Ye.property)()],ve.prototype,"dropHint",void 0);Ut([(0,Ye.property)()],ve.prototype,"accept",void 0);Ut([(0,Ye.property)()],ve.prototype,"fileTypeError",void 0);Ut([(0,Ye.property)({type:Boolean})],ve.prototype,"visible",void 0);Ut([(0,Ye.state)()],ve.prototype,"dragging",void 0);Ut([(0,Ye.state)()],ve.prototype,"fileError",void 0);var Yl={"ft-file-drop":ve};(0,Xl.customElements)(Yl);})();
856
854
  /*! Bundled license information:
857
855
 
858
856
  lit-html/lit-html.js: