@fluid-topics/ft-reader-toc 2.2.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,181 +1,138 @@
1
- "use strict";(()=>{var _c=Object.create;var ji=Object.defineProperty;var Cc=Object.getOwnPropertyDescriptor;var wc=Object.getOwnPropertyNames;var Tc=Object.getPrototypeOf,Oc=Object.prototype.hasOwnProperty;var vt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Rc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wc(t))!Oc.call(e,i)&&i!==r&&ji(e,i,{get:()=>t[i],enumerable:!(n=Cc(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?_c(Tc(e)):{},Rc(t||!e||!e.__esModule?ji(r,"default",{value:e,enumerable:!0}):r,e));var E=vt((md,Wi)=>{Wi.exports=ftGlobals.wcUtils});var I=vt((yd,Ki)=>{Ki.exports=ftGlobals.lit});var Gt=vt((bd,Gi)=>{Gi.exports=ftGlobals.litClassMap});var Xi=vt((Ed,qi)=>{qi.exports=ftGlobals.litStyleMap});var X=vt((Td,uo)=>{uo.exports=ftGlobals.litDecorators});var Fo=vt((dp,Vo)=>{Vo.exports=ftGlobals.litUnsafeHTML});var Ec=f(E());var se=f(I());function*$n(e,t){if(e!==void 0){let r=0;for(let n of e)yield t(n,r++)}}var xc=f(Gt()),vc=f(Xi());var Wn=globalThis,Yi=e=>e,Tr=Wn.trustedTypes,Ji=Tr?Tr.createPolicy("lit-html",{createHTML:e=>e}):void 0,no="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,io="?"+Fe,Nc=`<${io}>`,nt=document,Or=()=>nt.createComment(""),Xt=e=>e===null||typeof e!="object"&&typeof e!="function",Kn=Array.isArray,Lc=e=>Kn(e)||typeof e?.[Symbol.iterator]=="function",Bn=`[
2
- \f\r]`,qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zi=/-->/g,Qi=/>/g,tt=RegExp(`>|${Bn}(?:([^\\s"'>=/]+)(${Bn}*=${Bn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),eo=/'/g,to=/"/g,oo=/^(?:script|style|textarea|title)$/i,Gn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),so=Gn(1),ao=Gn(2),lo=Gn(3),Yt=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),ro=new WeakMap,rt=nt.createTreeWalker(nt,129);function co(e,t){if(!Kn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ji!==void 0?Ji.createHTML(t):t}var Pc=(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=Zi:u[1]!==void 0?s=Qi:u[2]!==void 0?(oo.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]==='"'?to:eo):s===to||s===eo?s=tt:s===Zi||s===Qi?s=qt:(s=tt,i=void 0);let y=s===tt&&e[a+1].startsWith("/>")?" ":"";o+=s===qt?l+Nc:d>=0?(n.push(c),l.slice(0,d)+no+l.slice(d)+Fe+y):l+Fe+(d===-2?a:y)}return[co(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]=Pc(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(no)){let p=u[s++],y=i.getAttribute(d).split(Fe),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:y,ctor:x[1]==="."?Vn:x[1]==="?"?Fn:x[1]==="@"?zn:Et}),i.removeAttribute(d)}else d.startsWith(Fe)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(oo.test(i.tagName)){let d=i.textContent.split(Fe),p=d.length-1;if(p>0){i.textContent=Tr?Tr.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],Or()),rt.nextNode(),l.push({type:2,index:++o});i.append(d[p],Or())}}}else if(i.nodeType===8)if(i.data===io)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(Fe,d+1))!==-1;)l.push({type:7,index:o}),d+=Fe.length-1}o++}}static createElement(t,r){let n=nt.createElement("template");return n.innerHTML=t,n}};function bt(e,t,r=e,n){if(t===Yt)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Xt(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=bt(e,i._$AS(e,t.values),i,n)),t}var Hn=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 Rr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new jn(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++}},Rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=z,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=bt(this,t,r),Xt(t)?t===z||t==null||t===""?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==Yt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Lc(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!==z&&Xt(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(co(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Hn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ro.get(t.strings);return r===void 0&&ro.set(t.strings,r=new Jt(t)),r}k(t){Kn(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(Or()),this.O(Or()),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=Yi(t).nextSibling;Yi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Et=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=z,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=z}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=bt(this,t,r,0),s=!Xt(t)||t!==this._$AH&&t!==Yt,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=bt(this,a[n+l],r,l),c===Yt&&(c=this._$AH[l]),s||=!Xt(c)||c!==this._$AH[l],c===z?t=z:t!==z&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Vn=class extends Et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}},Fn=class extends Et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==z)}},zn=class extends Et{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=bt(this,t,r,0)??z)===Yt)return;let n=this._$AH,i=t===z&&n!==z||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==z&&(n===z||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)}},jn=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){bt(this,t)}};var Mc=Wn.litHtmlPolyfillSupport;Mc?.(Jt,Rr),(Wn.litHtmlVersions??=[]).push("3.3.3");var it=e=>e??z;var $=f(X()),Re=f(E());var Nr=f(E()),ho=f(X());var po;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(po||(po={}));var fo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(fo||(fo={}));var Dc=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},Xn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},qn=Symbol("registerInterval"),Ic=(0,Nr.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[qn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[qn]):this.dispatchEvent(new Xn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=qn,Dc([(0,ho.state)()],r.prototype,"stateManager",void 0),r}),At=class extends Ic(Nr.FtLitElementRedux){};var yo=Symbol.for(""),kc=e=>{if(e?.r===yo)return e?._$litStatic$},Yn=e=>({_$litStatic$:e,r:yo});var mo=new Map,Jn=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=kc(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=mo.get(d))===void 0&&(s.raw=s,mo.set(d,t=s)),r=a}return e(t,...r)},Zn=Jn(so),Pd=Jn(ao),Md=Jn(lo);var Qn=f(X()),No=f(E());var ze;(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"})(ze||(ze={}));var fe=f(I()),m=f(E()),go=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ke=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),b={fontFamily:ke,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")},St={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",go),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")},_t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",go),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")},Ct={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ke),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")},wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ke),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")},Tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ke),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")},Ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ke),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")},Rt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ke),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")},Nt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ke),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")},Lt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ke),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")},Ne={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ke),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")},xo=fe.css`
1
+ "use strict";(()=>{var Qc=Object.create;var lo=Object.defineProperty;var eu=Object.getOwnPropertyDescriptor;var tu=Object.getOwnPropertyNames;var ru=Object.getPrototypeOf,nu=Object.prototype.hasOwnProperty;var Ut=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var iu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tu(t))!nu.call(e,i)&&i!==r&&lo(e,i,{get:()=>t[i],enumerable:!(n=eu(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Qc(ru(e)):{},iu(t||!e||!e.__esModule?lo(r,"default",{value:e,enumerable:!0}):r,e));var E=Ut((jd,co)=>{co.exports=ftGlobals.wcUtils});var D=Ut((Wd,uo)=>{uo.exports=ftGlobals.lit});var ei=Ut((Xd,po)=>{po.exports=ftGlobals.litStyleMap});var X=Ut((ap,Ro)=>{Ro.exports=ftGlobals.litDecorators});var bt=Ut((Ap,qo)=>{qo.exports=ftGlobals.litClassMap});var ic=Ut((lx,nc)=>{nc.exports=ftGlobals.litUnsafeHTML});var Yc=f(E());var Ue=f(D());function*Bt(e,t){if(e!==void 0){let r=0;for(let n of e)yield t(n,r++)}}var Ic=f(ei());var ai=globalThis,fo=e=>e,Vr=ai.trustedTypes,ho=Vr?Vr.createPolicy("lit-html",{createHTML:e=>e}):void 0,bo="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Eo="?"+Qe,ou=`<${Eo}>`,dt=document,zr=()=>dt.createComment(""),lr=e=>e===null||typeof e!="object"&&typeof e!="function",li=Array.isArray,su=e=>li(e)||typeof e?.[Symbol.iterator]=="function",ti=`[
2
+ \f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mo=/-->/g,yo=/>/g,ct=RegExp(`>|${ti}(?:([^\\s"'>=/]+)(${ti}*=${ti}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),go=/'/g,xo=/"/g,So=/^(?:script|style|textarea|title)$/i,ci=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ao=ci(1),_o=ci(2),Co=ci(3),cr=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),vo=new WeakMap,ut=dt.createTreeWalker(dt,129);function wo(e,t){if(!li(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ho!==void 0?ho.createHTML(t):t}var au=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=ar;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===ar?u[1]==="!--"?s=mo:u[1]!==void 0?s=yo:u[2]!==void 0?(So.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=ct):u[3]!==void 0&&(s=ct):s===ct?u[0]===">"?(s=i??ar,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?ct:u[3]==='"'?xo:go):s===xo||s===go?s=ct:s===mo||s===yo?s=ar:(s=ct,i=void 0);let y=s===ct&&e[a+1].startsWith("/>")?" ":"";o+=s===ar?l+ou:d>=0?(n.push(c),l.slice(0,d)+bo+l.slice(d)+Qe+y):l+Qe+(d===-2?a:y)}return[wo(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ur=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]=au(t,r);if(this.el=e.createElement(c,n),ut.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ut.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(bo)){let p=u[s++],y=i.getAttribute(d).split(Qe),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:y,ctor:v[1]==="."?ni:v[1]==="?"?ii:v[1]==="@"?oi:Ft}),i.removeAttribute(d)}else d.startsWith(Qe)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(So.test(i.tagName)){let d=i.textContent.split(Qe),p=d.length-1;if(p>0){i.textContent=Vr?Vr.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],zr()),ut.nextNode(),l.push({type:2,index:++o});i.append(d[p],zr())}}}else if(i.nodeType===8)if(i.data===Eo)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(Qe,d+1))!==-1;)l.push({type:7,index:o}),d+=Qe.length-1}o++}}static createElement(t,r){let n=dt.createElement("template");return n.innerHTML=t,n}};function Ht(e,t,r=e,n){if(t===cr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=lr(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=Ht(e,i._$AS(e,t.values),i,n)),t}var ri=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??dt).importNode(r,!0);ut.currentNode=i;let o=ut.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new jr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new si(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=ut.nextNode(),s++)}return ut.currentNode=dt,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++}},jr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=K,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=Ht(this,t,r),lr(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==cr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):su(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!==K&&lr(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.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=ur.createElement(wo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ri(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=vo.get(t.strings);return r===void 0&&vo.set(t.strings,r=new ur(t)),r}k(t){li(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(zr()),this.O(zr()),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=fo(t).nextSibling;fo(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ft=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=K,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=K}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Ht(this,t,r,0),s=!lr(t)||t!==this._$AH&&t!==cr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=Ht(this,a[n+l],r,l),c===cr&&(c=this._$AH[l]),s||=!lr(c)||c!==this._$AH[l],c===K?t=K:t!==K&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ni=class extends Ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}},ii=class extends Ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},oi=class extends Ft{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Ht(this,t,r,0)??K)===cr)return;let n=this._$AH,i=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==K&&(n===K||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)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ht(this,t)}};var lu=ai.litHtmlPolyfillSupport;lu?.(ur,jr),(ai.litHtmlVersions??=[]).push("3.3.3");var Te=e=>e??K;var Oo=Symbol.for(""),cu=e=>{if(e?.r===Oo)return e?._$litStatic$},ui=e=>({_$litStatic$:e,r:Oo});var To=new Map,di=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=cu(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=To.get(d))===void 0&&(s.raw=s,To.set(d,t=s)),r=a}return e(t,...r)},pi=di(Ao),rp=di(_o),np=di(Co);var fi=f(X()),zo=f(E());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 be=f(D()),h=f(E()),No=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Ke=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Ke,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},ft={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},ht={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},mt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},yt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},he={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},gt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Oe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Lo=be.css`
4
4
  .ft-typography--title {
5
- font-family: ${St.fontFamily};
6
- font-size: ${St.fontSize};
7
- font-weight: ${St.fontWeight};
8
- letter-spacing: ${St.letterSpacing};
9
- line-height: ${St.lineHeight};
10
- text-transform: ${St.textTransform};
11
- }
12
- `,vo=fe.css`
5
+ font-family: ${pt.fontFamily};
6
+ font-size: ${pt.fontSize};
7
+ font-weight: ${pt.fontWeight};
8
+ letter-spacing: ${pt.letterSpacing};
9
+ line-height: ${pt.lineHeight};
10
+ text-transform: ${pt.textTransform};
11
+ text-decoration: ${pt.textDecoration};
12
+ }
13
+ `,Po=be.css`
13
14
  .ft-typography--title-dense {
14
- font-family: ${_t.fontFamily};
15
- font-size: ${_t.fontSize};
16
- font-weight: ${_t.fontWeight};
17
- letter-spacing: ${_t.letterSpacing};
18
- line-height: ${_t.lineHeight};
19
- text-transform: ${_t.textTransform};
20
- }
21
- `,bo=fe.css`
15
+ font-family: ${ft.fontFamily};
16
+ font-size: ${ft.fontSize};
17
+ font-weight: ${ft.fontWeight};
18
+ letter-spacing: ${ft.letterSpacing};
19
+ line-height: ${ft.lineHeight};
20
+ text-transform: ${ft.textTransform};
21
+ text-decoration: ${ft.textDecoration};
22
+ }
23
+ `,ko=be.css`
22
24
  .ft-typography--subtitle1 {
23
- font-family: ${Ct.fontFamily};
24
- font-size: ${Ct.fontSize};
25
- font-weight: ${Ct.fontWeight};
26
- letter-spacing: ${Ct.letterSpacing};
27
- line-height: ${Ct.lineHeight};
28
- text-transform: ${Ct.textTransform};
29
- }
30
- `,Eo=fe.css`
25
+ font-family: ${ht.fontFamily};
26
+ font-size: ${ht.fontSize};
27
+ font-weight: ${ht.fontWeight};
28
+ letter-spacing: ${ht.letterSpacing};
29
+ line-height: ${ht.lineHeight};
30
+ text-transform: ${ht.textTransform};
31
+ text-decoration: ${ht.textDecoration};
32
+ }
33
+ `,Do=be.css`
31
34
  .ft-typography--subtitle2 {
32
- font-family: ${wt.fontFamily};
33
- font-size: ${wt.fontSize};
34
- font-weight: ${wt.fontWeight};
35
- letter-spacing: ${wt.letterSpacing};
36
- line-height: ${wt.lineHeight};
37
- text-transform: ${wt.textTransform};
35
+ font-family: ${mt.fontFamily};
36
+ font-size: ${mt.fontSize};
37
+ font-weight: ${mt.fontWeight};
38
+ letter-spacing: ${mt.letterSpacing};
39
+ line-height: ${mt.lineHeight};
40
+ text-transform: ${mt.textTransform};
41
+ text-decoration: ${mt.textDecoration};
38
42
  }
39
43
 
40
- `,Ao=fe.css`
44
+ `,Io=be.css`
41
45
  .ft-typography--body1 {
42
- font-family: ${Tt.fontFamily};
43
- font-size: ${Tt.fontSize};
44
- font-weight: ${Tt.fontWeight};
45
- letter-spacing: ${Tt.letterSpacing};
46
- line-height: ${Tt.lineHeight};
47
- text-transform: ${Tt.textTransform};
48
- }
49
- `,So=fe.css`
46
+ font-family: ${yt.fontFamily};
47
+ font-size: ${yt.fontSize};
48
+ font-weight: ${yt.fontWeight};
49
+ letter-spacing: ${yt.letterSpacing};
50
+ line-height: ${yt.lineHeight};
51
+ text-transform: ${yt.textTransform};
52
+ text-decoration: ${yt.textDecoration};
53
+ }
54
+ `,Mo=be.css`
50
55
  .ft-typography--body2 {
51
- font-family: ${Ot.fontFamily};
52
- font-size: ${Ot.fontSize};
53
- font-weight: ${Ot.fontWeight};
54
- letter-spacing: ${Ot.letterSpacing};
55
- line-height: ${Ot.lineHeight};
56
- text-transform: ${Ot.textTransform};
57
- }
58
- `,_o=fe.css`
56
+ font-family: ${he.fontFamily};
57
+ font-size: ${he.fontSize};
58
+ font-weight: ${he.fontWeight};
59
+ letter-spacing: ${he.letterSpacing};
60
+ line-height: ${he.lineHeight};
61
+ text-transform: ${he.textTransform};
62
+ text-decoration: ${he.textDecoration};
63
+ }
64
+ `,$o=be.css`
59
65
  .ft-typography--caption {
60
- font-family: ${Rt.fontFamily};
61
- font-size: ${Rt.fontSize};
62
- font-weight: ${Rt.fontWeight};
63
- letter-spacing: ${Rt.letterSpacing};
64
- line-height: ${Rt.lineHeight};
65
- text-transform: ${Rt.textTransform};
66
- }
67
- `,Co=fe.css`
66
+ font-family: ${gt.fontFamily};
67
+ font-size: ${gt.fontSize};
68
+ font-weight: ${gt.fontWeight};
69
+ letter-spacing: ${gt.letterSpacing};
70
+ line-height: ${gt.lineHeight};
71
+ text-transform: ${gt.textTransform};
72
+ text-decoration: ${gt.textDecoration};
73
+ }
74
+ `,Uo=be.css`
68
75
  .ft-typography--breadcrumb {
69
- font-family: ${Nt.fontFamily};
70
- font-size: ${Nt.fontSize};
71
- font-weight: ${Nt.fontWeight};
72
- letter-spacing: ${Nt.letterSpacing};
73
- line-height: ${Nt.lineHeight};
74
- text-transform: ${Nt.textTransform};
75
- }
76
- `,wo=fe.css`
76
+ font-family: ${xt.fontFamily};
77
+ font-size: ${xt.fontSize};
78
+ font-weight: ${xt.fontWeight};
79
+ letter-spacing: ${xt.letterSpacing};
80
+ line-height: ${xt.lineHeight};
81
+ text-transform: ${xt.textTransform};
82
+ text-decoration: ${xt.textDecoration};
83
+ }
84
+ `,Bo=be.css`
77
85
  .ft-typography--overline {
78
- font-family: ${Lt.fontFamily};
79
- font-size: ${Lt.fontSize};
80
- font-weight: ${Lt.fontWeight};
81
- letter-spacing: ${Lt.letterSpacing};
82
- line-height: ${Lt.lineHeight};
83
- text-transform: ${Lt.textTransform};
84
- }
85
- `,To=fe.css`
86
+ font-family: ${vt.fontFamily};
87
+ font-size: ${vt.fontSize};
88
+ font-weight: ${vt.fontWeight};
89
+ letter-spacing: ${vt.letterSpacing};
90
+ line-height: ${vt.lineHeight};
91
+ text-transform: ${vt.textTransform};
92
+ text-decoration: ${vt.textDecoration};
93
+ }
94
+ `,Ho=be.css`
86
95
  .ft-typography--button {
87
- font-family: ${Ne.fontFamily};
88
- font-size: ${Ne.fontSize};
89
- font-weight: ${Ne.fontWeight};
90
- letter-spacing: ${Ne.letterSpacing};
91
- line-height: ${Ne.lineHeight};
92
- text-transform: ${Ne.textTransform};
93
- }
94
- `,Oo=fe.css`
96
+ font-family: ${Oe.fontFamily};
97
+ font-size: ${Oe.fontSize};
98
+ font-weight: ${Oe.fontWeight};
99
+ letter-spacing: ${Oe.letterSpacing};
100
+ line-height: ${Oe.lineHeight};
101
+ text-transform: ${Oe.textTransform};
102
+ text-decoration: ${Oe.textDecoration};
103
+ }
104
+ `,Fo=be.css`
95
105
  .ft-typography {
96
106
  vertical-align: inherit;
97
107
  }
98
- `;var Ro=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},ae=class extends No.FtLitElement{constructor(){super(...arguments),this.variant=ze.body1}render(){return this.element?Zn`
99
- <${Yn(this.element)}
108
+ `;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},J=class extends zo.FtLitElement{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?pi`
109
+ <${ui(this.element)}
100
110
  part="text"
101
111
  class="ft-typography ft-typography--${this.variant}">
102
112
  <slot></slot>
103
- </${Yn(this.element)}>
104
- `:Zn`
113
+ </${ui(this.element)}>
114
+ `:pi`
105
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};ae.styles=[xo,vo,bo,Eo,Ao,So,_o,Co,wo,To,Oo];Ro([(0,Qn.property)()],ae.prototype,"element",void 0);Ro([(0,Qn.property)()],ae.prototype,"variant",void 0);var Po=f(E());var Lo={"ft-typography":ae};(0,Po.customElements)(Lo);var Lr=f(E()),Mo=f(I()),Uc={outlineColor:Lr.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",Lr.designSystemVariables.colorPrimary)},Do=Mo.css`
116
+ `}};J.styles=[Lo,Po,ko,Do,Io,Mo,$o,Uo,Bo,Ho,Fo];Vo([(0,fi.property)()],J.prototype,"element",void 0);Vo([(0,fi.property)()],J.prototype,"variant",void 0);var Wo=f(E());var jo={"ft-typography":J};(0,Wo.customElements)(jo);var Wr=f(E()),Ko=f(D()),hi={outlineColor:Wr.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",Wr.designSystemVariables.colorPrimary)},Go=Ko.css`
107
117
  :host {
108
118
  display: contents;
109
119
  }
110
120
 
111
121
  a:focus {
112
- outline-color: ${Uc.outlineColor};
122
+ outline-color: ${hi.outlineColor};
113
123
  }
114
124
 
115
125
  .ft-reader-link--remove-style {
116
126
  text-decoration: none;
117
127
  color: inherit;
118
128
  }
119
- `;var Io=f(I()),Zt=f(X()),ko=f(Gt());var Pr=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},ve=class extends At{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let r=(0,ko.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Io.html`
129
+ `;var Jo=f(D()),dr=f(X()),Qo=f(bt());var Kr=f(E()),Zo=f(X());var Xo;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(Xo||(Xo={}));var Yo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yo||(Yo={}));var uu=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},yi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},mi=Symbol("registerInterval"),du=(0,Kr.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[mi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[mi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=mi,uu([(0,Zo.state)()],r.prototype,"stateManager",void 0),r}),Vt=class extends du(Kr.FtLitElementRedux){};var Gr=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},Re=class extends Vt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let r=(0,Qo.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Jo.html`
120
130
  <a class="${r}"
121
131
  href="${(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
122
132
  @click=${n=>this.onLinkClick(n)}>
123
133
  <slot></slot>
124
134
  </a>
125
- `}onLinkClick(t){var r,n,i;!t.ctrlKey&&!t.metaKey&&(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(r=this.stateManager)===null||r===void 0||r.navigateToTopic(this.tocId,this.section,this.pageNumber),(n=this.stateManager)===null||n===void 0||n.store.commands.clear(/^focus-topic-/),(i=this.stateManager)===null||i===void 0||i.store.commands.add({type:`focus-topic-${this.tocId}`}),this.click())}};ve.styles=Do;Pr([(0,Zt.property)()],ve.prototype,"tocId",void 0);Pr([(0,Zt.property)()],ve.prototype,"section",void 0);Pr([(0,Zt.property)({type:Number})],ve.prototype,"pageNumber",void 0);Pr([(0,Zt.property)({type:Boolean})],ve.prototype,"removeStyle",void 0);var $o=f(E());var Uo={"ft-reader-internal-link":ve};(0,$o.customElements)(Uo);var Bo=f(I()),Ee=f(E()),be={size:Ee.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ho=[Bo.css`
126
- :host, i.ft-icon {
127
- display: inline-flex;
128
- align-items: center;
129
- flex-shrink: 0;
130
- flex-grow: 0;
131
- }
132
-
133
- :host {
134
- width: ${be.size};
135
- height: ${be.size};
136
- }
137
-
138
- i.ft-icon {
139
- width: 100%;
140
- height: 100%;
141
- font-size: ${be.size};
142
- line-height: 1;
143
- font-weight: normal;
144
- text-transform: none;
145
- font-style: normal;
146
- font-variant: normal;
147
- speak: none;
148
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
149
- text-rendering: auto;
150
- -webkit-font-smoothing: antialiased;
151
- -moz-osx-font-smoothing: grayscale;
152
- vertical-align: ${be.verticalAlign};
153
- }
154
-
155
- i.ft-icon.ft-icon--fluid-topics {
156
- font-family: ${be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
157
-
158
- /* Ugly fix because font is broken */
159
- font-size: calc(0.75 * ${be.size});
160
- line-height: ${be.size};
161
- position: relative;
162
- top: -4%;
163
- justify-content: center;
164
- }
165
-
166
- .ft-icon--file-format {
167
- font-family: ${be.fileFormatFontFamily}, ft-mime, sans-serif;
168
- }
169
-
170
- .ft-icon--material {
171
- font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
172
- }
173
- `,Ee.noTextSelect];var Ae;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ae||(Ae={}));var Qt=f(I()),je=f(X()),zo=f(E()),jo=f(Fo());var Mr;(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;"})(Mr||(Mr={}));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 pp=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 fp={[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 er=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},Q=class extends zo.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Qt.nothing}render(){let t=this.variant&&Object.values(Ae).includes(this.variant)?this.variant:Ae.fluid_topics,r=t!==Ae.material||!!this.value;return Qt.html`
174
- <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
175
- ${(0,jo.unsafeHTML)(this.resolvedIcon)}
176
- <slot ?hidden=${r}></slot>
177
- </i>
178
- `}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 Ae.file_format:this.resolvedIcon=(t=h[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ae.material:this.resolvedIcon=this.value||Qt.nothing;break;default:this.resolvedIcon=(r=Mr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Q.elementDefinitions={};Q.styles=Ho;er([(0,je.property)()],Q.prototype,"variant",void 0);er([(0,je.property)()],Q.prototype,"value",void 0);er([(0,je.property)({reflect:!0,attribute:"aria-hidden"})],Q.prototype,"ariaHidden",void 0);er([(0,je.state)()],Q.prototype,"resolvedIcon",void 0);er([(0,je.query)("slot")],Q.prototype,"slottedContent",void 0);var Ko=f(E());var Wo={"ft-icon":Q};(0,Ko.customElements)(Wo);var Ie=f(E());var es=f(I()),Y=f(X()),ts=f(Gt()),tr=f(E());var Zo=f(I()),j=f(E()),Go=j.FtCssVariableFactory.extend("--ft-ripple-color","",j.designSystemVariables.colorContent),he={color:Go,backgroundColor:j.FtCssVariableFactory.extend("--ft-ripple-background-color","",Go),opacityContentOnSurfacePressed:j.FtCssVariableFactory.external(j.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:j.FtCssVariableFactory.external(j.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:j.FtCssVariableFactory.external(j.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:j.FtCssVariableFactory.external(j.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:j.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},qo=j.FtCssVariableFactory.extend("--ft-ripple-color","",j.designSystemVariables.colorPrimary),Xo={color:qo,backgroundColor:j.FtCssVariableFactory.extend("--ft-ripple-background-color","",qo)},Yo=j.FtCssVariableFactory.extend("--ft-ripple-color","",j.designSystemVariables.colorSecondary),Jo={color:Yo,backgroundColor:j.FtCssVariableFactory.extend("--ft-ripple-background-color","",Yo)},Qo=Zo.css`
135
+ `}onLinkClick(t){var r,n,i;!t.ctrlKey&&!t.metaKey&&(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(r=this.stateManager)===null||r===void 0||r.navigateToTopic(this.tocId,this.section,this.pageNumber),(n=this.stateManager)===null||n===void 0||n.store.commands.clear(/^focus-topic-/),(i=this.stateManager)===null||i===void 0||i.store.commands.add({type:`focus-topic-${this.tocId}`}),this.click())}};Re.styles=Go;Gr([(0,dr.property)()],Re.prototype,"tocId",void 0);Gr([(0,dr.property)()],Re.prototype,"section",void 0);Gr([(0,dr.property)({type:Number})],Re.prototype,"pageNumber",void 0);Gr([(0,dr.property)({type:Boolean})],Re.prototype,"removeStyle",void 0);var ts=f(E());var es={"ft-reader-internal-link":Re};(0,ts.customElements)(es);var je=f(E());var cs=f(D()),Q=f(X()),us=f(bt()),pr=f(E());var as=f(D()),G=f(E()),rs=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorContent),ie={color:rs,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",rs),opacityContentOnSurfacePressed:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:G.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ns=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorPrimary),is={color:ns,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",ns)},os=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorSecondary),ss={color:os,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",os)},ls=as.css`
179
136
  :host {
180
137
  display: contents;
181
138
  }
@@ -188,7 +145,7 @@
188
145
 
189
146
  .ft-ripple:not(.ft-ripple--unbounded) {
190
147
  overflow: hidden;
191
- border-radius: ${he.borderRadius};
148
+ border-radius: ${ie.borderRadius};
192
149
  }
193
150
 
194
151
  .ft-ripple .ft-ripple--background,
@@ -222,27 +179,27 @@
222
179
  }
223
180
 
224
181
  .ft-ripple .ft-ripple--background {
225
- background-color: ${he.backgroundColor};
182
+ background-color: ${ie.backgroundColor};
226
183
  }
227
184
 
228
185
  .ft-ripple .ft-ripple--effect {
229
- background-color: ${he.color};
186
+ background-color: ${ie.color};
230
187
  }
231
188
 
232
189
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
233
- background-color: ${Jo.backgroundColor};
190
+ background-color: ${ss.backgroundColor};
234
191
  }
235
192
 
236
193
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
237
- background-color: ${Jo.color};
194
+ background-color: ${ss.color};
238
195
  }
239
196
 
240
197
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
241
- background-color: ${Xo.backgroundColor};
198
+ background-color: ${is.backgroundColor};
242
199
  }
243
200
 
244
201
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
245
- background-color: ${Xo.color};
202
+ background-color: ${is.color};
246
203
  }
247
204
 
248
205
  .ft-ripple .ft-ripple--background {
@@ -272,33 +229,33 @@
272
229
  }
273
230
 
274
231
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
275
- opacity: ${he.opacityContentOnSurfaceHover};
232
+ opacity: ${ie.opacityContentOnSurfaceHover};
276
233
  }
277
234
 
278
235
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
279
- opacity: ${he.opacityContentOnSurfaceSelected};
236
+ opacity: ${ie.opacityContentOnSurfaceSelected};
280
237
  }
281
238
 
282
239
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
283
- opacity: ${he.opacityContentOnSurfaceFocused};
240
+ opacity: ${ie.opacityContentOnSurfaceFocused};
284
241
  }
285
242
 
286
243
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
287
- opacity: ${he.opacityContentOnSurfacePressed};
244
+ opacity: ${ie.opacityContentOnSurfacePressed};
288
245
  transform: translate(-50%, -50%) scale(1);
289
246
  }
290
- `;var re=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},H=class extends tr.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 tr.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 tr.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 es.html`
247
+ `;var ue=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},U=class extends pr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new pr.Debouncer(1e3),this.onTransitionStart=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 pr.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 cs.html`
291
248
  <style>
292
249
  .ft-ripple .ft-ripple--effect {
293
250
  left: ${this.originX}px;
294
251
  top: ${this.originY}px;
295
252
  }
296
253
  </style>
297
- <div class="${(0,ts.classMap)(t)}">
254
+ <div class="${(0,us.classMap)(t)}">
298
255
  <div class="ft-ripple--background"></div>
299
256
  <div class="ft-ripple--effect"></div>
300
257
  </div>
301
- `}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()}};H.elementDefinitions={};H.styles=Qo;re([(0,Y.property)({type:Boolean})],H.prototype,"primary",void 0);re([(0,Y.property)({type:Boolean})],H.prototype,"secondary",void 0);re([(0,Y.property)({type:Boolean})],H.prototype,"unbounded",void 0);re([(0,Y.property)({type:Boolean})],H.prototype,"activated",void 0);re([(0,Y.property)({type:Boolean})],H.prototype,"selected",void 0);re([(0,Y.property)({type:Boolean})],H.prototype,"disabled",void 0);re([(0,Y.state)()],H.prototype,"hovered",void 0);re([(0,Y.state)()],H.prototype,"focused",void 0);re([(0,Y.state)()],H.prototype,"pressed",void 0);re([(0,Y.state)()],H.prototype,"rippling",void 0);re([(0,Y.state)()],H.prototype,"originX",void 0);re([(0,Y.state)()],H.prototype,"originY",void 0);re([(0,Y.query)(".ft-ripple")],H.prototype,"ripple",void 0);re([(0,Y.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);var ns=f(E());var rs={"ft-ripple":H};(0,ns.customElements)(rs);var zl=f(I()),xe=f(X()),ge=f(E());var is=f(I()),We=f(E()),rr={distance:We.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:We.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:We.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:We.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",We.designSystemVariables.borderRadiusS),maxWidth:We.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},os=is.css`
258
+ `}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()}};U.elementDefinitions={};U.styles=ls;ue([(0,Q.property)({type:Boolean})],U.prototype,"primary",void 0);ue([(0,Q.property)({type:Boolean})],U.prototype,"secondary",void 0);ue([(0,Q.property)({type:Boolean})],U.prototype,"unbounded",void 0);ue([(0,Q.property)({type:Boolean})],U.prototype,"activated",void 0);ue([(0,Q.property)({type:Boolean})],U.prototype,"selected",void 0);ue([(0,Q.property)({type:Boolean})],U.prototype,"disabled",void 0);ue([(0,Q.state)()],U.prototype,"hovered",void 0);ue([(0,Q.state)()],U.prototype,"focused",void 0);ue([(0,Q.state)()],U.prototype,"pressed",void 0);ue([(0,Q.state)()],U.prototype,"rippling",void 0);ue([(0,Q.state)()],U.prototype,"originX",void 0);ue([(0,Q.state)()],U.prototype,"originY",void 0);ue([(0,Q.query)(".ft-ripple")],U.prototype,"ripple",void 0);ue([(0,Q.query)(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0);var ps=f(E());var ds={"ft-ripple":U};(0,ps.customElements)(ds);var Jl=f(D()),Ce=f(X()),_e=f(E());var fs=f(D()),et=f(E()),fr={distance:et.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:et.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:et.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:et.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",et.designSystemVariables.borderRadiusS),maxWidth:et.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},hs=fs.css`
302
259
  .ft-tooltip--container {
303
260
  display: block;
304
261
  }
@@ -316,28 +273,28 @@
316
273
  box-sizing: border-box;
317
274
  overflow: hidden;
318
275
  width: max-content;
319
- max-width: ${rr.maxWidth};
276
+ max-width: ${fr.maxWidth};
320
277
  text-align: center;
321
- padding: ${rr.distance};
278
+ padding: ${fr.distance};
322
279
  }
323
280
 
324
281
  .ft-tooltip--content {
325
282
  padding: 4px 8px;
326
- border-radius: ${rr.borderRadiusS};
327
- background-color: ${rr.backgroundColor};
328
- color: ${rr.color};
283
+ border-radius: ${fr.borderRadiusS};
284
+ background-color: ${fr.backgroundColor};
285
+ color: ${fr.color};
329
286
  position: relative;
330
287
  word-break: break-word;
331
288
  }
332
- `;var as=["top","right","bottom","left"],ss=["start","end"],ti=as.reduce((e,t)=>e.concat(t,t+"-"+ss[0],t+"-"+ss[1]),[]),nr=Math.min,Ke=Math.max,ir=Math.round;var Le=e=>({x:e,y:e}),$c={left:"right",right:"left",bottom:"top",top:"bottom"};function ls(e,t,r){return Ke(e,nr(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function ri(e){return e==="x"?"y":"x"}function ni(e){return e==="y"?"height":"width"}function Ir(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ii(e){return ri(Ir(e))}function cs(e,t,r){r===void 0&&(r=!1);let n=Ge(e),i=ii(e),o=ni(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ei(s)),[s,ei(s)]}function us(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function ei(e){let t=or(e);return $c[t]+e.slice(t.length)}function Bc(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 ds(e){return typeof e!="number"?Bc(e):{top:e,right:e,bottom:e,left:e}}function ot(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 ps(e,t,r){let{reference:n,floating:i}=e,o=Ir(t),s=ii(t),a=ni(s),l=or(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,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 x=Ge(t);return x&&(y[s]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function fs(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:y=0}=Dr(t,e),x=ds(y),g=a[p?d==="floating"?"reference":"floating":d],S=ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),N=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),C=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},T=ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:N,offsetParent:v,strategy:l}):N);return{top:(S.top-T.top+x.top)/C.y,bottom:(T.bottom-S.bottom+x.bottom)/C.y,left:(S.left-T.left+x.left)/C.x,right:(T.right-S.right+x.right)/C.x}}var Hc=50,hs=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:fs},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ps(c,n,l),p=n,y=0,x={};for(let A=0;A<o.length;A++){let g=o[A];if(!g)continue;let{name:S,fn:N}=g,{x:v,y:C,data:T,reset:V}=await N({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=v??u,d=C??d,x[S]={...x[S],...T},V&&y<Hc&&(y++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):V.rects),{x:u,y:d}=ps(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:x}};function Vc(e,t,r){return(e?[...r.filter(i=>Ge(i)===e),...r.filter(i=>Ge(i)!==e)]:r.filter(i=>or(i)===i)).filter(i=>e?Ge(i)===e||(t?us(i)!==i:!1):!0)}var ms=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=ti,autoAlignment:y=!0,...x}=Dr(e,t),A=d!==void 0||p===ti?Vc(d||null,y,p):p,g=((r=s.autoPlacement)==null?void 0:r.index)||0,S=A[g];if(S==null)return{};if(a!==S)return{reset:{placement:A[0]}};let N=await l.detectOverflow(t,x),v=cs(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[N[or(S)],N[v[0]],N[v[1]]],T=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:S,overflows:C}],V=A[g+1];if(V)return{data:{index:g+1,overflows:T},reset:{placement:V}};let D=T.map(pe=>{let et=Ge(pe.placement);return[pe.placement,et&&u?pe.overflows.slice(0,2).reduce((Ac,Sc)=>Ac+Sc,0):pe.overflows[0],pe.overflows]}).sort((pe,et)=>pe[1]-et[1]),Kt=((i=D.filter(pe=>pe[2].slice(0,Ge(pe[0])?2:3).every(et=>et<=0))[0])==null?void 0:i[0])||D[0][0];return Kt!==a?{data:{index:g+1,overflows:T},reset:{placement:Kt}}:{}}}};var ys=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:N=>{let{x:v,y:C}=N;return{x:v,y:C}}},...c}=Dr(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=Ir(i),y=ri(p),x=u[y],A=u[p],g=(N,v)=>ls(v+d[N==="y"?"top":"left"],v,v-d[N==="y"?"bottom":"right"]);s&&(x=g(y,x)),a&&(A=g(p,A));let S=l.fn({...t,[y]:x,[p]:A});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[y]:s,[p]:a}}}}}};function Ur(){return typeof window<"u"}function at(e){return xs(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(xs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xs(e){return Ur()?e instanceof Node||e instanceof ne(e).Node:!1}function Se(e){return Ur()?e instanceof Element||e instanceof ne(e).Element:!1}function $e(e){return Ur()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function gs(e){return!Ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function sr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function vs(e){return/^(table|td|th)$/.test(at(e))}function ar(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Fc=/transform|translate|scale|rotate|perspective|filter/,zc=/paint|layout|strict|content/,st=e=>!!e&&e!=="none",oi;function Pt(e){let t=Se(e)?_e(e):e;return st(t.transform)||st(t.translate)||st(t.scale)||st(t.rotate)||st(t.perspective)||!$r()&&(st(t.backdropFilter)||st(t.filter))||Fc.test(t.willChange||"")||zc.test(t.contain||"")}function bs(e){let t=qe(e);for(;$e(t)&&!Mt(t);){if(Pt(t))return t;if(ar(t))return null;t=qe(t)}return null}function $r(){return oi==null&&(oi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),oi}function Mt(e){return/^(html|body|#document)$/.test(at(e))}function _e(e){return ne(e).getComputedStyle(e)}function lr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(at(e)==="html")return e;let t=e.assignedSlot||e.parentNode||gs(e)&&e.host||Ue(e);return gs(t)?t.host:t}function Es(e){let t=qe(e);return Mt(t)?(e.ownerDocument||e).body:$e(t)&&sr(t)?t:Es(t)}function kr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Es(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=ne(i);if(o){let a=Br(s);return t.concat(s,s.visualViewport||[],sr(i)?i:[],a&&r?kr(a):[])}else return t.concat(i,kr(i,[],r))}function Br(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _s(e){let t=_e(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=$e(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=ir(r)!==o||ir(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Cs(e){return Se(e)?e:e.contextElement}function Dt(e){let t=Cs(e);if(!$e(t))return Le(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=_s(t),s=(o?ir(r.width):r.width)/n,a=(o?ir(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var jc=Le(0);function ws(e){let t=ne(e);return!$r()||!t.visualViewport?jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ne(e)}function cr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Cs(e),s=Le(1);t&&(n?Se(n)&&(s=Dt(n)):s=Dt(e));let a=Wc(o,r,n)?ws(o):Le(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=ne(o),y=Se(n)?ne(n):n,x=p,A=Br(x);for(;A&&y!==x;){let g=Dt(A),S=A.getBoundingClientRect(),N=_e(A),v=S.left+(A.clientLeft+parseFloat(N.paddingLeft))*g.x,C=S.top+(A.clientTop+parseFloat(N.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=v,c+=C,x=ne(A),A=Br(x)}}return ot({width:u,height:d,x:l,y:c})}function Hr(e,t){let r=lr(e).scrollLeft;return t?t.left+r:cr(Ue(e)).left+r}function Ts(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Hr(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Kc(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Ue(n),a=t?ar(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Le(1),u=Le(0),d=$e(n);if((d||!o)&&((at(n)!=="body"||sr(s))&&(l=lr(n)),d)){let y=cr(n);c=Dt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=s&&!d&&!o?Ts(s,l):Le(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 Gc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function qc(e){let t=lr(e),r=e.ownerDocument.body,n=Ke(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+Hr(e),s=-t.scrollTop;return _e(r).direction==="rtl"&&(o+=Ke(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Xc=25;function Yc(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=ne(e),o=Ue(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!$r()||t==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Hr(o)<=0){let p=o.ownerDocument,y=p.body,x=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,g=Math.abs(o.clientWidth-y.clientWidth-A),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?g/2:g;S<=Xc&&(a-=S)}return{width:a,height:l,x:c,y:u}}function Jc(e,t){let r=cr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Dt(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 As(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Yc(e,r,t);else if(t==="document")n=qc(Ue(e));else if(Se(t))n=Jc(t,r);else{let i=ws(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ot(n)}function Zc(e,t){let r=t.get(e);if(r)return r;let n=kr(e,[],!1).filter(a=>Se(a)&&at(a)!=="body"),i=null,o=_e(e).position==="fixed",s=o?qe(e):e;for(;Se(s)&&!Mt(s);){let a=_e(s),l=Pt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=qe(s)}return t.set(e,n),n}function Qc(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?ar(t)?[]:Zc(t,this._c):[].concat(r),n],a=As(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 y=As(t,s[p],i);l=Ke(y.top,l),c=nr(y.right,c),u=nr(y.bottom,u),d=Ke(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function eu(e){let{width:t,height:r}=_s(e);return{width:t,height:r}}function tu(e,t,r){let n=$e(t),i=Ue(t),o=r==="fixed",s=cr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=Le(0);if((n||!o)&&((at(t)!=="body"||sr(i))&&(a=lr(t)),n)){let p=cr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Hr(i));let c=i&&!n&&!o?Ts(i,a):Le(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 si(e){return _e(e).position==="static"}function Ss(e,t){if(!$e(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ue(e)===r&&(r=r.ownerDocument.body),r}function Os(e,t){let r=ne(e);if(ar(e))return r;if(!$e(e)){let i=qe(e);for(;i&&!Mt(i);){if(Se(i)&&!si(i))return i;i=qe(i)}return r}let n=Ss(e,t);for(;n&&vs(n)&&si(n);)n=Ss(n,t);return n&&Mt(n)&&si(n)&&!Pt(n)?r:n||bs(e)||r}var ru=async function(e){let t=this.getOffsetParent||Os,r=this.getDimensions,n=await r(e.floating);return{reference:tu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function nu(e){return _e(e).direction==="rtl"}var Vr={convertOffsetParentRelativeRectToViewportRelativeRect:Kc,getDocumentElement:Ue,getClippingRect:Qc,getOffsetParent:Os,getElementRects:ru,getClientRects:Gc,getDimensions:eu,getScale:Dt,isElement:Se,isRTL:nu};var Rs=ms,Ns=ys;var Ls=(e,t,r)=>{let n=new Map,i=r??{},o={...Vr,...i.platform,_c:n};return hs(e,t,{...i,platform:o})};function Ps(e){return iu(e)}function ai(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function iu(e){for(let t=e;t;t=ai(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ai(e);t;t=ai(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Pt(r)||t.tagName==="BODY"))return t}return null}async function Ms(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Ls(e,t,{strategy:n.strategy,platform:{...Vr,getOffsetParent:i=>Vr.getOffsetParent(i,Ps)},middleware:[Ns({crossAxis:!0}),Rs({allowedPlacements:[n.placement]})]})}var Wt=f(E());var Ri=f(X());var Ds=f(X(),1);var li=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Is(e,t){return(0,Ds.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return ur(e);try{return JSON.parse(r)}catch{return ur(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:dr,...t??{}})}function ou(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(!It(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(!It(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(!It(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function It(e,t){try{return ou(e,t)}catch{return!1}}function dr(e,t){return!It(e,t)}function ur(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fr(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 ks=f(X(),1);var ci=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:dr,attribute:!1,...t};(0,ks.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 zr=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 lt=f(X(),1);var jr=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 $s=f(I(),1);var Wr=globalThis,su=Wr.ShadowRoot&&(Wr.ShadyCSS===void 0||Wr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Us=(e,t)=>{if(su)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Wr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Kr=class extends $s.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 Us(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){li(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 Bs(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 Ut=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},zs,Hs=Symbol("constructorPrototype"),Vs=Symbol("constructorName"),js=Symbol("exportpartsDebouncer"),Fs=Symbol("dynamicDependenciesLoaded"),kt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};kt.eventName="exportparts-updated";var Pe=class extends Kr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zs]=new jr(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[js].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[Vs]=this.constructor.name,this[Hs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vs]&&Object.setPrototypeOf(this,this[Hs])}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[Fs]||(r[Fs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(kt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(kt.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 kt)})}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=Bs(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 y=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(g=>g.trim());for(let g of A)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(", ")}};zs=js;Ut([(0,lt.property)()],Pe.prototype,"exportpartsPrefix",void 0);Ut([Is([])],Pe.prototype,"exportpartsPrefixes",void 0);Ut([(0,lt.property)({reflect:!0})],Pe.prototype,"exportparts",void 0);Ut([(0,lt.property)()],Pe.prototype,"customStylesheet",void 0);Ut([(0,lt.property)()],Pe.prototype,"elementToFocus",void 0);Ut([(0,lt.state)()],Pe.prototype,"useAdoptedStyleSheets",void 0);function Gr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var pr=Symbol("internalReduxEventsUnsubscribers"),Xe=Symbol("internalStoresUnsubscribers"),ct=Symbol("internalStores"),au=Fr(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[ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ct].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ct].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[ct].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[ct].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Xe].has(s.store):this[Xe].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Xe].set(s,a.subscribe(()=>this.updateFromStores())),this[pr].set(s,[]),Gr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[pr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xe].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Xe].has(s)&&this[Xe].get(s)(),this[Xe].delete(s),(a=this[pr].get(s))===null||a===void 0||a.forEach(l=>l()),this[pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Xe,r=ct,n=pr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ws=class extends au(Pe){};function J(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 lu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ks=lu,ui=()=>Math.random().toString(36).substring(7).split("").join("."),cu={INIT:`@@redux/INIT${ui()}`,REPLACE:`@@redux/REPLACE${ui()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ui()}`},qr=cu;function Xr(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 di(e,t,r){if(typeof e!="function")throw new Error(J(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(J(1));return r(di)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((g,S)=>{s.set(S,g)}))}function u(){if(l)throw new Error(J(3));return i}function d(g){if(typeof g!="function")throw new Error(J(4));if(l)throw new Error(J(5));let S=!0;c();let N=a++;return s.set(N,g),function(){if(S){if(l)throw new Error(J(6));S=!1,c(),s.delete(N),o=null}}}function p(g){if(!Xr(g))throw new Error(J(7));if(typeof g.type>"u")throw new Error(J(8));if(typeof g.type!="string")throw new Error(J(17));if(l)throw new Error(J(9));try{l=!0,i=n(i,g)}finally{l=!1}return(o=s).forEach(N=>{N()}),g}function y(g){if(typeof g!="function")throw new Error(J(10));n=g,p({type:qr.REPLACE})}function x(){let g=d;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(J(11));function N(){let C=S;C.next&&C.next(u())}return N(),{unsubscribe:g(N)}},[Ks](){return this}}}return p({type:qr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Ks]:x}}function uu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:qr.INIT})>"u")throw new Error(J(12));if(typeof r(void 0,{type:qr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function Gs(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let a=t[s];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,o;try{uu(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],x=a[p],A=y(x,l);if(typeof A>"u"){let g=l&&l.type;throw new Error(J(14))}u[p]=A,c=c||A!==x}return c=c||n.length!==Object.keys(a).length,c?u:a}}function fr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function qs(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(J(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=fr(...a)(i.dispatch),{...i,dispatch:o}}}function Xs(e){return Xr(e)&&"type"in e&&typeof e.type=="string"}var ia=Symbol.for("immer-nothing"),Ys=Symbol.for("immer-draftable"),Z=Symbol.for("immer-state");function Ce(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var le=Object,Bt=le.getPrototypeOf,Qr="constructor",sn="prototype",mi="configurable",en="enumerable",Jr="writable",hr="value",Me=e=>!!e&&!!e[Z];function ce(e){return e?oa(e)||ln(e)||!!e[Ys]||!!e[Qr]?.[Ys]||cn(e)||un(e):!1}var du=le[sn][Qr].toString(),Js=new WeakMap;function oa(e){if(!e||!Si(e))return!1;let t=Bt(e);if(t===null||t===le[sn])return!0;let r=le.hasOwnProperty.call(t,Qr)&&t[Qr];if(r===Object)return!0;if(!$t(r))return!1;let n=Js.get(r);return n===void 0&&(n=Function.toString.call(r),Js.set(r,n)),n===du}function an(e,t,r=!0){gr(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 gr(e){let t=e[Z];return t?t.type_:ln(e)?1:cn(e)?2:un(e)?3:0}var pi=(e,t,r=gr(e))=>r===2?e.has(t):le[sn].hasOwnProperty.call(e,t),yi=(e,t,r=gr(e))=>r===2?e.get(t):e[t],tn=(e,t,r,n=gr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function pu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ln=Array.isArray,cn=e=>e instanceof Map,un=e=>e instanceof Set,Si=e=>typeof e=="object",$t=e=>typeof e=="function",fi=e=>typeof e=="boolean";function fu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Be=e=>e.copy_||e.base_;var _i=e=>e.modified_?e.copy_:e.base_;function gi(e,t){if(cn(e))return new Map(e);if(un(e))return new Set(e);if(ln(e))return Array[sn].slice.call(e);let r=oa(e);if(t===!0||t==="class_only"&&!r){let n=le.getOwnPropertyDescriptors(e);delete n[Z];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[Jr]===!1&&(a[Jr]=!0,a[mi]=!0),(a.get||a.set)&&(n[s]={[mi]:!0,[Jr]:!0,[en]:a[en],[hr]:e[s]})}return le.create(Bt(e),n)}else{let n=Bt(e);if(n!==null&&r)return{...e};let i=le.create(n);return le.assign(i,e)}}function Ci(e,t=!1){return dn(e)||Me(e)||!ce(e)||(gr(e)>1&&le.defineProperties(e,{set:Yr,add:Yr,clear:Yr,delete:Yr}),le.freeze(e),t&&an(e,(r,n)=>{Ci(n,!0)},!1)),e}function hu(){Ce(2)}var Yr={[hr]:hu};function dn(e){return e===null||!Si(e)?!0:le.isFrozen(e)}var rn="MapSet",xi="Patches",Zs="ArrayMethods",sa={};function ut(e){let t=sa[e];return t||Ce(0,e),t}var Qs=e=>!!sa[e];var mr,aa=()=>mr,mu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qs(rn)?ut(rn):void 0,arrayMethodsPlugin_:Qs(Zs)?ut(Zs):void 0});function ea(e,t){t&&(e.patchPlugin_=ut(xi),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function vi(e){bi(e),e.drafts_.forEach(yu),e.drafts_=null}function bi(e){e===mr&&(mr=e.parent_)}var ta=e=>mr=mu(mr,e);function yu(e){let t=e[Z];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Z].modified_&&(vi(t),Ce(4)),ce(e)&&(e=na(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Z].base_,e,t)}else e=na(t,r);return gu(t,e,!0),vi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ia?e:void 0}function na(e,t){if(dn(t))return t;let r=t[Z];if(!r)return nn(t,e.handledSet_,e);if(!pn(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);ua(r,e)}return r.copy_}function gu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ci(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var pn=(e,t)=>e.scope_===t,xu=[];function ca(e,t,r,n){let i=Be(e),o=e.type_;if(n!==void 0&&yi(i,n,o)===t){tn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;an(i,(l,c)=>{if(Me(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=e.draftLocations_.get(t)??xu;for(let a of s)tn(i,a,r,o)}function vu(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!pn(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=_i(o);ca(e,o.draft_??o,s,r),ua(o,i)})}function ua(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)}la(e)}}function bu(e,t,r){let{scope_:n}=e;if(Me(r)){let i=r[Z];pn(i,n)&&i.callbacks_.push(function(){Zr(e);let s=_i(i);ca(e,r,s,t)})}else ce(r)&&e.callbacks_.push(function(){let o=Be(e);e.type_===3?o.has(r)&&nn(r,n.handledSet_,n):yi(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&nn(yi(e.copy_,t,e.type_),n.handledSet_,n)})}function nn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Me(e)||t.has(e)||!ce(e)||dn(e)||(t.add(e),an(e,(n,i)=>{if(Me(i)){let o=i[Z];if(pn(o,r)){let s=_i(o);tn(e,n,s,e.type_),la(o)}}else ce(i)&&nn(i,t,r)})),e}function Eu(e,t){let r=ln(e),n={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=on;r&&(i=[n],o=yr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var on={get(e,t){if(t===Z)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=Be(e);if(!pi(i,t,e.type_))return Su(e,i,t);let o=i[t];if(e.finalized_||!ce(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&fu(t))return o;if(o===hi(e.base_,t)||Au(e,t,o)){Zr(e);let s=e.type_===1?+t:t,a=Ai(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Be(e)},ownKeys(e){return Reflect.ownKeys(Be(e))},set(e,t,r){let n=da(Be(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=hi(Be(e),t),o=i?.[Z];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(pu(r,i)&&(r!==void 0||pi(e.base_,t,e.type_)))return!0;Zr(e),Ei(e)}return e.copy_[t]===r&&(r!==void 0||pi(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),bu(e,t,r)),!0},deleteProperty(e,t){return Zr(e),hi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ei(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Be(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Jr]:!0,[mi]:e.type_!==1||t!=="length",[en]:n[en],[hr]:r[t]}},defineProperty(){Ce(11)},getPrototypeOf(e){return Bt(e.base_)},setPrototypeOf(){Ce(12)}},yr={};for(let e in on){let t=on[e];yr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}yr.deleteProperty=function(e,t){return yr.set.call(this,e,t,void 0)};yr.set=function(e,t,r){return on.set.call(this,e[0],t,r,e[0])};function hi(e,t){let r=e[Z];return(r?Be(r):e)[t]}function Au(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ce(r)||r[Z]?!1:e.baseRefs_.has(r)}function Su(e,t,r){let n=da(t,r);return n?hr in n?n[hr]:n.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=Bt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Bt(r)}}function Ei(e){e.modified_||(e.modified_=!0,e.parent_&&Ei(e.parent_))}function Zr(e){e.copy_||(e.assigned_=new Map,e.copy_=gi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _u=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if($t(t)&&!$t(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}$t(r)||Ce(6),n!==void 0&&!$t(n)&&Ce(7);let i;if(ce(t)){let o=ta(this),s=Ai(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?vi(o):bi(o)}return ea(o,n),ra(i,o)}else if(!t||!Si(t)){if(i=r(t),i===void 0&&(i=t),i===ia&&(i=void 0),this.autoFreeze_&&Ci(i,!0),n){let o=[],s=[];ut(xi).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Ce(1,t)},this.produceWithPatches=(t,r)=>{if($t(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},fi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),fi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),fi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ce(e)||Ce(8),Me(e)&&(e=pa(e));let t=ta(this),r=Ai(t,e,void 0);return r[Z].isManual_=!0,bi(t),r}finishDraft(e,t){let r=e&&e[Z];(!r||!r.isManual_)&&Ce(9);let{scope_:n}=r;return ea(n,t),ra(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=ut(xi).applyPatches_;return Me(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Ai(e,t,r,n){let[i,o]=cn(t)?ut(rn).proxyMap_(t,r):un(t)?ut(rn).proxySet_(t,r):Eu(t,r);return(r?.scope_??aa()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&n!==void 0?vu(r,o,n):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function pa(e){return Me(e)||Ce(10,e),fa(e)}function fa(e){if(!ce(e)||dn(e))return e;let t=e[Z],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=gi(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=gi(e,!0);return an(r,(i,o)=>{tn(r,i,fa(o))},n),t&&(t.finalized_=!1),r}var Cu=globalThis.Iterator,$f=typeof Cu?.from=="function";var wu=new _u,wi=wu.produce;function ha(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ma=ha(),ya=ha;var Tu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},Wf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ou=e=>e&&typeof e.match=="function";function Ye(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(He(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=>Xs(n)&&n.type===e,r}var Ea=class xr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xr.prototype)}static get[Symbol.species](){return xr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xr(...t[0].concat(this)):new xr(...t.concat(this))}};function ga(e){return ce(e)?wi(e,()=>{}):e}function fn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Ru(e){return typeof e=="boolean"}var Nu=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Ea;return r&&(Ru(r)?s.push(ma):s.push(ya(r.extraArgument))),s},Lu="RTK_autoBatch";var xa=e=>t=>{setTimeout(t,e)},Pu=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=e(i),s=setTimeout(i,t)},Mu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Pu(window.requestAnimationFrame,100):xa(10):e.type==="callback"?e.queueNotification:xa(e.timeout),c=()=>{s=!1,o&&(o=!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?.[Lu],o=!i,o&&(s||(s=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},Du=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Ea(e);return n&&i.push(Mu(typeof n=="object"?n:void 0)),i};function Aa(e){let t=Nu(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Xr(r))l=Gs(r);else throw new Error(He(1));let c;typeof n=="function"?c=n(t):c=t();let u=fr;i&&(u=Tu({trace:!1,...typeof i=="object"&&i}));let d=qs(...c),p=Du(d),y=typeof a=="function"?a(p):p(),x=u(...y);return di(l,s,x)}function Sa(e){let t={},r=[],n,i={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(He(28));if(a in t)throw new Error(He(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function Iu(e){return typeof e=="function"}function ku(e,t){let[r,n,i]=Sa(t),o;if(Iu(e))o=()=>ga(e());else{let a=ga(e);o=()=>a}function s(a=o(),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(Me(u)){let y=d(u,l);return y===void 0?u:y}else{if(ce(u))return wi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var Uu=(e,t)=>Ou(e)?e.match(t):e(t);function $u(...e){return t=>e.some(r=>Uu(r,t))}var Bu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hu=(e=21)=>{let t="",r=e;for(;r--;)t+=Bu[Math.random()*64|0];return t},Vu=["name","message","stack","code"],Ti=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Fu=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Vu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",zu=(()=>{function e(t,r,n){let i=Ye(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Ye(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=Ye(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):Hu(),x=new AbortController,A,g;function S(v){g=v,x.abort()}c&&(c.aborted?S(ba):c.addEventListener("abort",()=>S(ba),{once:!0}));let N=(async function(){let v;try{let T=n?.condition?.(l,{getState:d,extra:p});if(Wu(T)&&(T=await T),T===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let V=new Promise((D,F)=>{A=()=>{F({name:"AbortError",message:g||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(o(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),v=await Promise.race([V,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:x.signal,abort:S,rejectWithValue:((D,F)=>new Ti(D,F)),fulfillWithValue:((D,F)=>new va(D,F))})).then(D=>{if(D instanceof Ti)throw D;return D instanceof va?i(D.payload,y,l,D.meta):i(D,y,l)})])}catch(T){v=T instanceof Ti?s(null,y,l,T.payload,T.meta):s(T,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(N,{abort:S,requestId:y,arg:l,unwrap(){return N.then(ju)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:$u(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function ju(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Wu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),Gf={[_a]:zu};function Ku(e,t){return`${e}/${t}`}function Gu({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(He(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Xu()):n.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,C){let T=typeof v=="string"?v:v.type;if(!T)throw new Error(He(12));if(T in l.sliceCaseReducersByType)throw new Error(He(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(v,C){return l.sliceMatchers.push({matcher:v,reducer:C}),c},exposeAction(v,C){return l.actionCreators[v]=C,c},exposeCaseReducer(v,C){return l.sliceCaseReducersByName[v]=C,c}};a.forEach(v=>{let C=s[v],T={reducerName:v,type:Ku(i,v),createNotation:typeof n.reducers=="function"};Ju(C)?Qu(T,C,c,t):Yu(T,C,c)});function u(){let[v={},C=[],T=void 0]=typeof n.extraReducers=="function"?Sa(n.extraReducers):[n.extraReducers],V={...v,...l.sliceCaseReducersByType};return ku(n.initialState,D=>{for(let F in V)D.addCase(F,V[F]);for(let F of l.sliceMatchers)D.addMatcher(F.matcher,F.reducer);for(let F of C)D.addMatcher(F.matcher,F.reducer);T&&D.addDefaultCase(T)})}let d=v=>v,p=new Map,y=new WeakMap,x;function A(v,C){return x||(x=u()),x(v,C)}function g(){return x||(x=u()),x.getInitialState()}function S(v,C=!1){function T(D){let F=D[v];return typeof F>"u"&&C&&(F=fn(y,T,g)),F}function V(D=d){let F=fn(p,C,()=>new WeakMap);return fn(F,D,()=>{let Kt={};for(let[pe,et]of Object.entries(n.selectors??{}))Kt[pe]=qu(et,D,()=>fn(y,D,g),C);return Kt})}return{reducerPath:v,getSelectors:V,get selectors(){return V(T)},selectSlice:T}}let N={name:i,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...S(o),injectInto(v,{reducerPath:C,...T}={}){let V=C??o;return v.inject({reducerPath:V,reducer:A},T),{...N,...S(V,!0)}}};return N}}function qu(e,t,r,n){function i(o,...s){let a=t(o);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}var Ca=Gu();function Xu(){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 Yu({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!Zu(n))throw new Error(He(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Ye(e,s):Ye(e))}function Ju(e){return e._reducerDefinitionType==="asyncThunk"}function Zu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Qu({type:e,reducerName:t},r,n,i){if(!i)throw new Error(He(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=i(e,o,u);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:s||hn,pending:a||hn,rejected:l||hn,settled:c||hn})}function hn(){}var wa="listener",Ta="completed",Oa="cancelled",qf=`task-${Oa}`,Xf=`task-${Ta}`,Yf=`${wa}-${Oa}`,Jf=`${wa}-${Ta}`;var{assign:Ra}=Object;var Oi="listenerMiddleware";var ed=Ra(Ye(`${Oi}/add`),{withTypes:()=>ed}),Zf=Ye(`${Oi}/removeAll`),td=Ra(Ye(`${Oi}/remove`),{withTypes:()=>td});function He(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 rd=Fr(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)}}}),mn=class extends rd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Na=class e extends mn{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(Gr(o))return o;if(i==null)return;let s=Ca({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Aa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=ur(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 zr,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);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=>{let d=l,p=this.getState()[d];It(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 yn=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 gn=f(E()),nd="ft-app-info",Ht=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ht.eventName="authentication-change";var vr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};vr.eventName="ui-locale-changed";var id={session:(e,t)=>{(0,gn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Ht(t.payload)),0))}},w=gn.FtReduxStore.get({name:nd,reducers:id,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var La=f(E()),xn=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},Oh=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var 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=>yn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return xn([(0,Ri.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),xn([(0,Ri.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),xn([ci({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),xn([ci({store:w.name})],t.prototype,"uiLocale",void 0),t});var Pa;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Pa||(Pa={}));var Ma;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ma||(Ma={}));var Da;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Da||(Da={}));var Ia;(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"})(Ia||(Ia={}));var ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ka||(ka={}));var Ua;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ua||(Ua={}));var $a;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})($a||($a={}));var Ba;(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"})(Ba||(Ba={}));var Ha;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ha||(Ha={}));var Va;(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"})(Va||(Va={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var za;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(za||(za={}));var ja;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ja||(ja={}));var Wa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Wa||(Wa={}));var Ka;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ka||(Ka={}));var Ga;(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"})(Ga||(Ga={}));var qa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qa||(qa={}));var Xa;(function(e){e.ASC="ASC",e.DESC="DESC"})(Xa||(Xa={}));var Ya;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ya||(Ya={}));var Ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ja||(Ja={}));var Za;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Za||(Za={}));var Qa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Qa||(Qa={}));var el;(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"})(el||(el={}));var tl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tl||(tl={}));var rl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rl||(rl={}));var nl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nl||(nl={}));var il;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(il||(il={}));var W;(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"})(W||(W={}));var me;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(me||(me={}));var ol;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ol||(ol={}));var sl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(sl||(sl={}));var al;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(al||(al={}));var ll;(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"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(pl||(pl={}));var fl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(fl||(fl={}));var hl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(hl||(hl={}));var ml;(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"})(ml||(ml={}));var yl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yl||(yl={}));var od={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function gl(e,t){return e===t||(od[e]??[]).some(r=>gl(r,t))}function xl(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=>gl(n,t))}var Sn=f(E());var Ni=f(E());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 Vt=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 ue=class extends Vt{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 Ni.CacheRegistry,this.cache=t?i.commonCache:new Ni.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 vn=class extends ue{async listMySearches(){let{session:t}=w.getState();return xl(t,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var bn=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 En=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 An=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 sd="ft-user-assets",ad={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(me).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;Pi(e,r,[...Li(e,r),i]),vl(e,r,1,n),bl(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Pi(e,r,Li(e,r).map(i=>i.id===n.id?n:i)),bl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Pi(e,r,Li(e,r).filter(o=>o.id!==i)),vl(e,r,-1,n)}},El={[me.SEARCHES]:"savedSearches",[me.BOOKMARKS]:"bookmarks",[me.BOOKS]:void 0,[me.COLLECTIONS]:void 0},Li=(e,t)=>{var r;let n=El[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Pi=(e,t,r)=>{let n=El[t];n&&(e[n]=r)},vl=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===me.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},bl=(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)},ee=Sn.FtReduxStore.get({name:sd,reducers:ad,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(me).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Mi=class{constructor(t=new En,r=new An){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bn,this.savedSearchesService=new vn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Sn.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(),ee.actions.clearAssetCount(),ee.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ee.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ee.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ee.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ee.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ee.getState().assetCounts.allAsset[t]!==r.count&&ee.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ee.getState().assetCounts.bookmarkByMap[t]!==r.count&&ee.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ee.getState().assetCounts.bookmarkByMap).length!==0;t===me.BOOKMARKS&&r&&ee.actions.clearBookmarkCountByMap(),ee.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;ee.actions.bookmarks(r)}}},ld=new Mi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ld);var Di=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Di;var ye=f(E());var Al,Ft=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},cd=Symbol("clearAfterUnitTest"),_n=class extends(0,ye.withEventBus)(ue){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Al]=()=>{this.defaultMessages={},this.cache=new ye.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,ye.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 ye.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 ye.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 Ft({loadedContexts:t})),this.dispatchEvent(new Ft({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ft({loadedContexts:[t]})),this.dispatchEvent(new Ft({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,ye.delay)(0).then(()=>n()).catch(()=>null)))}};Al=cd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zt=window.FluidTopicsI18nService,Cn=window.FluidTopicsCustomI18nService;var Sl=f(E()),Ii=class{highlightHtml(t,r,n){(0,Sl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ii;var _l=f(E());var ki=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 _l.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 ki;var Cl=f(E());var br=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 Cl.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Ui=class{urlToSearchRequest(t){return br.get().parse(t)}searchRequestToUrl(t){return br.get().serialize(t)}};window.FluidTopicsUrlService=new Ui;var Ve=f(E());var pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};pt.eventName="change";var $i=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))}},wl=new $i;var wn=class e extends Ve.WithEventBus{static build(){return new e(window.history,wl,()=>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,Ve.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,Ve.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,Ve.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Ve.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,Ve.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=wn.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 Tl=f(I());var Ol=Tl.css`
333
- `;var Ll=f(I()),te=f(X()),mt=f(E());var ft=f(E());function Rl(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Tn=class extends Vt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Bi=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 Tn,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(Ht.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",()=>Rl(()=>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 vr(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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}},Nl=Bi.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 Er=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},B=class extends mt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Nl,this.contextRoot=new Er}render(){return Ll.html`
289
+ `;var ys=["top","right","bottom","left"],ms=["start","end"],xi=ys.reduce((e,t)=>e.concat(t,t+"-"+ms[0],t+"-"+ms[1]),[]),hr=Math.min,tt=Math.max,mr=Math.round;var He=e=>({x:e,y:e}),pu={left:"right",right:"left",bottom:"top",top:"bottom"};function gs(e,t,r){return tt(e,hr(t,r))}function qr(e,t){return typeof e=="function"?e(t):e}function yr(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function vi(e){return e==="x"?"y":"x"}function bi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ei(e){return vi(Xr(e))}function xs(e,t,r){r===void 0&&(r=!1);let n=rt(e),i=Ei(e),o=bi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=gi(s)),[s,gi(s)]}function vs(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function gi(e){let t=yr(e);return pu[t]+e.slice(t.length)}function fu(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 bs(e){return typeof e!="number"?fu(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 Es(e,t,r){let{reference:n,floating:i}=e,o=Xr(t),s=Ei(t),a=bi(s),l=yr(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,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=rt(t);return v&&(y[s]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function Ss(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:y=0}=qr(t,e),v=bs(y),x=a[p?d==="floating"?"reference":"floating":d],A=Et(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),k=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),C=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},R=Et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:b,strategy:l}):k);return{top:(A.top-R.top+v.top)/C.y,bottom:(R.bottom-A.bottom+v.bottom)/C.y,left:(A.left-R.left+v.left)/C.x,right:(R.right-A.right+v.right)/C.x}}var hu=50,As=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ss},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Es(c,n,l),p=n,y=0,v={};for(let S=0;S<o.length;S++){let x=o[S];if(!x)continue;let{name:A,fn:k}=x,{x:b,y:C,data:R,reset:j}=await k({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=C??d,v[A]={...v[A],...R},j&&y<hu&&(y++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(c=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:u,y:d}=Es(c,p,l)),S=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:v}};function mu(e,t,r){return(e?[...r.filter(i=>rt(i)===e),...r.filter(i=>rt(i)!==e)]:r.filter(i=>yr(i)===i)).filter(i=>e?rt(i)===e||(t?vs(i)!==i:!1):!0)}var _s=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=xi,autoAlignment:y=!0,...v}=qr(e,t),S=d!==void 0||p===xi?mu(d||null,y,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,A=S[x];if(A==null)return{};if(a!==A)return{reset:{placement:S[0]}};let k=await l.detectOverflow(t,v),b=xs(A,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[k[yr(A)],k[b[0]],k[b[1]]],R=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],j=S[x+1];if(j)return{data:{index:x+1,overflows:R},reset:{placement:j}};let B=R.map(ve=>{let lt=rt(ve.placement);return[ve.placement,lt&&u?ve.overflows.slice(0,2).reduce((Zc,Jc)=>Zc+Jc,0):ve.overflows[0],ve.overflows]}).sort((ve,lt)=>ve[1]-lt[1]),sr=((i=B.filter(ve=>ve[2].slice(0,rt(ve[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:i[0])||B[0][0];return sr!==a?{data:{index:x+1,overflows:R},reset:{placement:sr}}:{}}}};var Cs=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:k=>{let{x:b,y:C}=k;return{x:b,y:C}}},...c}=qr(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=Xr(i),y=vi(p),v=u[y],S=u[p],x=(k,b)=>gs(b+d[k==="y"?"top":"left"],b,b-d[k==="y"?"bottom":"right"]);s&&(v=x(y,v)),a&&(S=x(p,S));let A=l.fn({...t,[y]:v,[p]:S});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[y]:s,[p]:a}}}}}};function Zr(){return typeof window<"u"}function At(e){return Ts(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ge(e){var t;return(t=(Ts(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ts(e){return Zr()?e instanceof Node||e instanceof de(e).Node:!1}function Ne(e){return Zr()?e instanceof Element||e instanceof de(e).Element:!1}function qe(e){return Zr()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function ws(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function gr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Os(e){return/^(table|td|th)$/.test(At(e))}function xr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var yu=/transform|translate|scale|rotate|perspective|filter/,gu=/paint|layout|strict|content/,St=e=>!!e&&e!=="none",Si;function zt(e){let t=Ne(e)?Le(e):e;return St(t.transform)||St(t.translate)||St(t.scale)||St(t.rotate)||St(t.perspective)||!Jr()&&(St(t.backdropFilter)||St(t.filter))||yu.test(t.willChange||"")||gu.test(t.contain||"")}function Rs(e){let t=nt(e);for(;qe(t)&&!jt(t);){if(zt(t))return t;if(xr(t))return null;t=nt(t)}return null}function Jr(){return Si==null&&(Si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Si}function jt(e){return/^(html|body|#document)$/.test(At(e))}function Le(e){return de(e).getComputedStyle(e)}function vr(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nt(e){if(At(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ws(e)&&e.host||Ge(e);return ws(t)?t.host:t}function Ns(e){let t=nt(e);return jt(t)?(e.ownerDocument||e).body:qe(t)&&gr(t)?t:Ns(t)}function Yr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Ns(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=Qr(s);return t.concat(s,s.visualViewport||[],gr(i)?i:[],a&&r?Yr(a):[])}else return t.concat(i,Yr(i,[],r))}function Qr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ks(e){let t=Le(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=qe(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=mr(r)!==o||mr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Ds(e){return Ne(e)?e:e.contextElement}function Wt(e){let t=Ds(e);if(!qe(t))return He(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ks(t),s=(o?mr(r.width):r.width)/n,a=(o?mr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var xu=He(0);function Is(e){let t=de(e);return!Jr()||!t.visualViewport?xu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function br(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Ds(e),s=He(1);t&&(n?Ne(n)&&(s=Wt(n)):s=Wt(e));let a=vu(o,r,n)?Is(o):He(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=de(o),y=Ne(n)?de(n):n,v=p,S=Qr(v);for(;S&&y!==v;){let x=Wt(S),A=S.getBoundingClientRect(),k=Le(S),b=A.left+(S.clientLeft+parseFloat(k.paddingLeft))*x.x,C=A.top+(S.clientTop+parseFloat(k.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=C,v=de(S),S=Qr(v)}}return Et({width:u,height:d,x:l,y:c})}function en(e,t){let r=vr(e).scrollLeft;return t?t.left+r:br(Ge(e)).left+r}function Ms(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-en(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function bu(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Ge(n),a=t?xr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=He(1),u=He(0),d=qe(n);if((d||!o)&&((At(n)!=="body"||gr(s))&&(l=vr(n)),d)){let y=br(n);c=Wt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=s&&!d&&!o?Ms(s,l):He(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 Eu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Su(e){let t=vr(e),r=e.ownerDocument.body,n=tt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=tt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+en(e),s=-t.scrollTop;return Le(r).direction==="rtl"&&(o+=tt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Au=25;function _u(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=de(e),o=Ge(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Jr()||t==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(en(o)<=0){let p=o.ownerDocument,y=p.body,v=getComputedStyle(y),S=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-y.clientWidth-S),A=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;A<=Au&&(a-=A)}return{width:a,height:l,x:c,y:u}}function Cu(e,t){let r=br(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Wt(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 Ls(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=_u(e,r,t);else if(t==="document")n=Su(Ge(e));else if(Ne(t))n=Cu(t,r);else{let i=Is(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Et(n)}function wu(e,t){let r=t.get(e);if(r)return r;let n=Yr(e,[],!1).filter(a=>Ne(a)&&At(a)!=="body"),i=null,o=Le(e).position==="fixed",s=o?nt(e):e;for(;Ne(s)&&!jt(s);){let a=Le(s),l=zt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=nt(s)}return t.set(e,n),n}function Tu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?xr(t)?[]:wu(t,this._c):[].concat(r),n],a=Ls(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 y=Ls(t,s[p],i);l=tt(y.top,l),c=hr(y.right,c),u=hr(y.bottom,u),d=tt(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Ou(e){let{width:t,height:r}=ks(e);return{width:t,height:r}}function Ru(e,t,r){let n=qe(t),i=Ge(t),o=r==="fixed",s=br(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=He(0);if((n||!o)&&((At(t)!=="body"||gr(i))&&(a=vr(t)),n)){let p=br(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=en(i));let c=i&&!n&&!o?Ms(i,a):He(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function Ai(e){return Le(e).position==="static"}function Ps(e,t){if(!qe(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ge(e)===r&&(r=r.ownerDocument.body),r}function $s(e,t){let r=de(e);if(xr(e))return r;if(!qe(e)){let i=nt(e);for(;i&&!jt(i);){if(Ne(i)&&!Ai(i))return i;i=nt(i)}return r}let n=Ps(e,t);for(;n&&Os(n)&&Ai(n);)n=Ps(n,t);return n&&jt(n)&&Ai(n)&&!zt(n)?r:n||Rs(e)||r}var Nu=async function(e){let t=this.getOffsetParent||$s,r=this.getDimensions,n=await r(e.floating);return{reference:Ru(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lu(e){return Le(e).direction==="rtl"}var tn={convertOffsetParentRelativeRectToViewportRelativeRect:bu,getDocumentElement:Ge,getClippingRect:Tu,getOffsetParent:$s,getElementRects:Nu,getClientRects:Eu,getDimensions:Ou,getScale:Wt,isElement:Ne,isRTL:Lu};var Us=_s,Bs=Cs;var Hs=(e,t,r)=>{let n=new Map,i=r??{},o={...tn,...i.platform,_c:n};return As(e,t,{...i,platform:o})};function Fs(e){return Pu(e)}function _i(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Pu(e){for(let t=e;t;t=_i(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=_i(e);t;t=_i(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||zt(r)||t.tagName==="BODY"))return t}return null}async function Vs(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Hs(e,t,{strategy:n.strategy,platform:{...tn,getOffsetParent:i=>tn.getOffsetParent(i,Fs)},middleware:[Bs({crossAxis:!0}),Us({allowedPlacements:[n.placement]})]})}var tr=f(E());var Ki=f(X());var zs=f(X(),1);var Ci=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function js(e,t){return(0,zs.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Er(e);try{return JSON.parse(r)}catch{return Er(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Sr,...t??{}})}function ku(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(!Kt(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(!Kt(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(!Kt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Kt(e,t){try{return ku(e,t)}catch{return!1}}function Sr(e,t){return!Kt(e,t)}function Er(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function rn(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 Ws=f(X(),1);var wi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Sr,attribute:!1,...t};(0,Ws.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 nn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(X(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let 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 Gs=f(D(),1);var sn=globalThis,Du=sn.ShadowRoot&&(sn.ShadyCSS===void 0||sn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ks=(e,t)=>{if(Du)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=sn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var an=class extends Gs.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 Ks(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){Ci(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 qs(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 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},Js,Xs=Symbol("constructorPrototype"),Ys=Symbol("constructorName"),Qs=Symbol("exportpartsDebouncer"),Zs=Symbol("dynamicDependenciesLoaded"),Gt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Gt.eventName="exportparts-updated";var Fe=class extends an{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Js]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Qs].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[Ys]=this.constructor.name,this[Xs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ys]&&Object.setPrototypeOf(this,this[Xs])}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[Zs]||(r[Zs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Gt.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 Gt)})}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=qs(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 y=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],v=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],S=[...y,...v].filter(l).map(x=>x.trim());for(let x of S)u.add(x)}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(", ")}};Js=Qs;qt([(0,_t.property)()],Fe.prototype,"exportpartsPrefix",void 0);qt([js([])],Fe.prototype,"exportpartsPrefixes",void 0);qt([(0,_t.property)({reflect:!0})],Fe.prototype,"exportparts",void 0);qt([(0,_t.property)()],Fe.prototype,"customStylesheet",void 0);qt([(0,_t.property)()],Fe.prototype,"elementToFocus",void 0);qt([(0,_t.state)()],Fe.prototype,"useAdoptedStyleSheets",void 0);function ln(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ar=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),Iu=rn(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[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ct].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[it].has(s.store):this[it].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[it].set(s,a.subscribe(()=>this.updateFromStores())),this[Ar].set(s,[]),ln(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[Ar].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[it].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[it].has(s)&&this[it].get(s)(),this[it].delete(s),(a=this[Ar].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ar].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=it,r=Ct,n=Ar,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ea=class extends Iu(Fe){};function ee(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 Mu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ta=Mu,Ti=()=>Math.random().toString(36).substring(7).split("").join("."),$u={INIT:`@@redux/INIT${Ti()}`,REPLACE:`@@redux/REPLACE${Ti()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ti()}`},cn=$u;function un(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 Oi(e,t,r){if(typeof e!="function")throw new Error(ee(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ee(1));return r(Oi)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((x,A)=>{s.set(A,x)}))}function u(){if(l)throw new Error(ee(3));return i}function d(x){if(typeof x!="function")throw new Error(ee(4));if(l)throw new Error(ee(5));let A=!0;c();let k=a++;return s.set(k,x),function(){if(A){if(l)throw new Error(ee(6));A=!1,c(),s.delete(k),o=null}}}function p(x){if(!un(x))throw new Error(ee(7));if(typeof x.type>"u")throw new Error(ee(8));if(typeof x.type!="string")throw new Error(ee(17));if(l)throw new Error(ee(9));try{l=!0,i=n(i,x)}finally{l=!1}return(o=s).forEach(k=>{k()}),x}function y(x){if(typeof x!="function")throw new Error(ee(10));n=x,p({type:cn.REPLACE})}function v(){let x=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ee(11));function k(){let C=A;C.next&&C.next(u())}return k(),{unsubscribe:x(k)}},[ta](){return this}}}return p({type:cn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[ta]:v}}function Uu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:cn.INIT})>"u")throw new Error(ee(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function ra(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let a=t[s];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,o;try{Uu(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],v=a[p],S=y(v,l);if(typeof S>"u"){let x=l&&l.type;throw new Error(ee(14))}u[p]=S,c=c||S!==v}return c=c||n.length!==Object.keys(a).length,c?u:a}}function _r(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function na(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(ee(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=_r(...a)(i.dispatch),{...i,dispatch:o}}}function ia(e){return un(e)&&"type"in e&&typeof e.type=="string"}var fa=Symbol.for("immer-nothing"),oa=Symbol.for("immer-draftable"),ne=Symbol.for("immer-state");function Pe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,Yt=me.getPrototypeOf,hn="constructor",bn="prototype",Pi="configurable",mn="enumerable",pn="writable",Cr="value",Ve=e=>!!e&&!!e[ne];function ye(e){return e?ha(e)||Sn(e)||!!e[oa]||!!e[hn]?.[oa]||An(e)||_n(e):!1}var Bu=me[bn][hn].toString(),sa=new WeakMap;function ha(e){if(!e||!Hi(e))return!1;let t=Yt(e);if(t===null||t===me[bn])return!0;let r=me.hasOwnProperty.call(t,hn)&&t[hn];if(r===Object)return!0;if(!Xt(r))return!1;let n=sa.get(r);return n===void 0&&(n=Function.toString.call(r),sa.set(r,n)),n===Bu}function En(e,t,r=!0){Or(e)===0?(r?Reflect.ownKeys(e):me.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Or(e){let t=e[ne];return t?t.type_:Sn(e)?1:An(e)?2:_n(e)?3:0}var Ri=(e,t,r=Or(e))=>r===2?e.has(t):me[bn].hasOwnProperty.call(e,t),ki=(e,t,r=Or(e))=>r===2?e.get(t):e[t],yn=(e,t,r,n=Or(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Hu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Sn=Array.isArray,An=e=>e instanceof Map,_n=e=>e instanceof Set,Hi=e=>typeof e=="object",Xt=e=>typeof e=="function",Ni=e=>typeof e=="boolean";function Fu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Xe=e=>e.copy_||e.base_;var Fi=e=>e.modified_?e.copy_:e.base_;function Di(e,t){if(An(e))return new Map(e);if(_n(e))return new Set(e);if(Sn(e))return Array[bn].slice.call(e);let r=ha(e);if(t===!0||t==="class_only"&&!r){let n=me.getOwnPropertyDescriptors(e);delete n[ne];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[pn]===!1&&(a[pn]=!0,a[Pi]=!0),(a.get||a.set)&&(n[s]={[Pi]:!0,[pn]:!0,[mn]:a[mn],[Cr]:e[s]})}return me.create(Yt(e),n)}else{let n=Yt(e);if(n!==null&&r)return{...e};let i=me.create(n);return me.assign(i,e)}}function Vi(e,t=!1){return Cn(e)||Ve(e)||!ye(e)||(Or(e)>1&&me.defineProperties(e,{set:dn,add:dn,clear:dn,delete:dn}),me.freeze(e),t&&En(e,(r,n)=>{Vi(n,!0)},!1)),e}function Vu(){Pe(2)}var dn={[Cr]:Vu};function Cn(e){return e===null||!Hi(e)?!0:me.isFrozen(e)}var gn="MapSet",Ii="Patches",aa="ArrayMethods",ma={};function wt(e){let t=ma[e];return t||Pe(0,e),t}var la=e=>!!ma[e];var wr,ya=()=>wr,zu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:la(gn)?wt(gn):void 0,arrayMethodsPlugin_:la(aa)?wt(aa):void 0});function ca(e,t){t&&(e.patchPlugin_=wt(Ii),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mi(e){$i(e),e.drafts_.forEach(ju),e.drafts_=null}function $i(e){e===wr&&(wr=e.parent_)}var ua=e=>wr=zu(wr,e);function ju(e){let t=e[ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function da(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ne].modified_&&(Mi(t),Pe(4)),ye(e)&&(e=pa(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ne].base_,e,t)}else e=pa(t,r);return Wu(t,e,!0),Mi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fa?e:void 0}function pa(e,t){if(Cn(t))return t;let r=t[ne];if(!r)return xn(t,e.handledSet_,e);if(!wn(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);va(r,e)}return r.copy_}function Wu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vi(t,r)}function ga(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wn=(e,t)=>e.scope_===t,Ku=[];function xa(e,t,r,n){let i=Xe(e),o=e.type_;if(n!==void 0&&ki(i,n,o)===t){yn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(i,(l,c)=>{if(Ve(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=e.draftLocations_.get(t)??Ku;for(let a of s)yn(i,a,r,o)}function Gu(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!wn(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=Fi(o);xa(e,o.draft_??o,s,r),va(o,i)})}function va(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)}ga(e)}}function qu(e,t,r){let{scope_:n}=e;if(Ve(r)){let i=r[ne];wn(i,n)&&i.callbacks_.push(function(){fn(e);let s=Fi(i);xa(e,r,s,t)})}else ye(r)&&e.callbacks_.push(function(){let o=Xe(e);e.type_===3?o.has(r)&&xn(r,n.handledSet_,n):ki(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&xn(ki(e.copy_,t,e.type_),n.handledSet_,n)})}function xn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ve(e)||t.has(e)||!ye(e)||Cn(e)||(t.add(e),En(e,(n,i)=>{if(Ve(i)){let o=i[ne];if(wn(o,r)){let s=Fi(o);yn(e,n,s,e.type_),ga(o)}}else ye(i)&&xn(i,t,r)})),e}function Xu(e,t){let r=Sn(e),n={type_:r?1:0,scope_:t?t.scope_:ya(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=vn;r&&(i=[n],o=Tr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var vn={get(e,t){if(t===ne)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=Xe(e);if(!Ri(i,t,e.type_))return Zu(e,i,t);let o=i[t];if(e.finalized_||!ye(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Fu(t))return o;if(o===Li(e.base_,t)||Yu(e,t,o)){fn(e);let s=e.type_===1?+t:t,a=Bi(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Xe(e)},ownKeys(e){return Reflect.ownKeys(Xe(e))},set(e,t,r){let n=ba(Xe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Li(Xe(e),t),o=i?.[ne];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Hu(r,i)&&(r!==void 0||Ri(e.base_,t,e.type_)))return!0;fn(e),Ui(e)}return e.copy_[t]===r&&(r!==void 0||Ri(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),qu(e,t,r)),!0},deleteProperty(e,t){return fn(e),Li(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ui(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Xe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[pn]:!0,[Pi]:e.type_!==1||t!=="length",[mn]:n[mn],[Cr]:r[t]}},defineProperty(){Pe(11)},getPrototypeOf(e){return Yt(e.base_)},setPrototypeOf(){Pe(12)}},Tr={};for(let e in vn){let t=vn[e];Tr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Tr.deleteProperty=function(e,t){return Tr.set.call(this,e,t,void 0)};Tr.set=function(e,t,r){return vn.set.call(this,e[0],t,r,e[0])};function Li(e,t){let r=e[ne];return(r?Xe(r):e)[t]}function Yu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ye(r)||r[ne]?!1:e.baseRefs_.has(r)}function Zu(e,t,r){let n=ba(t,r);return n?Cr in n?n[Cr]:n.get?.call(e.draft_):void 0}function ba(e,t){if(!(t in e))return;let r=Yt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yt(r)}}function Ui(e){e.modified_||(e.modified_=!0,e.parent_&&Ui(e.parent_))}function fn(e){e.copy_||(e.assigned_=new Map,e.copy_=Di(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ju=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Xt(t)&&!Xt(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}Xt(r)||Pe(6),n!==void 0&&!Xt(n)&&Pe(7);let i;if(ye(t)){let o=ua(this),s=Bi(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?Mi(o):$i(o)}return ca(o,n),da(i,o)}else if(!t||!Hi(t)){if(i=r(t),i===void 0&&(i=t),i===fa&&(i=void 0),this.autoFreeze_&&Vi(i,!0),n){let o=[],s=[];wt(Ii).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Pe(1,t)},this.produceWithPatches=(t,r)=>{if(Xt(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},Ni(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ni(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ni(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||Pe(8),Ve(e)&&(e=Ea(e));let t=ua(this),r=Bi(t,e,void 0);return r[ne].isManual_=!0,$i(t),r}finishDraft(e,t){let r=e&&e[ne];(!r||!r.isManual_)&&Pe(9);let{scope_:n}=r;return ca(n,t),da(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=wt(Ii).applyPatches_;return Ve(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Bi(e,t,r,n){let[i,o]=An(t)?wt(gn).proxyMap_(t,r):_n(t)?wt(gn).proxySet_(t,r):Xu(t,r);return(r?.scope_??ya()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&n!==void 0?Gu(r,o,n):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Ea(e){return Ve(e)||Pe(10,e),Sa(e)}function Sa(e){if(!ye(e)||Cn(e))return e;let t=e[ne],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Di(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Di(e,!0);return En(r,(i,o)=>{yn(r,i,Sa(o))},n),t&&(t.finalized_=!1),r}var Qu=globalThis.Iterator,qf=typeof Qu?.from=="function";var ed=new Ju,zi=ed.produce;function Aa(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var _a=Aa(),Ca=Aa;var td=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)},th=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},rd=e=>e&&typeof e.match=="function";function ot(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ye(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=>ia(n)&&n.type===e,r}var Na=class Rr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Rr.prototype)}static get[Symbol.species](){return Rr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Rr(...t[0].concat(this)):new Rr(...t.concat(this))}};function wa(e){return ye(e)?zi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function nd(e){return typeof e=="boolean"}var id=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Na;return r&&(nd(r)?s.push(_a):s.push(Ca(r.extraArgument))),s},od="RTK_autoBatch";var Ta=e=>t=>{setTimeout(t,e)},sd=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=e(i),s=setTimeout(i,t)},ad=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?sd(window.requestAnimationFrame,100):Ta(10):e.type==="callback"?e.queueNotification:Ta(e.timeout),c=()=>{s=!1,o&&(o=!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?.[od],o=!i,o&&(s||(s=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},ld=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Na(e);return n&&i.push(ad(typeof n=="object"?n:void 0)),i};function La(e){let t=id(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(un(r))l=ra(r);else throw new Error(Ye(1));let c;typeof n=="function"?c=n(t):c=t();let u=_r;i&&(u=td({trace:!1,...typeof i=="object"&&i}));let d=na(...c),p=ld(d),y=typeof a=="function"?a(p):p(),v=u(...y);return Oi(l,s,v)}function Pa(e){let t={},r=[],n,i={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ye(28));if(a in t)throw new Error(Ye(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function cd(e){return typeof e=="function"}function ud(e,t){let[r,n,i]=Pa(t),o;if(cd(e))o=()=>wa(e());else{let a=wa(e);o=()=>a}function s(a=o(),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(Ve(u)){let y=d(u,l);return y===void 0?u:y}else{if(ye(u))return zi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var dd=(e,t)=>rd(e)?e.match(t):e(t);function pd(...e){return t=>e.some(r=>dd(r,t))}var fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hd=(e=21)=>{let t="",r=e;for(;r--;)t+=fd[Math.random()*64|0];return t},md=["name","message","stack","code"],ji=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Oa=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},yd=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of md)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ra="External signal was aborted",gd=(()=>{function e(t,r,n){let i=ot(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ot(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ot(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||yd)(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):hd(),v=new AbortController,S,x;function A(b){x=b,v.abort()}c&&(c.aborted?A(Ra):c.addEventListener("abort",()=>A(Ra),{once:!0}));let k=(async function(){let b;try{let R=n?.condition?.(l,{getState:d,extra:p});if(vd(R)&&(R=await R),R===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let j=new Promise((B,W)=>{S=()=>{W({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",S,{once:!0})});u(o(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([j,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:v.signal,abort:A,rejectWithValue:((B,W)=>new ji(B,W)),fulfillWithValue:((B,W)=>new Oa(B,W))})).then(B=>{if(B instanceof ji)throw B;return B instanceof Oa?i(B.payload,y,l,B.meta):i(B,y,l)})])}catch(R){b=R instanceof ji?s(null,y,l,R.payload,R.meta):s(R,y,l)}finally{S&&v.signal.removeEventListener("abort",S)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||u(b),b})();return Object.assign(k,{abort:A,requestId:y,arg:l,unwrap(){return k.then(xd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:pd(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function xd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ka=Symbol.for("rtk-slice-createasyncthunk"),nh={[ka]:gd};function bd(e,t){return`${e}/${t}`}function Ed({creators:e}={}){let t=e?.asyncThunk?.[ka];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(Ye(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Ad()):n.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,C){let R=typeof b=="string"?b:b.type;if(!R)throw new Error(Ye(12));if(R in l.sliceCaseReducersByType)throw new Error(Ye(13));return l.sliceCaseReducersByType[R]=C,c},addMatcher(b,C){return l.sliceMatchers.push({matcher:b,reducer:C}),c},exposeAction(b,C){return l.actionCreators[b]=C,c},exposeCaseReducer(b,C){return l.sliceCaseReducersByName[b]=C,c}};a.forEach(b=>{let C=s[b],R={reducerName:b,type:bd(i,b),createNotation:typeof n.reducers=="function"};Cd(C)?Td(R,C,c,t):_d(R,C,c)});function u(){let[b={},C=[],R=void 0]=typeof n.extraReducers=="function"?Pa(n.extraReducers):[n.extraReducers],j={...b,...l.sliceCaseReducersByType};return ud(n.initialState,B=>{for(let W in j)B.addCase(W,j[W]);for(let W of l.sliceMatchers)B.addMatcher(W.matcher,W.reducer);for(let W of C)B.addMatcher(W.matcher,W.reducer);R&&B.addDefaultCase(R)})}let d=b=>b,p=new Map,y=new WeakMap,v;function S(b,C){return v||(v=u()),v(b,C)}function x(){return v||(v=u()),v.getInitialState()}function A(b,C=!1){function R(B){let W=B[b];return typeof W>"u"&&C&&(W=Tn(y,R,x)),W}function j(B=d){let W=Tn(p,C,()=>new WeakMap);return Tn(W,B,()=>{let sr={};for(let[ve,lt]of Object.entries(n.selectors??{}))sr[ve]=Sd(lt,B,()=>Tn(y,B,x),C);return sr})}return{reducerPath:b,getSelectors:j,get selectors(){return j(R)},selectSlice:R}}let k={name:i,reducer:S,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...A(o),injectInto(b,{reducerPath:C,...R}={}){let j=C??o;return b.inject({reducerPath:j,reducer:S},R),{...k,...A(j,!0)}}};return k}}function Sd(e,t,r,n){function i(o,...s){let a=t(o);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}var Da=Ed();function Ad(){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 _d({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!wd(n))throw new Error(Ye(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ot(e,s):ot(e))}function Cd(e){return e._reducerDefinitionType==="asyncThunk"}function wd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Td({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ye(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=i(e,o,u);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:s||On,pending:a||On,rejected:l||On,settled:c||On})}function On(){}var Ia="listener",Ma="completed",$a="cancelled",ih=`task-${$a}`,oh=`task-${Ma}`,sh=`${Ia}-${$a}`,ah=`${Ia}-${Ma}`;var{assign:Ua}=Object;var Wi="listenerMiddleware";var Od=Ua(ot(`${Wi}/add`),{withTypes:()=>Od}),lh=ot(`${Wi}/removeAll`),Rd=Ua(ot(`${Wi}/remove`),{withTypes:()=>Rd});function Ye(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 Nd=rn(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)}}}),Rn=class extends Nd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ba=class e extends Rn{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(ln(o))return o;if(i==null)return;let s=Da({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=La({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Er(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 nn,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);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=>{let d=l,p=this.getState()[d];Kt(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 Nn=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 Ln=f(E()),Ld="ft-app-info",Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tt.eventName="authentication-change";var Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Nr.eventName="ui-locale-changed";var Pd={session:(e,t)=>{(0,Ln.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Tt(t.payload)),0))}},w=Ln.FtReduxStore.get({name:Ld,reducers:Pd,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ha=f(E()),Pn=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},Uh=(0,Ha.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=>Nn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Pn([wi({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),Pn([wi({store:w.name})],t.prototype,"uiLocale",void 0),t});var Fa;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Fa||(Fa={}));var Va;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Va||(Va={}));var za;(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"})(za||(za={}));var ja;(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"})(ja||(ja={}));var Wa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Wa||(Wa={}));var Ka;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ka||(Ka={}));var Ga;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ga||(Ga={}));var qa;(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"})(qa||(qa={}));var Xa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Xa||(Xa={}));var Ya;(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"})(Ya||(Ya={}));var Za;(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"})(Za||(Za={}));var Ja;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ja||(Ja={}));var Qa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Qa||(Qa={}));var el;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(el||(el={}));var tl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var nl;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(nl||(nl={}));var il;(function(e){e.ASC="ASC",e.DESC="DESC"})(il||(il={}));var ol;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ol||(ol={}));var sl;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(sl||(sl={}));var al;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(al||(al={}));var ll;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ul||(ul={}));var dl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(dl||(dl={}));var pl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(pl||(pl={}));var fl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fl||(fl={}));var q;(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"})(q||(q={}));var Ee;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ee||(Ee={}));var hl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(hl||(hl={}));var ml;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ml||(ml={}));var yl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(yl||(yl={}));var gl;(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"})(gl||(gl={}));var xl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(xl||(xl={}));var vl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vl||(vl={}));var bl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bl||(bl={}));var El;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(El||(El={}));var Sl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Sl||(Sl={}));var Al;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Al||(Al={}));var _l;(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"})(_l||(_l={}));var Cl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Cl||(Cl={}));var kd={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN,q.BEHAVIOR_DATA_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};function wl(e,t){return e===t||(kd[e]??[]).some(r=>wl(r,t))}function Tl(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=>wl(n,t))}var $n=f(E());var Gi=f(E());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 Zt=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 ge=class extends Zt{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 Gi.CacheRegistry,this.cache=t?i.commonCache:new Gi.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 kn=class extends ge{async listMySearches(){let{session:t}=w.getState();return Tl(t,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Dn=class extends ge{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var In=class extends ge{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 Mn=class extends ge{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 Dd="ft-user-assets",Id={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ee).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;Xi(e,r,[...qi(e,r),i]),Ol(e,r,1,n),Rl(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Xi(e,r,qi(e,r).map(i=>i.id===n.id?n:i)),Rl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Xi(e,r,qi(e,r).filter(o=>o.id!==i)),Ol(e,r,-1,n)}},Nl={[Ee.SEARCHES]:"savedSearches",[Ee.BOOKMARKS]:"bookmarks",[Ee.BOOKS]:void 0,[Ee.COLLECTIONS]:void 0},qi=(e,t)=>{var r;let n=Nl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Xi=(e,t,r)=>{let n=Nl[t];n&&(e[n]=r)},Ol=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===Ee.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Rl=(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)},oe=$n.FtReduxStore.get({name:Dd,reducers:Id,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ee).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yi=class{constructor(t=new In,r=new Mn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dn,this.savedSearchesService=new kn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,$n.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(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&oe.getState().assetCounts.allAsset[t]!==r.count&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&oe.getState().assetCounts.bookmarkByMap[t]!==r.count&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;t===Ee.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.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;oe.actions.bookmarks(r)}}},Md=new Yi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Md);var Zi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Zi;var Se=f(E());var Ll,Jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},$d=Symbol("clearAfterUnitTest"),Un=class extends(0,Se.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ll]=()=>{this.defaultMessages={},this.cache=new Se.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,Se.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 Se.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 Se.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 Jt({loadedContexts:t})),this.dispatchEvent(new Jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Jt({loadedContexts:[t]})),this.dispatchEvent(new Jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Se.delay)(0).then(()=>n()).catch(()=>null)))}};Ll=$d;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Qt=window.FluidTopicsI18nService,Bn=window.FluidTopicsCustomI18nService;var Pl=f(E()),Ji=class{highlightHtml(t,r,n){(0,Pl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ji;var kl=f(E());var Qi=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 kl.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 Qi;var Dl=f(E());var Lr=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 Dl.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var eo=class{urlToSearchRequest(t){return Lr.get().parse(t)}searchRequestToUrl(t){return Lr.get().serialize(t)}};window.FluidTopicsUrlService=new eo;var Ze=f(E());var Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Rt.eventName="before-location-change";var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var to=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 to;var Hn=class e extends Ze.WithEventBus{static build(){return new e(window.history,Il,()=>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,Ze.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[o,s,a])=>{let l=new Rt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};n.apply(i,[u,s,u.href]),this.setCurrentState(u,!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)}addBeforeLocationChangeListener(t){this.addEventListener(Rt.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Rt.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,Ze.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,Ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Ze.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,Ze.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=Hn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Ml=f(D());var $l=Ml.css`
290
+ `;var Hl=f(D()),se=f(X()),kt=f(E());var Lt=f(E());function Ul(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Fn=class extends Zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var ro=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 Fn,this.cleanSessionDebouncer=new Lt.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Lt.Debouncer(500),this.apiProvider=r??(()=>Ot.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Tt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Tt.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",()=>Ul(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}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 Nr(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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}},Bl=ro.build();var Pt=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 Pr=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 Pt(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 Z=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},V=class extends kt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Bl,this.contextRoot=new Pr}render(){return Hl.html`
334
291
  <slot></slot>
335
- `}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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>zt.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())}};B.elementDefinitions={};B.styles=Ol;G([(0,te.property)()],B.prototype,"baseUrl",void 0);G([(0,te.property)()],B.prototype,"tenantId",void 0);G([(0,te.property)()],B.prototype,"apiIntegrationIdentifier",void 0);G([(0,te.property)()],B.prototype,"apiIntegrationAppVersion",void 0);G([(0,te.property)()],B.prototype,"uiLocale",void 0);G([(0,mt.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);G([(0,mt.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"editorMode",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"noCustom",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);G([(0,te.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);G([(0,te.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomCode",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"withManualResources",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);G([(0,te.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);G([(0,mt.jsonProperty)([])],B.prototype,"messageContexts",void 0);G([(0,mt.jsonProperty)(void 0)],B.prototype,"session",void 0);var Ml=f(E());var Pl={"ft-app-context":B};(0,Ml.customElements)(Pl);var Dl=f(X());var Hi=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 Hi;var pd=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},Sr=Symbol("i18nAttributes"),Il=Symbol("i18nListAttributes"),kl=Symbol("i18nProperties"),On=Symbol("i18nContexts"),Ar=Symbol("i18nUnsubs"),Ln=(0,Wt.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?Cn:zt}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[Sr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Il])===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(o){var s;(s=this[kl])===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[On].set(l,{isCustomContext:a}),this[Ar].has(l)||this[Ar].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[On].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[On].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ar].forEach(o=>o()),this[Ar].clear()}}return t=On,r=Ar,pd([(0,Dl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Rn=class extends Ln(Wt.FtLitElement){},Nn=class extends Ln(Wt.FtLitElementRedux){};var Ul=f(E());var Vi=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)}},fd=new Vi;var $l=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Ul.hasChanged,converter:jt,...t}),r[Sr]=(i=r[Sr])!==null&&i!==void 0?i:new Map,r[Sr].set(n,e??{})};var Pn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Cn:zt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let o=i;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...o)=>this.service.resolveMessage(this.name,i,...o)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Bl=f(I());var Hl=Bl.css`
336
- `;var Mn=f(I()),Dn=f(X()),In=f(E());var _r=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},we=class extends Nn{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Mn.nothing:Mn.html`
292
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Qt.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())}};V.elementDefinitions={};V.styles=$l;Z([(0,se.property)()],V.prototype,"baseUrl",void 0);Z([(0,se.property)()],V.prototype,"tenantId",void 0);Z([(0,se.property)()],V.prototype,"apiIntegrationIdentifier",void 0);Z([(0,se.property)()],V.prototype,"apiIntegrationAppVersion",void 0);Z([(0,se.property)()],V.prototype,"uiLocale",void 0);Z([(0,kt.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);Z([(0,kt.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"editorMode",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"noCustom",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,se.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);Z([(0,se.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomCode",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"withManualResources",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"authenticationRequired",void 0);Z([(0,kt.jsonProperty)([])],V.prototype,"messageContexts",void 0);Z([(0,kt.jsonProperty)(void 0)],V.prototype,"session",void 0);var Vl=f(E());var Fl={"ft-app-context":V};(0,Vl.customElements)(Fl);var zl=f(X());var no=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-]+$/)}},er=new no;var Hd=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},Dr=Symbol("i18nAttributes"),jl=Symbol("i18nListAttributes"),Wl=Symbol("i18nProperties"),Vn=Symbol("i18nContexts"),kr=Symbol("i18nUnsubs"),Wn=(0,tr.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?Bn:Qt}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(er.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[Dr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[jl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(o){var s;(s=this[Wl])===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[Vn].set(l,{isCustomContext:a}),this[kr].has(l)||this[kr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Vn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[kr].forEach(o=>o()),this[kr].clear()}}return t=Vn,r=kr,Hd([(0,zl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),zn=class extends Wn(tr.FtLitElement){},jn=class extends Wn(tr.FtLitElementRedux){};var Kl=f(E());var io=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?er.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Fd=new io;var Gl=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Kl.hasChanged,converter:er,...t}),r[Dr]=(i=r[Dr])!==null&&i!==void 0?i:new Map,r[Dr].set(n,e??{})};var Kn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Bn:Qt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let o=i;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...o)=>this.service.resolveMessage(this.name,i,...o)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var ql=f(D());var Xl=ql.css`
293
+ `;var Gn=f(D()),nr=f(X()),qn=f(E());var rr=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},Ae=class extends jn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Gn.nothing:Gn.html`
337
294
  <span class="ft-i18n">
338
295
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
339
296
  </span>
340
- `}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:""})}};we.elementDefinitions={};we.styles=Hl;_r([(0,In.redux)()],we.prototype,"editorMode",void 0);_r([(0,Dn.property)()],we.prototype,"context",void 0);_r([(0,Dn.property)()],we.prototype,"key",void 0);_r([(0,In.jsonProperty)([])],we.prototype,"args",void 0);_r([(0,Dn.property)()],we.prototype,"defaultMessage",void 0);var Fl=f(E());var Vl={"ft-i18n":we};(0,Fl.customElements)(Vl);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},K=class extends Rn{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 ge.Debouncer,this.revealDebouncer=new ge.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 zl.html`
297
+ `}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:""})}};Ae.elementDefinitions={};Ae.styles=Xl;rr([(0,qn.redux)()],Ae.prototype,"editorMode",void 0);rr([(0,nr.property)()],Ae.prototype,"context",void 0);rr([(0,nr.property)()],Ae.prototype,"key",void 0);rr([(0,qn.jsonProperty)([])],Ae.prototype,"args",void 0);rr([(0,nr.property)()],Ae.prototype,"defaultMessage",void 0);rr([(0,nr.state)()],Ae.prototype,"editorMessage",void 0);var Zl=f(E());var Yl={"ft-i18n":Ae};(0,Zl.customElements)(Yl);var ke=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},Y=class extends zn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new _e.Debouncer,this.revealDebouncer=new _e.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 Jl.html`
341
298
  <div part="container"
342
299
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
343
300
  <slot part="slot"></slot>
@@ -346,13 +303,66 @@
346
303
  popover="manual">
347
304
  <div part="tooltip-content" class="ft-tooltip--content">
348
305
  <slot name="text"></slot>
349
- <ft-typography variant="${ze.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
306
+ <ft-typography variant="${Be.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
350
307
  ${(r=this.text)===null||r===void 0?void 0:r.message}
351
308
  </ft-typography>
352
309
  </div>
353
310
  </div>
354
311
  </div>
355
- `}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&&Ms(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 ${ge.designSystemVariables.transitionDuration}, left ${ge.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,ge.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};K.elementDefinitions={"ft-typography":ae};K.styles=os;Te([$l()],K.prototype,"text",void 0);Te([(0,xe.property)({type:Boolean})],K.prototype,"manual",void 0);Te([(0,xe.property)({type:Boolean})],K.prototype,"inline",void 0);Te([(0,ge.numberProperty)()],K.prototype,"delay",void 0);Te([(0,xe.property)()],K.prototype,"position",void 0);Te([(0,ge.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Te([(0,xe.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Te([(0,xe.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Te([(0,xe.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Te([(0,xe.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Te([(0,xe.state)()],K.prototype,"visible",void 0);var Wl=f(E());var jl={"ft-tooltip":K};(0,Wl.customElements)(jl);var Kl=f(I()),Cr=f(E()),yt={color:Cr.FtCssVariableFactory.extend("--ft-loader-color","",Cr.designSystemVariables.colorPrimary),size:Cr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Gl=Kl.css`
312
+ `}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&&Vs(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 ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,_e.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":J};Y.styles=hs;ke([Gl()],Y.prototype,"text",void 0);ke([(0,Ce.property)({type:Boolean})],Y.prototype,"manual",void 0);ke([(0,Ce.property)({type:Boolean})],Y.prototype,"inline",void 0);ke([(0,_e.numberProperty)()],Y.prototype,"delay",void 0);ke([(0,Ce.property)()],Y.prototype,"position",void 0);ke([(0,_e.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);ke([(0,Ce.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);ke([(0,Ce.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);ke([(0,Ce.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);ke([(0,Ce.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);ke([(0,Ce.state)()],Y.prototype,"visible",void 0);var ec=f(E());var Ql={"ft-tooltip":Y};(0,ec.customElements)(Ql);var tc=f(D()),De=f(E()),ae={size:De.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:De.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",De.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:De.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",De.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:De.FtCssVariableFactory.extend("--ft-icon-material-font-family","",De.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:De.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rc=[tc.css`
313
+ :host, i.ft-icon {
314
+ display: inline-flex;
315
+ align-items: center;
316
+ flex-shrink: 0;
317
+ flex-grow: 0;
318
+ }
319
+
320
+ :host {
321
+ width: ${ae.size};
322
+ height: ${ae.size};
323
+ }
324
+
325
+ i.ft-icon {
326
+ width: 100%;
327
+ height: 100%;
328
+ font-size: ${ae.size};
329
+ line-height: 1;
330
+ font-weight: normal;
331
+ text-transform: none;
332
+ font-style: normal;
333
+ font-variant: normal;
334
+ speak: none;
335
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
336
+ text-rendering: auto;
337
+ -webkit-font-smoothing: antialiased;
338
+ -moz-osx-font-smoothing: grayscale;
339
+ vertical-align: ${ae.verticalAlign};
340
+ }
341
+
342
+ i.ft-icon.ft-icon--fluid-topics {
343
+ font-family: ${ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
344
+
345
+ /* Ugly fix because font is broken */
346
+ font-size: calc(0.75 * ${ae.size});
347
+ line-height: ${ae.size};
348
+ position: relative;
349
+ top: -4%;
350
+ justify-content: center;
351
+ }
352
+
353
+ .ft-icon--file-format {
354
+ font-family: ${ae.fileFormatFontFamily}, ft-mime, sans-serif;
355
+ }
356
+
357
+ .ft-icon--material {
358
+ font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
359
+ }
360
+ `,De.noTextSelect];var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Ir=f(D()),st=f(X()),oc=f(E()),sc=f(ic());var Xn;(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;"})(Xn||(Xn={}));var m;(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;"})(m||(m={}));var cx=new Map([...["abw"].map(e=>[e,m.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,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var ux={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Mr=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},te=class extends oc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ir.nothing}render(){let t=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=t!==Ie.material||!!this.value;return Ir.html`
361
+ <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
362
+ ${(0,sc.unsafeHTML)(this.resolvedIcon)}
363
+ <slot ?hidden=${r}></slot>
364
+ </i>
365
+ `}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 Ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ie.material:this.resolvedIcon=this.value||Ir.nothing;break;default:this.resolvedIcon=(r=Xn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=rc;Mr([(0,st.property)()],te.prototype,"variant",void 0);Mr([(0,st.property)()],te.prototype,"value",void 0);Mr([(0,st.property)({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);Mr([(0,st.state)()],te.prototype,"resolvedIcon",void 0);Mr([(0,st.query)("slot")],te.prototype,"slottedContent",void 0);var lc=f(E());var ac={"ft-icon":te};(0,lc.customElements)(ac);var cc=f(D()),$r=f(E()),Dt={color:$r.FtCssVariableFactory.extend("--ft-loader-color","",$r.designSystemVariables.colorPrimary),size:$r.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},uc=cc.css`
356
366
  :host {
357
367
  line-height: 0;
358
368
  }
@@ -361,8 +371,8 @@
361
371
  display: inline-block;
362
372
  position: relative;
363
373
 
364
- width: ${yt.size};
365
- height: ${yt.size};
374
+ width: ${Dt.size};
375
+ height: ${Dt.size};
366
376
  }
367
377
 
368
378
  .ft-loader div {
@@ -371,7 +381,7 @@
371
381
  width: 25%;
372
382
  height: 25%;
373
383
  border-radius: 50%;
374
- background: ${yt.color};
384
+ background: ${Dt.color};
375
385
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
376
386
  }
377
387
 
@@ -418,17 +428,17 @@
418
428
  transform: translate(0, 0);
419
429
  }
420
430
  100% {
421
- transform: translate(calc(0.35 * ${yt.size}), 0);
431
+ transform: translate(calc(0.35 * ${Dt.size}), 0);
422
432
  }
423
433
  }
424
- `;var ql=f(I()),Xl=f(E());var gt=class extends Xl.FtLitElement{render(){return ql.html`
434
+ `;var dc=f(D()),pc=f(E());var It=class extends pc.FtLitElement{render(){return dc.html`
425
435
  <div class="ft-loader">
426
436
  <div></div>
427
437
  <div></div>
428
438
  <div></div>
429
439
  <div></div>
430
440
  </div>
431
- `}};gt.styles=Gl;var Jl=f(E());var Yl={"ft-loader":gt};(0,Jl.customElements)(Yl);var Je=f(I()),kn=f(Gt()),P=f(X());var ec=f(I()),_=f(E());var Zl=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),k={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:Zl,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",Zl),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")},Ql=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),Fi={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:Ql,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ql)},De={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")},tc=ec.css`
441
+ `}};It.styles=uc;var hc=f(E());var fc={"ft-loader":It};(0,hc.customElements)(fc);var at=f(D()),Yn=f(bt()),M=f(X());var gc=f(D()),_=f(E());var mc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),P={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:mc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Oe.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",mc),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")},yc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),oo={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:yc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",yc)},ze={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")},xc=gc.css`
432
442
  :host {
433
443
  display: inline-block;
434
444
  max-width: 100%;
@@ -439,7 +449,7 @@
439
449
  box-shadow: 0px 0px 0px transparent;
440
450
  border: 0px solid transparent;
441
451
  text-shadow: 0px 0px 0px transparent;
442
- font-size: ${k.fontSize};
452
+ font-size: ${P.fontSize};
443
453
  text-decoration: none;
444
454
  }
445
455
 
@@ -473,31 +483,31 @@
473
483
  border: none;
474
484
  pointer-events: auto;
475
485
 
476
- --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
477
- --button-internal-color: ${k.color};
478
- ${(0,_.setVariable)(be.size,k.iconSize)};
479
- ${(0,_.setVariable)(he.color,k.rippleColor)};
480
- ${(0,_.setVariable)(he.borderRadius,k.borderRadius)};
486
+ --button-internal-line-height: max(calc(${P.fontSize} + 2px), ${P.iconSize});
487
+ --button-internal-color: ${P.color};
488
+ ${(0,_.setVariable)(ae.size,P.iconSize)};
489
+ ${(0,_.setVariable)(ie.color,P.rippleColor)};
490
+ ${(0,_.setVariable)(ie.borderRadius,P.borderRadius)};
481
491
 
482
- border-radius: ${k.borderRadius};
483
- padding: ${k.verticalPadding} ${k.horizontalPadding};
484
- background-color: ${k.backgroundColor};
492
+ border-radius: ${P.borderRadius};
493
+ padding: ${P.verticalPadding} ${P.horizontalPadding};
494
+ background-color: ${P.backgroundColor};
485
495
  color: var(--button-internal-color);
486
496
  }
487
497
 
488
498
  .ft-button.ft-button--outlined {
489
499
  border: 1px solid var(--button-internal-color);
490
- padding: calc(${k.verticalPadding} - 1px) calc(${k.horizontalPadding} - 1px);
500
+ padding: calc(${P.verticalPadding} - 1px) calc(${P.horizontalPadding} - 1px);
491
501
  }
492
502
 
493
503
  .ft-button.ft-button--dense {
494
- padding: ${De.verticalPadding} ${De.horizontalPadding};
495
- border-radius: ${De.borderRadius};
496
- ${(0,_.setVariable)(he.borderRadius,De.borderRadius)};
504
+ padding: ${ze.verticalPadding} ${ze.horizontalPadding};
505
+ border-radius: ${ze.borderRadius};
506
+ ${(0,_.setVariable)(ie.borderRadius,ze.borderRadius)};
497
507
  }
498
508
 
499
509
  .ft-button.ft-button--dense.ft-button--outlined {
500
- padding: calc(${De.verticalPadding} - 1px) calc(${De.horizontalPadding} - 1px);
510
+ padding: calc(${ze.verticalPadding} - 1px) calc(${ze.horizontalPadding} - 1px);
501
511
  }
502
512
 
503
513
  .ft-button:not([disabled]):hover {
@@ -505,22 +515,22 @@
505
515
  }
506
516
 
507
517
  .ft-button--round {
508
- border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
518
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding});
509
519
  }
510
520
 
511
521
  .ft-button--round.ft-button--dense {
512
- border-radius: calc(var(--button-internal-line-height) / 2 + ${De.verticalPadding});
522
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ze.verticalPadding});
513
523
  }
514
524
 
515
525
  .ft-button[disabled] {
516
526
  filter: grayscale(1);
517
- opacity: ${k.opacityDisabled};
527
+ opacity: ${P.opacityDisabled};
518
528
  }
519
529
 
520
530
  .ft-button.ft-button--primary {
521
- background-color: ${Fi.backgroundColor};
522
- --button-internal-color: ${Fi.color};
523
- ${(0,_.setVariable)(he.color,Fi.rippleColor)};
531
+ background-color: ${oo.backgroundColor};
532
+ --button-internal-color: ${oo.color};
533
+ ${(0,_.setVariable)(ie.color,oo.rippleColor)};
524
534
  }
525
535
 
526
536
  .ft-button--label {
@@ -529,13 +539,13 @@
529
539
  white-space: nowrap;
530
540
  text-overflow: ellipsis;
531
541
  display: block;
532
- margin: 0 ${k.iconPadding};
533
- ${(0,_.setVariable)(Ne.fontSize,"1em")};
534
- ${(0,_.setVariable)(Ne.lineHeight,"var(--button-internal-line-height)")};
542
+ margin: 0 ${P.iconPadding};
543
+ ${(0,_.setVariable)(Oe.fontSize,"1em")};
544
+ ${(0,_.setVariable)(Oe.lineHeight,"var(--button-internal-line-height)")};
535
545
  }
536
546
 
537
547
  .ft-button--dense .ft-button--label {
538
- margin: 0 ${De.iconPadding};
548
+ margin: 0 ${ze.iconPadding};
539
549
  }
540
550
 
541
551
  .ft-button--label.ft-button--label-no-text {
@@ -548,13 +558,13 @@
548
558
  }
549
559
 
550
560
  .ft-button--label[hidden] + [part="icon"] {
551
- margin: 0 calc(${k.horizontalPadding} * -1);
552
- padding: 0 ${k.verticalPadding};
561
+ margin: 0 calc(${P.horizontalPadding} * -1);
562
+ padding: 0 ${P.verticalPadding};
553
563
  }
554
564
 
555
565
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
556
- margin: 0 calc(${De.horizontalPadding} * -1);
557
- padding: 0 ${De.verticalPadding};
566
+ margin: 0 calc(${ze.horizontalPadding} * -1);
567
+ padding: 0 ${ze.verticalPadding};
558
568
  }
559
569
 
560
570
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -562,51 +572,51 @@
562
572
  }
563
573
 
564
574
  ft-loader {
565
- ${(0,_.setVariable)(yt.size,k.iconSize)};
566
- ${(0,_.setVariable)(yt.color,"var(--button-internal-color)")};
575
+ ${(0,_.setVariable)(Dt.size,P.iconSize)};
576
+ ${(0,_.setVariable)(Dt.color,"var(--button-internal-color)")};
567
577
  }
568
- `;var U=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},O=class e extends(0,Ie.toFtFormComponent)(Ie.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":Ie.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Je.html`
578
+ `;var H=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},T=class e extends(0,je.toFtFormComponent)(je.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":je.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=at.html`
569
579
  <ft-ripple part="ripple"
570
580
  ?disabled=${this.isDisabled()}
571
581
  ?activated=${this.activated}
572
582
  ></ft-ripple>
573
583
  <ft-typography part="label"
574
- variant="${ze.button}"
584
+ variant="${Be.button}"
575
585
  element="span"
576
- class="${(0,kn.classMap)(i)}">
586
+ class="${(0,Yn.classMap)(i)}">
577
587
  <slot></slot>
578
588
  </ft-typography>
579
589
  ${this.resolveIcon()}
580
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Je.html`
590
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?at.html`
581
591
  <a href="${s}"
582
592
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
583
593
  part="button"
584
- class="${(0,kn.classMap)(this.buttonClasses)}"
585
- aria-label="${it((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
594
+ class="${(0,Yn.classMap)(this.buttonClasses)}"
595
+ aria-label="${Te((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
586
596
  ?disabled=${this.isDisabled()}>
587
597
  ${o}
588
598
  </a>
589
- `:Je.html`
599
+ `:at.html`
590
600
  <button part="button"
591
- class="${(0,kn.classMap)(this.buttonClasses)}"
592
- aria-label="${it((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
593
- aria-haspopup="${it(this.ariaHasPopup)}"
594
- aria-pressed="${it(this.ariaPressed)}"
601
+ class="${(0,Yn.classMap)(this.buttonClasses)}"
602
+ aria-label="${Te((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
603
+ aria-haspopup="${Te(this.ariaHasPopup)}"
604
+ aria-pressed="${Te(this.ariaPressed)}"
595
605
  ?disabled=${this.isDisabled()}>
596
606
  ${o}
597
607
  </button>
598
- `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Je.html`
608
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?at.html`
599
609
  <ft-tooltip part="tooltip"
600
610
  text="${this.label}"
601
611
  position="${this.tooltipPosition}">
602
612
  ${t}
603
613
  </ft-tooltip>
604
- `:t}resolveIcon(){return this.loading?Je.html`
605
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Je.html`
614
+ `:t}resolveIcon(){return this.loading?at.html`
615
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?at.html`
606
616
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
607
- `:Je.html`
617
+ `:at.html`
608
618
  <slot part="icon" name="icon"></slot>
609
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":H,"ft-tooltip":K,"ft-icon":Q,"ft-loader":gt,"ft-typography":ae};O.styles=[Ie.safariEllipsisFix,tc,Ie.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,P.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,P.property)()],O.prototype,"icon",void 0);U([(0,P.property)()],O.prototype,"iconVariant",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,P.property)()],O.prototype,"label",void 0);U([(0,P.property)()],O.prototype,"type",void 0);U([(0,P.property)()],O.prototype,"href",void 0);U([(0,P.property)()],O.prototype,"target",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,P.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,P.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,P.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,P.property)()],O.prototype,"tooltipPosition",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,P.query)(".ft-button")],O.prototype,"button",void 0);U([(0,P.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,P.state)()],O.prototype,"hasTextContent",void 0);U([(0,P.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,P.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var nc=f(E());var rc={"ft-button":O};(0,nc.customElements)(rc);var sc=f(I()),xt=f(X()),Un=f(E());var ie;(function(e){e.S="S",e.M="M",e.L="L",e.XL="XL",e.XXL="XXL"})(ie||(ie={}));var ic=f(I());var oc=ic.css`
619
+ `}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)}};T.elementDefinitions={"ft-ripple":U,"ft-tooltip":Y,"ft-icon":te,"ft-loader":It,"ft-typography":J};T.styles=[je.safariEllipsisFix,xc,je.noTextSelect];T.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:T.labelsObserver.unobserve(t.target)}});H([(0,M.property)({type:Boolean})],T.prototype,"primary",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"outlined",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"dense",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"round",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"disabled",void 0);H([(0,M.property)()],T.prototype,"icon",void 0);H([(0,M.property)()],T.prototype,"iconVariant",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"trailingIcon",void 0);H([(0,M.property)()],T.prototype,"label",void 0);H([(0,M.property)()],T.prototype,"type",void 0);H([(0,M.property)()],T.prototype,"href",void 0);H([(0,M.property)()],T.prototype,"target",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"loading",void 0);H([(0,M.property)({attribute:"aria-label"})],T.prototype,"ariaLabel",void 0);H([(0,M.property)()],T.prototype,"ariaHasPopup",void 0);H([(0,M.property)({attribute:"aria-pressed"})],T.prototype,"ariaPressed",void 0);H([(0,M.property)()],T.prototype,"tooltipPosition",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"hideTooltip",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"forceTooltip",void 0);H([(0,M.property)({type:Boolean})],T.prototype,"activated",void 0);H([(0,M.query)(".ft-button")],T.prototype,"button",void 0);H([(0,M.query)(".ft-button--label")],T.prototype,"labelContainer",void 0);H([(0,M.state)()],T.prototype,"hasTextContent",void 0);H([(0,M.query)(".ft-button--label slot")],T.prototype,"slottedContent",void 0);H([(0,M.query)("[part=tooltip]")],T.prototype,"tooltip",void 0);var bc=f(E());var vc={"ft-button":T};(0,bc.customElements)(vc);var Ac=f(D()),Mt=f(X()),Zn=f(E());var le;(function(e){e.S="S",e.M="M",e.L="L",e.XL="XL",e.XXL="XXL"})(le||(le={}));var Ec=f(D());var Sc=Ec.css`
610
620
  .ft-size-watcher--pixel {
611
621
  width: 0;
612
622
  height: 0;
@@ -625,25 +635,25 @@
625
635
  .ft-size-watcher--local .ft-size-watcher--watcher {
626
636
  width: 100%;
627
637
  }
628
- `;var wr=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},zi=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},de=class extends Un.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ie.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Un.Debouncer}render(){return sc.html`
638
+ `;var Ur=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},so=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},xe=class extends Zn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=le.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Zn.Debouncer}render(){return Ac.html`
629
639
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
630
640
  <div class="ft-size-watcher--watcher"></div>
631
641
  </div>
632
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=ie.S:this.size<976?this.category=ie.M:this.size<1024?this.category=ie.L:this.size<1440?this.category=ie.XL:this.category=ie.XXL,this.dispatchEvent(new zi(this.size,this.category)))},this.debounceTimeout)}};de.elementDefinitions={};de.styles=oc;wr([(0,xt.property)({type:Number})],de.prototype,"debounceTimeout",void 0);wr([(0,xt.property)({type:Boolean})],de.prototype,"local",void 0);wr([(0,xt.property)({type:Number,reflect:!0})],de.prototype,"size",void 0);wr([(0,xt.property)({type:String,reflect:!0})],de.prototype,"category",void 0);wr([(0,xt.query)(".ft-size-watcher--watcher")],de.prototype,"watcher",void 0);var lc=f(E());var ac={"ft-size-watcher":de};(0,lc.customElements)(ac);var cc=f(I()),L=f(E());var q={tabulationSize:L.FtCssVariableFactory.create("--ft-reader-toc-tabulation-size","","SIZE","16px"),verticalSpacing:L.FtCssVariableFactory.create("--ft-reader-toc-vertical-spacing","","SIZE","4px"),textColor:L.FtCssVariableFactory.extend("--ft-reader-toc-text-color","",L.designSystemVariables.colorOnSurface),hoverColor:L.FtCssVariableFactory.extend("--ft-reader-toc-hover-color","",L.designSystemVariables.colorPrimary),highlightedTextColor:L.FtCssVariableFactory.extend("--ft-reader-toc-highlighted-text-color","",L.designSystemVariables.colorPrimary),highlightedFontWeight:L.FtCssVariableFactory.create("--ft-reader-toc-highlighted-font-weight","","UNKNOWN","bold"),highlightedBackgroundColor:L.FtCssVariableFactory.create("--ft-reader-toc-highlighted-background-color","","COLOR","transparent"),iconFontSize:L.FtCssVariableFactory.create("--ft-reader-toc-icon-font-size","","SIZE","16px"),treeNodeIconColor:L.FtCssVariableFactory.create("--ft-reader-toc-tree-node-icon-color","","COLOR",L.designSystemVariables.colorPrimary),leafNodeIconColor:L.FtCssVariableFactory.create("--ft-reader-toc-leaf-node-icon-color","","COLOR",L.designSystemVariables.colorPrimary),nodeButtonBackgroundColor:L.FtCssVariableFactory.create("--ft-reader-toc-node-button-background-color","","COLOR",L.designSystemVariables.colorSurface),expandCollapseAllButtonColor:L.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-color","","COLOR",L.designSystemVariables.colorPrimary),expandCollapseAllButtonBackgroundColor:L.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-background-color","","COLOR",L.designSystemVariables.colorSurface)},uc=cc.css`
642
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=le.S:this.size<976?this.category=le.M:this.size<1024?this.category=le.L:this.size<1440?this.category=le.XL:this.category=le.XXL,this.dispatchEvent(new so(this.size,this.category)))},this.debounceTimeout)}};xe.elementDefinitions={};xe.styles=Sc;Ur([(0,Mt.property)({type:Number})],xe.prototype,"debounceTimeout",void 0);Ur([(0,Mt.property)({type:Boolean})],xe.prototype,"local",void 0);Ur([(0,Mt.property)({type:Number,reflect:!0})],xe.prototype,"size",void 0);Ur([(0,Mt.property)({type:String,reflect:!0})],xe.prototype,"category",void 0);Ur([(0,Mt.query)(".ft-size-watcher--watcher")],xe.prototype,"watcher",void 0);var Cc=f(E());var _c={"ft-size-watcher":xe};(0,Cc.customElements)(_c);var wc=f(D()),I=f(E());var L={tabulationSize:I.FtCssVariableFactory.create("--ft-reader-toc-tabulation-size","","SIZE","16px"),verticalSpacing:I.FtCssVariableFactory.create("--ft-reader-toc-vertical-spacing","","SIZE","4px"),textColor:I.FtCssVariableFactory.extend("--ft-reader-toc-text-color","",I.designSystemVariables.colorOnSurface),hoverColor:I.FtCssVariableFactory.extend("--ft-reader-toc-hover-color","",I.designSystemVariables.colorPrimary),highlightedTextColor:I.FtCssVariableFactory.extend("--ft-reader-toc-highlighted-text-color","",I.designSystemVariables.colorPrimary),highlightedFontWeight:I.FtCssVariableFactory.create("--ft-reader-toc-highlighted-font-weight","","UNKNOWN","bold"),highlightedBackgroundColor:I.FtCssVariableFactory.create("--ft-reader-toc-highlighted-background-color","","COLOR","transparent"),iconFontSize:I.FtCssVariableFactory.create("--ft-reader-toc-icon-font-size","","SIZE","16px"),treeNodeIconColor:I.FtCssVariableFactory.create("--ft-reader-toc-tree-node-icon-color","","COLOR",I.designSystemVariables.colorPrimary),leafNodeIconColor:I.FtCssVariableFactory.create("--ft-reader-toc-leaf-node-icon-color","","COLOR",I.designSystemVariables.colorPrimary),nodeButtonBackgroundColor:I.FtCssVariableFactory.create("--ft-reader-toc-node-button-background-color","","COLOR",I.designSystemVariables.colorSurface),expandCollapseAllButtonColor:I.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-color","","COLOR",I.designSystemVariables.colorPrimary),expandCollapseAllButtonBackgroundColor:I.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-background-color","","COLOR",I.designSystemVariables.colorSurface)},Tc=wc.css`
633
643
  .ft-reader-toc {
634
- color: ${q.textColor};
644
+ color: ${L.textColor};
635
645
  }
636
646
 
637
647
  .ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
638
- background-color: ${q.highlightedBackgroundColor};
639
- color: ${q.highlightedTextColor};
640
- ${(0,L.setVariable)(b.fontWeight,q.highlightedFontWeight)}
648
+ background-color: ${L.highlightedBackgroundColor};
649
+ color: ${L.highlightedTextColor};
650
+ ${(0,I.setVariable)(g.fontWeight,L.highlightedFontWeight)}
641
651
  }
642
652
 
643
653
  .ft-reader-toc--link-container {
644
654
  display: flex;
645
655
  gap: 4px;
646
- padding: ${q.verticalSpacing} 4px; /* left padding is override on inline style */
656
+ padding: ${L.verticalSpacing} 4px; /* left padding is override on inline style */
647
657
  align-items: center;
648
658
  }
649
659
 
@@ -651,26 +661,26 @@
651
661
  display: flex;
652
662
 
653
663
  &:hover {
654
- color: ${q.hoverColor};
664
+ color: ${L.hoverColor};
655
665
  }
656
666
  }
657
667
 
658
668
  ft-button {
659
- ${(0,L.setVariable)(k.iconSize,q.iconFontSize)};
669
+ ${(0,I.setVariable)(P.iconSize,L.iconFontSize)};
660
670
  }
661
671
 
662
672
  [part="leaf-node-icon"] {
663
- color: ${q.leafNodeIconColor};
673
+ color: ${L.leafNodeIconColor};
664
674
  }
665
675
 
666
676
  .ft-reader-toc--tree-node-button {
667
- ${(0,L.setVariable)(k.color,q.treeNodeIconColor)};
668
- ${(0,L.setVariable)(k.backgroundColor,q.nodeButtonBackgroundColor)};
677
+ ${(0,I.setVariable)(P.color,L.treeNodeIconColor)};
678
+ ${(0,I.setVariable)(P.backgroundColor,L.nodeButtonBackgroundColor)};
669
679
  }
670
680
 
671
681
  .ft-reader-toc--expand-collapse-all-button {
672
- ${(0,L.setVariable)(k.color,q.expandCollapseAllButtonColor)};
673
- ${(0,L.setVariable)(k.backgroundColor,q.expandCollapseAllButtonBackgroundColor)};
682
+ ${(0,I.setVariable)(P.color,L.expandCollapseAllButtonColor)};
683
+ ${(0,I.setVariable)(P.backgroundColor,L.expandCollapseAllButtonBackgroundColor)};
674
684
  }
675
685
 
676
686
  .ft-reader-toc--toggle-container {
@@ -678,11 +688,11 @@
678
688
  }
679
689
 
680
690
  .ft-reader-toc-mobile .ft-reader-toc--toggle-container {
681
- width: calc(${q.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
691
+ width: calc(${L.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
682
692
  }
683
693
 
684
694
  .ft-reader-toc-desktop .ft-reader-toc--toggle-container {
685
- width: calc(${q.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
695
+ width: calc(${L.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
686
696
  }
687
697
 
688
698
  .ft-reader-toc-expanded .ft-reader-toc--toggle-container {
@@ -690,11 +700,11 @@
690
700
  }
691
701
 
692
702
  .ft-reader-toc-mobile .ft-reader-toc--leaf-node-icon {
693
- width: calc(${q.iconFontSize} + 12px);
703
+ width: calc(${L.iconFontSize} + 12px);
694
704
  }
695
705
 
696
706
  .ft-reader-toc-desktop .ft-reader-toc--leaf-node-icon {
697
- width: calc(${q.iconFontSize} + 4px);
707
+ width: calc(${L.iconFontSize} + 4px);
698
708
  }
699
709
 
700
710
  .ft-reader-toc-expand-collapse-all-container {
@@ -713,66 +723,71 @@
713
723
  .ft-reader-toc-expand-collapse-all-justify ft-button {
714
724
  flex-grow: 1;
715
725
  }
716
- `;var fc=f(I()),hc=f(E());var dc=f(I()),Oe=f(E()),oe={display:Oe.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Oe.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Oe.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Oe.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Oe.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Oe.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Oe.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.borderRadiusM,"Design system")},pc=dc.css`
726
+ `;var Nc=f(D()),Lc=f(E());var Oc=f(D()),Me=f(E()),pe={display:Me.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Me.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Me.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Me.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Me.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Me.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Me.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Me.FtCssVariableFactory.external(Me.designSystemVariables.borderRadiusM,"Design system")},Rc=Oc.css`
717
727
  :host {
718
- width: ${oe.width};
719
- height: ${oe.height};
720
- display: ${oe.display};
728
+ width: ${pe.width};
729
+ height: ${pe.height};
730
+ display: ${pe.display};
721
731
  overflow: hidden;
722
- border-radius: ${oe.borderRadiusM};
732
+ border-radius: ${pe.borderRadiusM};
723
733
  background: linear-gradient(
724
734
  90deg,
725
735
  transparent,
726
- ${oe.glareColor} calc(0.45 * ${oe.glareWidth}),
727
- ${oe.glareColor} calc(0.55 * ${oe.glareWidth}),
728
- transparent ${oe.glareWidth}
729
- ), ${oe.backgroundColor};
736
+ ${pe.glareColor} calc(0.45 * ${pe.glareWidth}),
737
+ ${pe.glareColor} calc(0.55 * ${pe.glareWidth}),
738
+ transparent ${pe.glareWidth}
739
+ ), ${pe.backgroundColor};
730
740
  background-repeat: repeat-y;
731
741
  background-size: 100vw 100vh;
732
742
  background-attachment: fixed;
733
- background-position: calc(${oe.glareWidth} * -1) 0;
734
- animation: shine ${oe.animationDuration} infinite;
743
+ background-position: calc(${pe.glareWidth} * -1) 0;
744
+ animation: shine ${pe.animationDuration} infinite;
735
745
  animation-timing-function: linear;
736
746
  }
737
747
 
738
748
  @keyframes shine {
739
749
  to {
740
- background-position: calc(100vw + ${oe.glareWidth}) 0, calc(${oe.glareWidth} * -1) 0;
750
+ background-position: calc(100vw + ${pe.glareWidth}) 0, calc(${pe.glareWidth} * -1) 0;
741
751
  }
742
752
  }
743
- `;var Ze=class extends hc.FtLitElement{render(){return fc.html`
744
- `}};Ze.elementDefinitions={};Ze.styles=pc;var yc=f(E());var mc={"ft-skeleton":Ze};(0,yc.customElements)(mc);var Qe=Pn.build("designedReaderToc"),gc={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"};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 Ln(At){get isCurrentPageToc(){return this.scope==="current-page"}constructor(){super(),this.expanded=!1,this.iconVariant=Ae.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.leafNodeIconVariant=Ae.fluid_topics,this.leafNodeIcon="DOT",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scrollCurrentTopicIntoView=!1,this.scope="pages",this.empty=!0,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=ie.M,this.nodesToExpandExist=!1,this.addI18nContext(Qe,gc)}update(t){var r,n,i;super.update(t),t.has("toc")&&(this.nodesToExpandExist=((r=this.toc)!==null&&r!==void 0?r:[]).some(o=>o.children.length>0)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes((n=this.highlightedTocIds)!==null&&n!==void 0?n:[])),this.empty=((i=this.toc)!==null&&i!==void 0?i:[]).length===0}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),this.scrollCurrentTopicIntoView&&t.has("highlightedTocIds")&&this.highlightedTocIds&&((r=this.highlightedTocIds)===null||r===void 0?void 0:r.length)>0){let i=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`[tocId="${this.highlightedTocIds[0]}"]`);i&&Re.scrollHelper.scrollIntoViewIfPossible(i,{behavior:"instant",position:.25})}}render(){var t;let r={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===ie.S,"ft-reader-toc-desktop":this.viewportSize!==ie.S,"ft-reader-toc-loaded":this.currentPage!=null,"ft-reader-toc-expanded":this.expanded};return se.html`
745
- <div class="${(0,xc.classMap)(r)}">
746
- <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
747
- ${this.renderExpandCollapseAll()}
748
- ${$n((t=this.toc)!==null&&t!==void 0?t:[],n=>this.renderNode(n))}
749
- </div>
750
- `}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?se.html`
753
+ `;var We=class extends Lc.FtLitElement{render(){return Nc.html`
754
+ `}};We.elementDefinitions={};We.styles=Rc;var kc=f(E());var Pc={"ft-skeleton":We};(0,kc.customElements)(Pc);var Je=Kn.build("designedReaderToc"),Dc={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"};var Br=f(D()),F=f(X()),$e=f(E());var $=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},N=class extends Wn(Vt){get isCurrentPageToc(){return this.scope==="current-page"}nodeIsExpanded(t){return this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId)}constructor(){super(),this.expanded=!1,this.iconVariant=Ie.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.leafNodeIconVariant=Ie.fluid_topics,this.leafNodeIcon="DOT",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scrollCurrentTopicIntoView=!1,this.scope="pages",this.empty=!0,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=le.M,this.nodesToExpandExist=!1,this.addI18nContext(Je,Dc)}willUpdate(t){var r,n,i;super.willUpdate(t),t.has("toc")&&(this.nodesToExpandExist=((r=this.toc)!==null&&r!==void 0?r:[]).some(o=>o.children.length>0)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes((n=this.highlightedTocIds)!==null&&n!==void 0?n:[])),this.empty=((i=this.toc)!==null&&i!==void 0?i:[]).length===0}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),this.scrollCurrentTopicIntoView&&t.has("highlightedTocIds")&&this.highlightedTocIds&&((r=this.highlightedTocIds)===null||r===void 0?void 0:r.length)>0){let i=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`[tocId="${this.highlightedTocIds[0]}"]`);i&&$e.scrollHelper.scrollIntoViewIfPossible(i,{behavior:"instant",position:.25})}}get tocClasses(){return{"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===le.S,"ft-reader-toc-desktop":this.viewportSize!==le.S,"ft-reader-toc-loaded":this.currentPage!=null,"ft-reader-toc-expanded":this.expanded}}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?Br.html`
751
755
  <div part="expand-collapse-all-container"
752
756
  class="ft-reader-toc-expand-collapse-all-container ft-reader-toc-expand-collapse-all-${this.expandCollapseAllAlignment}">
753
757
  <ft-button part="expand-collapse-all"
754
758
  class="ft-reader-toc--expand-collapse-all-button"
755
759
  iconVariant="${this.expandCollapseAllIconVariant}"
756
760
  icon="${this.expandCollapseAllHideIcon?"":this.expandAll?this.collapseAllIcon||"ICON_COLLAPSE":this.expandAllIcon||"ICON_EXPAND"}"
757
- label="${this.expandAll?Qe.messages.collapseAllLong():Qe.messages.expandAllLong()}"
761
+ label="${this.expandAll?Je.messages.collapseAllLong():Je.messages.expandAllLong()}"
758
762
  tooltipPosition="${this.getExpandCollapseAllTooltipPosition()}"
759
763
  ?trailingIcon=${this.expandCollapseAllTrailingIcon}
760
764
  @click=${()=>this.toggleExpandCollapseAll()}>
761
- ${this.expandCollapseAllHideLabel?"":this.expandAll?Qe.messages.collapseAll():Qe.messages.expandAll()}
765
+ ${this.expandCollapseAllHideLabel?"":this.expandAll?Je.messages.collapseAll():Je.messages.expandAll()}
762
766
  </ft-button>
763
767
  </div>
764
- `:se.nothing}renderNode(t){var r,n,i;let o=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),s=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),a=t.children.length>0,l=this.isCurrentPageToc?((i=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&i!==void 0?i:0)+1:0,c=t.depth-1-l,u={"padding-left":`calc( ${q.tabulationSize} * ${c} + 4px)`};return se.html`
768
+ `:Br.nothing}buildAutomaticallyExpandedNodes(t){var r,n;let i=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let o of t){let s=o;for(;s&&!i.has(s);)i.add(s),this.manuallyCollapsedNodes.delete(s),s=(n=(r=this.service)===null||r===void 0?void 0:r.getTocNodeNow(s))===null||n===void 0?void 0:n.parentTocId}return i}manuallyToggle(t,r,n){n?.stopPropagation(),n?.preventDefault(),r?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}getLeafNodeIcon(){return Br.html`
769
+ <ft-icon class="ft-reader-toc--leaf-node-icon"
770
+ part="leaf-node-icon"
771
+ .variant=${this.leafNodeIconVariant}
772
+ .value=${this.leafNodeIcon}></ft-icon>
773
+ `}};N.elementDefinitions={"ft-button":T,"ft-icon":te,"ft-size-watcher":xe};$([(0,F.property)({type:Boolean})],N.prototype,"expanded",void 0);$([(0,F.property)()],N.prototype,"iconVariant",void 0);$([(0,F.property)()],N.prototype,"collapseIcon",void 0);$([(0,F.property)()],N.prototype,"expandIcon",void 0);$([(0,F.property)()],N.prototype,"leafNodeIconVariant",void 0);$([(0,F.property)()],N.prototype,"leafNodeIcon",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"expandCollapseAll",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"expandCollapseAllHideLabel",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"expandCollapseAllTrailingIcon",void 0);$([(0,F.property)()],N.prototype,"expandCollapseAllAlignment",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"expandCollapseAllHideIcon",void 0);$([(0,F.property)()],N.prototype,"expandCollapseAllIconVariant",void 0);$([(0,F.property)()],N.prototype,"collapseAllIcon",void 0);$([(0,F.property)()],N.prototype,"expandAllIcon",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"autoCollapse",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"scrollCurrentTopicIntoView",void 0);$([(0,F.property)()],N.prototype,"scope",void 0);$([(0,F.property)({type:Boolean,reflect:!0})],N.prototype,"empty",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n,i;return t.isCurrentPageToc?!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc?(n=e.currentPage)===null||n===void 0?void 0:n.toc:void 0:!((i=e.paginationConfiguration)===null||i===void 0)&&i.splitCurrentPageToc?e.pagesToc:e.toc}})],N.prototype,"toc",void 0);$([(0,$e.redux)()],N.prototype,"currentPage",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n;return!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc&&!t.isCurrentPageToc?!((n=e.currentPage)===null||n===void 0)&&n.rootTocId?[e.currentPage.rootTocId]:[]:e.visibleTopics}})],N.prototype,"highlightedTocIds",void 0);$([(0,$e.redux)({selector:e=>e.translation.isLoading})],N.prototype,"translationLoading",void 0);$([(0,F.state)({hasChanged:$e.hasChanged})],N.prototype,"automaticallyExpandedNodes",void 0);$([(0,F.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyExpandedNodes",void 0);$([(0,F.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyCollapsedNodes",void 0);$([(0,F.state)()],N.prototype,"expandAll",void 0);$([(0,F.state)()],N.prototype,"viewportSize",void 0);var Mc=f(bt()),ir=class extends N{render(){var t,r;return Ue.html`
774
+ <div class="${(0,Mc.classMap)(this.tocClasses)}" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
775
+ <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
776
+ ${this.renderExpandCollapseAll()}
777
+ ${Bt((r=this.toc)!==null&&r!==void 0?r:[],n=>this.renderNode(n))}
778
+ </div>
779
+ `}renderNode(t){var r,n,i;let o=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),s=this.nodeIsExpanded(t),a=t.children.length>0,l=this.isCurrentPageToc?((i=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&i!==void 0?i:0)+1:0,c=t.depth-1-l,u={"padding-left":`calc( ${L.tabulationSize} * ${c} + 4px)`};return Ue.html`
765
780
  <div class="ft-reader-toc--node ${o?"ft-reader-toc--node-highlighted":""}"
766
- aria-current="${it(o?"true":void 0)}">
767
- <div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0,vc.styleMap)(u)}">
768
- ${this.nodesToExpandExist&&!this.expanded?se.html`
781
+ aria-current="${Te(o?"true":void 0)}">
782
+ <div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0,Ic.styleMap)(u)}">
783
+ ${this.nodesToExpandExist&&!this.expanded?Ue.html`
769
784
  <div class="ft-reader-toc--toggle-container">
770
- ${a?se.html`
785
+ ${a?Ue.html`
771
786
  <ft-button part="expand-collapse-node"
772
787
  class="ft-reader-toc--tree-node-button"
773
788
  round hideTooltip
774
- ?dense=${this.viewportSize!==ie.S}
775
- label="${s?Qe.messages.collapse(t.title):Qe.messages.expand(t.title)}"
789
+ ?dense=${this.viewportSize!==le.S}
790
+ label="${s?Je.messages.collapse(t.title):Je.messages.expand(t.title)}"
776
791
  .iconVariant=${this.iconVariant}
777
792
  icon="${s?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
778
793
  @click=${()=>this.manuallyToggle(t.tocId,s)}
@@ -782,9 +797,9 @@
782
797
  </ft-button>
783
798
  `:this.getLeafNodeIcon()}
784
799
  </div>
785
- `:a?se.nothing:this.getLeafNodeIcon()}
786
- ${this.translationLoading?se.html`
787
- <ft-skeleton></ft-skeleton>`:se.html`
800
+ `:a?Ue.nothing:this.getLeafNodeIcon()}
801
+ ${this.translationLoading?Ue.html`
802
+ <ft-skeleton></ft-skeleton>`:Ue.html`
788
803
  <ft-reader-internal-link part="node-link"
789
804
  tocId="${t.tocId}"
790
805
  removeStyle>
@@ -792,20 +807,309 @@
792
807
  </ft-reader-internal-link>
793
808
  `}
794
809
  </div>
795
- ${a?se.html`
810
+ ${a?Ue.html`
796
811
  <div id="${t.tocId}-children"
797
812
  class="ft-reader-toc--node-children"
798
813
  ?hidden=${!s}>
799
- ${$n(s?t.children:[],d=>this.renderNode(d))}
814
+ ${Bt(s?t.children:[],d=>this.renderNode(d))}
800
815
  </div>
801
- `:se.nothing}
816
+ `:Ue.nothing}
802
817
  </div>
803
- `}buildAutomaticallyExpandedNodes(t){var r,n;let i=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let o of t){let s=o;for(;s&&!i.has(s);)i.add(s),this.manuallyCollapsedNodes.delete(s),s=(n=(r=this.service)===null||r===void 0?void 0:r.getTocNodeNow(s))===null||n===void 0?void 0:n.parentTocId}return i}manuallyToggle(t,r){r?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}getLeafNodeIcon(){return se.html`
804
- <ft-icon class="ft-reader-toc--leaf-node-icon"
805
- part="leaf-node-icon"
806
- .variant=${this.leafNodeIconVariant}
807
- .value=${this.leafNodeIcon}></ft-icon>
808
- `}};R.elementDefinitions={"ft-button":O,"ft-icon":Q,"ft-reader-internal-link":ve,"ft-size-watcher":de,"ft-typography":ae,"ft-skeleton":Ze};R.styles=uc;M([(0,$.property)({type:Boolean})],R.prototype,"expanded",void 0);M([(0,$.property)()],R.prototype,"iconVariant",void 0);M([(0,$.property)()],R.prototype,"collapseIcon",void 0);M([(0,$.property)()],R.prototype,"expandIcon",void 0);M([(0,$.property)()],R.prototype,"leafNodeIconVariant",void 0);M([(0,$.property)()],R.prototype,"leafNodeIcon",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"expandCollapseAll",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"expandCollapseAllHideLabel",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"expandCollapseAllTrailingIcon",void 0);M([(0,$.property)()],R.prototype,"expandCollapseAllAlignment",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"expandCollapseAllHideIcon",void 0);M([(0,$.property)()],R.prototype,"expandCollapseAllIconVariant",void 0);M([(0,$.property)()],R.prototype,"collapseAllIcon",void 0);M([(0,$.property)()],R.prototype,"expandAllIcon",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"autoCollapse",void 0);M([(0,$.property)({type:Boolean})],R.prototype,"scrollCurrentTopicIntoView",void 0);M([(0,$.property)()],R.prototype,"scope",void 0);M([(0,$.property)({type:Boolean,reflect:!0})],R.prototype,"empty",void 0);M([(0,Re.redux)({selector:(e,t)=>{var r,n,i;return t.isCurrentPageToc?!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc?(n=e.currentPage)===null||n===void 0?void 0:n.toc:void 0:!((i=e.paginationConfiguration)===null||i===void 0)&&i.splitCurrentPageToc?e.pagesToc:e.toc}})],R.prototype,"toc",void 0);M([(0,Re.redux)()],R.prototype,"currentPage",void 0);M([(0,Re.redux)({selector:(e,t)=>{var r,n;return!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc&&!t.isCurrentPageToc?!((n=e.currentPage)===null||n===void 0)&&n.rootTocId?[e.currentPage.rootTocId]:[]:e.visibleTopics}})],R.prototype,"highlightedTocIds",void 0);M([(0,Re.redux)({selector:e=>e.translation.isLoading})],R.prototype,"translationLoading",void 0);M([(0,$.state)({hasChanged:Re.hasChanged})],R.prototype,"automaticallyExpandedNodes",void 0);M([(0,$.state)({hasChanged:Re.hasChanged})],R.prototype,"manuallyExpandedNodes",void 0);M([(0,$.state)({hasChanged:Re.hasChanged})],R.prototype,"manuallyCollapsedNodes",void 0);M([(0,$.state)()],R.prototype,"expandAll",void 0);M([(0,$.state)()],R.prototype,"viewportSize",void 0);var bc={"ft-reader-toc":R};(0,Ec.customElements)(bc);})();
818
+ `}};ir.elementDefinitions={...N.elementDefinitions,"ft-button":T,"ft-reader-internal-link":Re,"ft-typography":J,"ft-skeleton":We};ir.styles=Tc;var we=f(D());var Kc=f(ei());var $c=f(D()),Hr=f(E());var Uc=$c.css`
819
+ .ft-reader-toc {
820
+ color: ${L.textColor};
821
+ }
822
+
823
+ [part~="node-highlighted"] > [part~="node-link"] {
824
+ background-color: ${L.highlightedBackgroundColor};
825
+ color: ${L.highlightedTextColor};
826
+ ${(0,Hr.setVariable)(g.fontWeight,L.highlightedFontWeight)}
827
+ }
828
+
829
+ [part~="node-link"] {
830
+ display: flex;
831
+ gap: 4px;
832
+ padding: ${L.verticalSpacing} 4px; /* left padding is override on inline style */
833
+ align-items: center;
834
+ text-decoration: none;
835
+ color: inherit;
836
+
837
+ &:hover {
838
+ color: ${L.hoverColor};
839
+ }
840
+
841
+ &:focus {
842
+ outline-color: ${hi.outlineColor};
843
+ }
844
+ }
845
+
846
+ [part~="node-icon-container"] {
847
+ position: relative;
848
+ display: flex;
849
+ border-radius: 100%;
850
+ overflow: hidden;
851
+ color: ${L.treeNodeIconColor};
852
+ }
853
+
854
+ [part~="node-icon"] {
855
+ ${(0,Hr.setVariable)(ae.size,L.iconFontSize)};
856
+ }
857
+
858
+ [part~="leaf-node-icon"] {
859
+ color: ${L.leafNodeIconColor};
860
+ width: ${L.iconFontSize};
861
+ }
862
+
863
+ .ft-reader-toc--expand-collapse-all-button {
864
+ ${(0,Hr.setVariable)(P.color,L.expandCollapseAllButtonColor)};
865
+ ${(0,Hr.setVariable)(P.backgroundColor,L.expandCollapseAllButtonBackgroundColor)};
866
+ }
867
+
868
+ .ft-reader-toc-expand-collapse-all-container {
869
+ margin: 8px 4px;
870
+ display: flex;
871
+ }
872
+
873
+ .ft-reader-toc-expand-collapse-all-right {
874
+ justify-content: flex-end;
875
+ }
876
+
877
+ .ft-reader-toc-expand-collapse-all-center {
878
+ justify-content: center;
879
+ }
880
+
881
+ .ft-reader-toc-expand-collapse-all-justify ft-button {
882
+ flex-grow: 1;
883
+ }
884
+ `;var Gc=f(bt());var Jn=f(D()),re=f(X()),zc=f(bt()),or=f(E());var Fr=f(D()),O=f(E());var Bc=O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnSurface),fe={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorSurface),color:Bc,fontSize:O.FtCssVariableFactory.extend("--ft-chip-font-size","",he.fontSize),fontWeight:O.FtCssVariableFactory.extend("--ft-chip-font-weight","",he.fontWeight),iconSize:O.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:O.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:O.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Bc),horizontalPadding:O.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:O.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:O.FtCssVariableFactory.extend("--ft-chip-border-color","",O.designSystemVariables.colorOutline),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},Hc=O.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnPrimary)),ao={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorPrimary)),color:Hc,rippleColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Hc)},Fc={horizontalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Vc=[O.noTextSelect,Fr.css`
885
+ :host {
886
+ display: inline-block;
887
+ max-width: 100%;
888
+ pointer-events: none;
889
+ }
890
+
891
+ .ft-chip {
892
+ position: relative;
893
+ display: flex;
894
+ justify-content: center;
895
+ align-items: center;
896
+ width: 100%;
897
+ box-sizing: border-box;
898
+ pointer-events: auto;
899
+
900
+ --chip-internal-font-size: ${fe.fontSize};
901
+ --chip-internal-font-weight: ${fe.fontWeight};
902
+ --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
903
+ ${(0,O.setVariable)(ae.size,fe.iconSize)};
904
+ --chip-internal-vertical-padding: ${fe.verticalPadding};
905
+ --chip-internal-horizontal-padding: ${fe.horizontalPadding};
906
+ --chip-internal-icon-padding: 3px;
907
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${fe.iconSize});
908
+
909
+ border: 1px solid ${fe.borderColor};
910
+ color: ${fe.color};
911
+ ${(0,O.setVariable)(ie.color,fe.rippleColor)};
912
+ border-radius: var(${(0,Fr.unsafeCSS)(fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
913
+ padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
914
+ background-color: ${fe.backgroundColor};
915
+ line-height: var(--chip-internal-content-height);
916
+ }
917
+
918
+ .ft-chip > *:not(ft-ripple) {
919
+ position: relative;
920
+ }
921
+
922
+ .ft-chip--dense {
923
+ --chip-internal-icon-padding: 3px;
924
+ --chip-internal-vertical-padding: ${Fc.verticalPadding};
925
+ --chip-internal-horizontal-padding: ${Fc.horizontalPadding};
926
+ --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
927
+ }
928
+
929
+ .ft-chip--no-content {
930
+ --chip-internal-horizontal-padding: ${fe.horizontalPadding.get(Fr.css`var(--chip-internal-vertical-padding)`)};
931
+ }
932
+
933
+ .ft-chip--disabled {
934
+ cursor: default;
935
+ pointer-events: none;
936
+ filter: grayscale(1);
937
+ opacity: ${fe.opacityDisabled};
938
+ }
939
+
940
+ .ft-chip--highlighted {
941
+ border: none;
942
+ padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
943
+ background-color: ${ao.backgroundColor};
944
+ ${(0,O.setVariable)(ie.color,ao.rippleColor)};
945
+ color: ${ao.color};
946
+ }
947
+
948
+ .ft-chip--clickable {
949
+ cursor: pointer;
950
+ overflow: hidden
951
+ }
952
+
953
+ .ft-chip:focus {
954
+ outline: 2px solid ${O.designSystemVariables.colorPrimary};
955
+ outline-offset: 2px;
956
+ }
957
+
958
+ .ft-chip--icon-container {
959
+ display: inline-flex;
960
+ position: relative;
961
+ overflow: hidden;
962
+ border-radius: 100%;
963
+ justify-content: center;
964
+ align-items: center;
965
+ flex-shrink: 0;
966
+
967
+ padding: var(--chip-internal-icon-padding);
968
+ margin: calc((-1) * var(--chip-internal-icon-padding));
969
+ }
970
+
971
+ .ft-chip--icon-container > *:not(ft-ripple) {
972
+ position: relative;
973
+ }
974
+
975
+ .ft-chip--icon-button {
976
+ ${(0,O.setVariable)(P.iconSize,fe.iconSize)};
977
+ ${(0,O.setVariable)(P.horizontalPadding,"var(--chip-internal-icon-padding)")};
978
+ ${(0,O.setVariable)(P.verticalPadding,"var(--chip-internal-icon-padding)")};
979
+ margin: calc((-1) * var(--chip-internal-icon-padding));
980
+ }
981
+
982
+ .ft-chip--label {
983
+ vertical-align: bottom;
984
+ display: block;
985
+ margin: 0 var(--chip-internal-horizontal-padding);
986
+ ${(0,O.setVariable)(he.fontSize,"var(--chip-internal-font-size)")};
987
+ ${(0,O.setVariable)(he.fontWeight,"var(--chip-internal-font-weight)")};
988
+ ${(0,O.setVariable)(he.lineHeight,"var(--chip-internal-content-height)")};
989
+ }
990
+
991
+ .ft-chip--safari-fix .ft-chip--label {
992
+ margin-right: 0;
993
+ }
994
+
995
+ .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
996
+ overflow: hidden;
997
+ white-space: nowrap;
998
+ text-overflow: ellipsis;
999
+ }
1000
+
1001
+ .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
1002
+ content: "\\0000a0";
1003
+ display: inline-block;
1004
+ width: 0;
1005
+ }
1006
+
1007
+ .ft-chip--no-content .ft-chip--label {
1008
+ display: none;
1009
+ }
1010
+
1011
+ .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
1012
+ width: var(--chip-internal-content-height);
1013
+ height: var(--chip-internal-content-height);
1014
+ }
1015
+
1016
+ .ft-chip--icon-container:focus {
1017
+ outline: none;
1018
+ }
1019
+
1020
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container,
1021
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1022
+ order: -1;
1023
+ }
1024
+ `];var ce=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},Qn=class extends CustomEvent{constructor(){super("icon-click")}},z=class extends or.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var 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":or.isSafari};return Jn.html`
1025
+ <div class="${(0,zc.classMap)(r)}"
1026
+ aria-label="${this.getLabel()}"
1027
+ tabindex="${this.interactionsOnChip?0:-1}"
1028
+ @keyup=${this.onKeyUp}
1029
+ part="chip">
1030
+ <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
1031
+ <ft-typography variant="${(t=this.typographyVariant)!==null&&t!==void 0?t:"body2"}" element="span" class="ft-chip--label" part="label">
1032
+ <slot @slotchange=${this.onSlotchange}></slot>
1033
+ </ft-typography>
1034
+ ${this.internalIcon?this.renderIcon():null}
1035
+ </div>
1036
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Jn.html`
1037
+ <ft-button round
1038
+ class="ft-chip--icon-button"
1039
+ @click=${this.onIconClick}
1040
+ .iconVariant=${this.iconVariant}
1041
+ icon="${this.internalIcon}"
1042
+ label="${this.iconLabel}"
1043
+ tooltipposition="top"
1044
+ part="icon-button"
1045
+ ?hideTooltip=${this.hideIconTooltip}
1046
+ ></ft-button>
1047
+ `:Jn.html`
1048
+ <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1049
+ <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1050
+ </div>
1051
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Qn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Qn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,or.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};z.elementDefinitions={"ft-ripple":U,"ft-typography":J,"ft-icon":te,"ft-button":T};z.styles=Vc;ce([(0,re.property)({type:Boolean})],z.prototype,"highlighted",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"removable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"disabled",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"clickable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"iconClickable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"dense",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"multiLine",void 0);ce([(0,re.property)()],z.prototype,"label",void 0);ce([(0,re.property)()],z.prototype,"iconLabel",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"hideIconTooltip",void 0);ce([(0,re.property)()],z.prototype,"icon",void 0);ce([(0,re.property)()],z.prototype,"iconVariant",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"trailingIcon",void 0);ce([(0,re.property)()],z.prototype,"typographyVariant",void 0);ce([(0,re.query)("ft-typography slot")],z.prototype,"slottedContent",void 0);var Wc=f(E());var jc={"ft-chip":z};(0,Wc.customElements)(jc);var qc=f(X()),Vd=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},$t=class extends N{willUpdate(t){var r,n,i;if(super.willUpdate(t),t.has("toc")||t.has("highlightedTocIds")){let o=(n=(r=this.toc)===null||r===void 0?void 0:r.flatMap(s=>this.allTocIds(s)))!==null&&n!==void 0?n:[];for(let s of o)if(!((i=this.highlightedTocIds)===null||i===void 0)&&i.includes(s)){this.currentTocNode=s;break}}}allTocIds(t){return[t.tocId,...t.children.flatMap(r=>this.allTocIds(r))]}render(){var t,r;return we.html`
1052
+ <div class="${(0,Gc.classMap)(this.tocClasses)}" part="container">
1053
+ <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
1054
+ ${this.renderExpandCollapseAll()}
1055
+ <div part="tree" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
1056
+ ${Bt((r=this.toc)!==null&&r!==void 0?r:[],n=>this.renderNode(n))}
1057
+ </div>
1058
+ </div>
1059
+ `}renderNode(t){var r,n,i,o;let s=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),a=t.tocId===this.currentTocNode,l=this.nodeIsExpanded(t),c=t.children.length>0,u=this.isCurrentPageToc?((i=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&i!==void 0?i:0)+1:0,d=t.depth-1-u,p={"padding-left":`calc( ${L.tabulationSize} * ${d} + 4px)`};return we.html`
1060
+ <div part="node ${s?"node-highlighted":""}"
1061
+ class="ft-reader-toc--node ${s?"ft-reader-toc--node-highlighted":""}"
1062
+ data-depth="${t.depth}">
1063
+ ${this.translationLoading?we.html`
1064
+ <ft-skeleton></ft-skeleton>`:we.html`
1065
+ <a part="node-link ${t.contentClass?`node-link-class-${t.contentClass}`:""}"
1066
+ class="ft-reader-toc--node-link"
1067
+ style="${(0,Kc.styleMap)(p)}"
1068
+ href="${(o=this.service)===null||o===void 0?void 0:o.getLink(t.tocId)}"
1069
+ tabindex="${a?"0":"-1"}"
1070
+ data-tocId="${t.tocId}"
1071
+ data-depth="${t.depth}"
1072
+ role="treeitem"
1073
+ aria-owns="${Te(c?`${t.tocId}-children`:void 0)}"
1074
+ aria-expanded="${Te(c?l:void 0)}"
1075
+ aria-current="${Te(s?"page":void 0)}"
1076
+ @click=${y=>this.onLinkClick(y,t.tocId)}
1077
+ @keydown=${this.onKeyDown}>
1078
+ ${this.renderLinkIcon(t)}
1079
+ ${this.renderNodeTag(t)}
1080
+ <ft-typography part="node-label" variant="${Be.body2}">${t.title}</ft-typography>
1081
+ </a>
1082
+ `}
1083
+ ${c?we.html`
1084
+ <div id="${t.tocId}-children"
1085
+ part="node-children"
1086
+ class="ft-reader-toc--node-children"
1087
+ role="group"
1088
+ ?hidden=${!l}>
1089
+ ${Bt(l?t.children:[],y=>this.renderNode(y))}
1090
+ </div>
1091
+ `:we.nothing}
1092
+ </div>
1093
+ `}renderLinkIcon(t){let r=t.children.length>0,n=this.nodeIsExpanded(t);return this.nodesToExpandExist&&!this.expanded?r?we.html`
1094
+ <div part="node-icon-container">
1095
+ <ft-icon part="node-icon"
1096
+ class="ft-reader-toc--node-icon"
1097
+ data-expand-node="${t.tocId}"
1098
+ .value=${n?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}
1099
+ variant="${this.iconVariant}"
1100
+ @click=${i=>this.manuallyToggle(t.tocId,n,i)}
1101
+ aria-hidden="true">
1102
+ </ft-icon>
1103
+ <ft-ripple>
1104
+
1105
+ </ft-ripple>
1106
+ </div>
1107
+ `:this.getLeafNodeIcon():r?we.nothing:this.getLeafNodeIcon()}renderNodeTag(t){if(!t.contentTag)return we.nothing;let r=["node-tag",`node-tag-${t.contentTag}`];return t.contentClass&&r.push(`node-tag-class-${t.contentClass}`),we.html`
1108
+ <ft-chip dense
1109
+ part="${r.join(" ")}">
1110
+ ${t.contentTag}
1111
+ </ft-chip>
1112
+ `}onLinkClick(t,r){var n,i,o;!t.ctrlKey&&!t.metaKey&&(t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${r}`),(n=this.stateManager)===null||n===void 0||n.navigateToTopic(r),(i=this.stateManager)===null||i===void 0||i.store.commands.clear(/^focus-topic-/),(o=this.stateManager)===null||o===void 0||o.store.commands.add({type:`focus-topic-${r}`}))}onKeyDown(t){var r,n,i,o,s;let a=t.currentTarget;switch(t.key){case"Home":(r=this.allLinks.shift())===null||r===void 0||r.focus();break;case"End":(n=this.allLinks.pop())===null||n===void 0||n.focus();break;case"ArrowDown":this.selectNextNode(a,this.allLinks),t.preventDefault();break;case"ArrowUp":this.selectNextNode(a,this.allLinks.reverse()),t.preventDefault();break;case"ArrowRight":a.ariaExpanded==="true"?this.selectNextNode(a,this.allLinks):a.ariaExpanded==="false"&&this.manuallyToggle(a.getAttribute("data-tocId"),!1),t.preventDefault();break;case"ArrowLeft":if(a.ariaExpanded==="true")this.manuallyToggle(a.getAttribute("data-tocId"),!0);else{let l=(s=(o=(i=a.parentElement)===null||i===void 0?void 0:i.parentElement)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.querySelector('[part="node-link"]');l?.focus()}t.preventDefault();break}}get allLinks(){var t,r;return Array.from((r=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll('[part~="node-link"]'))!==null&&r!==void 0?r:[])}selectNextNode(t,r){let n=!1;for(let i of r){if(n){i.focus();return}i.getAttribute("data-tocId")===t.getAttribute("data-tocId")&&(n=!0)}}};$t.elementDefinitions={...N.elementDefinitions,"ft-typography":J,"ft-skeleton":We,"ft-ripple":U,"ft-chip":z};$t.styles=Uc;Vd([(0,qc.state)()],$t.prototype,"currentTocNode",void 0);var Xc={"ft-reader-toc":ir,"ft-reader-accessible-toc":$t};(0,Yc.customElements)(Xc);})();
809
1113
  /*! Bundled license information:
810
1114
 
811
1115
  lit-html/directives/map.js: